:root {
  --bg: #080b0d;
  --surface: #0d1113;
  --surface-2: #121719;
  --ink: #f2f0e8;
  --muted: #9ca39e;
  --line: rgba(242, 240, 232, .15);
  --acid: #c9ff4a;
  --orange: #ff6846;
  --blue: #79d9ff;
  --header: rgba(8, 11, 13, .8);
  --display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --body: "Noto Sans SC", sans-serif;
}

body.light {
  --bg: #edeee7;
  --surface: #e4e6de;
  --surface-2: #d9ddd4;
  --ink: #111512;
  --muted: #5d655f;
  --line: rgba(17, 21, 18, .17);
  --header: rgba(237, 238, 231, .82);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  transition: background .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { background: var(--acid); color: #10140d; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: 78px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(15px);
}
.brand { display: flex; align-items: center; gap: 12px; font: 600 15px/1 var(--display); letter-spacing: .08em; }
.brand-mark { color: var(--acid); padding: 0 4px; }
.brand-orbit { width: 25px; height: 25px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.brand-orbit i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
nav { display: flex; gap: clamp(20px, 4vw, 52px); }
nav a { color: var(--muted); font-size: 13px; letter-spacing: .1em; transition: color .2s; }
nav a:hover { color: var(--ink); }
.theme-toggle { justify-self: end; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; transition: transform .3s, background .3s; }
.theme-toggle:hover { transform: rotate(35deg); background: var(--surface-2); }

.hero {
  position: relative;
  min-height: 850px;
  padding: 160px clamp(22px, 7vw, 110px) 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  align-items: center;
  gap: 60px;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; top: 5%; left: 38%; background: var(--acid); opacity: .05; filter: blur(120px); border-radius: 50%; }
.eyebrow, .kicker { font: 500 11px/1.4 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(201,255,74,.1); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(201,255,74,0); } }
h1 { margin: 28px 0 30px; max-width: 850px; font: 600 clamp(58px, 7.2vw, 112px)/.93 var(--display); letter-spacing: -.065em; }
h1 em { color: var(--acid); font-style: normal; }
.hero-lede { max-width: 610px; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 46px; }
.button { display: inline-flex; gap: 28px; justify-content: space-between; align-items: center; padding: 15px 19px; border: 1px solid var(--line); font-size: 14px; }
.button-primary { background: var(--acid); color: #11150d; border-color: var(--acid); font-weight: 700; }
.button-primary:hover span { transform: translate(3px, 3px); }
.button span, .text-link span { display: inline-block; transition: transform .2s; }
.text-link { font-size: 14px; border-bottom: 1px solid var(--line); padding: 10px 2px; }
.text-link:hover span { transform: translateX(4px); }

.hero-visual { display: grid; place-items: center; }
.portrait-wrap { position: relative; width: min(36vw, 510px); aspect-ratio: 1; }
.portrait-frame { position: absolute; inset: 14%; overflow: hidden; border-radius: 48% 48% 9% 9%; filter: saturate(0); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8,11,13,.42)); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.orbit { position: absolute; inset: 3%; border: 1px solid var(--line); border-radius: 50%; animation: spin 22s linear infinite; }
.orbit span { position: absolute; top: -12px; left: 50%; padding: 3px 9px; color: #11150d; background: var(--acid); font: 600 10px/1.4 var(--display); }
.orbit-two { inset: 0 20%; transform: rotate(62deg); animation-duration: 17s; animation-direction: reverse; }
.orbit-two span { background: var(--orange); }
@keyframes spin { to { transform: rotate(360deg); } }
.coordinate { position: absolute; right: -5%; bottom: 4%; color: var(--muted); font: 500 10px/1.65 var(--display); letter-spacing: .12em; }
.hero-index { position: absolute; right: clamp(22px, 5vw, 76px); bottom: 22px; color: var(--line); font: 600 58px/1 var(--display); }

.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; background: var(--acid); color: #10140d; transform: rotate(-1.2deg) scale(1.02); }
.ticker-track { display: flex; width: max-content; gap: 30px; align-items: center; font: 600 12px/1 var(--display); letter-spacing: .1em; animation: marquee 24s linear infinite; }
.ticker-track i { font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 130px clamp(22px, 7vw, 110px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 62px; }
.section-head h2, .about h2 { margin: 10px 0 0; font: 600 clamp(42px, 5vw, 72px)/1 var(--display); letter-spacing: -.05em; }
.section-head > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; }

.signal-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.signal-card { min-height: 320px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); transition: transform .3s, background .3s; }
.signal-card:hover { transform: translateY(-5px); background: var(--surface-2); }
.signal-featured { grid-row: span 2; min-height: 660px; background: var(--acid); color: #11150d; }
.signal-featured:hover { background: #d3ff6c; }
.card-meta { display: flex; justify-content: space-between; font: 500 10px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.card-symbol { align-self: center; font: 400 clamp(120px, 18vw, 250px)/1 var(--display); }
.card-no { font: 500 10px/1 var(--display); letter-spacing: .16em; opacity: .7; }
.card-copy h3 { margin: 10px 0 16px; font: 600 clamp(28px, 3vw, 48px)/1 var(--display); letter-spacing: -.04em; }
.card-copy > p:not(.card-no) { max-width: 470px; color: var(--muted); }
.signal-featured .card-copy > p { color: rgba(17,21,13,.68); }
.card-link { display: block; margin-top: 25px; font-size: 13px; font-weight: 600; }
.demo-note { color: var(--muted); font-size: 11px; margin-top: 15px; }

.places { background: var(--surface); }
.place { display: grid; grid-template-columns: 70px 1fr 1fr 50px; align-items: center; gap: 25px; min-height: 120px; border-top: 1px solid var(--line); transition: color .25s, padding .25s; }
.place:last-child { border-bottom: 1px solid var(--line); }
.place:hover { color: var(--acid); padding-inline: 12px; }
.place-index { color: var(--muted); font: 500 11px/1 var(--display); }
.place-name { font: 600 clamp(25px, 3vw, 42px)/1 var(--display); letter-spacing: -.04em; }
.place-desc { color: var(--muted); font-size: 13px; }
.place-arrow { justify-self: end; font-size: 24px; }

.downloads { background: var(--bg); }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.download-card { min-height: 420px; padding: clamp(24px, 4vw, 46px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.platform-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.platform-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 500 20px/1 var(--display); }
.platform-no, .platform-label { color: var(--muted); font: 500 10px/1.4 var(--display); letter-spacing: .15em; }
.download-card h3 { margin: 9px 0 15px; font: 600 clamp(30px, 3.5vw, 52px)/1 var(--display); letter-spacing: -.045em; }
.download-card > p:not(.platform-label) { max-width: 520px; color: var(--muted); font-size: 14px; }
.platform-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: auto; padding: 24px 0 14px; color: var(--muted); font: 500 10px/1 var(--display); letter-spacing: .1em; }
.download-button { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; background: var(--acid); color: #11150d; font-size: 13px; font-weight: 700; transition: filter .2s, transform .2s; }
.download-button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.download-button.secondary { margin-top: 8px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.mac-actions { margin-top: auto; padding-top: 24px; }
.download-footnote { margin-top: 24px; padding: 22px 24px; display: grid; grid-template-columns: 160px 1fr; gap: 30px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.download-footnote strong { color: var(--ink); }
.download-footnote p { margin: 0; }

.about { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 10vw, 170px); }
.status-card { margin-top: 45px; padding: 20px; border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; max-width: 260px; color: var(--muted); font-size: 11px; }
.status-light { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.status-card strong { grid-column: 2; color: var(--ink); font-size: 14px; }
.about-copy > p { max-width: 760px; font-size: clamp(18px, 2vw, 26px); line-height: 1.65; color: var(--muted); }
.about-footer { display: flex; gap: 32px; margin-top: 50px; font: 500 10px/1 var(--display); letter-spacing: .13em; }

footer { padding: 70px clamp(22px, 7vw, 110px) 30px; border-top: 1px solid var(--line); background: #050708; color: #f2f0e8; }
.footer-brand { font: 600 clamp(42px, 8vw, 110px)/1 var(--display); letter-spacing: -.06em; }
footer > p { color: #89918b; }
.footer-links { display: flex; gap: 28px; margin: 45px 0 80px; font-size: 13px; }
.footer-links a:hover { color: var(--acid); }
.footer-bottom { display: flex; justify-content: space-between; color: #606761; font: 500 9px/1 var(--display); letter-spacing: .15em; }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 25px; transform: translate(-50%, 120px); padding: 12px 18px; color: #10140d; background: var(--acid); font-size: 12px; font-weight: 600; transition: transform .35s; box-shadow: 0 15px 45px rgba(0,0,0,.25); }
.toast.show { transform: translate(-50%, 0); }
.room-main { padding-top: 78px; }
.room-hero { padding: 120px clamp(22px, 7vw, 110px) 70px; border-bottom: 1px solid var(--line); }
.room-hero h1 { margin: 24px 0; font-size: clamp(64px, 10vw, 150px); }
.room-hero h1 span { color: var(--acid); }
.room-hero > p:last-child { max-width: 650px; color: var(--muted); font-size: 18px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 145px; }
  .hero-copy { z-index: 1; }
  .portrait-wrap { width: min(88vw, 500px); }
  .hero-visual { margin-top: -10px; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-featured { grid-row: auto; min-height: 540px; }
  .about { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { height: 66px; padding-inline: 18px; }
  .hero { padding: 118px 20px 72px; gap: 25px; }
  h1 { font-size: clamp(50px, 16vw, 75px); }
  .hero-lede { font-size: 15px; }
  .hero-actions { gap: 22px; flex-wrap: wrap; }
  .section { padding: 90px 20px; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 42px; }
  .section-head h2, .about h2 { font-size: 46px; }
  .signal-card { min-height: 290px; padding: 22px; }
  .signal-featured { min-height: 480px; }
  .place { grid-template-columns: 38px 1fr 28px; min-height: 100px; }
  .place-desc { display: none; }
  .about-footer, .footer-links { flex-wrap: wrap; }
  .download-card { min-height: 390px; }
  .download-footnote { grid-template-columns: 1fr; gap: 5px; }
  .footer-bottom { gap: 20px; flex-direction: column; }
  .coordinate { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
