:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --fg: #1a2744;
  --fg-muted: #4a5568;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --border: rgba(26, 39, 68, 0.1);
  --navy: #1a2744;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

header nav {
  display: flex;
  gap: 2rem;
}

header nav a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

header nav a:hover { color: var(--fg); }

/* ── Hero ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Neural visual */
.hero-visual {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.neural-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.25);
  animation: pulse 3s ease-in-out infinite;
}

.ring-1 { width: 180px; height: 180px; animation-delay: 0s; }
.ring-2 { width: 130px; height: 130px; animation-delay: 0.4s; border-color: rgba(245, 158, 11, 0.35); }
.ring-3 { width: 80px; height: 80px; animation-delay: 0.8s; border-color: rgba(245, 158, 11, 0.5); }

.neural-core {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ── Features ── */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.features-header {
  max-width: 560px;
  margin-bottom: 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(26, 39, 68, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Vision ── */
.vision {
  background: var(--navy);
  color: #fff;
}

.vision-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.vision .section-label { color: var(--accent); }

.vision-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.vision-body {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

.vision-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 3rem;
}

.pillar-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.pillar h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ── Metrics ── */
.metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.metrics-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  max-width: 140px;
}

.metric-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ── Integrations ── */
.integrations {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.integrations-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.integrations-sub {
  color: var(--fg-muted);
  max-width: 500px;
  margin-bottom: 3rem;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.integration-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.integration-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.integration-card p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ── Closing ── */
.closing {
  background: var(--accent-dim);
  border-top: 1px solid rgba(245, 158, 11, 0.15);
}

.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}

.closing-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto 1.25rem;
  line-height: 1.2;
}

.closing-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  max-width: 260px;
}

.footer-links span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-pillars { grid-template-columns: 1fr; gap: 2rem; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-inner { flex-direction: column; gap: 2rem; }
  .metric-divider { display: none; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
}