/* ============================================================
   NIVARO — Marketing Site
   Strategy: Committed dark. Cyan signal. Coral accent.
   Fonts: Bricolage Grotesque · Onest · JetBrains Mono
============================================================ */

/* ── Tokens ── */
:root {
  --bg:              oklch(1.000 0.000 0);
  --bg-dark:         oklch(0.148 0.028 244);
  --bg-dark-2:       oklch(0.192 0.030 244);
  --bg-dark-3:       oklch(0.218 0.032 244);
  --surface:         oklch(0.972 0.006 238);
  --primary:         oklch(0.753 0.182 214);
  --primary-dim:     oklch(0.753 0.182 214 / 0.14);
  --primary-glow:    oklch(0.753 0.182 214 / 0.22);
  --accent:          oklch(0.68 0.165 49);
  --ink:             oklch(0.145 0.018 244);
  --ink-muted:       oklch(0.420 0.012 244);
  --ink-faint:       oklch(0.600 0.008 238);
  --ink-dark:        oklch(0.940 0.008 238);
  --ink-muted-dark:  oklch(0.650 0.014 238);
  --ink-faint-dark:  oklch(0.480 0.018 244);
  --border:          oklch(0.900 0.008 238);
  --border-dark:     oklch(0.265 0.028 244);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Onest', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Menlo', monospace;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);

  --z-nav:   100;
  --z-modal: 200;

  --nav-h: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
code, pre { font-family: var(--font-mono); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(5rem, 10vw, 8rem); }

/* ── Typography ── */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.t-section {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.t-subhead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
  text-wrap: pretty;
}
.t-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.625rem 1.375rem;
  border-radius: 6px;
  transition: background 140ms var(--ease-out-quart),
              color 140ms,
              box-shadow 140ms;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 600;
}
.btn-primary:hover { background: oklch(0.68 0.165 214); }
.btn-outline-dark {
  background: transparent;
  color: var(--ink-dark);
  border: 1px solid var(--border-dark);
}
.btn-outline-dark:hover { background: var(--bg-dark-2); }
.btn-ghost-light {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--border);
}
.btn-ghost-light:hover { background: var(--surface); color: var(--ink); }

/* ── Navigation ── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 200ms var(--ease-out-quart),
              border-color 200ms,
              backdrop-filter 200ms;
}
.nav.is-scrolled {
  background: oklch(0.148 0.028 244 / 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--border-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-dark);
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--bg-dark);
  font-family: var(--font-display);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--ink-muted-dark);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: color 120ms, background 120ms;
}
.nav-links a:hover { color: var(--ink-dark); background: oklch(1 0 0 / 0.06); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.753 0.182 214 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.753 0.182 214 / 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 72% 48%,
    oklch(0.753 0.182 214 / 0.14) 0%,
    transparent 65%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(3rem, 6vw, 5rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero-copy { display: flex; flex-direction: column; gap: 1.75rem; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid oklch(0.753 0.182 214 / 0.35);
  border-radius: var(--radius-full, 9999px);
  padding: 0.3rem 0.875rem;
  width: fit-content;
}
.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.hero-headline { color: var(--ink-dark); }
.hero-headline em {
  font-style: normal;
  color: var(--primary);
}
.hero-subhead {
  color: var(--ink-muted-dark);
  max-width: 52ch;
}
.hero-actions { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; }
.hero-stack {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.stack-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint-dark);
  background: oklch(1 0 0 / 0.05);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  transition: color 120ms, border-color 120ms;
}
.stack-chip:hover { color: var(--ink-muted-dark); border-color: var(--border-dark); }

/* ── Hero Mockup ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mockup-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 80% 70% at 50% 50%,
    oklch(0.753 0.182 214 / 0.18) 0%,
    transparent 65%);
  pointer-events: none;
}
.mockup-window {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: oklch(0.148 0.028 244);
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  overflow: hidden;
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.06) inset,
    0 32px 80px oklch(0 0 0 / 0.5),
    0 8px 24px oklch(0 0 0 / 0.3);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: oklch(0.172 0.026 244);
  border-bottom: 1px solid var(--border-dark);
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: oklch(0.265 0.028 244);
}
.mockup-dot:nth-child(1) { background: oklch(0.60 0.18 25); }
.mockup-dot:nth-child(2) { background: oklch(0.72 0.15 90); }
.mockup-dot:nth-child(3) { background: oklch(0.62 0.18 145); }
.mockup-url {
  flex: 1;
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint-dark);
  background: oklch(0.148 0.028 244);
  border-radius: 4px;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-body {
  display: flex;
  height: 380px;
}
.mockup-sidebar {
  width: 168px;
  flex-shrink: 0;
  background: oklch(0.148 0.028 244);
  border-right: 1px solid var(--border-dark);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.mockup-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-dark);
  letter-spacing: -0.015em;
}
.mockup-logo-sq {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--bg-dark);
}
.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: oklch(0.55 0.01 238);
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  cursor: default;
}
.mockup-nav-item.active {
  background: var(--primary-dim);
  color: var(--primary);
}
.mockup-nav-item svg { width: 12px; height: 12px; flex-shrink: 0; }
.mockup-nav-sub {
  margin-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.mockup-nav-sub-item {
  font-size: 0.625rem;
  font-weight: 500;
  color: oklch(0.50 0.01 238);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: default;
}
.mockup-nav-sub-item.active { color: var(--primary); }
.mockup-nav-separator {
  height: 1px;
  background: var(--border-dark);
  margin-block: 0.5rem;
}
.mockup-main {
  flex: 1;
  background: oklch(0.972 0.006 238);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mockup-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid oklch(0.900 0.008 238);
  background: oklch(1 0 0);
}
.mockup-main-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mockup-new-btn {
  font-size: 0.625rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--bg-dark);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}
.mockup-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid oklch(0.900 0.008 238);
  background: oklch(1 0 0);
}
.mockup-search-input {
  flex: 1;
  background: oklch(0.972 0.006 238);
  border: 1px solid oklch(0.900 0.008 238);
  border-radius: 5px;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  color: var(--ink-faint);
  font-family: var(--font-body);
}
.mockup-table { flex: 1; overflow: hidden; }
.mockup-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 0.375rem 1rem;
  border-bottom: 1px solid oklch(0.900 0.008 238);
  background: oklch(0.972 0.006 238);
}
.mockup-table-head span {
  font-size: 0.5625rem;
  font-weight: 500;
  color: oklch(0.55 0.008 238);
  text-transform: none;
}
.mockup-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid oklch(0.945 0.005 238);
  background: oklch(1 0 0);
  align-items: center;
  opacity: 0;
  transform: translateY(4px);
}
.mockup-row.visible {
  opacity: 1;
  transform: none;
  transition: opacity 300ms var(--ease-out-quart),
              transform 300ms var(--ease-out-quart);
}
.mockup-row:hover { background: oklch(0.972 0.006 238); }
.mockup-row-title {
  font-size: 0.625rem;
  font-weight: 500;
  color: oklch(0.22 0.018 244);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-row-meta {
  font-size: 0.5625rem;
  color: oklch(0.55 0.008 238);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
}
.badge-live   { background: oklch(0.92 0.08 145); color: oklch(0.30 0.10 145); }
.badge-draft  { background: oklch(0.93 0.02 238); color: oklch(0.44 0.01 238); }
.badge-review { background: oklch(0.94 0.07 55);  color: oklch(0.42 0.10 55); }

/* ── Marquee ── */
.marquee-section {
  background: var(--bg-dark-2);
  border-block: 1px solid var(--border-dark);
  overflow: hidden;
  padding-block: 1rem;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted-dark);
  white-space: nowrap;
}
.marquee-item::after {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}

/* ── Features ── */
.features-section { background: var(--bg); }
.features-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.features-header .t-section { color: var(--ink); }
.features-header .t-subhead { color: var(--ink-muted); max-width: 56ch; }
.features-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.feat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 200ms, box-shadow 200ms;
  overflow: hidden;
  position: relative;
}
.feat-card:hover {
  border-color: oklch(0.753 0.182 214 / 0.4);
  box-shadow: 0 0 0 3px oklch(0.753 0.182 214 / 0.07);
}
.feat-card--wide  { grid-column: span 7; }
.feat-card--med   { grid-column: span 5; }
.feat-card--third { grid-column: span 4; }
.feat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dim);
  border-radius: 8px;
  color: var(--primary);
  flex-shrink: 0;
}
.feat-icon svg { width: 18px; height: 18px; }
.feat-label {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.feat-body {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 52ch;
}
.feat-card--accent .feat-icon { background: oklch(0.68 0.165 49 / 0.12); color: var(--accent); }
.feat-card--accent:hover {
  border-color: oklch(0.68 0.165 49 / 0.4);
  box-shadow: 0 0 0 3px oklch(0.68 0.165 49 / 0.06);
}

/* workflow visual inside wide card */
.feat-workflow-visual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.feat-workflow-visual::-webkit-scrollbar { display: none; }
.wf-state {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.wf-state-draft  { background: oklch(0.93 0.02 238); color: oklch(0.44 0.01 238); }
.wf-state-review { background: oklch(0.94 0.07 55);  color: oklch(0.42 0.10 55); }
.wf-state-live   { background: oklch(0.92 0.08 145); color: oklch(0.30 0.10 145); }
.wf-arrow {
  color: var(--ink-faint);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.feat-code-preview {
  margin-top: auto;
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  overflow: hidden;
}

/* ── SDK Section ── */
.sdk-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.sdk-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.753 0.182 214 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.753 0.182 214 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.sdk-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}
.sdk-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.sdk-copy .t-section { color: var(--ink-dark); }
.sdk-copy .t-subhead { color: var(--ink-muted-dark); }
.sdk-features { display: flex; flex-direction: column; gap: 0.75rem; }
.sdk-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-muted-dark);
}
.sdk-feature-row svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 0.2rem; }
.sdk-code-wrap {
  position: relative;
}
.sdk-code-block {
  background: oklch(0.105 0.020 244);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px oklch(0 0 0 / 0.4);
}
.sdk-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: oklch(0.130 0.022 244);
  border-bottom: 1px solid var(--border-dark);
}
.sdk-code-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted-dark);
}
.sdk-code-lang {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-dim);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.sdk-code-content {
  padding: 1.375rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-x: auto;
  tab-size: 2;
}
/* Syntax tokens */
.tok-comment { color: oklch(0.50 0.01 238); }
.tok-keyword { color: oklch(0.72 0.16 285); }
.tok-string  { color: oklch(0.74 0.14 155); }
.tok-fn      { color: oklch(0.75 0.15 220); }
.tok-type    { color: oklch(0.80 0.12 55);  }
.tok-var     { color: oklch(0.88 0.06 238); }
.tok-op      { color: oklch(0.65 0.01 238); }
.tok-prop    { color: oklch(0.70 0.12 220); }
.tok-num     { color: oklch(0.74 0.14 25);  }

/* ── Architecture ── */
.arch-section { background: var(--surface); }
.arch-header { text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.arch-header .t-section { color: var(--ink); }
.arch-header .t-subhead { color: var(--ink-muted); max-width: 52ch; margin-inline: auto; margin-top: 1rem; }
.arch-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding-block: 1rem;
}
.arch-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
}
.arch-layer-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.arch-nodes { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.arch-node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}
.arch-node-primary {
  border-color: oklch(0.753 0.182 214 / 0.5);
  background: var(--primary-dim);
  color: var(--ink);
  font-weight: 600;
}
.arch-arrow {
  display: flex;
  align-items: center;
  padding-inline: 0.75rem;
  padding-top: 2rem;
  color: var(--ink-faint);
}
.arch-arrow svg { width: 28px; height: 28px; }

/* ── Enterprise ── */
.enterprise-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.enterprise-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 15% 60%,
    oklch(0.753 0.182 214 / 0.09) 0%,
    transparent 60%);
  pointer-events: none;
}
.enterprise-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.enterprise-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.enterprise-copy .t-section { color: var(--ink-dark); }
.enterprise-copy .t-subhead { color: var(--ink-muted-dark); }
.enterprise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.enterprise-item {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 180ms;
}
.enterprise-item:hover { border-color: oklch(0.753 0.182 214 / 0.4); }
.enterprise-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-dark);
}
.enterprise-item-body {
  font-size: 0.8125rem;
  color: var(--ink-muted-dark);
  line-height: 1.55;
}

/* ── Final CTA ── */
.cta-section {
  background: var(--bg-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%,
      oklch(0.753 0.182 214 / 0.16) 0%,
      transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.cta-inner .t-section { color: var(--ink-dark); max-width: 22ch; margin-inline: auto; }
.cta-inner .t-subhead { color: var(--ink-muted-dark); max-width: 48ch; margin-inline: auto; }
.cta-actions { display: flex; align-items: center; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-built-on {
  font-size: 0.8125rem;
  color: var(--ink-faint-dark);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ── Footer ── */
.footer {
  background: oklch(0.108 0.020 244);
  border-top: 1px solid var(--border-dark);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-dark);
  letter-spacing: -0.02em;
}
.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--ink-faint-dark);
  line-height: 1.6;
  max-width: 28ch;
}
.footer-col { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted-dark);
  margin-bottom: 0.125rem;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--ink-faint-dark);
  transition: color 120ms;
}
.footer-col a:hover { color: var(--ink-dark); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--ink-faint-dark);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: 0.8125rem;
  color: var(--ink-faint-dark);
  transition: color 120ms;
}
.footer-legal a:hover { color: var(--ink-muted-dark); }

/* ── Scroll-reveal base states ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out-expo),
              transform 0.65s var(--ease-out-expo);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Hero entrance (CSS-only, no opacity gating during delay) ── */
@keyframes hero-item-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero-tag      { animation: hero-item-enter 0.6s var(--ease-out-expo) 0.05s both; }
.hero-headline { animation: hero-item-enter 0.7s var(--ease-out-expo) 0.15s both; }
.hero-subhead  { animation: hero-item-enter 0.6s var(--ease-out-expo) 0.28s both; }
.hero-actions  { animation: hero-item-enter 0.6s var(--ease-out-expo) 0.38s both; }
.hero-stack    { animation: hero-item-enter 0.6s var(--ease-out-expo) 0.48s both; }

/* ── Keyframes ── */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
@keyframes hero-float {
  0%, 100% { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  50%       { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(-8px); }
}
.mockup-window { animation: hero-float 6s ease-in-out infinite; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .feat-card--wide  { grid-column: span 12; }
  .feat-card--med   { grid-column: span 6; }
  .feat-card--third { grid-column: span 6; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .sdk-inner { grid-template-columns: 1fr; }
  .enterprise-inner { grid-template-columns: 1fr; }
  .feat-card--med   { grid-column: span 12; }
  .feat-card--third { grid-column: span 12; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .arch-diagram { flex-direction: column; align-items: center; }
  .arch-arrow { transform: rotate(90deg); }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .enterprise-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-delay-1, .reveal-delay-2,
  .reveal-delay-3, .reveal-delay-4, .reveal-delay-5 {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track { animation: none; }
  .hero-tag-dot  { animation: none; }
  .mockup-window { animation: none; }
  .mockup-row    { opacity: 1; transform: none; transition: none; }
  .hero-tag, .hero-headline, .hero-subhead,
  .hero-actions, .hero-stack { animation: none; }
}
