/* ===================================================
   diag — Marketing Website Styles
   Dark, premium, 2026 design system
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ─── Design Tokens ──────────────────────────────── */
:root {
  --bg-0: #070a10;
  --bg-1: #0a0d14;
  --bg-2: #0f1419;
  --bg-3: #131820;
  --bg-4: #171923;
  --surface-1: #1a2133;
  --surface-2: #1e2840;
  --surface-3: #263040;
  --surface-4: #2d3748;

  --border: rgba(255, 255, 255, 0.055);
  --border-subtle: rgba(255, 255, 255, 0.035);
  --border-accent: rgba(99, 179, 237, 0.18);
  --border-bright: rgba(99, 179, 237, 0.4);

  --text-1: #f0f4f8;
  --text-2: #cbd5e0;
  --text-3: #a0aec0;
  --text-4: #718096;
  --text-5: #4a5568;

  --accent: #63b3ed;
  --accent-light: #90cdf4;
  --accent-dim: #2c5282;
  --cyan: #00e5ff;
  --teal: #81e6d9;
  --teal-dim: #2c7a7b;
  --purple: #b794f4;
  --green: #68d391;

  --grad-brand: linear-gradient(135deg, #0047ab 0%, #00b4d8 50%, #00ffff 100%);
  --grad-brand-sm: linear-gradient(135deg, #3b82f6, #06b6d4);
  --grad-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 71, 171, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 40%, rgba(0, 229, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(99, 179, 237, 0.1) 0%, transparent 60%);
  --grad-glow-blue: radial-gradient(ellipse at center, rgba(99, 179, 237, 0.15) 0%, transparent 70%);
  --grad-surface: linear-gradient(135deg, rgba(30, 40, 64, 0.7) 0%, rgba(22, 30, 50, 0.7) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(99, 179, 237, 0.2), 0 0 80px rgba(0, 229, 255, 0.1);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;

  --nav-h: 64px;
  --max-w: 1200px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ─── Base ────────────────────────────────────────── */
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-2);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── Layout ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

/* ─── Typography ─────────────────────────────────── */
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-subtle {
  background: linear-gradient(135deg, var(--text-1) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 12px;
  background: rgba(99, 179, 237, 0.08);
  border: 1px solid rgba(99, 179, 237, 0.2);
  border-radius: var(--radius-full);
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 71, 171, 0.4), 0 2px 8px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 71, 171, 0.5), 0 4px 16px rgba(0, 229, 255, 0.3);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-1);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.btn-ghost:hover {
  background: rgba(99, 179, 237, 0.08);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ─── Nav ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.nav-logo img {
  display: block;
  height: 50px;
  width: auto;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  background: rgba(99, 179, 237, 0.1);
  border: 1px solid var(--border-accent);
  transition: var(--transition);
}

.nav-login:hover {
  background: rgba(99, 179, 237, 0.18);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

/* ─── Hero ───────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}

/* Aurora orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orb-float 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 71, 171, 0.5) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, transparent 70%);
  top: 30%;
  right: -100px;
  animation-delay: -4s;
  animation-duration: 14s;
}

.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(129, 230, 217, 0.2) 0%, transparent 70%);
  bottom: 10%;
  left: -80px;
  animation-delay: -8s;
  animation-duration: 16s;
}

@keyframes orb-float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  33% {
    transform: translateY(-30px) scale(1.05);
  }

  66% {
    transform: translateY(20px) scale(0.97);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text-1);
  margin-bottom: 24px;
}

.hero-title .line-2 {
  display: block;
  margin-top: 4px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-3);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Graph */
.hero-graph-wrap {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-graph-frame {
  background: rgba(15, 20, 25, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
  overflow: hidden;
}

/* Gradient border glow on the frame */
.hero-graph-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.4), rgba(0, 229, 255, 0.2), rgba(99, 179, 237, 0.1), transparent);
  z-index: -1;
}

.hero-graph-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.topbar-dot-r {
  background: #ff5f57;
}

.topbar-dot-y {
  background: #febc2e;
}

.topbar-dot-g {
  background: #28c840;
}

.topbar-title {
  flex: 1;
  font-size: 12px;
  color: var(--text-4);
  text-align: center;
  font-weight: 500;
}

.hero-graph-canvas {
  width: 100%;
  height: 380px;
  position: relative;
  overflow: hidden;
  background: #0a0d14;
}

/* ─── Graph SVG nodes ─────────────────────────────── */
.graph-svg {
  width: 100%;
  height: 100%;
}

/* ─── Stats strip ────────────────────────────────── */
.stats-strip {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 13, 20, 0) 0%, rgba(15, 20, 25, 0.5) 100%);
}

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

.stat-item {
  text-align: center;
  padding: 24px 32px;
  position: relative;
}

.stat-item+.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-4);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─── Section headers ────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .label {
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-sub {
  font-size: 17px;
  color: var(--text-3);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Features Bento ─────────────────────────────── */
.features {
  padding: 120px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.bento-card {
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  animation: fade-up 0.6s ease both;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--mx, 50%) var(--my, 50%), rgba(99, 179, 237, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover {
  border-color: var(--border-accent);
}

.bento-card:hover::before {
  opacity: 1;
}

/* Bento spans */
.bento-span-5 {
  grid-column: span 5;
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-span-8 {
  grid-column: span 8;
}

.bento-span-6 {
  grid-column: span 6;
}

.bento-span-3 {
  grid-column: span 3;
}

.bento-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-blue {
  background: rgba(99, 179, 237, 0.12);
  color: var(--accent);
}

.icon-teal {
  background: rgba(129, 230, 217, 0.12);
  color: var(--teal);
}

.icon-purple {
  background: rgba(183, 148, 244, 0.12);
  color: var(--purple);
}

.icon-green {
  background: rgba(104, 211, 145, 0.12);
  color: var(--green);
}

.icon-cyan {
  background: rgba(0, 229, 255, 0.10);
  color: var(--cyan);
}

.icon-grad {
  background: var(--grad-brand);
  color: #fff;
}

.bento-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.bento-card-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
}

/* Special card for the big feature */
.bento-card-featured {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.12) 0%, rgba(10, 13, 20, 0.7) 60%);
}

/* Mini graph inside bento card */
.mini-graph {
  margin-top: 24px;
  height: 140px;
  position: relative;
  border-radius: var(--radius-md);
  background: rgba(7, 10, 16, 0.5);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-graph svg {
  width: 100%;
  height: 100%;
}

/* Node type pills */
.node-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.node-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.pill-teal {
  background: rgba(129, 230, 217, 0.1);
  color: var(--teal);
  border-color: rgba(129, 230, 217, 0.2);
}

.pill-blue {
  background: rgba(99, 179, 237, 0.1);
  color: var(--accent);
  border-color: rgba(99, 179, 237, 0.2);
}

.pill-purple {
  background: rgba(183, 148, 244, 0.1);
  color: var(--purple);
  border-color: rgba(183, 148, 244, 0.2);
}

.pill-orange {
  background: rgba(251, 182, 95, 0.1);
  color: #fbb65f;
  border-color: rgba(251, 182, 95, 0.2);
}

.pill-cyan {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.15);
}

.pill-yellow {
  background: rgba(246, 224, 94, 0.1);
  color: #f6e05e;
  border-color: rgba(246, 224, 94, 0.2);
}

.pill-green {
  background: rgba(104, 211, 145, 0.1);
  color: var(--green);
  border-color: rgba(104, 211, 145, 0.2);
}

.pill-pink {
  background: rgba(251, 182, 206, 0.1);
  color: #fbb6ce;
  border-color: rgba(251, 182, 206, 0.2);
}

.pill-gray {
  background: rgba(160, 174, 192, 0.1);
  color: var(--text-3);
  border-color: rgba(160, 174, 192, 0.2);
}

/* ─── How it works ───────────────────────────────── */
.how-it-works {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(10, 13, 20, 0.5), transparent);
}

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

.step-card {
  padding: 40px 32px;
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  animation: fade-up 0.6s ease both;
}

.step-card::after {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(99, 179, 237, 0.07);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
}

/* ─── CTA Section ────────────────────────────────── */
.cta-section {
  padding: 120px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.18) 0%, rgba(0, 229, 255, 0.06) 50%, rgba(22, 30, 50, 0.9) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(0, 71, 171, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: 20px;
  line-height: 1.05;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-3);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Pricing ─────────────────────────────────────── */
.pricing-section {
  padding: 120px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--border-bright);
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.18) 0%, rgba(22, 30, 50, 0.9) 100%);
  box-shadow: 0 0 0 1px rgba(99, 179, 237, 0.15) inset, var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--grad-brand);
  color: #fff;
}

.pricing-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.pricing-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 6px;
}

.price-amount {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-1);
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-4);
  margin-bottom: 8px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(104, 211, 145, 0.15);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  margin-top: 1px;
}

.feature-x {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  margin-top: 1px;
}

.pricing-cta {
  width: 100%;
  text-align: center;
}

/* Enterprise card */
.pricing-enterprise {
  grid-column: span 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 32px 40px;
  background: linear-gradient(135deg, rgba(7, 10, 16, 0.8), rgba(20, 28, 44, 0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-top: 20px;
}

.enterprise-text .pricing-tier {
  margin-bottom: 6px;
}

.enterprise-text .pricing-name {
  font-size: 20px;
  margin-bottom: 4px;
}

.enterprise-text .pricing-desc {
  margin-bottom: 0;
}

.enterprise-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.enterprise-pill {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

/* ─── Legal pages ────────────────────────────────── */
.legal-hero {
  padding: calc(var(--nav-h) + 80px) 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.legal-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.legal-date {
  font-size: 14px;
  color: var(--text-4);
}

.legal-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-toc {
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.legal-toc h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 12px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
}

.legal-toc li {
  font-size: 14px;
}

.legal-toc a {
  color: var(--accent);
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

/* ─── Footer ─────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  background: var(--bg-1);
}

.footer-top {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .nav-logo {
  margin-bottom: 14px;
  justify-content: flex-start;
}

.footer-brand .nav-logo img {
  height: 24px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-4);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-3);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

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

.footer-copyright {
  font-size: 13px;
  color: var(--text-5);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-5);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--text-3);
}

/* ─── Animations ─────────────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

@keyframes pulse-ring {

  0%,
  100% {
    opacity: 0.6;
    r: 14;
  }

  50% {
    opacity: 1;
    r: 16;
  }
}

@keyframes node-float-1 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes node-float-2 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes node-float-3 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ─── Pricing toggle ─────────────────────────────── */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.toggle-label {
  font-size: 14px;
  color: var(--text-3);
}

.toggle-label.active {
  color: var(--text-1);
  font-weight: 600;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--surface-3);
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.toggle-switch.on {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-3);
  transition: var(--transition);
}

.toggle-switch.on::after {
  transform: translateX(20px);
  background: var(--accent-light);
}

.save-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(104, 211, 145, 0.12);
  color: var(--green);
  border: 1px solid rgba(104, 211, 145, 0.25);
  border-radius: var(--radius-full);
}

/* ─── FAQ ────────────────────────────────────────── */
.faq-section {
  padding: 80px 0 120px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

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

.faq-q svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-q svg {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ─── Zoom Feature Section ───────────────────────── */
.zoom-feature-section {
  padding: 100px 0 120px;
}

.zoom-frame {
  background: rgba(15, 20, 25, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
  overflow: hidden;
}

.zoom-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.3), rgba(0, 229, 255, 0.12), transparent 55%);
  z-index: -1;
}

.zoom-split-canvas {
  display: flex;
  height: 330px;
  background: #070a10;
  position: relative;
  overflow: hidden;
}

.zoom-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.zoom-panel-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Context chip labels */
.zoom-context-chip {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid;
  pointer-events: none;
}

.chip-system {
  color: var(--teal);
  background: rgba(129, 230, 217, 0.08);
  border-color: rgba(129, 230, 217, 0.22);
}

.chip-container {
  color: var(--purple);
  background: rgba(183, 148, 244, 0.08);
  border-color: rgba(183, 148, 244, 0.22);
}

/* ── Zoom connector (centre divider) ── */
.zoom-connector {
  width: 96px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  background: linear-gradient(90deg,
      rgba(7, 10, 16, 0.55),
      rgba(12, 18, 28, 0.92) 40%,
      rgba(12, 18, 28, 0.92) 60%,
      rgba(7, 10, 16, 0.55));
  border-left: 1px solid rgba(99, 179, 237, 0.1);
  border-right: 1px solid rgba(99, 179, 237, 0.1);
  z-index: 5;
  overflow: hidden;
}

/* Flowing particle lines */
.zoom-flow-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
  pointer-events: none;
}

.zoom-flow-line {
  height: 1px;
  width: 300%;
  margin-left: -100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(99, 179, 237, 0.0) 30%,
      rgba(99, 179, 237, 0.45) 50%,
      rgba(0, 229, 255, 0.3) 65%,
      transparent 100%);
  animation: zoom-flow-right 2.2s linear infinite;
}

.zoom-flow-line:nth-child(2) {
  animation-delay: -0.75s;
  opacity: 0.7;
}

.zoom-flow-line:nth-child(3) {
  animation-delay: -1.5s;
  opacity: 0.5;
}

@keyframes zoom-flow-right {
  from {
    transform: translateX(-33%);
  }

  to {
    transform: translateX(33%);
  }
}

.zoom-connector-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(99, 179, 237, 0.08);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 16px rgba(99, 179, 237, 0.12);
}

.zoom-connector-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.65;
  position: relative;
  z-index: 2;
}

/* ── Zoom levels navigation bar ── */
.zoom-levels-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 10, 16, 0.5);
  border-radius: 0 0 calc(var(--radius-xl) - 4px) calc(var(--radius-xl) - 4px);
  flex-wrap: wrap;
}

.zoom-level-item {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-5);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: var(--transition);
}

.zoom-level-item.active {
  color: var(--accent);
  background: rgba(99, 179, 237, 0.08);
  border-color: rgba(99, 179, 237, 0.2);
}

.zoom-level-item.current {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.35), rgba(0, 229, 255, 0.15));
  border-color: var(--border-accent);
  box-shadow: 0 0 12px rgba(99, 179, 237, 0.15);
}

.zoom-level-arrow {
  color: var(--text-5);
  font-size: 12px;
  opacity: 0.6;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-span-5,
  .bento-span-7,
  .bento-span-4,
  .bento-span-8,
  .bento-span-6,
  .bento-span-3 {
    grid-column: span 2;
  }

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

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

  .pricing-enterprise {
    flex-direction: column;
    gap: 24px;
  }

  .pricing-enterprise .enterprise-pills {
    justify-content: flex-start;
  }

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

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

  .footer-brand {
    grid-column: span 2;
  }
}

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

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

  .bento-span-5,
  .bento-span-7,
  .bento-span-4,
  .bento-span-8,
  .bento-span-6,
  .bento-span-3 {
    grid-column: span 1;
  }

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

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

  .footer-brand {
    grid-column: 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-box {
    padding: 48px 24px;
  }
}