/* OrbytOS website */
:root {
  --bg: #000;
  --band: #0c0c0d;
  --tile: #161617;
  --tile-2: #1d1d1f;
  --line: #2a2a2d;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --link: #2997ff;
  --btn: #0071e3;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 60px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.47; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.container { width: min(1040px, 90vw); margin: 0 auto; }
.narrow { width: min(760px, 90vw); }
.center { text-align: center; }
.section { padding: 120px 0; }
.band { background: var(--band); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.015em; margin-bottom: 18px; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); line-height: 1.42; }
.lead code { color: var(--text); }
.footnote { font-size: 13px; color: var(--dim); margin-top: 18px; line-height: 1.5; }
.footnote code { color: var(--muted); }
.caption, figcaption { font-size: 13px; color: var(--dim); margin-top: 12px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: 48px; background: rgba(0,0,0,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { width: min(1040px, 90vw); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; }
.nav-logo:hover { text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: #d2d2d7; font-size: 12.5px; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta { font-size: 12px; color: #fff; background: var(--btn); padding: 4px 12px; border-radius: 980px; }
.nav-cta:hover { text-decoration: none; background: #0077ed; }

/* hero */
.hero { padding: 90px 0 40px; }
.hero-head { text-align: center; }
.hero-logo { width: 64px; margin: 0 auto 22px; }
.hero h1 { font-size: clamp(56px, 9vw, 96px); line-height: 1; letter-spacing: -.02em; }
.hero-version { font-size: 21px; color: var(--muted); margin-top: 10px; }
.hero-sub { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; max-width: 720px; margin: 26px auto 0; }
.hero-links { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--btn); color: #fff; padding: 11px 22px; border-radius: 980px; font-size: 17px; }
.btn:hover { background: #0077ed; text-decoration: none; }
.link { font-size: 17px; }
.hero-shot { margin-top: 64px; }
.hero-shot img { border-radius: 12px; border: 1px solid var(--line); }
.hero-shot .caption { text-align: center; }

/* specs */
.specs { padding: 40px 0 20px; }
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.specs-grid div { padding: 26px 18px 0 0; }
.specs-grid b { display: block; font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.specs-grid span { color: var(--muted); font-size: 15px; }

/* hello */
.hello { font-family: var(--display); font-size: clamp(72px, 12vw, 136px); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 26px; transition: opacity .4s ease; }
.hello.fade { opacity: 0; }

/* horizontal rails */
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 56px; padding: 0 max(5vw, calc((100vw - 1040px) / 2)) 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: none; width: min(560px, 80vw); scroll-snap-align: start; }
.rail img { border-radius: 10px; border: 1px solid var(--line); }
.rail figcaption b { color: var(--text); font-weight: 600; margin-right: 6px; }
.gallery figure { width: min(720px, 84vw); }
.gallery img { cursor: zoom-in; }
.rail-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.rail-nav button { width: 36px; height: 36px; border-radius: 50%; background: var(--tile-2); font-size: 20px; line-height: 1; color: var(--muted); }
.rail-nav button:hover { color: var(--text); background: #2c2c2e; }

/* segmented control */
.seg { display: inline-flex; margin-top: 36px; padding: 3px; border-radius: 9px; background: var(--tile-2); }
.seg-btn { padding: 6px 22px; font-size: 14px; border-radius: 7px; color: var(--muted); }
.seg-btn.on { background: #48484a; color: #fff; }

.theme-stage { position: relative; aspect-ratio: 16 / 10; margin-top: 40px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.theme-img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s ease; }
.theme-img.on { opacity: 1; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 440px; gap: 20px; margin-top: 80px; }
.tiles.three { margin-top: 64px; }
.tile { display: flex; flex-direction: column; background: var(--tile); border-radius: 18px; overflow: hidden; }
.tile.wide { grid-column: span 2; }
.tile h3 { font-size: 22px; padding: 30px 30px 6px; }
.tile p { color: var(--muted); font-size: 15px; padding: 0 30px 22px; }
.tile img { flex: 1; min-height: 0; width: calc(100% - 30px); margin-left: 30px; object-fit: cover; object-position: left top; border-radius: 8px 0 0 0; cursor: zoom-in; }
.tiles.three .tile img, .tile:not(.wide) img { width: calc(100% - 60px); margin: 0 30px; border-radius: 8px 8px 0 0; object-position: center top; }

/* apps */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 32px; margin-top: 64px; }
.app img { width: 72px; height: 72px; margin-bottom: 14px; }
.app h3 { font-size: 17px; margin-bottom: 4px; }
.app p { font-size: 14px; color: var(--muted); line-height: 1.42; }

.list-title { font-size: 24px; margin: 80px 0 8px; }
.list-intro { color: var(--muted); margin-bottom: 18px; }
.deflist, .kits, .spec-list { border-top: 1px solid var(--line); }
.deflist div, .kits div, .spec-list div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.deflist dt, .spec-list dt { font-weight: 600; }
.deflist dd, .kits dd, .spec-list dd { color: var(--muted); }
.kits { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
.kits div { grid-template-columns: 130px 1fr; font-size: 15px; }
.kits div:nth-child(-n+2) { border-top: 1px solid var(--line); }
.kits dt { font-family: var(--mono); font-size: 14px; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.section-icon { width: 64px; margin-bottom: 20px; }
.split .lead { margin-bottom: 28px; }
.spec-list div { grid-template-columns: 110px 1fr; font-size: 15px; padding: 11px 0; }
.shot img { border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }

/* windows / code */
.craft { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; margin-top: 56px; align-items: start; }
.window { background: #1c1c1e; border: 1px solid #3a3a3c; border-radius: 10px; overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: #2c2c2e; border-bottom: 1px solid #3a3a3c; }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { flex: 1; text-align: center; margin-right: 52px; font-size: 13px; font-weight: 600; color: #d1d1d6; }
.code { padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; overflow-x: auto; color: #e5e5ea; }
.code code { font-size: inherit; }
/* colores del resaltado real de Craft */
.code .k { color: #c084fc; } .code .c { color: #38bdf8; } .code .y { color: #facc15; } .code .s { color: #86efac; } .code .n { color: #fdba74; }

/* terminal */
.terminal { max-width: 820px; margin: 48px auto 0; }
.term-body { height: 400px; overflow-y: auto; padding: 14px 16px; font-family: var(--mono); font-size: 13.5px; line-height: 1.5; background: #141416; cursor: text; }
.term-body pre { font-family: inherit; white-space: pre-wrap; word-break: break-word; }
.term-line { display: flex; gap: 8px; }
.prompt { color: #4ade80; white-space: nowrap; }
#termIn { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; caret-color: #fff; }
.t-b { color: #6eb4ff; } .t-g { color: #4ade80; } .t-d { color: #8e8e93; } .t-r { color: #f87171; }
.term-try { text-align: center; margin-top: 20px; color: var(--dim); font-size: 14px; }
.term-try button { font-family: var(--mono); font-size: 14px; color: var(--link); padding: 2px 6px; }
.term-try button:hover { text-decoration: underline; }

/* kernel */
.boot { list-style: none; counter-reset: s; margin-top: 48px; border-top: 1px solid var(--line); }
.boot li { counter-increment: s; display: grid; grid-template-columns: 40px 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.boot li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--dim); padding-top: 2px; }
.boot b { font-weight: 600; }
.boot span { color: var(--muted); font-size: 15.5px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 600; color: var(--dim); font-size: 13px; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
td:first-child { color: var(--text); white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }

/* run */
.run { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.run-card { background: var(--tile); border-radius: 18px; padding: 28px; }
.run-card h3 { font-size: 21px; margin-bottom: 6px; }
.run-card p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #000; border-radius: 10px; padding: 10px 10px 10px 14px; }
.cmd code { font-size: 15px; }
.copy { font-size: 13px; color: var(--link); padding: 4px 8px; }
.copy:hover { text-decoration: underline; }
.keys td:first-child { width: 50%; }
kbd { font-family: var(--font); font-size: 12px; padding: 2px 7px; border-radius: 5px; background: var(--tile-2); border: 1px solid #3a3a3c; color: var(--text); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 48px; font-size: 12px; color: var(--dim); }
.footer p + p { margin-top: 6px; }
.footer img { display: inline-block; vertical-align: -2px; margin-right: 4px; opacity: .7; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0,0,0,.9); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 8px; }

/* only fade, short and once */
.fade-in { opacity: 0; transition: opacity .6s ease; }
.fade-in.shown { opacity: 1; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .split, .craft, .run { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 380px; }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .specs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .app-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .kits { grid-template-columns: 1fr; }
  .kits div:nth-child(2) { border-top: 0; }
  .deflist div, .spec-list div { grid-template-columns: 100px 1fr; }
  .boot li { grid-template-columns: 32px 1fr; }
  .boot span { grid-column: 2; }
  .term-body { height: 340px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transition: none; }
  .hello, .theme-img { transition: none; }
}
