/* XR Forge Replay landing page. Dark-first, Forge Orange accent, no
   third-party requests: fonts are self-hosted alongside this file. */

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/ibm-plex-sans-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/ibm-plex-sans-600.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}

:root {
  --bg: #141210;
  --surface: #1c1917;
  --surface-2: #0f0d0c;
  --border: #2e2926;
  --text: #e8e3de;
  --muted: #a8a09a;
  --accent: #f47b20;
  --accent-light: #f68a3a;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 68rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

section { max-width: var(--measure); margin: 0 auto; padding: 5rem 1.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Navigation */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--measure); margin: 0 auto; padding: 1rem 1.5rem;
}
.nav__brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1.1rem; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em;
}
.nav__brand:hover { color: var(--text); }
.nav__brand img { display: block; height: 28px; width: auto; }
.nav__link { color: var(--muted); text-decoration: none; font-size: .9rem; }
.nav__link:hover { color: var(--text); }

/* Hero */
.hero { padding-top: 4rem; padding-bottom: 3rem; text-align: center; }
.eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1.5rem;
}
.hero__title {
  font-size: clamp(2.25rem, 6vw, 4rem); margin: 0 0 1.25rem;
  max-width: 20ch; margin-inline: auto;
}
.hero__lede {
  color: var(--muted); font-size: 1.125rem;
  max-width: 48ch; margin: 0 auto 2.5rem;
}

/* Signup */
.signup {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; max-width: 32rem; margin-inline: auto;
}
.signup input[type="email"] {
  flex: 1 1 16rem; min-width: 0;
  padding: .8rem 1rem; font-size: 1rem; font-family: inherit;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
}
.signup input[type="email"]:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.signup button {
  padding: .8rem 1.5rem; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--bg);
  font-family: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.signup button:hover { background: var(--accent-light); }
.signup button[disabled] { opacity: .6; cursor: default; }
.signup__status {
  flex-basis: 100%; margin: .25rem 0 0;
  font-size: .875rem; min-height: 1.25rem; color: var(--muted);
}
.signup__status[data-state="error"] { color: #ff8f6b; }
.signup__status[data-state="ok"] { color: var(--accent); }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* Badges */
.badge {
  display: inline-block; font-size: .65rem; font-weight: 600;
  padding: .15rem .5rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em;
  vertical-align: middle; margin-left: .4rem;
  line-height: 1.4;
}
.badge--done {
  background: rgba(74, 222, 128, .12); color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .2);
}
.badge--planned {
  background: rgba(168, 160, 154, .1); color: var(--muted);
  border: 1px solid rgba(168, 160, 154, .15);
}

/* Demo */
.demo { padding-top: 1rem; }
.demo__frame {
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
}
.demo__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo__caption {
  text-align: center; color: var(--muted);
  font-size: .875rem; margin: 1rem 0 0;
}

/* Problem */
.problem { max-width: 46rem; }
.problem h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin: 0 0 1.25rem; }
.problem p { color: var(--muted); font-size: 1.0625rem; margin: 0; }

/* Steps */
.steps h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin: 0 0 3rem; text-align: center; }
.steps__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.steps__num {
  font-family: var(--mono); font-size: .8rem;
  color: var(--accent); display: block; margin-bottom: .75rem;
}
.steps__list h3 { font-size: 1.125rem; margin: 0 0 .5rem; }
.steps__list p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Use cases */
.uses h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin: 0 0 3rem; text-align: center; }
.uses__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.uses__grid article {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
}
.uses__grid h3 { font-size: 1rem; margin: 0 0 .5rem; }
.uses__grid p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Early access */
.access { text-align: center; }
.access h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin: 0 0 1rem; }
.access p { color: var(--muted); max-width: 42ch; margin: 0 auto 2rem; }
.button {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 8px;
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); text-decoration: none;
  font-size: .95rem; font-weight: 600;
}
.button:hover { background: var(--accent); color: var(--bg); }

/* Footer */
.foot {
  border-top: 1px solid var(--border); background: var(--surface-2);
  margin-top: 3rem; padding: 2rem 1.5rem; text-align: center;
}
.foot p { margin: 0; color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  .demo__video { display: none; }
}
