@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,900&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

@font-face {
  font-family: 'Mirage';
  src: url('fonts/mirage-text-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mirage';
  src: url('fonts/mirage-text-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Mirage Display';
  src: url('fonts/mirage-display-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mirage Display';
  src: url('fonts/mirage-display-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --neo-neon: #c9ff06;
  --trust-green: #20300e;
  --bg: #20300e;
  --bg-deep: #16240a;
  --fg: #f7f7f7;
  --fg-soft: #c9d4b8;
  --fg-quiet: #7a8a66;
  --line: rgba(247, 247, 247, 0.12);
  --line-soft: rgba(247, 247, 247, 0.06);
  --accent: #c9ff06;
  --accent-fg: #20300e;
}

[data-theme="black"] {
  --bg: #000000;
  --bg-deep: #000000;
  --fg: #f7f7f7;
  --fg-soft: #b8b8b8;
  --fg-quiet: #5b5b5b;
  --line: rgba(247, 247, 247, 0.10);
  --line-soft: rgba(247, 247, 247, 0.05);
}

[data-theme="light"] {
  --bg: #f3f4ee;
  --bg-deep: #e9ebe2;
  --fg: #20300e;
  --fg-soft: #5b5b5b;
  --fg-quiet: #a0a2ae;
  --line: rgba(32, 48, 14, 0.14);
  --line-soft: rgba(32, 48, 14, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: 'Mirage', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.display {
  font-family: 'Mirage Display', 'Mirage', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

/* === Hero — single viewport, no scroll === */
.hero {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: blur(0.4px);
}
[data-canvas="off"] .ambient-canvas { display: none; }

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 90%);
  opacity: 0.7;
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift {
  from { background-position: -1px -1px; }
  to   { background-position: 79px 79px; }
}
[data-grid="off"] .grid-bg { display: none; }

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, transparent 40%, color-mix(in oklab, var(--bg-deep) 50%, transparent) 100%);
}

/* === Top bar === */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 22px;
  color: var(--fg);
}
.brand-mark {
  height: 22px;
  width: auto;
  display: block;
}
.brand-suffix {
  display: none;
}
.brand-sep {
  display: none;
}

.topbar-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-quiet);
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .topbar { padding: 20px 24px; }
  .brand-mark { height: 18px; }
  .brand-suffix { font-size: 16px; }
}

/* === Center stage === */
.center {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 40px;
  min-height: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.headline {
  font-size: clamp(32px, 5.2vw, 78px);
  max-width: 1280px;
  line-height: 1.04;
}
.headline .accent-on {
  color: var(--accent);
  font-style: italic;
  font-family: 'Mirage Display', serif;
}

.aw {
  display: inline-block;
  white-space: nowrap;
}
.aw-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(8px);
  animation: chRise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes chRise {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.tagline {
  margin-top: 36px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 560px;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: fadeUp 1s ease 1.6s forwards;
}

.tagline-sub {
  display: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .center { padding: 24px 20px; }
  .eyebrow { font-size: 10px; padding: 6px 12px; margin-bottom: 28px; }
  .tagline { margin-top: 24px; }
}

/* === Bottom bar === */
.bottombar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  border-top: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  opacity: 0;
  animation: fadeUp 0.8s ease 2.0s forwards;
}
.bb-cell { display: inline-flex; align-items: center; gap: 10px; }
.bb-mid { justify-self: center; color: var(--fg-soft); }
.bb-right {
  justify-self: end;
  color: var(--fg);
  transition: color 0.2s;
}
.bb-right:hover { color: var(--accent); }
.bb-arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.bb-right:hover .bb-arrow { transform: translate(2px, -2px); }

@media (max-width: 720px) {
  .bottombar {
    grid-template-columns: 1fr 1fr;
    padding: 16px 20px;
    gap: 8px;
  }
  .bb-mid { display: none; }
}
