/* ============================================================
   IGNITED CONTENT CO — v2 tokens + base
   Evolved "telemetry meets the garage": near-black + ember.
   ============================================================ */

:root {
  /* surfaces */
  --bg:      #09090a;
  --bg-1:    #0d0d0f;
  --bg-2:    #131316;
  --panel:   #141417;
  --panel-2: #1b1b1f;

  /* lines */
  --line:   rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --line-3: rgba(255,255,255,0.24);

  /* text */
  --text:   #f5f4f2;
  --text-2: #a8a7a4;
  --text-3: #6f6e6c;

  /* ember — single accent */
  --ignite:      #f2601f;
  --ignite-2:    #ff7a2e;
  --ignite-deep: #c2410c;
  --glow:        rgba(242,96,31,0.55);
  --glow-soft:   rgba(242,96,31,0.16);

  /* type */
  --display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --sans:    "Archivo", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* rhythm */
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
}

/* accent recolor hook (Tweaks) */
[data-accent="amber"]  { --ignite:#f59e0b; --ignite-2:#fbbf24; --ignite-deep:#b45309; --glow:rgba(245,158,11,0.55); --glow-soft:rgba(245,158,11,0.16); }
[data-accent="red"]    { --ignite:#ef4444; --ignite-2:#f87171; --ignite-deep:#b91c1c; --glow:rgba(239,68,68,0.55); --glow-soft:rgba(239,68,68,0.16); }
[data-accent="lime"]   { --ignite:#a3e635; --ignite-2:#bef264; --ignite-deep:#65a30d; --glow:rgba(163,230,53,0.5); --glow-soft:rgba(163,230,53,0.14); }

/* font swap hook (Tweaks) */
[data-typeface="grotesk"] { --display:"Space Grotesk","Archivo",sans-serif; --sans:"Space Grotesk",system-ui,sans-serif; }
[data-typeface="mono"]    { --display:"JetBrains Mono",monospace; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--ignite); color: #fff; }

/* ---------- shared layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ignite);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--ignite);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.mono-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.mono-tag.dim { color: var(--text-3); }

.ig-em { color: var(--ignite); }

/* ---------- the Ignited ball ---------- */
.ball {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%,
      #ffe6c2 0%,
      #ffb066 9%,
      #fb7a2e 26%,
      #f2601f 44%,
      #d84a17 66%,
      #b03a12 84%,
      #8f2f0f 100%);
  box-shadow:
    inset -14px -16px 38px rgba(90,24,6,0.55),
    inset 8px 9px 22px rgba(255,225,180,0.30),
    0 0 0 1px rgba(0,0,0,0.2);
  flex: none;
}
.ball.glow {
  box-shadow:
    inset -14px -16px 38px rgba(90,24,6,0.55),
    inset 8px 9px 22px rgba(255,225,180,0.30),
    0 0 60px -6px var(--glow),
    0 0 140px -10px var(--glow-soft);
}
.ball::after {
  content: "";
  position: absolute;
  top: 22%; left: 27%;
  width: 16%; height: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,248,235,0.95), rgba(255,248,235,0) 70%);
  filter: blur(1px);
}

@keyframes ballPulse {
  0%,100% { filter: brightness(1); }
  50%     { filter: brightness(1.08); }
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 15px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn-primary {
  background: var(--ignite);
  color: #150a04;
}
.btn-primary::before {
  /* cursor-following hot spot */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,235,205,0.5), transparent 65%);
  opacity: 0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}
.btn-primary:hover { background: var(--ignite-2); box-shadow: 0 16px 40px -12px var(--glow); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,0.04); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- textures ---------- */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
}
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.no-scrollbar::-webkit-scrollbar { display: none; }

/* ============================================================
   MOTION SYSTEM
   data-motion="full" | "subtle" | "off" on <html>.
   Base state = visible end-state; animation only added when
   motion is allowed (attr + prefers-reduced-motion).
   ============================================================ */

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  [data-motion="full"] .reveal,
  [data-motion="subtle"] .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  [data-motion="subtle"] .reveal { transform: translateY(12px); }
  [data-motion="full"] .reveal.in,
  [data-motion="subtle"] .reveal.in { opacity: 1; transform: none; }

  [data-motion="full"] .ball.pulse,
  [data-motion="subtle"] .ball.pulse { animation: ballPulse 4.5s var(--ease) infinite; }
}

/* hero intro choreography — classes applied by Hero on mount */
.hi { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-motion="full"] .hero-stage .hi {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .9s var(--ease-snap), transform .9s var(--ease-snap);
    transition-delay: var(--hd, 0ms);
  }
  [data-motion="subtle"] .hero-stage .hi {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    transition-delay: var(--hd, 0ms);
  }
  [data-motion="full"] .hero-stage.lit .hi,
  [data-motion="subtle"] .hero-stage.lit .hi { opacity: 1; transform: none; }
}
