/* ========== TOKENS ========== */
:root {
  /* Dark theme (default) */
  --bg: #0a0707;
  --bg-2: #100b09;
  --surface: #15100d;
  --surface-2: #1c1612;
  --surface-3: #221a15;
  --border: rgba(255, 106, 31, 0.10);
  --border-strong: rgba(255, 106, 31, 0.22);
  --text: #f6efe9;
  --text-2: #c9bdb3;
  --text-3: #8a7d72;
  --text-4: #5b504a;

  /* Brand — matches app accent #FF6A1F */
  --orange-50:  #fff4ea;
  --orange-100: #ffe1c5;
  --orange-200: #ffbf80;
  --orange-300: #FF8B47;
  --orange-400: #FF6A1F;
  --orange-500: #E15405;
  --orange-600: #c04000;

  --grad-fire: linear-gradient(135deg, #FF8B47 0%, #FF6A1F 50%, #E15405 100%);
  --grad-ember: linear-gradient(180deg, #FF8B47 0%, #E15405 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,106,31,.18) 0%, rgba(225,84,5,.06) 100%);
  --grad-text: #FF6A1F;

  --glow-orange: 0 0 0 1px rgba(255,106,31,.18), 0 20px 60px -20px rgba(225,84,5,.55), 0 0 80px -20px rgba(255,106,31,.4);
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.6);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: "Space Grotesk", "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.32, 1.4, .54, 1);
}

[data-theme="light"] {
  --bg: #faf6f1;
  --bg-2: #f4ece2;
  --surface: #ffffff;
  --surface-2: #fbf6ef;
  --surface-3: #f4ede2;
  --border: rgba(20, 12, 8, 0.08);
  --border-strong: rgba(255, 90, 0, 0.20);
  --text: #1a120c;
  --text-2: #4a3d33;
  --text-3: #7a6d62;
  --text-4: #aaa093;
  --grad-text: linear-gradient(180deg, #ff8c3a 0%, #ff4500 100%);
  --shadow-card: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 50px -25px rgba(70,30,0,.15);
  --glow-orange: 0 0 0 1px rgba(255,90,0,.22), 0 20px 50px -15px rgba(255,90,0,.30);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(255,90,0,.35); color: #fff; }

/* ========== AMBIENT BG ========== */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255,106,31,.28), transparent 60%),
    radial-gradient(700px 480px at 96% 4%, rgba(225,84,5,.16), transparent 60%),
    radial-gradient(1200px 600px at 50% 100%, rgba(255,106,31,.06), transparent 70%);
  opacity: .9;
}
[data-theme="light"] .ambient {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255,122,24,.18), transparent 60%),
    radial-gradient(700px 480px at 96% 4%, rgba(255,69,0,.10), transparent 60%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ========== LAYOUT ========== */
.shell { position: relative; z-index: 2; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .wrap { padding: 0 18px; } }

section { position: relative; padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-300);
  padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,138,60,.12), rgba(255,138,60,.03));
  border: 1px solid rgba(255,138,60,.22);
  white-space: nowrap;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--orange-400);
  box-shadow: 0 0 12px var(--orange-400);
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: 0.96; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }

.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: 64px; }
.section-head h2 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { color: var(--text-2); font-size: 18px; max-width: 620px; margin: 0; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  border-radius: 12px; border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap; cursor: pointer;
}
.btn:active { transform: translateY(1px) scale(.98); }

/* ── Primary ── */
.btn-primary {
  color: #fff;
  background: linear-gradient(160deg, #FF9A52 0%, #FF6A1F 50%, #E15405 100%);
  border: none;
  box-shadow: 0 2px 14px -4px rgba(255,90,0,.45), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px -6px rgba(255,80,0,.7), 0 0 0 1px rgba(255,140,60,.25), inset 0 1px 0 rgba(255,255,255,.22);
  filter: brightness(1.08);
}

/* ── Shimmer sweep on hover ── */
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.22) 50%, transparent 75%);
  transform: translateX(-100%);
  pointer-events: none;
}
.btn-primary:hover::before { animation: btnShimmer .55s ease forwards; }
@keyframes btnShimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(220%); }
}

/* ── Ghost ── */
.btn-ghost {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,138,60,.10), rgba(255,138,60,.02));
  border-color: rgba(255,138,60,.5);
  box-shadow: 0 0 0 3px rgba(255,138,60,.10), 0 4px 18px -6px rgba(255,90,0,.3);
  color: #fff;
}

.btn-lg { height: 56px; padding: 0 26px; font-size: 16px; border-radius: 14px; }

/* ── Spark: particles removed ── */
.btn-spark { position: relative; }

/* ========== CARDS ========== */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}
.card-hover {
  transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease);
}
.card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

/* ========== UTILS ========== */
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); }
.grad-text { color: var(--orange-400); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); margin: 0; border: 0; }

/* Reveal on scroll (subtle — content visible by default) */
.reveal { opacity: 1; transform: none; }
.reveal-delay-1, .reveal-delay-2, .reveal-delay-3, .reveal-delay-4 { /* no-op fallback */ }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,138,60,.18); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,138,60,.35); }
