:root {
  /* White + grená (garnet) palette */
  --bg: oklch(0.985 0.003 60);
  --bg-deep: oklch(1 0 0);
  --bg-elev: oklch(0.965 0.004 60);
  --bg-card: oklch(0.945 0.005 60);
  --line: oklch(0.85 0.006 30);
  --line-soft: oklch(0.91 0.005 30);
  --text: oklch(0.18 0.012 25);
  --text-2: oklch(0.36 0.012 25);
  --text-3: oklch(0.52 0.012 25);
  --text-4: oklch(0.70 0.012 25);

  /* Grená — deep wine/garnet accent */
  --acc: oklch(0.38 0.14 18);
  --acc-deep: oklch(0.30 0.13 18);
  --acc-ink: oklch(0.99 0.003 60);
  --acc-tint-12: oklch(0.38 0.14 18 / 0.10);
  --acc-tint-08: oklch(0.38 0.14 18 / 0.07);
  --acc-tint-06: oklch(0.38 0.14 18 / 0.05);

  /* Secondary accent (rare) */
  --warm: oklch(0.55 0.12 25);

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1320px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: 'ss02', 'zero'; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; }

/* Background grid + noise */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, oklch(0.38 0.14 18 / 0.05), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, oklch(0.55 0.12 25 / 0.03), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(0 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0 0 0 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
}

/* Layout helpers */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* Kicker label */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: lowercase;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; background: var(--acc);
  display: inline-block; border-radius: 2px;
}

/* Section base */
section { position: relative; z-index: 1; padding: 120px 0; border-top: 1px solid var(--line-soft); }
@media (max-width: 720px) { section { padding: 80px 0; } }
.section-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 64px; max-width: 880px; }
.section-head h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.section-head p { color: var(--text-2); font-size: 18px; max-width: 640px; line-height: 1.5; }

/* Glass surface */
.glass {
  background: linear-gradient(145deg, oklch(0 0 0 / 0.02), oklch(0 0 0 / 0.005));
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 15px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--bg-card); border-color: var(--text-3); transform: translateY(-1px); }
.btn-primary {
  background: var(--acc); color: var(--acc-ink); border-color: var(--acc);
  font-weight: 600;
}
.btn-primary:hover { background: var(--acc-deep); border-color: var(--acc-deep); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* Marquee strip */
.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
  overflow: hidden;
  position: relative; z-index: 1;
}
.strip-track {
  display: flex; gap: 56px;
  animation: scroll 40s linear infinite;
  padding: 18px 0;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-3);
}
.strip-track span { display: inline-flex; align-items: center; gap: 12px; }
.strip-track span::after { content: "◆"; color: var(--acc); font-size: 8px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Custom cursor dot */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px; background: var(--acc);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform .08s linear, width .2s ease, height .2s ease, background .2s ease;
  display: none;
}
@media (hover: hover) and (pointer: fine) { .cursor-dot { display: block; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
