@font-face { font-family: "Audiowide"; src: url("assets/Audiowide-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/SpaceGrotesk.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #100f18;
  --window: #171923;
  --field: #0d1117;
  --line: rgba(148, 166, 190, 0.12);
  --line-strong: rgba(148, 166, 190, 0.22);
  --border: rgba(148, 166, 190, 0.3);
  --text: #f2f5f9;
  --body: #e2e7ed;
  --muted: #9aa7b8;
  --faint: #778394;
  --mint: #a789ff;
  --mint-soft: #cdbfff;
  --silver: #d6dbe1;
  --silver-bright: #f5f7f9;
  --gold: #e5c66f;
  --coral: #ff7964;
  --ink: #0c1117;
  --dot: #4c5563;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--body);
  background: var(--bg);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/chemical-wash.png") center / 100% 100% no-repeat;
  opacity: 0.09;
  filter: saturate(1.35) contrast(1.06);
  mix-blend-mode: screen;
}
a { color: inherit; }
button, input { font: inherit; letter-spacing: 0; }
img { display: block; max-width: 100%; }

.ambient-embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.site-header, main, footer { position: relative; z-index: 1; }
.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;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--mint);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 22px clamp(20px, 4vw, 46px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--body);
  font-family: "Audiowide", sans-serif;
  font-size: 15px;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
.seat-flag { color: var(--mint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.seat-flag strong { font-weight: 600; }

.hero {
  width: min(760px, calc(100% - 32px));
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  padding: 7vh 0 12vh;
}
.app-window {
  width: min(600px, 100%);
  margin: 0 auto;
  padding: 1px;
  background: rgba(148, 166, 190, 0.38);
  border-radius: 15px;
  clip-path: polygon(0 0, calc(100% - 29px) 0, 100% 29px, 100% 100%, 0 100%);
  filter: drop-shadow(0 30px 62px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 24px rgba(167, 137, 255, 0.12));
}
.app-window-inner {
  position: relative;
  overflow: hidden;
  background-color: #191d25;
  background-image:
    linear-gradient(rgba(148, 166, 190, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 166, 190, 0.075) 1px, transparent 1px);
  background-size: 58px 58px;
  border-radius: 14px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 18px;
  background: rgba(16, 18, 24, 0.46);
  border-bottom: 1px solid rgba(148, 166, 190, 0.14);
}
.window-bar span { width: 10px; height: 10px; background: #657080; border-radius: 50%; }
.window-bar b { margin-left: 9px; color: #9aa7b8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 500; }
.window-content { padding: clamp(32px, 6vw, 48px) clamp(25px, 7vw, 54px) clamp(32px, 6vw, 44px); }
.window-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.apple-mark { color: #ffffff; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1; text-shadow: 0 1px 4px rgba(76, 50, 145, 0.9); }
h1 {
  margin: 20px 0 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.02;
}
.window-content h1 { color: #f2f5f9; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.16); }
.hero-lead { max-width: 31ch; margin: 22px 0 0; color: #aab5c4; font-size: 17px; }
.ink-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 51px;
  padding: 0 22px;
  color: var(--mint);
  background: rgba(214, 219, 225, 0.035);
  border: 1px solid var(--mint);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  animation: ink-text 1.05s ease 0.48s forwards;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.ink-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  width: 122%;
  background-color: var(--silver);
  background-image: url("assets/chemical-wash.png");
  background-position: center 36%;
  background-size: cover;
  transform: translateX(-105%) skewX(-9deg);
  transform-origin: left;
  animation: ink-fill 1.05s cubic-bezier(0.72, 0, 0.2, 1) 0.48s forwards;
}
.ink-button::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -45%;
  bottom: -45%;
  left: -12%;
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 7px 0 18px rgba(255, 255, 255, 0.32);
  opacity: 0;
  transform: rotate(18deg) translateX(0);
  animation: metal-glint 620ms ease 1.62s forwards;
}
.ink-button span { position: relative; z-index: 2; }
.ink-button:hover::before { filter: brightness(1.04) saturate(1.08); }
.ink-button:hover:not(:disabled) { transform: translateY(-2px) scale(1.012); box-shadow: 0 10px 24px rgba(167, 137, 255, 0.2); }
.ink-button:active:not(:disabled) { transform: translateY(0) scale(1); }
.ink-button:disabled { cursor: not-allowed; opacity: 0.55; }
.hero-access-button { display: block; width: min(340px, 100%); margin: 31px auto 0; }
.access-form input[type="email"] {
  width: 100%;
  min-width: 0;
  height: 51px;
  padding: 0 15px;
  color: var(--body);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
}
.access-form input[type="email"]::placeholder { color: var(--faint); }
.access-form input[type="email"]:focus { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.access-form button {
  width: min(280px, 100%);
  margin: 0 auto;
  min-height: 51px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--mint);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}
.access-form button:hover { background: var(--mint-soft); border-color: var(--mint-soft); }
.access-form button:disabled, .access-form input:disabled { cursor: not-allowed; opacity: 0.55; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { min-height: 19px; margin: 11px 0 0; color: var(--mint-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-align: center; }
.tier-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(600px, 100%);
  margin: 66px auto 0;
  padding: 0;
  list-style: none;
}
.tier-track::before { content: ""; position: absolute; top: 8px; right: 16.66%; left: 16.66%; height: 1px; background: #48515f; }
.tier-track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; color: #747e8d; text-align: center; }
.tier-dot { width: 17px; height: 17px; margin-bottom: 18px; background: #4c5563; border: 5px solid var(--bg); border-radius: 50%; box-shadow: 0 0 0 2px #3d4654; }
.tier-track strong { font-family: "Audiowide", sans-serif; font-size: 23px; font-weight: 400; }
.tier-track small { margin-top: 8px; font-size: 12px; text-transform: uppercase; }
.tier-track .is-current { color: var(--body); }
.tier-track .is-current .tier-dot { background: var(--mint); box-shadow: 0 0 0 2px #38414d, 0 0 17px rgba(167, 137, 255, 0.76); }

.demo {
  padding: 128px 24px 142px;
  text-align: center;
  background: rgba(12, 11, 19, 0.82);
  border-top: 1px solid var(--line);
}
.section-kicker { margin: 0 0 14px; color: var(--mint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 600; text-transform: uppercase; }
h2 { margin: 0 0 42px; color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: 44px; line-height: 1.1; }
.video-frame {
  width: min(900px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: #0a0d12;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}
.video-bar { position: relative; display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; background: #141922; border-bottom: 1px solid var(--line); }
.video-bar span { width: 8px; height: 8px; background: #4c5563; border-radius: 50%; }
.video-bar b { position: absolute; left: 50%; color: #6f7987; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 500; transform: translateX(-50%); }
.video-stage { display: grid; place-items: center; align-content: center; aspect-ratio: 16 / 9; min-height: 230px; color: #707b8a; }
.video-stage img { width: 72px; height: 72px; object-fit: contain; opacity: 0.22; }
.video-stage p { margin: 14px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-transform: uppercase; }
.alpha-access { width: min(600px, 100%); margin: 32px auto 0; }
.alpha-access-trigger {
  width: min(300px, 100%);
  min-height: 51px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--silver) url("assets/chemical-wash.png") center 36% / cover no-repeat;
  border: 1px solid var(--mint);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.alpha-access-trigger:hover { filter: brightness(1.04) saturate(1.08); }
.alpha-access-trigger:hover:not(:disabled) { transform: translateY(-2px) scale(1.012); box-shadow: 0 10px 24px rgba(167, 137, 255, 0.2); }
.alpha-access-trigger:active:not(:disabled) { transform: translateY(0) scale(1); }
.alpha-access-trigger:disabled { cursor: not-allowed; opacity: 0.55; }
.access-form { display: grid; grid-template-columns: 1fr; gap: 11px; width: min(420px, 100%); margin: 0 auto; }
.access-form.is-visible { animation: access-reveal 360ms ease both; }
[hidden] { display: none !important; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 22px clamp(20px, 4vw, 46px);
  color: #7f8997;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
footer p { margin: 0; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--mint); }
.legal { width: min(720px, calc(100% - 40px)); min-height: calc(100svh - 86px); margin: 0 auto; padding: 120px 0 90px; }
.legal h1 { font-size: 48px; }
.legal p { color: #c3c9d1; font-size: 18px; }
.legal a { color: var(--mint); }
.legal-date { margin-top: 42px; color: #858e9b !important; font-size: 13px !important; }
.brand:focus-visible, .ink-button:focus-visible, .alpha-access-trigger:focus-visible, .access-form button:focus-visible, footer a:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

@keyframes ink-fill {
  to { transform: translateX(-8%) skewX(-9deg); }
}
@keyframes ink-text {
  to { color: var(--ink); }
}
@keyframes metal-glint {
  0% { opacity: 0; transform: rotate(18deg) translateX(0); }
  16% { opacity: 1; }
  82% { opacity: 0.82; }
  100% { opacity: 0; transform: rotate(18deg) translateX(560px); }
}
@keyframes access-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .site-header { min-height: 72px; padding: 18px 20px; }
  .brand img { width: 31px; height: 31px; }
  .seat-flag { font-size: 9px; }
  .hero { min-height: calc(100svh - 72px); padding-top: 5vh; }
  .window-content { padding-inline: 25px; }
  h1 { font-size: 48px; }
  .hero-lead { font-size: 16px; }
  .demo { padding: 96px 16px 110px; }
  h2 { margin-bottom: 30px; font-size: 34px; }
  .video-stage { min-height: 190px; }
  .tier-track { margin-top: 52px; }
  .tier-track strong { font-size: 18px; }
  .tier-track small { font-size: 9px; }
  footer { flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
}

@media (max-width: 390px) {
  h1 { font-size: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient-embers { display: none; }
  .ink-button { color: var(--ink); background: var(--silver) url("assets/chemical-wash.png") center 36% / cover no-repeat; animation: none; }
  .ink-button::before { display: none; }
  .ink-button::after { display: none; }
  .access-form.is-visible { animation: none; }
}
