@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: oklch(0.14 0.005 270);
  --bg-elev: oklch(0.17 0.008 270);
  --bg-card: oklch(0.19 0.01 275);
  --border: oklch(0.28 0.012 275);
  --border-strong: oklch(0.38 0.015 275);
  --fg: oklch(0.97 0 0);
  --fg-dim: oklch(0.72 0.01 270);
  --fg-muted: oklch(0.55 0.012 270);
  --accent: oklch(0.68 0.22 300);
  --accent-soft: oklch(0.68 0.22 300 / 0.18);
  --accent-glow: oklch(0.68 0.22 300 / 0.45);
  --grid: oklch(0.22 0.01 275 / 0.5);
  --density: 1;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
}

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

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

body {
  min-height: 100vh;
  position: relative;
}

/* Background grain + grid */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-feature-settings: "ss01"; }

/* Layout */
.shell { position: relative; z-index: 1; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 calc(32px * var(--density));
}

/* Nav */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: oklch(0.14 0.005 270 / 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 13px; color: var(--fg-dim);
  transition: color .2s ease;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-sm);
  background: var(--fg); color: var(--bg);
  font-size: 13px; font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }

/* Logo */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 22px; height: 22px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-mark::before, .logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
}
.logo-mark::before {
  transform: rotate(45deg) scale(0.7);
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.logo-mark::after {
  transform: rotate(0deg);
  border-color: var(--fg);
  opacity: 0.7;
}
.logo-text { display: inline-flex; align-items: baseline; }
.logo-text .accent { color: var(--accent); }

/* Hero base */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  padding: calc(80px * var(--density)) 0 calc(120px * var(--density));
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px; color: var(--fg-dim);
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: oklch(0.17 0.008 270 / 0.6);
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.h-display {
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 28px 0 24px;
  text-wrap: balance;
}
.h-display .accent {
  background: linear-gradient(135deg, var(--accent), oklch(0.78 0.18 320));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 400;
}

.h-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-dim);
  max-width: 560px;
  line-height: 1.5;
  text-wrap: pretty;
}

.cta-row { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  transition: all .2s ease;
  position: relative;
}
.btn-primary {
  background: var(--fg); color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--fg);
  background: oklch(0.17 0.008 270 / 0.5);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Section */
.section {
  position: relative;
  padding: calc(120px * var(--density)) 0;
}
.section-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: calc(64px * var(--density));
  max-width: 720px;
}
.section-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}
.section-sub {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.5;
  max-width: 600px;
}

/* Animations */
@keyframes float-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.visible {
  animation: float-up .9s cubic-bezier(.2,.7,.2,1) forwards;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  position: relative;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 60px; flex-wrap: wrap;
}
.footer-meta { color: var(--fg-muted); font-size: 12px; }

/* Subtle animation easing curve */
.fluid { transition: all .35s cubic-bezier(.2,.7,.2,1); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Selection */
::selection { background: var(--accent-soft); color: var(--fg); }
