/* ==========================================================================
   Eleftheria — marketing site
   Tokens mirror frontend/src/index.css so the site and app read as one product.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root,
[data-theme='light'] {
  --bg: #f1f1f1;
  --surface: #ffffff;
  --surface-muted: #f3f4f6;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --chat: #111827;
  --code: #059669;
  --code-hover: #047857;
  --design: #ea580c;
  --design-hover: #c2410c;
  --translate: #38bdf8;
  --translate-hover: #0ea5e9;

  --accent: var(--chat);
  --accent-contrast: #ffffff;

  --grid-line: rgba(17, 24, 39, 0.045);
  --glow-strength: 12%;
  --shadow-sm: 0 1px 3px color-mix(in srgb, var(--text) 8%, transparent);
  --shadow-md: 0 4px 20px color-mix(in srgb, var(--text) 8%, transparent);
  --shadow-lg: 0 24px 60px color-mix(in srgb, var(--text) 12%, transparent);

  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-pill: 9999px;

  --serif: Georgia, 'Times New Roman', ui-serif, serif;
  --sans: 'Montserrat', system-ui, -apple-system, sans-serif;

  --shell: 76rem;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme='dark'] {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-muted: #282828;
  --border: #3d3d3d;
  --text: #f0f0f0;
  --text-muted: #a8a8a8;
  --text-faint: #7a7a7a;

  --chat: #f0f0f0;
  --code: #34d399;
  --code-hover: #6ee7b7;
  --design: #fb923c;
  --design-hover: #fdba74;
  --translate: #38bdf8;
  --translate-hover: #7dd3fc;

  --accent-contrast: #121212;
  --grid-line: rgba(240, 240, 240, 0.05);
  --glow-strength: 18%;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ── Typography primitives ──────────────────────────────────────────────── */

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.02;
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.62;
  color: var(--text-muted);
  font-weight: 400;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9rem);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  margin-bottom: 1.125rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ── Icons ──────────────────────────────────────────────────────────────── */

.ico {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    opacity 0.18s var(--ease);
}

.btn .ico {
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 24%, transparent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 32%, transparent);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--text) 32%, var(--border));
  box-shadow: var(--shadow-sm);
}

.btn-ghost:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1.0625rem;
  font-size: 0.8125rem;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.nav[data-stuck='true'] {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: auto;
  flex: none;
}

.brand-mark {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.4375rem;
  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition:
    color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 28%, var(--border));
  transform: translateY(-1px);
}

/* Language switcher */

.lang {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.125rem;
  padding-inline: 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.lang-btn:hover,
.lang[data-open='true'] .lang-btn {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 28%, var(--border));
}

.lang-btn .ico {
  font-size: 0.9375rem;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 9.5rem;
  padding: 0.3125rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease),
    visibility 0.18s;
}

.lang[data-open='true'] .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.lang-opt:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.lang-opt[aria-selected='true'] {
  color: var(--text);
  font-weight: 600;
}

.lang-opt[aria-selected='true']::after {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.nav-burger {
  display: none;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  /* `safe` keeps an over-tall headline (long translations) from overflowing
     upward under the fixed nav; browsers without it fall back to plain center. */
  align-items: center;
  align-items: safe center;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

/* Fine grid */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 42%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 42%, #000 35%, transparent 78%);
}

/* Film grain */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.028;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Mesh gradient blobs — one per product accent */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

[data-theme='dark'] .blob {
  opacity: 0.34;
}

.blob-1 {
  width: 46vw;
  height: 46vw;
  min-width: 380px;
  min-height: 380px;
  top: -14%;
  left: -8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--code) 42%, transparent), transparent 68%);
  animation: drift-a 26s var(--ease) infinite alternate;
}

.blob-2 {
  width: 42vw;
  height: 42vw;
  min-width: 340px;
  min-height: 340px;
  top: 8%;
  right: -10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--design) 38%, transparent), transparent 68%);
  animation: drift-b 32s var(--ease) infinite alternate;
}

.blob-3 {
  width: 38vw;
  height: 38vw;
  min-width: 300px;
  min-height: 300px;
  bottom: -18%;
  left: 32%;
  background: radial-gradient(circle, color-mix(in srgb, var(--text) 14%, transparent), transparent 66%);
  animation: drift-c 38s var(--ease) infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(14%, 18%, 0) scale(1.16);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-16%, 12%, 0) scale(1.22);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(10%, -16%, 0) scale(1.1);
  }
}

.hero-inner {
  position: relative;
  width: 100%;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 52rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.9375rem 0.4375rem 0.5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.75rem;
}

.hero-eyebrow span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pulse-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

.pulse-dot::before,
.pulse-dot::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--code);
}

.pulse-dot::before {
  width: 0.4375rem;
  height: 0.4375rem;
}

.pulse-dot::after {
  width: 100%;
  height: 100%;
  opacity: 0.34;
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.4);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 7.6vw, 6rem);
  margin-bottom: 1.75rem;
  overflow-wrap: break-word;
}

/* Line-by-line mask reveal.
   The mask needs slack beyond the 1.02em line box: Cyrillic and Greek
   descenders in Georgia hang deeper than Latin, and a trailing italic <em>
   overhangs to the right. Padding widens the clip box, the negative margin
   cancels it so layout metrics are unchanged. */
.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  padding-right: 0.1em;
  margin-right: -0.1em;
}

.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}

.is-in .reveal-line > span,
.no-motion .reveal-line > span {
  transform: translateY(0);
}

.hero-lede {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-note .ico {
  font-size: 0.9375rem;
  color: var(--code);
}

/* ── Browser-chrome screenshot frame ────────────────────────────────────── */

.frame {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.frame-dots {
  display: flex;
  gap: 0.375rem;
}

.frame-dots i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--border);
}

.frame-url {
  flex: 1;
  max-width: 18rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.6875rem;
  color: var(--text-faint);
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Placeholder shown until a real screenshot is dropped in assets/ */
.slot {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.625rem;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--text) 3.5%, transparent) 11px,
      color-mix(in srgb, var(--text) 3.5%, transparent) 22px
    ),
    var(--surface-muted);
  color: var(--text-faint);
  text-align: center;
  padding: 2rem;
}

.slot .ico {
  font-size: 1.75rem;
  stroke-width: 1.2;
}

.slot-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slot-meta {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual {
  perspective: 1800px;
}

.hero-visual .frame {
  transform: rotateX(var(--rx, 0deg)) translateY(var(--ty, 0px));
  transition: transform 0.4s var(--ease);
}

/* ── Stat bar ───────────────────────────────────────────────────────────── */

.stats {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

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

.stat {
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  text-align: center;
  border-left: 1px solid var(--border);
}

.stat:first-child {
  border-left: 0;
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.625rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Marquee ────────────────────────────────────────────────────────────── */

.marquee {
  position: relative;
  padding-block: 1.75rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: slide 46s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.marquee-row {
  display: flex;
  align-items: center;
  flex: none;
}

.chip-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 1.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.chip-tech::after {
  content: '';
  width: 0.1875rem;
  height: 0.1875rem;
  border-radius: 50%;
  background: var(--border);
  margin-left: 1.375rem;
}

/* ── Hubs ───────────────────────────────────────────────────────────────── */

.hubs {
  transition: background-color 0.5s var(--ease);
}

.hub-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.3125rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  width: max-content;
  max-width: 100%;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  overflow-x: auto;
  scrollbar-width: none;
}

.hub-tabs::-webkit-scrollbar {
  display: none;
}

.hub-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition:
    color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.hub-tab .ico {
  font-size: 1rem;
}

.hub-tab:hover {
  color: var(--text);
}

.hub-tab[aria-selected='true'] {
  color: var(--accent-contrast);
  background: var(--accent);
}

.hub-panels {
  position: relative;
}

.hub-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.hub-panel[hidden] {
  display: none;
}

.hub-panel.is-swap .hub-copy,
.hub-panel.is-swap .hub-visual {
  animation: swap-in 0.5s var(--ease) both;
}

.hub-panel.is-swap .hub-visual {
  animation-delay: 0.06s;
}

@keyframes swap-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hub-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 55%, transparent);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  transition: -webkit-text-stroke-color 0.4s var(--ease);
}

.hub-title {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hub-lede {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.hub-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cap {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.4375rem 0.8125rem;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  transition:
    border-color 0.4s var(--ease),
    background-color 0.4s var(--ease),
    transform 0.18s var(--ease);
}

.cap:hover {
  transform: translateY(-1px);
}

.cap .ico {
  font-size: 0.8125rem;
  color: var(--accent);
}

.hub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.hub-link .ico {
  transition: transform 0.25s var(--ease);
}

.hub-link:hover .ico {
  transform: translateX(4px);
}

.hub-visual .frame {
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent),
    0 30px 90px color-mix(in srgb, var(--accent) var(--glow-strength), transparent);
  transition: box-shadow 0.5s var(--ease);
}

.hub-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.hub-more-card {
  padding: 1.25rem 1.375rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.hub-more-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  box-shadow: var(--shadow-sm);
}

.hub-more-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.4375rem;
  letter-spacing: -0.01em;
}

.hub-more-card p {
  font-size: 0.8125rem;
  line-height: 1.58;
  color: var(--text-muted);
}

/* ── Infrastructure diagram ─────────────────────────────────────────────── */

.infra {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.infra-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.infra-points {
  display: grid;
  gap: 1.375rem;
  margin-top: 2rem;
}

.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.875rem;
  align-items: start;
}

.point-ico {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--code) 11%, transparent);
  color: var(--code);
  font-size: 1.0625rem;
  flex: none;
}

.point h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.1875rem;
}

.point p {
  font-size: 0.8438rem;
  color: var(--text-muted);
  line-height: 1.58;
}

.diagram {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--r-xl);
  background: var(--bg);
  border: 1px solid var(--border);
}

.diagram svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dg-boundary {
  fill: color-mix(in srgb, var(--code) 4%, transparent);
  stroke: color-mix(in srgb, var(--code) 42%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 7 5;
  animation: march 3s linear infinite;
}

@keyframes march {
  to {
    stroke-dashoffset: -24;
  }
}

.dg-node {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.25;
}

.dg-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--text);
  text-anchor: middle;
  dominant-baseline: middle;
}

.dg-sub {
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 500;
  fill: var(--text-faint);
  text-anchor: middle;
  dominant-baseline: middle;
}

.dg-cap {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--code);
  text-anchor: middle;
}

.dg-link {
  stroke: var(--border);
  stroke-width: 1.5;
  fill: none;
}

.dg-flow {
  stroke: var(--code);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 5 90;
  animation: flow 2.6s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -95;
  }
}

.dg-cut {
  stroke: var(--text-faint);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  fill: none;
  opacity: 0.55;
}

.dg-x {
  stroke: var(--design);
  stroke-width: 2;
  stroke-linecap: round;
}

.dg-out {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.25;
  stroke-dasharray: 4 4;
}

.dg-out-label {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  fill: var(--text-faint);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* ── Models & API ───────────────────────────────────────────────────────── */

.models {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.models-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.models-cell {
  padding: 1.375rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.models-cell:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--code) 32%, var(--border));
}

.models-cell h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.4375rem;
}

.models-cell p {
  font-size: 0.8125rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.models-cell .cell-ico {
  background: color-mix(in srgb, var(--code) 9%, transparent);
  color: var(--code);
  border-color: color-mix(in srgb, var(--code) 22%, var(--border));
}

.models-visual .frame {
  box-shadow: var(--shadow-lg);
}

/* ── Bento grid ─────────────────────────────────────────────────────────── */

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

.cell {
  position: relative;
  grid-column: span 2;
  padding: 1.625rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

/* Pointer-tracking spotlight */
.cell::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 9%, transparent),
    transparent 68%
  );
  transition: opacity 0.3s var(--ease);
}

.cell:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  box-shadow: var(--shadow-md);
}

.cell:hover::before {
  opacity: 1;
}

.cell-wide {
  grid-column: span 3;
}

.cell-ico {
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--accent);
  font-size: 1.125rem;
  margin-bottom: 1.125rem;
  transition:
    color 0.3s var(--ease),
    border-color 0.25s var(--ease);
}

.cell:hover .cell-ico {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
}

.cell h3 {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}

.cell p {
  position: relative;
  font-size: 0.8438rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Comparison ─────────────────────────────────────────────────────────── */

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.cmp-col {
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
}

.cmp-col--them {
  background: var(--surface-muted);
}

.cmp-col--us {
  position: relative;
}

.cmp-col--us::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--code) 6%, transparent),
    transparent 55%
  );
}

.cmp-head {
  position: relative;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cmp-kicker {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.cmp-col--us .cmp-kicker {
  color: var(--code);
}

.cmp-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.cmp-list {
  position: relative;
  display: grid;
  gap: 1.125rem;
}

.cmp-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.55;
}

.cmp-item .ico {
  font-size: 1.0625rem;
  margin-top: 0.09375rem;
}

.cmp-col--them .cmp-item {
  color: var(--text-muted);
}

.cmp-col--them .cmp-item .ico {
  color: var(--text-faint);
}

.cmp-col--us .cmp-item .ico {
  color: var(--code);
}

.cmp-split {
  display: grid;
  place-items: center;
  width: 1px;
  background: var(--border);
  position: relative;
}

.cmp-vs {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--serif);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 0.625rem;
  max-width: 52rem;
}

.qa {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.qa[data-open='true'] {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}

.qa-q {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.125rem 1.375rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s var(--ease);
}

.qa-q:hover {
  color: var(--accent);
}

.qa-sign {
  position: relative;
  width: 0.875rem;
  height: 0.875rem;
  margin-left: auto;
  flex: none;
  color: var(--text-muted);
}

.qa-sign::before,
.qa-sign::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.qa-sign::after {
  transform: rotate(90deg);
}

.qa[data-open='true'] .qa-sign {
  color: var(--accent);
}

.qa[data-open='true'] .qa-sign::after {
  transform: rotate(0deg);
}

.qa-a {
  height: 0;
  overflow: hidden;
  transition: height 0.34s var(--ease);
}

.qa-a-inner {
  padding: 0 1.375rem 1.375rem;
  font-size: 0.875rem;
  line-height: 1.68;
  color: var(--text-muted);
  max-width: 44rem;
}

/* ── Pricing ────────────────────────────────────────────────────────────── */

.pricing-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 2rem;
  max-width: 48rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--code) 28%, var(--border));
  background: color-mix(in srgb, var(--code) 7%, var(--surface));
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.pricing-note .ico {
  flex: none;
  color: var(--code);
  font-size: 1.125rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.price-card:hover {
  border-color: color-mix(in srgb, var(--text) 22%, var(--border));
}

.price-card--featured {
  border-color: color-mix(in srgb, var(--text) 55%, var(--border));
  box-shadow: var(--shadow-md);
}

.price-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--accent-contrast);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card-top h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.price-num {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-per {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.price-meta {
  margin: -0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.price-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.625rem;
  flex: 1;
}

.price-feats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.price-feats .ico {
  margin-top: 0.1rem;
  color: var(--code);
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.pricing-foot {
  margin: 1.75rem auto 0;
  max-width: 44rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-faint);
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-note {
    align-items: flex-start;
  }
}

/* ── Closing CTA ────────────────────────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-block: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 20% 0%, color-mix(in srgb, var(--code) 12%, transparent), transparent 70%),
    radial-gradient(60% 90% at 80% 100%, color-mix(in srgb, var(--design) 12%, transparent), transparent 70%);
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.cta-title em {
  font-style: italic;
  color: var(--code);
}

.cta .lede {
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 22rem;
  line-height: 1.62;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.footer-col li + li {
  margin-top: 0.6875rem;
}

.footer-col a {
  font-size: 0.8438rem;
  color: var(--text-muted);
  transition: color 0.18s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ── Waitlist dialog ────────────────────────────────────────────────────── */

.wl {
  padding: 0;
  border: 0;
  background: none;
  max-width: min(30rem, calc(100vw - 2rem));
  width: 100%;
  color: var(--text);
}

.wl::backdrop {
  background: color-mix(in srgb, #000 52%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wl[open] {
  animation: wl-in 0.28s var(--ease) both;
}

@keyframes wl-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

.wl-card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.wl-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-pill);
  color: var(--text-faint);
  font-size: 1rem;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.wl-close:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.wl-badge {
  display: grid;
  place-items: center;
  width: 2.625rem;
  height: 2.625rem;
  margin-bottom: 1.125rem;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--code) 26%, var(--border));
  background: color-mix(in srgb, var(--code) 9%, transparent);
  color: var(--code);
  font-size: 1.25rem;
}

.wl-badge--ok {
  border-color: color-mix(in srgb, var(--code) 40%, var(--border));
  background: color-mix(in srgb, var(--code) 14%, transparent);
}

.wl-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  letter-spacing: -0.018em;
  line-height: 1.14;
  margin-bottom: 0.625rem;
}

.wl-lede {
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.wl-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.wl-input {
  width: 100%;
  padding: 0.8125rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.wl-input::placeholder {
  color: var(--text-faint);
}

.wl-input:focus {
  outline: none;
  border-color: var(--code);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--code) 16%, transparent);
}

.wl[data-state='error'] .wl-input {
  border-color: var(--design);
}

/* Honeypot — off-screen rather than display:none, which some bots skip */
.wl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wl-err {
  min-height: 1.125rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--design);
}

.wl-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.wl[data-state='sending'] .wl-submit {
  opacity: 0.65;
  pointer-events: none;
}

.wl-privacy {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-faint);
}

.wl-privacy .ico {
  font-size: 0.875rem;
  flex: none;
}

/* State machine: one branch visible at a time */
.wl-done {
  display: none;
}

.wl[data-state='done'] .wl-ask {
  display: none;
}

.wl[data-state='done'] .wl-done {
  display: block;
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ── Hero ICP note ──────────────────────────────────────────────────────── */

.hero-note--icp {
  margin-top: 0.5rem;
}

.hero-note--icp .ico {
  color: var(--accent);
}

/* ── Use-cases section ──────────────────────────────────────────────────── */

.use-cases .bento {
  grid-template-columns: repeat(3, 1fr);
}

.use-cases .cell,
.use-cases .cell-wide {
  grid-column: span 1;
}

/* ── Social proof section ───────────────────────────────────────────────── */

.social-proof {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.proof-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.proof-label {
  font-size: 0.875rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.proof-stat {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
}

.proof-quote {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 2rem 2.5rem;
  margin: 0;
}

.proof-quote p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1rem;
}

.proof-quote footer {
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-weight: 600;
}

/* ── Compliance band ────────────────────────────────────────────────────── */

.compliance-band {
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.compliance-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.compliance-badge {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 1.5rem 1.75rem;
  min-width: 9rem;
  text-align: center;
}

.compliance-badge .ico-lg {
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
}

.compliance-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.compliance-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.compliance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  grid-column: 2;
}

/* ── Footer freedom line ────────────────────────────────────────────────── */

.footer-freedom {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.footer-freedom em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hub-panel,
  .infra-layout,
  .models-layout {
    grid-template-columns: 1fr;
  }

  .use-cases .bento {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .compliance-inner {
    grid-template-columns: 1fr;
  }

  .compliance-badge {
    flex-direction: row;
    justify-content: center;
    padding: 1rem 1.25rem;
    min-width: auto;
    grid-row: span 1;
  }

  .compliance-tags {
    grid-column: 1;
  }

  .hub-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .models-visual {
    order: -1;
  }

  .infra-layout .diagram {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cell,
  .cell-wide {
    grid-column: span 3;
  }

  /* Two columns and an odd number of cells leaves the last one orphaned,
     so let it take the whole row. */
  .bento .cell:last-child {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

  .compare {
    grid-template-columns: 1fr;
  }

  .cmp-split {
    width: auto;
    height: 1px;
  }

  .cmp-vs {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (max-width: 640px) {
  .shell {
    padding-inline: 1.125rem;
  }

  .nav-inner {
    padding-inline: 1.125rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2.5rem);
  }

  .cell,
  .cell-wide {
    grid-column: span 6;
  }

  .hub-more,
  .models-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-cta .btn,
  .cta-actions .btn {
    flex: 1 1 100%;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-mark {
    width: 1.875rem;
    height: 1.875rem;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal],
  .reveal-line > span {
    opacity: 1 !important;
    transform: none !important;
  }
}
