/* ============================================
   THEME & TOKENS
   ============================================ */
:root {
  --navy: #0A1F44;
  --cyan: #00D4FF;
  --slate: #1E293B;
  --gold: #FFB800;
  --white: #FFFFFF;
  --dark: #0F172A;
  --charcoal: #111827;
  --offwhite: #F8FAFC;

  --font-display: 'Syne', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'DM Sans', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius: 20px;
  --radius-sm: 12px;
}

html[data-theme="dark"] {
  --bg: #070B1A;
  --bg-elev: #0F172A;
  --bg-card: rgba(30, 41, 59, 0.5);
  --text: #F8FAFC;
  --text-mute: rgba(248, 250, 252, 0.65);
  --text-faint: rgba(248, 250, 252, 0.35);
  --border: rgba(0, 212, 255, 0.12);
  --border-strong: rgba(0, 212, 255, 0.3);
  --grid: rgba(0, 212, 255, 0.05);
  --glow: 0 0 40px rgba(0, 212, 255, 0.35);
}

html[data-theme="light"] {
  --bg: #F8FAFC;
  --bg-elev: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.7);
  --text: #0A1F44;
  --text-mute: rgba(10, 31, 68, 0.7);
  --text-faint: rgba(10, 31, 68, 0.4);
  --border: rgba(10, 31, 68, 0.1);
  --border-strong: rgba(10, 31, 68, 0.25);
  --grid: rgba(10, 31, 68, 0.06);
  --glow: 0 0 40px rgba(0, 150, 200, 0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.6s var(--ease-out), color 0.6s var(--ease-out);
  cursor: none;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  transition: transform 0.1s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--cyan);
  transition: transform 0.25s var(--ease-out), width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-ring.hover {
  width: 70px; height: 70px;
  border-color: var(--gold);
  background: rgba(255, 184, 0, 0.08);
}
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   SECTIONS - Shared
   ============================================ */
.section {
  padding: 140px 48px;
  position: relative;
}
.section-inner { max-width: 1400px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 900px;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cyan);
}

.section-lead {
  font-size: 18px;
  color: var(--text-mute);
  max-width: 620px;
  margin-bottom: 80px;
}

@media (max-width: 968px) {
  .section { padding: 100px 24px; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="right"] { transform: translateX(-30px); }
[data-reveal="right"].revealed { transform: translateX(0); }

/* scroll indicator */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  z-index: 101;
  transition: width 0.1s linear;
}

/* Selection */
::selection { background: var(--cyan); color: var(--navy); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* Shared button utility */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s var(--ease-out);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }
