/* === TrueDawn Base — Roar-inspired dark monolith with gold accents === */

:root {
  /* Pure-black palette (deeper than before, matches roar's #000/#050505/#0a0a0a) */
  --bg-0:           #000;
  --bg-1:           #050505;
  --bg-2:           #0a0a0a;
  --bg-card:        #080808;

  /* Foreground — white primary, gold replaces roar's neutral accent */
  --fg-0:           #fff;
  --fg-1:           rgba(255,255,255,0.78);
  --fg-2:           rgba(255,255,255,0.50);
  --fg-3:           rgba(255,255,255,0.32);
  --fg-4:           rgba(255,255,255,0.18);

  /* Hairlines */
  --line-subtle:    rgba(255,255,255,0.06);
  --line-medium:    rgba(255,255,255,0.10);
  --line-strong:    rgba(255,255,255,0.18);

  /* Gold accent — kept from TrueDawn brand, replaces roar's #fff highlight */
  --gold:           oklch(78% 0.14 85);
  --gold-light:     oklch(86% 0.12 84);
  --gold-dim:       oklch(62% 0.10 85);
  --gold-glow:      oklch(78% 0.14 85 / 0.55);

  /* Status colors (used sparingly, mono not chroma) */
  --status-live:    var(--gold);

  /* Motion */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:       0.2s;
  --dur:            0.5s;
  --dur-slow:       0.9s;

  /* Type stacks — system-only, no CDN */
  --font-sans:      system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-cn:        "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --font-serif-cn:  "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-display:   "Helvetica Neue", "Inter", "Arial Narrow", system-ui, sans-serif;
  --font-mono:      ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--bg-0);
  color-scheme: dark;
}

body {
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-1);
  background: transparent;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

::selection { background: rgba(255,255,255,0.16); color: #fff; }

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
img,svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
ul { list-style: none; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* === Container === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* === Typography utilities === */
.display {
  font-family: var(--font-display);
  font-weight: 200;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--fg-0);
  text-transform: uppercase;
}
.display-cn {
  font-family: var(--font-serif-cn);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--fg-0);
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 400;
}
.mono-label--lg { font-size: 11px; letter-spacing: 0.22em; }
.mono { font-family: var(--font-mono); }
.gold { color: var(--gold); }
.fg-0 { color: var(--fg-0); }
.fg-2 { color: var(--fg-2); }
.fg-3 { color: var(--fg-3); }

/* === Sunrise fixed background (locked, scrolls with body but stays positioned) === */
.sunrise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-0);
}
.sunrise-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(212,164,80,0.16) 0%, rgba(212,164,80,0.05) 30%, transparent 60%),
    linear-gradient(180deg, #000 0%, #030303 50%, #060503 100%);
}

/* Iridescent corona — rainbow halo behind the ring */
.sunrise-corona {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(105vh, 105vw);
  height: min(105vh, 105vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      transparent 38%,
      rgba(255,120,80,0.30) 40%,    /* warm red */
      rgba(255,180,80,0.28) 43%,    /* amber */
      rgba(240,230,110,0.26) 46%,   /* yellow */
      rgba(110,230,160,0.24) 49%,   /* green */
      rgba(100,180,250,0.24) 52%,   /* blue */
      rgba(170,120,240,0.22) 55%,   /* violet */
      rgba(240,120,200,0.18) 58%,   /* magenta */
      transparent 64%);
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: corona-breathe 7s ease-in-out infinite;
}

/* Secondary outer rainbow ring — boosts iridescence */
.sunrise-corona::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255,120,80,0.18),
    rgba(255,180,80,0.18),
    rgba(240,230,110,0.18),
    rgba(110,230,160,0.18),
    rgba(100,180,250,0.18),
    rgba(170,120,240,0.18),
    rgba(240,120,200,0.18),
    rgba(255,120,80,0.18));
  mask: radial-gradient(circle at 50% 50%, transparent 62%, #000 66%, #000 72%, transparent 76%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 62%, #000 66%, #000 72%, transparent 76%);
  filter: blur(10px);
  opacity: 0.75;
  animation: corona-spin 30s linear infinite;
}

/* The light ring — focal element */
.sunrise-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(60vh, 60vw);
  height: min(60vh, 60vw);
  border-radius: 50%;
  border: 2.5px solid rgba(255,240,210,0.95);
  box-shadow:
    inset 0 0 36px rgba(255,235,190,0.35),
    inset 0 0 90px rgba(255,200,140,0.18),
    0 0 16px 1px rgba(255,245,220,0.7),
    0 0 50px 6px rgba(255,225,170,0.55),
    0 0 100px 18px rgba(255,180,120,0.32),
    0 0 180px 40px rgba(212,164,80,0.22);
  animation: ring-breathe 6s ease-in-out infinite;
}

.sunrise-halo {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(75vh, 75vw);
  height: min(75vh, 75vw);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,225,170,0.06) 35%, transparent 70%);
  filter: blur(6px);
  mix-blend-mode: screen;
  animation: halo-breathe 6s ease-in-out infinite;
}

.sunrise-horizon {
  display: none;
}

.sunrise-rays {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  width: 130vw;
  height: 130vh;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255,225,170,0.025) 8deg, transparent 16deg,
    transparent 70deg,
    rgba(255,225,170,0.02) 78deg, transparent 86deg,
    transparent 160deg,
    rgba(255,225,170,0.025) 168deg, transparent 176deg,
    transparent 250deg,
    rgba(255,225,170,0.02) 258deg, transparent 266deg,
    transparent 360deg
  );
  opacity: 0.4;
  mix-blend-mode: screen;
  animation: rays-rotate 60s linear infinite;
}

@keyframes ring-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.92; }
  50%      { transform: translate(-50%, -50%) scale(1.035); opacity: 1; }
}
@keyframes corona-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.85; }
  50%      { transform: translate(-50%, -50%) scale(1.04) rotate(8deg); opacity: 1; }
}
@keyframes halo-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50%      { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}
@keyframes rays-rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes corona-spin {
  to { transform: rotate(360deg); }
}
.sunrise-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* === Vertical grid overlay (roar signature) === */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.grid-overlay .grid-inner {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
}
.grid-overlay .grid-line-v {
  width: 1px;
  height: 100%;
  background: var(--line-subtle);
}
@media (min-width: 768px) { .grid-overlay .grid-inner { padding: 0 40px; } }
@media (max-width: 767px) {
  .grid-overlay .grid-line-v:nth-child(2),
  .grid-overlay .grid-line-v:nth-child(3) { display: none; }
}

/* === Sharp corner reset (roar uses near-zero corners) === */
.btn, .pill, .card, .badge { border-radius: 0; }

/* === Primary CTA — white pill === */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--fg-0);
  color: var(--bg-0);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn-cta::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
  z-index: 0;
}
.btn-cta > * { position: relative; z-index: 1; }
.btn-cta:hover::after { transform: scaleX(1); }
.btn-cta:hover { color: var(--bg-0); }

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line-medium);
  color: var(--fg-1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* === Reveal — fade + lift === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible,
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* Word reveal (scroll sentence section) */
.reveal-word {
  display: inline-block;
  opacity: 0.18;
  transition: opacity 0.5s var(--ease-out);
}
.reveal-word.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-word { opacity: 1; transform: none; }
}

/* Section base */
section { position: relative; z-index: 2; }
.section-divider-top { border-top: 1px solid var(--line-subtle); }
.section-divider-bottom { border-bottom: 1px solid var(--line-subtle); }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* Page-level padding helper for non-index pages */
.page-main { padding-top: 140px; padding-bottom: 120px; }
