/* =====================================================================
   Vorl home page — night-sky hero, chapter demos,
   server-rack CTA. Strict grey + #E69336, Geist.
   ===================================================================== */
.home {
  --ink: #0b0a09;
  --a: #e69336;
  --a-2: #eea85e;
  --a-ink: #1a0f03;
  --l1: #232323;
  --l2: #2e2e2e;
  --t1: #f5f5f5;
  --t2: #d4d4d4;
  --t3: #a3a3a3;
  --t4: #737373;
  background: var(--ink);
  overflow-x: hidden;
}
.home a { color: inherit; }

/* ---------- nav */
.hn { position: sticky; top: 0; z-index: 40; background: rgba(11,10,9,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hn-row { display: flex; align-items: center; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-left)); }
.hn-links { display: flex; gap: 2px; margin-left: 12px; }
.hn-links a { padding: 7px 11px; border-radius: 7px; color: var(--t3); text-decoration: none; font-size: 14px; }
.hn-links a:hover { color: var(--t1); background: #1a1a1a; }
.hn-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hn-signin { padding: 7px 11px; color: var(--t3); text-decoration: none; font-size: 14px; border-radius: 7px; }
.hn-signin:hover { color: var(--t1); }

.hb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid #3a3a3a; border-radius: 8px; background: rgba(24,24,24,.85); color: var(--t1) !important; font: 500 14px var(--font); text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s, box-shadow .2s; }
.hb:hover { background: #262626; }
.hb-accent { background: var(--a); border-color: var(--a); color: var(--a-ink) !important; font-weight: 600; }
.hb-accent:hover { background: var(--a-2); box-shadow: 0 0 0 4px rgba(230,147,54,.18); }
.hb-lg { min-height: 46px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.hb span { transition: transform .2s; }
.hb:hover span { transform: translateX(3px); }

/* ---------- hero */
.hero3 { padding: 0 8px; }
.sky { position: relative; overflow: hidden; border: 1px solid var(--l1); border-radius: 18px; background: #0c0b0a; min-height: 900px; padding: 120px 20px 0; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-fade { position: absolute; inset: auto 0 0 0; height: 260px; background: linear-gradient(rgba(12,11,10,0), #0c0b0a 85%); pointer-events: none; }
.hero3-copy { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; text-align: center; }
.hp { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 5px 12px; border: 1px solid #3a3a3a; border-radius: 999px; background: rgba(15,14,13,.7); backdrop-filter: blur(6px); color: var(--t3); font: 500 12.5px var(--mono); }
.hp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 0 rgba(230,147,54,.6); animation: hp-pulse 2.4s infinite; }
@keyframes hp-pulse { 70% { box-shadow: 0 0 0 8px rgba(230,147,54,0); } 100% { box-shadow: 0 0 0 0 rgba(230,147,54,0); } }
.hero3 h1 { margin: 0; font-size: clamp(40px, 6.4vw, 74px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; color: var(--t1); text-wrap: balance; }
.hero3 h1 span { color: var(--t3); }
.hero3-lede { max-width: 36em; margin: 22px auto 0; color: var(--t2); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.hero3-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }

/* entrance */
.hero3-copy > * { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero3-copy > :nth-child(2) { animation-delay: .08s; }
.hero3-copy > :nth-child(3) { animation-delay: .16s; }
.hero3-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- product demo window */
.app { position: relative; z-index: 2; max-width: 1040px; margin: 70px auto 0; border: 1px solid #333; border-bottom: 0; border-radius: 14px 14px 0 0; background: #101010; box-shadow: 0 -20px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; opacity: 0; transform: translateY(60px); animation: rise 1.1s .35s cubic-bezier(.2,.7,.2,1) forwards; }
.app-bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--l1); font-size: 12.5px; color: var(--t3); }
.app-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.app-crumbs b { color: var(--t1); font-weight: 600; }
.app-crumbs i { color: #444; font-style: normal; }
.app-tabs { display: flex; gap: 14px; margin-left: auto; }
.app-tabs span.on { color: var(--t1); box-shadow: 0 9px 0 -7px var(--a); }
.app-me { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--a), #8a4d12); }
.app-body { position: relative; height: 420px; }
.app-grid { position: absolute; inset: 0; background-image: radial-gradient(#262626 1px, transparent 1px); background-size: 18px 18px; }
.app-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-wires path { fill: none; stroke: #555; stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .5s; }
.app-wires path.on { opacity: 1; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }

.nd { position: absolute; width: 210px; border: 1px solid #353535; border-radius: 10px; background: #171717; box-shadow: 0 14px 30px rgba(0,0,0,.45); font-size: 13px; opacity: 0; transform: scale(.92) translateY(8px); transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1.2), border-color .4s; }
.nd.on { opacity: 1; transform: none; }
.nd.pick { border-color: var(--a); box-shadow: 0 0 0 3px rgba(230,147,54,.15), 0 14px 30px rgba(0,0,0,.45); }
.nd-bot { left: 11%; top: 26%; }
.nd-db { left: 56%; top: 54%; }
.nd-web { left: 56%; top: 10%; }
.nd-h { display: flex; align-items: center; gap: 9px; padding: 12px 12px 6px; }
.nd-h b { font-weight: 600; color: var(--t1); }
.nd-i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: #222; }
.nd-s { padding: 0 12px 12px 47px; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 5px; background: #222; color: var(--t2); font: 500 11.5px var(--font); }
.st em, .dd-st em { font-style: normal; }
.st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.build { background: transparent; border: 1px dashed #666; }
.st.build i { animation: blink 1s infinite; }
.st.live { color: var(--a); background: rgba(230,147,54,.1); }
@keyframes blink { 50% { opacity: .2; } }
.nd-v, .nd-d { padding: 7px 12px; border-top: 1px solid var(--l1); color: var(--t4); font: 11.5px var(--mono); background: #131313; border-radius: 0 0 10px 10px; }
.nd-d { color: var(--t3); }

.app-log { position: absolute; left: 4%; bottom: 6%; width: 38%; border: 1px solid #2a2a2a; border-radius: 10px; background: rgba(8,8,8,.94); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
.app-log.on { opacity: 1; transform: none; }
.app-log-h { padding: 8px 12px; border-bottom: 1px solid #1f1f1f; color: var(--t4); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.app-log-b { height: 118px; padding: 8px 12px; overflow: hidden; font: 11.5px/1.75 var(--mono); color: #bdbdbd; }
.app-log-b div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fadein .3s; }
.app-log-b .hi { color: var(--a); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }

.app-palette { position: absolute; left: 50%; top: 18%; width: min(420px, 80%); transform: translateX(-50%) scale(.96); border: 1px solid #3a3a3a; border-radius: 12px; background: #181818; box-shadow: 0 30px 70px rgba(0,0,0,.7); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 3; }
.app-palette.on { opacity: 1; transform: translateX(-50%) scale(1); }
.pal-q { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-bottom: 1px solid #262626; font-size: 15px; color: var(--t1); }
.pal-q i { width: 1.5px; height: 18px; margin-left: 2px; background: var(--a); animation: blink 1s steps(1) infinite; }
.pal-r { display: flex; align-items: center; gap: 10px; margin: 4px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--t2); }
.pal-r small { margin-left: auto; color: var(--t4); font-size: 12px; }
.pal-r.on { background: #242424; color: var(--t1); }

.demo-steps { position: relative; z-index: 3; display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: -1px auto 0; padding: 5px; border: 1px solid #333; border-radius: 12px; background: rgba(18,18,18,.92); backdrop-filter: blur(8px); transform: translateY(-34px); }
.demo-steps button { position: relative; overflow: hidden; min-height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--t3); font: 500 13.5px var(--font); cursor: pointer; }
.demo-steps button[aria-selected="true"] { background: #262626; color: var(--t1); }
.demo-steps button[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--a); transform-origin: left; animation: prog var(--dur, 6s) linear forwards; }
.demo-steps.paused button::after { animation: none; transform: scaleX(1); }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- tech wall (Railway's logo wall, honest version) */
.wall { padding: 0 8px; margin-top: 8px; }
.wall-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--l1); border-radius: 18px; overflow: hidden; background: #0e0d0c; }
.wall-c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; border-right: 1px solid var(--l1); border-bottom: 1px solid var(--l1); color: var(--t3); transition: background .25s, color .25s; }
.wall-c:nth-child(6n) { border-right: 0; }
.wall-c:nth-last-child(-n+6) { border-bottom: 0; }
.wall-c small { font: 500 11.5px var(--mono); color: var(--t4); letter-spacing: .02em; }
.wall-c:hover { background: #151413; color: var(--t1); }

/* ---------- journey */
.journey { position: relative; max-width: 1280px; margin: 0 auto; padding: 40px 8px 20px; }

.ch { position: relative; margin: 0 0 8px; padding: 110px 64px 90px; border: 1px solid transparent; border-radius: 18px; }
.ch[data-tone="ember"] { background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(230,147,54,.07), transparent 70%), #100e0c; border-color: #1e1a16; }
.ch[data-tone="slate"] { background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(140,150,165,.06), transparent 70%), #0e0f10; border-color: #1b1d20; }
.ch[data-tone="moss"] { background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(150,160,120,.05), transparent 70%), #0e0f0d; border-color: #1c1e1a; }
.ch.lit .ch-pill { display: inline-block; margin: 0 0 18px; padding: 4px 10px; border-radius: 7px; background: rgba(230,147,54,.12); color: var(--a); font: 500 12.5px var(--mono); }
.ch[data-tone="slate"] .ch-pill { background: rgba(255,255,255,.07); color: var(--t1); }
.ch[data-tone="moss"] .ch-pill { background: rgba(170,180,140,.1); color: #c9cfb4; }
.ch h2 { margin: 0; max-width: 14em; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; color: var(--t1); }
.ch-lede { max-width: 36em; margin: 18px 0 0; color: var(--t3); font-size: 17px; line-height: 1.65; }
.ch-lede a, .board-sub a { color: var(--t1); text-decoration: none; font-weight: 500; white-space: nowrap; }
.ch-lede a:hover, .board-sub a:hover { color: var(--a); }
.ch-lede code { padding: 1px 6px; border: 1px solid #333; border-radius: 5px; background: #171717; color: var(--t1); font: 14px var(--mono); }

.ch-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 48px 0 0; padding: 30px 0 0; list-style: none; border-top: 1px solid #222; }
.ch-feats li { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; row-gap: 4px; }
.ch-feats svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--a); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ch-feats b { color: var(--t1); font-weight: 600; font-size: 15px; }
.ch-feats span { color: var(--t3); font-size: 14px; line-height: 1.5; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- demos */
.demo { position: relative; max-width: 900px; margin: 44px 0 0; border: 1px solid #2c2c2c; border-radius: 14px; background: #121212; box-shadow: 0 30px 60px rgba(0,0,0,.45); overflow: hidden; }

/* deploy */
.demo-deploy { padding: 8px; }
.dd-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 9px; }
.dd-new { background: #181818; border: 1px solid #2c2c2c; }
.dd-old { opacity: .55; margin-top: 8px; }
.dd-src { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #222; }
.dd-t { display: flex; flex-direction: column; min-width: 0; }
.dd-t b { color: var(--t1); font-weight: 600; font-size: 14px; }
.dd-t small { color: var(--t4); font: 12px var(--mono); }
.dd-st { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px dashed #666; border-radius: 6px; color: var(--t2); font-size: 12px; }
.dd-st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1s infinite; }
.dd-st.dd-off { border: 0; background: #1e1e1e; color: var(--t4); }
.demo-deploy.done .dd-st:not(.dd-off) { border-style: solid; border-color: transparent; background: rgba(230,147,54,.12); color: var(--a); }
.demo-deploy.done .dd-st:not(.dd-off) i { animation: none; }
.dd-bar { height: 3px; margin: 10px 12px 0; border-radius: 3px; background: #222; overflow: hidden; }
.dd-bar i { display: block; height: 100%; width: 0; background: var(--a); }
.demo-deploy.run .dd-bar i { animation: fill 3.6s ease-in-out forwards; }
@keyframes fill { to { width: 100%; } }
.dd-log { margin: 10px 4px 2px; padding: 10px 12px; border-radius: 8px; background: #0a0a0a; font: 12px/1.9 var(--mono); color: #b5b5b5; }
.dd-log div { opacity: 0; }
.demo-deploy.run .dd-log div { animation: fadein .3s forwards; }
.demo-deploy.run .dd-log div:nth-child(1) { animation-delay: .3s; }
.demo-deploy.run .dd-log div:nth-child(2) { animation-delay: 1.2s; }
.demo-deploy.run .dd-log div:nth-child(3) { animation-delay: 2.4s; }
.demo-deploy.run .dd-log div:nth-child(4) { animation-delay: 3.4s; }
.dd-log .hi { color: var(--a); }

/* connect */
.demo-net { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; padding: 48px 32px 24px; row-gap: 26px; }
.dn-node { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid #333; border-radius: 10px; background: #181818; }
.dn-node span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #222; margin-bottom: 4px; }
.dn-node b { color: var(--t1); font-weight: 600; }
.dn-node small { color: var(--a); font-size: 12px; }
.dn-a { grid-column: 1; grid-row: 1; }
.dn-b { grid-column: 3; grid-row: 1; }
.dn-wire { grid-column: 2; grid-row: 1; width: 100%; height: 40px; }
.dn-wire path { fill: none; stroke: #555; stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.demo-net.in .dn-wire path { stroke: var(--a); animation: dash 1s linear infinite; }
.dn-tag { grid-column: 2; grid-row: 1; justify-self: center; align-self: start; transform: translateY(-30px); padding: 4px 10px; border: 1px solid rgba(230,147,54,.35); border-radius: 999px; background: #1c150d; color: var(--a); font: 500 11px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.dn-var { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; padding: 14px 16px; border: 1px solid #2a2a2a; border-radius: 10px; background: #0b0b0b; font: 13px var(--mono); overflow: hidden; }
.dn-var .k { color: var(--t1); white-space: nowrap; }
.dn-var .v { position: relative; flex: 1; min-width: 0; height: 20px; }
.dn-var .ref, .dn-var .res { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .5s, transform .5s; }
.dn-var .ref { color: var(--t2); text-decoration: underline; text-decoration-color: #555; text-underline-offset: 4px; }
.dn-var .res { color: var(--a); opacity: 0; transform: translateY(8px); overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.demo-net.flip .ref { opacity: 0; transform: translateY(-8px); }
.demo-net.flip .res { opacity: 1; transform: none; }

/* uptime */
.demo-up { padding: 22px; }
.du-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; color: var(--t4); }
.du-head b { color: var(--t1); font-weight: 600; }
.du-bars { display: flex; gap: 3px; height: 38px; }
.du-bars i { flex: 1; border-radius: 3px; background: #2c2c2c; transform: scaleY(.3); transform-origin: bottom; transition: transform .4s, background .4s; }
.demo-up.in .du-bars i { transform: none; background: #3a3a3a; }
.demo-up.in .du-bars i.up { background: var(--a); opacity: .85; }
.demo-up.in .du-bars i.dip { background: #f2f2f2; }
.du-events { margin-top: 18px; padding: 12px 14px; border-radius: 9px; background: #0a0a0a; font: 12.5px/2 var(--mono); }
.du-e { display: flex; gap: 14px; opacity: 0; transform: translateX(-6px); }
.demo-up.in .du-e { animation: slidein .4s forwards; animation-delay: calc(.8s + var(--d) * .9s); }
@keyframes slidein { to { opacity: 1; transform: none; } }
.du-e time { color: var(--t4); }
.du-e .x { color: #f2f2f2; }
.du-e .ok { color: var(--a); }

/* logs */
.dl-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #222; }
.dl-search { padding: 4px 10px; border: 1px solid #333; border-radius: 7px; color: var(--t4); font: 12.5px var(--mono); }
.dl-search em { color: var(--t1); font-style: normal; }
.dl-live { display: inline-flex; align-items: center; gap: 6px; color: var(--a); font: 500 12px var(--mono); }
.dl-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--a); animation: blink 1.2s infinite; }
.dl-body { height: 230px; padding: 10px 14px; overflow: hidden; font: 12.5px/1.85 var(--mono); color: #b5b5b5; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); display: flex; flex-direction: column; justify-content: flex-end; }
.dl-body div { display: flex; gap: 12px; white-space: nowrap; animation: fadein .3s; }
.dl-body time { color: #5c5c5c; }
.dl-body .lv { width: 44px; color: var(--t4); }
.dl-body .err { color: var(--a); }
.dl-body .err .lv { color: var(--a); }
.dl-body mark { background: rgba(230,147,54,.22); color: var(--t1); border-radius: 3px; padding: 0 2px; }

/* dns */
.demo-dns { padding: 20px; }
.dz-dom { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 15px; }
.dz-dom b { color: var(--t1); font: 600 15px var(--mono); }
.dz-dom .lock { opacity: .25; filter: grayscale(1); transition: opacity .4s, filter .4s; }
.demo-dns.done .lock { opacity: 1; filter: none; }
.dz-badge { margin-left: auto; padding: 3px 9px; border: 1px dashed #666; border-radius: 6px; font-size: 12px; color: var(--t3); }
.demo-dns.done .dz-badge { border: 0; background: rgba(230,147,54,.12); color: var(--a); }
.dz-t { border: 1px solid #2a2a2a; border-radius: 10px; overflow: hidden; }
.dz-r { display: grid; grid-template-columns: 110px 1fr 1.4fr; gap: 12px; padding: 12px 14px; border-top: 1px solid #222; font: 12.5px var(--mono); color: var(--t2); }
.dz-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-h { border-top: 0; background: #161616; color: var(--t4); font-family: var(--font); }
.dz-r span:first-child { display: flex; align-items: center; gap: 8px; }
.ck { width: 15px; height: 15px; border: 1.5px dashed #5c5c5c; border-radius: 50%; flex: 0 0 auto; transition: all .35s; }
.demo-dns.in .dz-r .ck { animation: check .4s forwards; animation-delay: calc(1s + var(--d) * 1s); }
@keyframes check { to { border: 0; background: var(--a) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231a0f03' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; } }

.ch-pill-c { margin-bottom: 16px; }
.hsec-title { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: var(--t1); }
.hsec-sub { margin: 14px 0 0; color: var(--t3); font-size: 16px; }

/* ---------- pricing + faq */
.hsec { padding: 110px 0 40px; text-align: center; }
.hsec .plans { margin-top: 44px; text-align: left; }
.home .plan { border-color: #262626; background: #121110; border-radius: 14px; transition: transform .25s, border-color .25s; }
.home .plan:hover { transform: translateY(-3px); border-color: #3a3a3a; }
.home .plan-featured { border-color: var(--a); box-shadow: 0 0 0 1px var(--a), 0 30px 60px rgba(230,147,54,.08); }
.home .plan .btn-primary { background: var(--a); border-color: var(--a); color: var(--a-ink); }
.hsec-faq { text-align: left; padding-bottom: 120px; }
.hsec-faq .hsec-title { margin-bottom: 20px; }

/* ---------- server rack CTA */
.rack-sec { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; max-width: 1100px; margin: 0 auto; padding: 120px 24px 140px; overflow: hidden; }
.rack-glow { position: absolute; left: 10%; top: 50%; width: 560px; height: 560px; margin-top: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(230,147,54,calc(var(--lit, 0) * .22)), transparent 65%); pointer-events: none; }
.rack { position: relative; justify-self: center; width: min(360px, 90%); padding: 18px 16px; border: 1px solid #333; border-radius: 10px; background: linear-gradient(#161616, #0e0e0e); box-shadow: 0 40px 80px rgba(0,0,0,.6), inset 0 0 0 6px #121212; }
.ru { display: flex; align-items: center; gap: 7px; height: 30px; margin: 0 0 7px; padding: 0 12px; border: 1px solid #262626; border-radius: 5px; background: linear-gradient(#1c1c1c, #141414); }
.ru:last-child { margin: 0; }
.ru i { width: 7px; height: 7px; border-radius: 50%; background: #2c2c2c; transition: background .3s, box-shadow .3s; }
.ru span { margin-left: auto; width: 46%; height: 8px; border-radius: 2px; background: repeating-linear-gradient(90deg, #262626 0 3px, transparent 3px 6px); }
.ru.on i:first-child { background: var(--a); box-shadow: 0 0 10px var(--a); }
.ru.on i:nth-child(2) { background: #f2f2f2; animation: blink .9s infinite; }
.ru.on i:nth-child(3) { background: var(--a); opacity: .6; animation: blink 1.7s infinite; }
.rack-copy h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; color: var(--t1); }
.rack-copy p { margin: 16px 0 28px; color: var(--t3); font-size: 17px; }

/* ---------- footer with giant wordmark */
.hf { border-top: 1px solid #1c1c1c; padding-top: 56px; overflow: hidden; }
.hf-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.hf-brand p { margin: 10px 0 0; color: var(--t4); font-size: 14px; max-width: 22em; }
.hf nav { display: flex; flex-direction: column; gap: 8px; }
.hf h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--t2); }
.hf nav a { color: var(--t4); text-decoration: none; font-size: 14px; }
.hf nav a:hover { color: var(--t1); }
.hf-mark { margin: 40px 0 -0.24em; text-align: center; font-size: clamp(120px, 28vw, 380px); font-weight: 800; letter-spacing: -0.07em; line-height: 1; color: transparent; background: linear-gradient(#2b2724, #0b0a09 82%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.hf-bottom { position: relative; display: flex; justify-content: space-between; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #1c1c1c; color: var(--t4); font-size: 13px; }

/* ---------- responsive */
@media (max-width: 980px) {
  .hn-links { display: none; }
  .wall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wall-c:nth-child(6n) { border-right: 1px solid var(--l1); }
  .wall-c:nth-child(4n) { border-right: 0; }
  .wall-c:nth-last-child(-n+6) { border-bottom: 1px solid var(--l1); }
  .wall-c:nth-last-child(-n+4) { border-bottom: 0; }
  .ch { padding: 80px 28px 64px; }
      .ch-feats { grid-template-columns: 1fr; gap: 18px; }
  .rack-sec { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sky { min-height: 0; padding: 72px 14px 0; border-radius: 14px; }
  .hero3-lede { font-size: 16px; }
  .app { margin-top: 44px; }
  .app-tabs { display: none; }
  .app-body { height: 340px; }
  .nd { width: 158px; font-size: 12px; }
  .nd-bot { left: 4%; top: 8%; }
  .nd-web { left: auto; right: 4%; top: 34%; }
  .nd-db { left: 4%; top: 58%; }
  .nd-s { padding-left: 12px; }
  .app-log { left: auto; right: 4%; bottom: 4%; width: 52%; }
  .app-log-b { height: 82px; }
  .demo-steps { transform: translateY(-26px); }
  .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wall-c:nth-child(4n) { border-right: 1px solid var(--l1); }
  .wall-c:nth-child(3n) { border-right: 0; }
  .wall-c:nth-last-child(-n+4) { border-bottom: 1px solid var(--l1); }
  .wall-c:nth-last-child(-n+3) { border-bottom: 0; }
  .wall-c { min-height: 88px; }
  .journey { padding-left: 0; padding-right: 0; }
  .ch { padding: 64px 20px 48px; border-radius: 14px; }
      .ch-lede { font-size: 16px; }
  .demo-net { grid-template-columns: 1fr; padding: 20px; }
  .dn-a, .dn-b, .dn-wire, .dn-tag { grid-column: 1; }
  .dn-wire { grid-row: 2; height: 30px; transform: rotate(90deg); width: 40px; justify-self: center; }
  .dn-tag { grid-row: 2; align-self: center; transform: none; }
  .dn-b { grid-row: 3; }
  .dn-var { grid-row: 4; flex-direction: column; align-items: flex-start; gap: 6px; }
  .dn-var .v { width: 100%; }
  .dz-r { grid-template-columns: 76px 1fr; }
  .dz-r span:last-child { grid-column: 1 / -1; }
  .hf-grid { grid-template-columns: 1fr 1fr; }
  .hf-brand { grid-column: 1 / -1; }
  .hf-bottom { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .rv { opacity: 1; transform: none; }
}
@media (max-width: 640px) { .dz-h span:last-child { display: none; } }


/* ---------- hero v2: scroll scene, text rises from behind the mountains */
.hero3 { position: relative; height: 210vh; padding: 0 8px; }
.sky { position: sticky; top: 64px; height: calc(100vh - 72px); min-height: 520px; padding: 0; }
#sky, #skyFront { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#skyFront { z-index: 3; pointer-events: none; }
.hero3-copy { position: absolute; z-index: 2; left: 0; right: 0; top: 18%; max-width: 820px; margin: 0 auto; padding: 0 20px; will-change: transform, opacity; }
.hero3-copy > * { opacity: 1; transform: none; animation: none; }
.sky-fade { z-index: 4; height: 120px; }
.scroll-hint { position: absolute; z-index: 5; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--t4); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; pointer-events: none; transition: opacity .2s; }
.scroll-hint i { width: 1.5px; height: 34px; border-radius: 2px; background: linear-gradient(var(--a), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* the live demo now has its own section */
.demo-sec { position: relative; padding: 40px 8px 0; }
.demo-sec .app { margin-top: 0; opacity: 0; transform: translateY(40px); animation: none; transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); border-bottom: 1px solid #333; border-radius: 14px; }
.demo-sec .app.in { opacity: 1; transform: none; }
.demo-sec .demo-steps { transform: none; margin-top: 14px; }

@media (max-width: 640px) {
  .hero3 { height: 190vh; }
  .sky { top: 56px; height: calc(100vh - 64px); padding: 0; }
  .hero3-copy { top: 14%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero3 { height: auto; }
  .sky { position: relative; top: 0; }
  .scroll-hint { display: none; }
}

/* ---------- hero v3: only the wordmark rises from behind the mountains */
.hero-markwrap { top: 40%; bottom: auto; max-width: none; text-align: center; }
.hero3 .hero-mark, .hero-mark { margin: 0; padding: 0 .04em; font-size: clamp(130px, 29vw, 520px); font-weight: 800; line-height: .78; letter-spacing: -0.045em; text-transform: uppercase; color: transparent; background: linear-gradient(180deg, #fff7ec 0%, #f3d9b8 45%, #e69336 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 40px rgba(230,147,54,.22)); user-select: none; }
.pitch { max-width: 820px; margin: 0 auto 56px; padding-top: 80px; text-align: center; }
.pitch h2 { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; color: var(--t1); text-wrap: balance; }
.pitch h2 span { color: var(--t3); }
.pitch .hp { margin-bottom: 22px; }
@media (max-width: 640px) { .pitch { padding-top: 48px; margin-bottom: 36px; } }
@media (max-width: 640px) { .hero3 .hero-mark { font-size: 25vw; } }
