:root {
  --bg: #0d0d10;
  --surface: #11151f;
  --teal: #5fe0d4;
  --orange: #ffb347;
  --orange-hot: #ff7a59;
  --text: #f4f4f6;
  --muted: #7e8aa3;
  --dim: #4a5568;
  --border: #222a3a;
  --line: rgba(34, 42, 58, .7);
  /* legacy aliases so old references still work */
  --black: #0d0d10;
  --paper: #0d0d10;
  --acid: #5fe0d4;
  --gray: #7e8aa3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: Inter, sans-serif; }

/* ── Page load fade-in ── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── Sticky shrinking header ── */
header { transition: height .25s, background .25s, box-shadow .25s; }
header.scrolled { height: 64px; background: rgba(13,13,16,.95); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }

/* ── Hero typing cursor ── */
.hero h1 .cursor { display: inline-block; width: .06em; height: .85em; background: var(--teal); margin-left: 4px; vertical-align: middle; animation: blink .9s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Hero grid background ── */
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%); opacity: .35; }

/* ── Signal bar animation ── */
.signal i { animation: bar-pulse 1.8s ease-in-out infinite; }
.signal i:nth-child(2n) { animation-delay: .15s; }
.signal i:nth-child(3n) { animation-delay: .3s; }
.signal i:nth-child(4n) { animation-delay: .45s; }
.signal i:nth-child(5n) { animation-delay: .6s; }
@keyframes bar-pulse { 0%,100%{opacity:.2} 50%{opacity:.6} }

/* ── Product card tilt + glow ── */
.product { transition: box-shadow .3s, transform .1s; transform-style: preserve-3d; }
.product:hover { box-shadow: 0 0 0 1px var(--teal), 0 20px 60px rgba(95,224,212,.08); }
.product-image { overflow: hidden; }

/* ── Screenshot scan line ── */
.product-image::after { content: ''; position: absolute; left: 0; right: 0; top: -100%; height: 60px; background: linear-gradient(transparent, rgba(95,224,212,.06), transparent); transition: top .0s; pointer-events: none; }
.product:hover .product-image::after { animation: scan 1.4s ease-in-out; }
@keyframes scan { 0%{top:-60px} 100%{top:110%} }

/* ── VOID card glow ── */
.void-card { transition: box-shadow .3s; }
.void-card:hover { box-shadow: inset 0 0 40px rgba(95,224,212,.04), 0 0 0 1px var(--teal); }
.void-card-featured:hover { box-shadow: inset 0 0 80px rgba(95,224,212,.06), 0 0 0 1px var(--teal); }

/* ── Download buttons slide in on card hover ── */
.download-group { transition: opacity .2s, transform .2s; }
.product .download-group { opacity: .5; transform: translateY(6px); }
.product:hover .download-group { opacity: 1; transform: none; }
button, input { font: inherit; }
a { color: inherit; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.mono { font-family: "DM Mono", monospace; }
.grain { position: fixed; z-index: 20; inset: 0; opacity: .04; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

header { height: 92px; max-width: 1320px; margin: auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 13px; font-weight: 900; line-height: .88; letter-spacing: -.04em; text-decoration: none; }
.logo-icon { width: 38px; height: 38px; display: grid; place-items: center; position: relative; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; overflow: hidden; }
.logo-icon .glyph { font-family: "Courier New", monospace; font-size: 13px; font-weight: 800; color: var(--teal); line-height: 1; }
.logo-icon .accent-bar { display: none; }
nav { display: flex; gap: 40px; }
nav a, .header-link { font-size: 12px; font-weight: 700; text-decoration: none; color: var(--muted); transition: color .15s; }
nav a:hover, .header-link:hover { color: var(--teal); }
.header-link { padding-bottom: 4px; border-bottom: 1px solid var(--border); color: var(--text); }

.hero { min-height: 680px; position: relative; padding-top: 85px; }
.hero-tag { display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: .15em; color: var(--muted); }
.hero-tag span { width: 32px; height: 2px; background: var(--teal); }
.hero h1 { max-width: 1050px; margin: 36px 0 45px; font-size: clamp(65px, 8.8vw, 126px); line-height: .82; letter-spacing: -.085em; font-weight: 900; color: var(--text); }
.hero h1 em { color: var(--teal); font-family: Georgia, serif; font-weight: 400; }
.hero-bottom { max-width: 1010px; display: flex; align-items: end; justify-content: space-between; }
.hero-bottom p { max-width: 490px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.round-link { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; font-size: 24px; text-decoration: none; color: var(--text); transition: .2s; }
.round-link:hover { color: var(--bg); background: var(--teal); border-color: var(--teal); transform: translateY(5px); }
.signal { position: absolute; right: 0; top: 60px; height: 120px; display: flex; align-items: center; gap: 4px; transform: rotate(90deg); transform-origin: right bottom; opacity: .2; }
.signal i { display: block; width: 3px; height: calc(8px + var(--h, 30px)); background: var(--teal); }
.signal i:nth-child(3n) { --h: 65px; }.signal i:nth-child(4n) { --h: 90px; }.signal i:nth-child(5n) { --h: 45px; }

.manifesto { padding: 58px 0; color: var(--teal); background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.manifesto-inner { display: grid; grid-template-columns: .5fr 1.5fr; gap: 50px; align-items: start; }
.manifesto span { padding-top: 10px; color: var(--dim); font-size: 9px; letter-spacing: .14em; }
.manifesto p { max-width: 850px; margin: 0; font-size: 34px; line-height: 1.18; letter-spacing: -.04em; font-weight: 600; }

.products { padding-block: 120px 135px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 58px; }
.index { color: var(--teal); font-size: 9px; letter-spacing: .15em; }
.section-head h2, .about h2 { margin: 12px 0 0; font-size: 52px; line-height: 1; letter-spacing: -.06em; color: var(--text); }
.section-head > p { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; line-height: 1.7; }
.product { display: grid; grid-template-columns: 1.36fr .64fr; min-height: 540px; margin-bottom: 60px; border: 1px solid var(--border); background: var(--surface); }
.product-hh { grid-template-columns: .64fr 1.36fr; }
.product-hh .product-image { order: 2; }.product-hh .product-copy { order: 1; }
.product-image { position: relative; min-height: 520px; overflow: hidden; background: #080a10; }
.product-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: saturate(.9) contrast(1.03); transition: transform .6s; }
.product:hover .product-image img { transform: scale(1.025); }
.corner-label, .status { position: absolute; z-index: 2; top: 18px; padding: 8px 10px; color: var(--text); background: rgba(13,13,16,.85); backdrop-filter: blur(8px); font-size: 8px; letter-spacing: .11em; border: 1px solid var(--border); }
.corner-label { left: 18px; }.status { right: 18px; }
.status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.product-hh .status i { background: var(--orange-hot); box-shadow: 0 0 8px var(--orange-hot); }
.product-copy { padding: 42px 38px 34px; display: flex; flex-direction: column; }
.product-number { font-size: 9px; color: var(--dim); }
.product-copy h3 { margin: 36px 0 2px; font-size: 64px; line-height: .9; letter-spacing: -.075em; color: var(--text); }
.product-type { margin: 10px 0 25px; color: var(--teal); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .14em; }
.description { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.product-copy ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.product-copy li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--text); }
.product-copy li span { margin-right: 12px; color: var(--dim); font-family: "DM Mono", monospace; font-size: 8px; }
.product-button { margin-top: auto; padding: 15px 18px; display: flex; justify-content: space-between; border: 1px solid var(--teal); color: var(--bg); background: var(--teal); font-size: 11px; font-weight: 800; cursor: pointer; transition: .2s; }
.product-button:hover { background: transparent; color: var(--teal); }

.download-group { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.download-btn { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid var(--border); color: var(--text); background: transparent; text-decoration: none; font-size: 11px; font-weight: 800; transition: .2s; }
.download-btn:hover { color: var(--bg); background: var(--teal); border-color: var(--teal); }
.dl-os { flex: 1; }
.dl-fmt { color: var(--dim); font-size: 8px; letter-spacing: .06em; }
.download-btn:hover .dl-fmt { color: var(--bg); opacity: .6; }
.dl-arrow { font-size: 14px; }

.status-available i { background: var(--teal) !important; box-shadow: 0 0 8px var(--teal) !important; }

.build { padding-block: 120px 135px; }
.build-intro { max-width: 780px; margin-bottom: 64px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.build-intro p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--muted); }
.build-steps { margin: 0; padding: 0; list-style: none; }
.build-step { display: grid; grid-template-columns: 80px 1fr; gap: 0 32px; padding-block: 36px; border-bottom: 1px solid var(--line); }
.step-num { font-size: 9px; letter-spacing: .13em; color: var(--teal); padding-top: 6px; }
.step-body h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.03em; color: var(--text); }
.step-body p { margin: 0 0 14px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.step-body p:last-child { margin-bottom: 0; }
.step-body a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.step-body a:hover { color: var(--orange); }
.step-body em { font-style: italic; color: var(--dim); }
.step-body pre { margin: 14px 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; }
.step-body code { font-family: "DM Mono", monospace; font-size: 11px; color: var(--teal); background: rgba(95,224,212,.08); padding: 2px 6px; }
.step-body pre code { display: block; line-height: 1.7; color: var(--teal); background: none; padding: 0; }

.void-section { padding-block: 120px 135px; background: var(--surface); color: var(--text); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.void-section .section-head { margin-bottom: 58px; }
.void-section .section-head h2 { margin: 12px 0 0; font-size: 52px; line-height: 1; letter-spacing: -.06em; }
.void-section .section-head > p { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; line-height: 1.7; }
.void-index { color: var(--dim) !important; }
.void-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.void-card-featured { grid-column: span 2; }
.void-card-featured .void-image { aspect-ratio: 21/9; }
.void-card { display: flex; flex-direction: column; background: var(--surface); }
.void-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #080a10; }
.void-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.9) contrast(1.05); transition: transform .6s; }
.void-card:hover .void-image img { transform: scale(1.03); }
.void-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.void-tag { font-size: 8px; letter-spacing: .14em; color: var(--teal); }
.void-body h3 { margin: 0; font-size: 28px; letter-spacing: -.05em; line-height: 1; color: var(--text); }
.void-body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; flex: 1; }
.void-body .download-group { margin-top: 8px; }
.void-body .download-btn { background: transparent; border-color: var(--border); }
.void-body .download-btn:hover { color: var(--bg); background: var(--teal); border-color: var(--teal); }
.void-body .dl-fmt { color: var(--dim); }

.about { padding-block: 120px; color: var(--text); background: var(--bg); border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.about .index { color: var(--teal); }
.about-copy .large { margin: 4px 0 28px; color: var(--text); font-size: 25px; line-height: 1.4; letter-spacing: -.025em; }
.about-copy > p:not(.large) { color: var(--muted); font-size: 14px; line-height: 1.8; }
.maker { margin-top: 45px; padding-top: 25px; display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--border); }
.maker-mark { width: 48px; height: 48px; display: grid; place-items: center; font-family: "Courier New", monospace; color: var(--bg); background: linear-gradient(135deg, var(--orange), var(--orange-hot)); font-size: 13px; font-weight: 900; }
.maker strong { display: block; font-size: 14px; color: var(--text); }.maker small { color: var(--dim); font-size: 8px; letter-spacing: .12em; }

.updates { padding-block: 115px; }
.update-card { margin-top: 20px; padding: 55px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; background: var(--surface); border: 1px solid var(--border); box-shadow: 10px 10px 0 var(--teal); }
.update-card span { font-size: 9px; letter-spacing: .13em; color: var(--teal); }
.update-card h2 { margin: 16px 0 0; font-size: 40px; line-height: 1.08; letter-spacing: -.05em; color: var(--text); }
.update-card form { display: grid; grid-template-columns: 1fr auto; }
.update-card input, dialog input { min-width: 0; padding: 15px; border: 1px solid var(--border); background: var(--bg); color: var(--text); outline: none; }
.update-card input::placeholder { color: var(--dim); }
.update-card button, dialog form button { padding: 14px 18px; border: 1px solid var(--teal); color: var(--bg); background: var(--teal); cursor: pointer; font-size: 11px; font-weight: 800; transition: .2s; }
.update-card button:hover { background: transparent; color: var(--teal); }
.update-card small { grid-column: 1 / -1; padding-top: 10px; font-size: 9px; color: var(--dim); }

footer { color: var(--text); background: #080a10; border-top: 1px solid var(--border); }
.footer-inner { min-height: 160px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 40px; }
.footer-left { display: flex; flex-direction: column; gap: 14px; }
.footer-left p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: var(--dim); font-size: 11px; font-weight: 700; text-decoration: none; transition: color .15s; }
.footer-nav a:hover { color: var(--teal); }
.footer-socials { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.footer-socials > span { color: var(--dim); font-size: 8px; letter-spacing: .13em; }
.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; transition: color .15s; }
.social-links a:hover { color: var(--teal); }
.footer-copy { color: var(--dim) !important; font-size: 8px; }

@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer-socials { align-items: flex-start; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 16px; }
}

dialog { width: min(500px, calc(100% - 30px)); padding: 40px; border: 1px solid var(--border); background: var(--surface); box-shadow: 10px 10px 0 var(--teal); color: var(--text); }
dialog::backdrop { background: rgba(8,10,16,.88); backdrop-filter: blur(5px); }
dialog .close { position: absolute; right: 15px; top: 10px; border: 0; background: transparent; font-size: 28px; cursor: pointer; color: var(--muted); }
dialog > span { color: var(--teal); font-size: 9px; letter-spacing: .14em; }
dialog h2 { margin: 15px 0; font-size: 35px; letter-spacing: -.05em; color: var(--text); }
dialog p { color: var(--muted); font-size: 13px; line-height: 1.6; }
dialog form { display: grid; grid-template-columns: 1fr auto; margin: 25px 0 12px; }
dialog input::placeholder { color: var(--dim); }
dialog > small { color: var(--dim); font-size: 9px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; padding: 13px 18px; color: var(--bg); background: var(--teal); border: 1px solid var(--teal); box-shadow: 4px 4px 0 rgba(95,224,212,.3); transform: translate(-50%, 90px); opacity: 0; transition: .3s; font-size: 11px; font-weight: 700; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { min-height: 620px; }
  .manifesto-inner { grid-template-columns: 1fr; }
  .product, .product-hh, .product-kr { grid-template-columns: 1fr; }
  .void-grid { grid-template-columns: 1fr 1fr; }
  .product-hh .product-image, .product-hh .product-copy { order: initial; }
  .product-image { min-height: 480px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .update-card { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 30px); }
  header { height: 75px; padding: 0 15px; }
  .header-link { font-size: 10px; }
  .hero { min-height: 570px; padding-top: 65px; }
  .hero h1 { font-size: 58px; }
  .signal { display: none; }
  .hero-bottom { align-items: start; flex-direction: column; gap: 35px; }
  .manifesto p { font-size: 27px; }
  .products { padding-block: 85px; }
  .section-head { align-items: start; flex-direction: column; gap: 20px; }
  .section-head h2, .about h2 { font-size: 43px; }
  .product-image { min-height: 330px; }
  .product-copy { padding: 30px 23px; }
  .product-copy h3 { font-size: 52px; }
  .product-button { margin-top: 30px; }
  .update-card { padding: 35px 24px; }
  .update-card h2 { font-size: 31px; }
  .void-grid { grid-template-columns: 1fr; }
  .update-card form, dialog form { grid-template-columns: 1fr; }
  .footer-inner { padding-block: 40px; flex-direction: column; gap: 25px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
