:root {
  /* Anthropic warm cream + Stripe light surfaces */
  --bg: #faf9f5;
  --bg-2: #f3f1ea;
  --card: #ffffff;
  --ink: #1a1a18;
  --ink-dim: #5c5b55;
  --ink-faint: #918f86;
  --line: rgba(26, 26, 24, 0.10);
  --line-strong: rgba(26, 26, 24, 0.20);
  /* Accents: Stripe blurple + Anthropic clay + teal */
  --c1: #635bff;
  --c2: #d97757;
  --c3: #0e9aa7;
  --shadow-sm: 0 1px 2px rgba(10, 20, 40, 0.05);
  --shadow: 0 1px 2px rgba(10, 20, 40, 0.05), 0 14px 34px -14px rgba(26, 26, 24, 0.14);
  --shadow-lg: 0 2px 4px rgba(10, 20, 40, 0.06), 0 26px 56px -18px rgba(99, 91, 255, 0.28);
  --max: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- animated field ---------- */
#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--c2), var(--c1), var(--c3));
  box-shadow: 0 2px 12px rgba(99, 91, 255, 0.4);
  transform: rotate(45deg);
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink) !important;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  border-color: var(--c1);
  color: var(--c1) !important;
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 14vh, 150px) 28px clamp(90px, 16vh, 160px);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(217, 119, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0); }
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.grad {
  background: linear-gradient(100deg, var(--c2), var(--c1) 52%, var(--c3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 9s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  display: inline-block;
}

.btn-primary {
  background: var(--c1);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #5249f5;
  box-shadow: 0 2px 4px rgba(10, 20, 40, 0.06), 0 30px 64px -16px rgba(99, 91, 255, 0.42);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--c1);
  color: var(--c1);
}

.scroll-hint {
  margin: 70px auto 0;
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  position: relative;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 7px;
  background: var(--ink-faint);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll 1.8s infinite var(--ease);
}

@keyframes scroll {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 12vh, 130px) 28px;
}

.section-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.26em;
  color: var(--c1);
  margin-bottom: 30px;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.section-title.center { text-align: center; }

.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.mission-body p {
  color: var(--ink-dim);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

/* ---------- products ---------- */
.product-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 34px 36px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

a.product-card:hover {
  border-color: rgba(99, 91, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-index {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  color: var(--ink-faint);
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c3);
  margin-bottom: 10px;
}

.product-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c3);
  box-shadow: 0 0 10px rgba(14, 154, 167, 0.7);
}

.product-status--soon { color: var(--ink-dim); }
.product-status--soon .dot { background: var(--ink-dim); box-shadow: none; }

.product-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}

.product-desc {
  color: var(--ink-dim);
  max-width: 440px;
}

.product-go {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c1);
}

.product-go.muted { color: var(--ink-faint); }

.product-go .arrow {
  transition: transform 0.3s var(--ease);
}

a.product-card:hover .arrow { transform: translateX(6px); }

.product-card--soon { opacity: 0.72; }

/* ---------- horizon ---------- */
.horizon .section-title { margin-bottom: 56px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.pillar:hover {
  border-color: rgba(99, 91, 255, 0.4);
  transform: translateY(-3px);
}

.pillar-num {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--c2), var(--c1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.pillar h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.pillar p {
  color: var(--ink-dim);
  font-size: 0.97rem;
}

/* ---------- cta band ---------- */
.cta-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 12vh, 120px) 28px;
  text-align: center;
}

.cta-band h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--ink-dim);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* ---------- footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 14px;
}

.footer-meta {
  display: flex;
  gap: 28px;
  color: var(--ink-faint);
  font-size: 13.5px;
}

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

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grad, .pulse, .scroll-hint span { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .mission-grid { grid-template-columns: 1fr; gap: 24px; }
  .pillars { grid-template-columns: 1fr; }
  .product-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px;
  }
  .product-index { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-meta { flex-direction: column; gap: 6px; }
}
