/* base.css — Marque design system.
   Editorial atelier × Swiss-tech precision. Ink canvas, bone type, electric lime. */

:root {
  --ink:    #0B0B0D;
  --ink-1:  #0E0E11;
  --ink-2:  #141418;
  --ink-3:  #1B1B21;
  --ink-4:  #24242B;
  --line:   rgba(244, 240, 230, 0.09);
  --line-2: rgba(244, 240, 230, 0.16);
  --bone:   #F4F0E6;
  --bone-2: rgba(244, 240, 230, 0.64);
  --bone-3: rgba(244, 240, 230, 0.40);
  --bone-4: rgba(244, 240, 230, 0.22);

  --lime:     #D4FF40;
  --lime-600: #B9E81F;
  --lime-dim: rgba(212, 255, 64, 0.13);
  --lime-glow: rgba(212, 255, 64, 0.35);
  --coral:    #FF6A4D;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SF Mono', monospace;

  --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 24px; --r-xl: 34px; --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.55);
  --glow: 0 8px 30px var(--lime-glow);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* atmospheric base: warm radial wash + faint grid + grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(212, 255, 64, 0.07), transparent 60%),
    radial-gradient(800px 700px at 6% 8%, rgba(255, 106, 77, 0.05), transparent 55%),
    var(--ink);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--lime); color: var(--ink); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 99px; border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #34343d; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

/* ---------- shared atoms ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.24em; color: var(--lime);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--lime); opacity: 0.7; }
.eyebrow.center::after { content: ""; width: 22px; height: 1px; background: var(--lime); opacity: 0.7; }

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); }

.btn {
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform 0.4s var(--ease-out), background 0.3s, box-shadow 0.4s, border-color 0.3s, color 0.3s;
  white-space: nowrap; user-select: none; background: none; color: var(--bone);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); background: #e1ff63; }
.btn-ghost { border-color: var(--line-2); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone-3); background: rgba(244, 240, 230, 0.04); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  color: var(--bone-2); background: rgba(244, 240, 230, 0.03); display: inline-flex; gap: 7px; align-items: center;
}

.tag-money {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--coral); border: 1px dashed rgba(255, 106, 77, 0.5); border-radius: var(--r-pill);
  padding: 3px 9px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 106, 77, 0.06);
}

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

/* ---------- top navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 13, 0.72); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); padding: 12px 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.brand .glyph { width: 30px; height: 30px; display: grid; place-items: center; }
.brand .glyph svg { width: 100%; height: 100%; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-size: 14.5px; color: var(--bone-2); transition: color 0.25s; position: relative; }
.nav-links a.link:hover { color: var(--bone); }
.nav-links a.link::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--lime); transition: width 0.3s var(--ease); }
.nav-links a.link:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* sound toggle */
.snd { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; cursor: pointer; color: var(--bone-2); transition: 0.25s; background: none; }
.snd:hover { color: var(--bone); border-color: var(--bone-3); }
.snd.off { color: var(--bone-4); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 120px; padding: 64px 0 40px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--bone-3); font-weight: 400; margin-bottom: 16px; }
.footer a { display: block; color: var(--bone-2); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.footer a:hover { color: var(--lime); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px; display: flex; justify-content: space-between; gap: 20px; color: var(--bone-3); font-size: 13px; font-family: var(--font-mono); }

/* reveal-on-load / scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .footer .container { grid-template-columns: 1fr 1fr; }
}
