/* ScoreCrew — base styles partagées */
:root {
  --orange: #FF5722;
  --orange-2: #FF7A3D;
  --yellow: #FFB300;
  --pink: #FF4965;
  --pink-2: #FF6B7A;
  --bg: #0F0A07;
  --bg-2: #1A1108;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.07);
  --stroke: rgba(255,255,255,.08);
  --stroke-2: rgba(255,255,255,.14);
  --fg: #FFF8F0;
  --fg-2: rgba(255,248,240,.72);
  --fg-3: rgba(255,248,240,.5);
  --fg-4: rgba(255,248,240,.32);
  --green: #22C55E;
  --blue: #4FB3FF;
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1240px;
  --shadow-orange: 0 18px 60px -18px rgba(255,87,34,.55), 0 4px 14px -4px rgba(255,87,34,.3);
}

[data-theme="light"] {
  --bg: #FFFAF5;
  --bg-2: #FFF1E4;
  --surface: rgba(15,10,7,.04);
  --surface-2: rgba(15,10,7,.06);
  --stroke: rgba(15,10,7,.08);
  --stroke-2: rgba(15,10,7,.14);
  --fg: #1A1410;
  --fg-2: rgba(26,20,16,.72);
  --fg-3: rgba(26,20,16,.5);
  --fg-4: rgba(26,20,16,.32);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
  letter-spacing: -0.01em;
  transition: background .35s ease, color .35s ease;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(255,87,34,.18), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(255,179,0,.10), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(255,87,34,.12), transparent 60%);
  transition: opacity .35s ease;
}
[data-theme="light"] body::before { opacity: .55; }

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ============ HEADER ============ */
.hdr {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--stroke);
}
.hdr-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo-mark {
  width: 36px; height: 36px;
  object-fit: contain; display: block;
}
.nav { display: none; gap: 28px; }
.nav a { font-size: 14.5px; color: var(--fg-2); font-weight: 500; position: relative; padding: 4px 0; transition: color .2s; }
.nav a:hover, .nav a.act { color: var(--fg); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after, .nav a.act::after { transform: scaleX(1); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.theme-tog {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--stroke);
  display: grid; place-items: center; transition: transform .2s, background .2s, border-color .2s;
}
.theme-tog:hover { background: var(--surface-2); transform: rotate(15deg); border-color: var(--stroke-2); }
.theme-tog svg { width: 18px; height: 18px; }
.theme-tog .sun { display: none; }
[data-theme="light"] .theme-tog .moon { display: none; }
[data-theme="light"] .theme-tog .sun { display: block; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 22px 70px -18px rgba(255,87,34,.7); }
.btn-ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--stroke); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--stroke-2); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

@media (min-width: 860px) { .nav { display: flex; } }

/* ============ SECTION SCAFFOLD ============ */
section.s { padding: 90px 0; position: relative; }
.s-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.s-eyebrow {
  display: inline-block; font-family: 'Geist Mono', monospace;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); font-weight: 600; margin-bottom: 14px;
}
.s-title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 0 0 16px; text-wrap: balance; }
.s-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--fg-2); max-width: 580px; margin: 0 auto; text-wrap: pretty; }

.rev { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.rev.in { opacity: 1; transform: none; }
.rev-d1 { transition-delay: .08s; }
.rev-d2 { transition-delay: .16s; }
.rev-d3 { transition-delay: .24s; }
.rev-d4 { transition-delay: .32s; }
.rev-d5 { transition-delay: .4s; }
.rev-d6 { transition-delay: .48s; }

/* ============ FOOTER ============ */
footer { padding: 50px 0 30px; border-top: 1px solid var(--stroke); margin-top: 40px; color: var(--fg-3); }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a:hover { color: var(--fg); }
.foot-bottom {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--stroke);
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-size: 13px;
}

/* ============ PAGE HERO ============ */
.page-hero { padding: 60px 0 40px; position: relative; }
.page-hero h1 {
  font-size: clamp(40px, 7vw, 76px); font-weight: 800;
  line-height: .95; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance;
}
.page-hero h1 .accent, h1 .accent {
  background: linear-gradient(120deg, var(--orange), var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero h1 .accent.pink, h1 .accent.pink {
  background: linear-gradient(120deg, var(--pink), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p.lede { font-size: clamp(16px, 2vw, 19px); color: var(--fg-2); max-width: 640px; text-wrap: pretty; margin: 0 0 24px; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: .08em; color: var(--fg-3); margin-bottom: 22px; }
.crumbs a { color: var(--fg-3); }
.crumbs a:hover { color: var(--orange); }
.crumbs .sep { color: var(--fg-4); }
