/* ============================================================
   DAWNFALL — Shared Design System
   Palette sourced from Launcher (launcher.css)
   ============================================================ */

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

:root {
  /* Brand gradient */
  --brand-1: #1bbbc9;
  --brand-2: #34d1c8;
  --brand-3: #5fe5c1;
  --brand-4: #90f8b5;
  --brand-gradient: linear-gradient(135deg, var(--brand-2), var(--brand-3), var(--brand-4));

  /* Lotus accent palette */
  --lotus-cyan:    #a7daf8;
  --lotus-violet:  #c9b0e9;
  --lotus-blue:    #8da0e8;
  --lotus-pink:    #f2b9c3;
  --lotus-magenta: #c07ca9;
  --lotus-gold:    #fac37e;

  /* Backgrounds */
  --bg:        #07090f;
  --bg-raised: #0c1018;
  --surface:   rgba(15, 20, 32, 0.88);
  --surface-2: rgba(20, 28, 44, 0.65);
  --panel:     rgba(10, 14, 24, 0.92);

  /* Text */
  --text:       rgba(255, 255, 255, 0.94);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim:   rgba(255, 255, 255, 0.38);

  /* Borders */
  --border:       rgba(255, 255, 255, 0.09);
  --border-soft:  rgba(255, 255, 255, 0.06);
  --border-brand: rgba(52, 209, 200, 0.35);

  /* Status */
  --success: #22c55e;
  --danger:  #ff6a6a;
  --warn:    #fac37e;

  /* Focus ring */
  --focus: rgba(27, 187, 201, 0.28);

  /* Border radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Layout */
  --nav-h: 68px;
}

/* ── Font ──────────────────────────────────────────────── */

@font-face {
  font-family: "Dawnfall";
  src: url("./fonts/Dawnfall.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Base ──────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
  font-family: "Dawnfall", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #060c10;
  background-image:
    /* Dot grid — subtle pixel-grid texture */
    radial-gradient(circle, rgba(52, 209, 200, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain overlay — same technique as the Launcher */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.048;
  background-repeat: repeat;
  background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Custom scrollbar */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.12); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

a { color: var(--brand-2); text-decoration: none; transition: color 120ms; }
a:hover { color: var(--brand-3); }

img { display: block; max-width: 100%; }

/* ── Layout helpers ─────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 96px 28px; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-body {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 140ms, box-shadow 140ms, background 140ms, transform 80ms;
  white-space: nowrap;
  text-decoration: none;
  outline: none;
  line-height: 1;
}

.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--brand-gradient);
  color: rgba(6, 10, 16, 0.95);
  border-color: var(--border-brand);
  box-shadow: 0 4px 20px rgba(52, 209, 200, 0.22), 0 1px 4px rgba(0,0,0,0.5);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 30px rgba(52, 209, 200, 0.35), 0 2px 8px rgba(0,0,0,0.5);
  color: rgba(6, 10, 16, 0.95);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--brand-2);
  border-color: var(--border-brand);
}
.btn-outline:hover {
  background: rgba(52, 209, 200, 0.08);
  color: var(--brand-3);
}

.btn-lg { height: 54px; padding: 0 32px; font-size: 15px; border-radius: var(--r-lg); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 12px; border-radius: var(--r-sm); }

/* ── Badges ──────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-official {
  background: rgba(52, 209, 200, 0.12);
  color: var(--brand-2);
  border: 1px solid rgba(52, 209, 200, 0.22);
}

.badge-partner {
  background: rgba(201, 176, 233, 0.12);
  color: var(--lotus-violet);
  border: 1px solid rgba(201, 176, 233, 0.22);
}

/* ── Alerts ──────────────────────────────────────────────── */

.alert { display: none; }
.alert.show { display: block; }

/* ── Animations ──────────────────────────────────────────── */

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll-triggered animation */
.anim-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}
