:root {
  /* ── Color: OKLCH ── */
  --bg:           oklch(0.08 0.005 152); /* Deep dark forest tint */
  --bg-acc:       oklch(0.12 0.01 152 / 0.7);
  --accent:       oklch(0.82 0.28 155);  /* The signature green */
  --text:         oklch(0.98 0.005 155);
  --text-muted:   oklch(0.65 0.01 155);
  --border:       oklch(1 0 0 / 0.08);
  
  --font-display: 'Bebas Neue', cursive;
  --font-heading: 'Outfit', sans-serif;
  --font-sans:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* ── Spacing ── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 88px;

  /* ── Focus ── */
  --focus-ring: 2px solid var(--accent);
  --focus-offset: 4px;

  --mesh-gradient: radial-gradient(at 0% 0%, oklch(0.15 0.1 155 / 0.4) 0, transparent 50%), 
                   radial-gradient(at 100% 100%, oklch(0.15 0.1 155 / 0.4) 0, transparent 50%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  transition: margin-top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-font-smoothing: antialiased;
}

body:has(.site-nav.force-show) {
  margin-top: 40px;
}

body:has(.site-nav.force-show) .pill-nav {
  top: 56px;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
  opacity: 0.5;
}

.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0, 232, 122, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 232, 122, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none; z-index: 0;
}

section, nav, footer, .ticker-wrap, .stats-bar, .site-nav {
  position: relative; z-index: 1;
}

/* ── PILL NAV (FREEWARE SPECIFIC) ── */
.pill-nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  padding: 6px; display: flex; align-items: center; gap: 4px; border-radius: 100px;
  background: var(--bg-acc); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); z-index: 1000; transition: transform 0.3s ease;
}

.pill-nav a {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  text-decoration: none; padding: 10px 20px; border-radius: 100px;
  color: var(--text-muted); transition: 0.2s;
  border-radius: 100px;
}

.pill-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.pill-nav a.active { background: var(--accent); color: var(--bg); }
.pill-nav a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* ── SITE NAV (SHARED GLOBALLY) ── */
.site-nav {
  background: oklch(0.08 0.005 152 / 0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 2px;
  position: fixed; width: 100%; top: 0; z-index: 2000;
  transform: translateY(-100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-nav.force-show { transform: translateY(0); }

.site-nav a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none; padding: 14px 20px;
  color: var(--text-muted); transition: color 0.15s; position: relative;
  border-radius: 2px;
}

.site-nav a:hover, .site-nav a.active { color: var(--accent); }

.site-nav a.active::after {
  content: ''; position: absolute; bottom: 0; left: 20px; right: 20px;
  height: 2px; background: var(--accent);
}

.site-nav a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
}

/* ── HERO ── */
.hero {
  padding: 160px 24px 100px; text-align: center; position: relative;
  background: var(--mesh-gradient);
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: oklch(0.82 0.28 155 / 0.08); border: 1px solid oklch(0.82 0.28 155 / 0.15);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 32px;
  animation: fadeInUp 0.6s ease both;
}

.hero-pill .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  display: inline-block; box-shadow: 0 0 8px var(--accent);
}

.hero-pill span {
  font-size: 11px; font-family: var(--font-mono); color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.5px;
}

.hero h1 {
  font-size: clamp(64px, 12vw, 120px); line-height: 0.85; margin-bottom: 32px;
  font-weight: 400; font-family: var(--font-display); letter-spacing: -1px;
}

.hero h1 .stroke {
  color: transparent; -webkit-text-stroke: 1px oklch(1 0 0 / 0.25);
}

.hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 48ch; line-height: 1.6; margin-bottom: 48px; font-weight: 300;
  margin-left: auto; margin-right: auto;
  animation: fadeInUp 0.6s ease 0.2s both;
  font-family: var(--font-sans);
}

.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-primary {
  background: var(--accent); color: var(--bg);
  padding: 16px 32px; font-family: var(--font-sans);
  font-size: 14px; font-weight: 600; text-decoration: none;
  border-radius: 100px; transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: inline-flex; align-items: center; min-height: 44px;
}

.btn-primary:hover {
  background: var(--text); transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px oklch(0.82 0.28 155 / 0.3);
}

.btn-primary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.btn-secondary {
  background: oklch(1 0 0 / 0.03); color: var(--text);
  padding: 16px 32px; font-family: var(--font-sans); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; text-decoration: none; border-radius: 100px;
  transition: all 0.3s ease;
  display: inline-flex; align-items: center; min-height: 44px;
}

.btn-secondary:hover {
  background: oklch(1 0 0 / 0.06); border-color: var(--accent);
  transform: translateY(-3px);
}

.btn-secondary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* ── STATS ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  max-width: 1100px; margin: 0 auto 100px; padding: 0 48px;
}

.stat-item { padding: 24px 0; text-align: left; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 48px; font-family: var(--font-heading); font-weight: 600;
  color: var(--text); line-height: 1; margin-bottom: 8px;
}

.stat-label {
  font-size: 14px; font-family: var(--font-sans); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}

.stat-context { font-size: 12px; color: oklch(1 0 0 / 0.35); font-family: var(--font-sans); }

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden; border-bottom: 1px solid var(--border);
  padding: 13px 0; background: oklch(1 0 0 / 0.02);
}

.ticker {
  display: flex; gap: 64px; white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase;
}

.ticker-item em { color: var(--accent); font-style: normal; margin-right: 8px; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION LABELS ── */
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.section-head { padding: 80px 48px 28px; max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-family: var(--font-mono); font-size: 10px; color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: 2px; text-transform: uppercase;
}

/* ── PROJECTS ── */
#projects { padding: 120px 0; }

.products-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}

.product-card {
  background: oklch(1 0 0 / 0.02); border: 1px solid var(--border);
  border-radius: 32px; overflow: hidden; transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex; flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px); border-color: var(--accent);
  background: oklch(1 0 0 / 0.04);
}

.product-img {
  width: 100%; aspect-ratio: 16/11; background: oklch(0.05 0 0); position: relative;
  border-bottom: 1px solid var(--border); overflow: hidden;
}

.product-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover .product-img img { transform: scale(1.05); }

.product-card-body { padding: 32px; }

.product-name {
  font-size: 28px; font-family: var(--font-heading); font-weight: 600;
  margin-bottom: 12px; letter-spacing: -0.5px;
}

.product-desc {
  font-size: 16px; color: var(--text-muted); line-height: 1.6;
  font-family: var(--font-sans); font-weight: 300; margin-bottom: 24px;
}

.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 24px;
}

.product-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.5px;
}

.product-cta {
  color: var(--text); text-decoration: none; font-size: 14px;
  font-family: var(--font-sans); font-weight: 500;
  border-radius: 2px;
}

.product-cta:hover { color: var(--accent); }

.product-cta:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

/* ── MVP SPRINT ── */
.sprint-card {
  max-width: 1100px; margin: 0 auto 0;
  padding: 0 48px 60px;
}

.sprint-inner {
  border: 1px solid var(--border);
  background: oklch(1 0 0 / 0.01); padding: 44px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  position: relative; overflow: hidden;
  border-radius: 4px;
}

.sprint-inner::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--accent);
  box-shadow: 0 0 20px oklch(0.82 0.28 155 / 0.3);
}

.sprint-badge {
  display: inline-block;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; padding: 4px 12px; margin-bottom: 20px;
}

.sprint-name {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 46px);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}

.sprint-desc {
  color: var(--text-muted); font-size: 16px; line-height: 1.6;
  max-width: 55ch; margin-bottom: 28px; font-weight: 300;
}

.sprint-features { list-style: none; margin-bottom: 36px; }

.sprint-features li {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-muted);
  padding: 8px 0; border-bottom: 1px solid var(--border); line-height: 1.5;
  transition: color 0.2s;
}

.sprint-features li:hover { color: var(--accent); }
.sprint-features li::before { content: '> '; color: var(--accent); }

.sprint-price {
  font-family: var(--font-display); font-size: clamp(48px, 5vw, 64px);
  color: var(--accent); letter-spacing: 2px; line-height: 1;
}

.sprint-price-note {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); margin-bottom: 28px; margin-top: 4px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-left {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-muted);
}

.footer-left span { color: var(--accent); }

.footer-right {
  font-family: var(--font-heading); font-size: 20px;
  letter-spacing: 1px; color: oklch(1 0 0 / 0.1);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hero { padding: 140px 24px 80px; }
  .hero h1 { font-size: 80px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 60px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 0; }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:last-child { border-bottom: none; }
  .products-grid { grid-template-columns: 1fr; }
  .sprint-inner { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
}

@media (max-width: 600px) {
  .pill-nav { width: 95%; top: 12px; }
  .pill-nav a { padding: 8px 12px; font-size: 11px; }
  .site-nav { padding: 0 10px; }
  .site-nav a { padding: 14px 10px; font-size: 9px; letter-spacing: 1px; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 60px; }
  .stats-bar { grid-template-columns: 1fr; gap: 0; }
  .stat-item { padding: 20px 0; border-right: none; border-bottom: 1px solid var(--border); }
  .section-wrap { padding: 0 24px; }
  .footer-right { display: none; }
  footer { padding: 32px 24px; text-align: center; flex-direction: column; gap: 16px; }
  .hero-btns { flex-direction: column; }
}