/* ============================================
   contigos.ai — Hebrew RTL landing
   Tech-dark aesthetic, purple accent
   ============================================ */

:root {
  /* Backgrounds */
  --bg-0: oklch(0.14 0.012 270);
  --bg-1: oklch(0.17 0.014 270);
  --bg-2: oklch(0.21 0.016 270);
  --bg-elev: oklch(0.23 0.018 270);

  /* Text */
  --fg-0: oklch(0.99 0.005 270);
  --fg-1: oklch(0.93 0.008 270);
  --fg-2: oklch(0.80 0.012 270);
  --fg-3: oklch(0.62 0.014 270);

  /* Borders */
  --line-1: oklch(0.30 0.014 270 / 0.7);
  --line-2: oklch(0.40 0.018 270 / 0.5);

  /* Accent — purple */
  --accent: oklch(0.68 0.22 295);
  --accent-soft: oklch(0.55 0.22 295);
  --accent-deep: oklch(0.42 0.20 295);
  --accent-glow: oklch(0.68 0.22 295 / 0.45);

  /* Status */
  --good: oklch(0.78 0.18 155);
  --warn: oklch(0.80 0.16 75);

  /* Typography */
  --font-sans: 'Heebo', 'Assistant', -apple-system, system-ui, sans-serif;
  --font-display: 'Heebo', 'Assistant', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Container */
  --container: 1240px;
}

[data-typo="serif"] {
  --font-sans: 'Frank Ruhl Libre', 'Heebo', serif;
  --font-display: 'Frank Ruhl Libre', 'Heebo', serif;
}

[data-typo="grotesk"] {
  --font-sans: 'Assistant', 'Heebo', sans-serif;
  --font-display: 'Assistant', 'Heebo', sans-serif;
}

[data-theme="light"] {
  --bg-0: oklch(0.985 0.005 270);
  --bg-1: oklch(0.97 0.006 270);
  --bg-2: oklch(0.94 0.008 270);
  --bg-elev: oklch(1 0 0);
  --fg-0: oklch(0.18 0.014 270);
  --fg-1: oklch(0.30 0.014 270);
  --fg-2: oklch(0.45 0.014 270);
  --fg-3: oklch(0.60 0.014 270);
  --line-1: oklch(0.85 0.008 270 / 0.9);
  --line-2: oklch(0.78 0.010 270 / 0.7);
}

[data-bold-body="true"] p,
[data-bold-body="true"] li,
[data-bold-body="true"] .desc,
[data-bold-body="true"] .hero-sub,
[data-bold-body="true"] .stat-lbl,
[data-bold-body="true"] .faq-a,
[data-bold-body="true"] .msg-bubble,
[data-bold-body="true"] .compare-cell,
[data-bold-body="true"] .agent-mini-stat .lbl,
[data-bold-body="true"] .step p,
[data-bold-body="true"] .footer-inner,
[data-bold-body="true"] .form-meta,
[data-bold-body="true"] .nav-links a,
[data-bold-body="true"] .footer-links a,
[data-bold-body="true"] body {
  font-weight: 600;
}

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

body {
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  direction: rtl;
  overflow-x: hidden;
}

/* Background ambient glow layer */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--bg-ambient,
    radial-gradient(ellipse 800px 600px at 80% -10%, oklch(0.55 0.20 295 / 0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 30%, oklch(0.50 0.18 280 / 0.12), transparent 60%),
    radial-gradient(ellipse 900px 600px at 50% 110%, oklch(0.55 0.22 305 / 0.14), transparent 60%));
}

[data-theme="light"] .bg-ambient {
  background:
    radial-gradient(ellipse 800px 600px at 80% -10%, oklch(0.85 0.10 295 / 0.40), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 30%, oklch(0.85 0.08 280 / 0.30), transparent 60%);
}

/* Subtle grid background */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, oklch(0.40 0.014 270 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.40 0.014 270 / 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(to right, oklch(0.30 0.014 270 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.30 0.014 270 / 0.06) 1px, transparent 1px);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg-0);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
}

h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
}

p { margin: 0; color: var(--fg-2); }

/* Mono labels */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  background: oklch(0.20 0.014 270 / 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-1);
}

[data-theme="light"] .eyebrow {
  background: oklch(1 0 0 / 0.7);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: white;
  box-shadow:
    0 0 0 1px oklch(0.55 0.22 295 / 0.4),
    0 8px 24px oklch(0.55 0.22 295 / 0.35),
    inset 0 1px 0 oklch(1 0 0 / 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px oklch(0.55 0.22 295 / 0.5),
    0 12px 32px oklch(0.55 0.22 295 / 0.5),
    inset 0 1px 0 oklch(1 0 0 / 0.25);
}

.btn-ghost {
  background: oklch(0.25 0.014 270 / 0.5);
  color: var(--fg-0);
  border: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .btn-ghost {
  background: oklch(1 0 0 / 0.6);
}

.btn-ghost:hover {
  background: oklch(0.30 0.014 270 / 0.7);
  border-color: var(--line-2);
}

[data-theme="light"] .btn-ghost:hover {
  background: oklch(1 0 0 / 0.9);
}

.btn-arrow {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  transform: rotate(180deg);
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: oklch(0.14 0.012 270 / 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line-1);
}

[data-theme="light"] .nav {
  background: oklch(0.985 0.005 270 / 0.7);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg-0);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 0 16px var(--accent-glow), inset 0 1px 0 oklch(1 0 0 / 0.25);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: var(--bg-0);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

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

.nav-links a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}

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

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-cta .btn { padding: 10px 18px; font-size: 14px; }

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

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-grid-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid-split { grid-template-columns: 1fr; gap: 48px; }
}

.hero-headline-mark {
  background: linear-gradient(120deg, var(--accent) 0%, oklch(0.78 0.18 320) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-sub {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 540px;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Inline email capture */
.email-capture {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: oklch(0.18 0.014 270 / 0.6);
  border: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  max-width: 460px;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.04);
}

[data-theme="light"] .email-capture {
  background: oklch(1 0 0 / 0.7);
}

.email-capture input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--fg-0);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 18px;
  outline: none;
  direction: rtl;
}

.email-capture input::placeholder { color: var(--fg-3); }

.email-capture .btn {
  border-radius: 999px;
  padding: 12px 22px;
  flex-shrink: 0;
}

.email-capture-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.email-capture-meta span { display: inline-flex; align-items: center; gap: 6px; }

.hero-trust {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--fg-3);
}

.hero-trust .mono { color: var(--fg-3); }

.trust-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-2);
  font-size: 15px;
  opacity: 0.7;
}

/* Hero centered variant */
.hero-centered {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-centered .hero-sub { margin-inline: auto; }

.hero-centered .hero-cta { justify-content: center; }

.hero-three-up {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .hero-three-up { grid-template-columns: 1fr; }
}

/* ===== Hero demo (animated) ===== */
.hero-demo {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, oklch(0.21 0.018 270 / 0.7) 0%, oklch(0.18 0.014 270 / 0.7) 100%);
  border: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 20px;
  box-shadow:
    0 30px 80px oklch(0 0 0 / 0.4),
    0 0 0 1px oklch(0 0 0 / 0.4),
    inset 0 1px 0 oklch(1 0 0 / 0.05);
  overflow: hidden;
}

[data-theme="light"] .hero-demo {
  background: linear-gradient(180deg, oklch(1 0 0 / 0.85) 0%, oklch(0.97 0.005 270 / 0.85) 100%);
  box-shadow:
    0 30px 80px oklch(0.4 0.10 280 / 0.15),
    inset 0 1px 0 oklch(1 0 0 / 0.5);
}

.hero-demo::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, oklch(0.55 0.22 295 / 0.5) 0%, transparent 50%, oklch(0.55 0.22 295 / 0.3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-1);
  margin-bottom: 16px;
}

.demo-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: oklch(0.14 0.012 270 / 0.6);
  border: 1px solid var(--line-1);
  border-radius: 10px;
}

[data-theme="light"] .demo-tabs {
  background: oklch(0.95 0.008 270 / 0.6);
}

.demo-tab {
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  transition: all .2s;
  background: transparent;
  border: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-tab[data-active="true"] {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: white;
  box-shadow: 0 4px 12px oklch(0.55 0.22 295 / 0.4);
}

.demo-tab .agent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

.demo-tab[data-active="true"] .agent-dot {
  background: white;
  box-shadow: 0 0 8px white;
}

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

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
  animation: pulse 1.6s infinite;
}

/* Chat */
.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 380px;
  padding: 8px 4px;
}

.msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: msgIn .4s cubic-bezier(.25, .8, .35, 1) both;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  border: 1px solid var(--line-1);
  background: oklch(0.20 0.014 270 / 0.6);
  color: var(--fg-1);
}

[data-theme="light"] .msg-bubble {
  background: oklch(1 0 0 / 0.8);
  color: var(--fg-0);
}

.msg.user { margin-inline-start: auto; flex-direction: row-reverse; }

.msg.user .msg-bubble {
  background: oklch(0.24 0.014 270 / 0.5);
  border-color: var(--line-2);
}

.msg.agent .msg-bubble {
  background: linear-gradient(180deg, oklch(0.55 0.22 295 / 0.18) 0%, oklch(0.45 0.20 295 / 0.10) 100%);
  border-color: oklch(0.55 0.22 295 / 0.40);
  color: var(--fg-0);
  box-shadow: 0 0 28px oklch(0.55 0.22 295 / 0.10);
}

[data-theme="light"] .msg.agent .msg-bubble {
  background: linear-gradient(180deg, oklch(0.55 0.22 295 / 0.10) 0%, oklch(0.45 0.20 295 / 0.05) 100%);
  border-color: oklch(0.55 0.22 295 / 0.30);
  color: var(--fg-0);
}

.msg-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  margin-top: 5px;
}

.avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border: 1px solid oklch(0.55 0.22 295 / 0.5);
  box-shadow: 0 0 12px oklch(0.55 0.22 295 / 0.3);
}

.avatar.user {
  background: linear-gradient(135deg, oklch(0.40 0.018 270) 0%, oklch(0.30 0.014 270) 100%);
  color: var(--fg-1);
  border-color: var(--line-2);
  box-shadow: none;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 8px 4px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-2);
  animation: typing 1.2s infinite;
}

.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* Three agents grid in hero (centered variant) */
.agent-mini {
  position: relative;
  padding: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, oklch(0.21 0.018 270 / 0.6) 0%, oklch(0.18 0.014 270 / 0.6) 100%);
  border: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  text-align: right;
}

[data-theme="light"] .agent-mini {
  background: linear-gradient(180deg, oklch(1 0 0 / 0.85) 0%, oklch(0.97 0.005 270 / 0.85) 100%);
}

.agent-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.agent-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px var(--accent-glow), inset 0 1px 0 oklch(1 0 0 / 0.2);
}

.agent-mini-icon svg { width: 20px; height: 20px; color: white; }

.agent-mini h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--fg-0);
}

.agent-mini-stats {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-1);
}

.agent-mini-stat .num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-0);
  letter-spacing: -0.02em;
}

.agent-mini-stat .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== Section primitives ===== */
section { position: relative; z-index: 1; }

.section {
  padding: 40px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  margin-top: 16px;
}

.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--fg-2);
}

/* ===== Agents ===== */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

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

@media (max-width: 600px) {
  .agents-grid-4 { grid-template-columns: 1fr; }
}

.agent-card {
  position: relative;
  padding: 32px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, oklch(0.21 0.018 270 / 0.6) 0%, oklch(0.17 0.014 270 / 0.6) 100%);
  border: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}

[data-theme="light"] .agent-card {
  background: linear-gradient(180deg, oklch(1 0 0 / 0.85) 0%, oklch(0.97 0.005 270 / 0.85) 100%);
}

.agent-card:hover {
  transform: translateY(-3px);
  border-color: oklch(0.55 0.22 295 / 0.5);
}

.agent-card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

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

.agent-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.agent-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 oklch(1 0 0 / 0.2);
  position: relative;
  z-index: 1;
}

.agent-icon svg { width: 26px; height: 26px; color: white; }

.agent-card-head .meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-card h3 { color: var(--fg-0); }

.agent-card .tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.agent-card .desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-1);
}

.agent-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-0);
}

.agent-card li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}

.agent-card .footer-link {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--fg-2);
}

.agent-card .footer-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
}

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

.step {
  padding: 28px 24px;
  position: relative;
  border-right: 1px dashed var(--line-1);
}

.step:first-child { border-right: 0; }

@media (max-width: 1000px) {
  .step { border-right: 0; padding: 20px 0; }
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.step h3 {
  margin-top: 14px;
  font-size: 22px;
}

.step p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--fg-2);
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: oklch(0.55 0.22 295 / 0.15);
  border: 1px solid oklch(0.55 0.22 295 / 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.step-icon svg { width: 22px; height: 22px; }

/* ===== Integrations ===== */
.integrations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

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

.int-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

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

.int-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(180deg, oklch(0.21 0.018 270 / 0.6) 0%, oklch(0.17 0.014 270 / 0.6) 100%);
  border: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  position: relative;
  transition: all .2s;
}

.int-logo-wrap {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.int-logo-wrap svg { height: 36px; width: auto; max-width: 100%; }

.int-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: center;
}

[data-theme="light"] .int-tile {
  background: oklch(1 0 0 / 0.85);
}

.int-tile:hover {
  border-color: oklch(0.55 0.22 295 / 0.5);
  transform: translateY(-2px);
}

.int-tile .logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}

.int-tile .logo-mark {
  font-size: 22px;
  color: var(--accent);
}

/* ===== Comparison ===== */
.compare {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, oklch(0.19 0.014 270 / 0.6) 0%, oklch(0.16 0.012 270 / 0.6) 100%);
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .compare {
  background: oklch(1 0 0 / 0.7);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: 1px solid var(--line-1);
}

.compare-row:last-child { border-bottom: 0; }

.compare-cell {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-1);
}

@media (max-width: 700px) {
  .compare-cell { padding: 16px; font-size: 14px; }
}

.compare-cell:not(:first-child) {
  border-right: 1px solid var(--line-1);
  justify-content: center;
  text-align: center;
}

.compare-row.head .compare-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: oklch(0.18 0.014 270 / 0.6);
  font-weight: 600;
}

[data-theme="light"] .compare-row.head .compare-cell {
  background: oklch(0.94 0.008 270);
}

.compare-cell.contigos {
  color: var(--accent);
  font-weight: 600;
  background: oklch(0.55 0.22 295 / 0.06);
}

.compare-cell.contigos.head {
  color: var(--accent);
  background: oklch(0.55 0.22 295 / 0.10);
}

.compare-cell .row-label {
  font-weight: 600;
  color: var(--fg-0);
}

.icon-check, .icon-x {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.icon-check {
  background: oklch(0.55 0.22 295 / 0.15);
  color: var(--accent);
  border: 1px solid oklch(0.55 0.22 295 / 0.3);
}

.icon-x {
  background: oklch(0.40 0.014 270 / 0.4);
  color: var(--fg-3);
  border: 1px solid var(--line-1);
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.stat {
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, oklch(0.21 0.018 270 / 0.5) 0%, oklch(0.17 0.014 270 / 0.5) 100%);
  border: 1px solid var(--line-1);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .stat {
  background: oklch(1 0 0 / 0.75);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg-0);
  line-height: 1;
  background: linear-gradient(180deg, var(--fg-0) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-num .unit {
  font-size: 0.5em;
  vertical-align: 0.4em;
  margin-inline-start: 2px;
  -webkit-text-fill-color: var(--accent);
}

.stat-lbl {
  margin-top: 14px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}

/* ===== Testimonial ===== */
.testimonial-section {
  padding: 60px 0;
}

.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 56px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, oklch(0.15 0.020 270 / 0.8) 0%, oklch(0.12 0.016 270 / 0.8) 100%);
  border: 1px solid var(--line-1);
  position: relative;
}

[data-theme="light"] .testimonial-card {
  background: oklch(1 0 0 / 0.85);
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 20px;
  right: 40px;
}

.testimonial-text {
  font-size: 20px;
  line-height: 1.7;
  color: var(--fg-1);
  margin: 0;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
}

.testimonial-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--fg-0);
}

.testimonial-role {
  font-size: 14px;
  color: var(--fg-3);
  margin-top: 2px;
}

@media (max-width: 640px) {
  .testimonial-card {
    padding: 32px 24px;
  }
  .testimonial-text {
    font-size: 17px;
  }
  .testimonial-quote-mark {
    font-size: 80px;
    top: 10px;
    right: 20px;
  }
}

/* ===== Metrics Visualization ===== */
.metrics-section {
  padding: 80px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}

@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

.metric-card {
  padding: 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, oklch(0.15 0.020 270 / 0.8) 0%, oklch(0.12 0.016 270 / 0.8) 100%);
  border: 1px solid var(--line-1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="light"] .metric-card {
  background: oklch(1 0 0 / 0.85);
}

.metric-card-large {
  display: flex;
  flex-direction: column;
}

.metric-card-large .metric-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  .metric-card-large {
    grid-template-columns: 1fr;
  }
}

.metric-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: white;
}

.metric-icon-wrap.accent {
  background: linear-gradient(135deg, var(--accent) 0%, oklch(0.55 0.22 320) 100%);
}

.metric-icon-wrap.success {
  background: linear-gradient(135deg, var(--good) 0%, oklch(0.60 0.18 155) 100%);
}

.metric-icon-wrap.warning {
  background: linear-gradient(135deg, var(--warn) 0%, oklch(0.65 0.18 45) 100%);
}

.metric-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--fg-0) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.metric-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-2);
}

.metric-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-0);
}

.metric-detail {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}

.metric-compare {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-compare-old {
  font-size: 13px;
  color: var(--fg-3);
  text-decoration: line-through;
}

/* Bar visualization */
.metric-bar-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-bar-label {
  font-size: 12px;
  color: var(--fg-3);
}

.metric-bar {
  height: 8px;
  background: oklch(0.25 0.02 270 / 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: var(--fg-3);
  border-radius: 4px;
  transition: width 1s ease-out;
}

.metric-bar-fill.highlight {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
}

/* Ring visualization */
.metric-ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 8px 0;
}

.metric-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.metric-ring-bg {
  fill: none;
  stroke: oklch(0.25 0.02 270 / 0.5);
  stroke-width: 3;
}

.metric-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  animation: ring-fill 1.5s ease-out forwards;
}

@keyframes ring-fill {
  from { stroke-dasharray: 0, 100; }
}

.metric-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-0);
}

/* Check list */
.metric-check-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.metric-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-2);
}

.metric-check svg {
  width: 16px;
  height: 16px;
  color: var(--good);
}

/* Growth bars */
.metric-growth {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: 8px;
}

.metric-growth-bar {
  flex: 1;
  height: var(--height);
  background: var(--fg-3);
  border-radius: 4px 4px 0 0;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.metric-growth-bar.highlight {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  opacity: 1;
}

/* Timeline */
.metric-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 20px;
  border-right: 2px solid oklch(0.25 0.02 270 / 0.5);
}

.metric-timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.metric-timeline-dot {
  position: absolute;
  right: -26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg-3);
}

.metric-timeline-item.active .metric-timeline-dot {
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}

.metric-timeline-item.warn .metric-timeline-dot {
  background: var(--warn);
}

.metric-timeline-item.danger .metric-timeline-dot {
  background: oklch(0.65 0.20 25);
}

.metric-timeline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-timeline-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
}

.metric-timeline-chance {
  font-size: 12px;
  color: var(--fg-3);
}

.metric-timeline-item.active .metric-timeline-chance {
  color: var(--good);
}

.metric-timeline-item.warn .metric-timeline-chance {
  color: var(--warn);
}

.metric-timeline-item.danger .metric-timeline-chance {
  color: oklch(0.65 0.20 25);
}

/* ============================================
   Stats Counter Section (Animated Numbers)
   ============================================ */
.stats-counter-section {
  padding: 80px 0;
}

.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 1100px) {
  .stats-counter-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .stats-counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 440px) {
  .stats-counter-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.stats-counter-item {
  --stat-color: var(--accent);
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, oklch(0.14 0.018 270 / 0.7) 0%, oklch(0.11 0.014 270 / 0.5) 100%);
  border: 1px solid oklch(0.30 0.02 270 / 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Color variants */
.stats-counter-item[data-color="rose"] { --stat-color: oklch(0.70 0.18 10); }
.stats-counter-item[data-color="cyan"] { --stat-color: oklch(0.75 0.14 200); }
.stats-counter-item[data-color="green"] { --stat-color: oklch(0.72 0.17 150); }
.stats-counter-item[data-color="amber"] { --stat-color: oklch(0.80 0.16 75); }
.stats-counter-item[data-color="purple"] { --stat-color: var(--accent); }

/* Top glow line */
.stats-counter-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stat-color), transparent);
  opacity: 0.8;
  transition: width 0.3s ease, opacity 0.3s ease;
}

/* Background glow */
.stats-counter-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--stat-color), transparent 70%);
  opacity: 0.06;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.stats-counter-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px oklch(from var(--stat-color) l c h / 0.2);
  border-color: oklch(from var(--stat-color) l c h / 0.3);
}

.stats-counter-item:hover::before {
  width: 70%;
  opacity: 1;
}

.stats-counter-item:hover::after {
  opacity: 0.12;
}

[data-theme="light"] .stats-counter-item {
  background: oklch(1 0 0 / 0.9);
}

/* Icon */
.stats-counter-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, oklch(from var(--stat-color) l c h / 0.2) 0%, oklch(from var(--stat-color) l c h / 0.08) 100%);
  border: 1px solid oklch(from var(--stat-color) l c h / 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats-counter-icon svg {
  width: 24px;
  height: 24px;
  color: var(--stat-color);
}

.stats-counter-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, var(--fg-0) 30%, var(--stat-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.stats-counter-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-0);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.stats-counter-desc {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* ===== FAQ ===== */
.faq {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--r-md);
  border: 1px solid var(--line-1);
  background: oklch(0.19 0.014 270 / 0.5);
  overflow: hidden;
  transition: border-color .2s;
}

[data-theme="light"] .faq-item {
  background: oklch(1 0 0 / 0.7);
}

.faq-item[data-open="true"] {
  border-color: oklch(0.55 0.22 295 / 0.4);
}

.faq-q {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  color: var(--fg-0);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

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

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: oklch(0.55 0.22 295 / 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: transform .2s;
  border: 1px solid oklch(0.55 0.22 295 / 0.2);
}

.faq-item[data-open="true"] .faq-toggle { transform: rotate(45deg); }

.faq-a {
  padding: 0 24px 20px 24px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Final CTA ===== */
.final-cta {
  padding: 80px 0 120px;
}

.final-cta-card {
  position: relative;
  padding: 64px 56px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 600px 400px at 80% 30%, oklch(0.55 0.22 295 / 0.18), transparent 60%),
    radial-gradient(ellipse 500px 400px at 20% 80%, oklch(0.45 0.20 280 / 0.12), transparent 60%),
    linear-gradient(180deg, oklch(0.20 0.018 270 / 0.7) 0%, oklch(0.16 0.014 270 / 0.7) 100%);
  border: 1px solid oklch(0.55 0.22 295 / 0.3);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 40px 100px oklch(0.55 0.22 295 / 0.15);
}

[data-theme="light"] .final-cta-card {
  background:
    radial-gradient(ellipse 600px 400px at 80% 30%, oklch(0.65 0.18 295 / 0.20), transparent 60%),
    radial-gradient(ellipse 500px 400px at 20% 80%, oklch(0.65 0.16 280 / 0.16), transparent 60%),
    linear-gradient(180deg, oklch(1 0 0 / 0.85) 0%, oklch(0.97 0.005 270 / 0.85) 100%);
}

@media (max-width: 900px) {
  .final-cta-card { grid-template-columns: 1fr; padding: 40px 28px; }
}

.final-cta h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.final-cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: oklch(0.16 0.012 270 / 0.6);
  border: 1px solid var(--line-1);
  color: var(--fg-0);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, background .2s;
  direction: rtl;
}

[data-theme="light"] .input {
  background: oklch(1 0 0 / 0.8);
}

.input:focus {
  border-color: var(--accent);
  background: oklch(0.20 0.014 270 / 0.7);
}

[data-theme="light"] .input:focus {
  background: oklch(1 0 0 / 1);
}

.input::placeholder { color: var(--fg-3); }

.form-meta {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 4px;
}

/* ===== Footer ===== */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line-1);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--fg-3);
  font-size: 13px;
}

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

.footer-links a {
  color: var(--fg-3);
  text-decoration: none;
}

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

/* ===== Hero variant 3: Diagonal panels ===== */
.hero-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-panels-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1000px) {
  .hero-panels-cols { grid-template-columns: 1fr; }
}

.hero-panel {
  position: relative;
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, oklch(0.21 0.018 270 / 0.7) 0%, oklch(0.17 0.014 270 / 0.7) 100%);
  border: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  min-height: 360px;
  overflow: hidden;
}

[data-theme="light"] .hero-panel {
  background: linear-gradient(180deg, oklch(1 0 0 / 0.9) 0%, oklch(0.97 0.005 270 / 0.9) 100%);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-1);
  margin-bottom: 14px;
}

.hero-panel-title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-panel-title .agent-mini-icon { width: 32px; height: 32px; border-radius: 8px; }
.hero-panel-title .agent-mini-icon svg { width: 16px; height: 16px; }

.hero-panel-title h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-0);
}

.hero-panel-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-panel-chat .msg-bubble {
  font-size: 13px;
  padding: 8px 12px;
}

/* utility */
.spacer-lg { height: 80px; }

/* RTL fixes for arrows */
.rtl-flip { transform: scaleX(-1); }

/* ===== Integration Marquee ===== */
.int-marquee-wrapper {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  overflow: hidden;
  position: relative;
}

.int-marquee-wrapper::before,
.int-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.int-marquee-wrapper::before {
  right: 0;
  background: linear-gradient(to left, var(--bg-0), transparent);
}

.int-marquee-wrapper::after {
  left: 0;
  background: linear-gradient(to right, var(--bg-0), transparent);
}

.int-marquee-track {
  display: flex;
  overflow: hidden;
  padding: 20px 0;
  direction: ltr;
}

.int-marquee {
  display: flex;
  gap: 16px;
  padding-left: 16px;
  animation: marqueeScroll 30s linear infinite;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

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

.int-marquee-item {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: oklch(0.20 0.016 270 / 0.6);
  border: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  transition: all .2s ease;
  flex-shrink: 0;
}

[data-theme="light"] .int-marquee-item {
  background: oklch(1 0 0 / 0.8);
}

.int-marquee-item:hover {
  border-color: oklch(0.55 0.22 295 / 0.5);
  background: oklch(0.24 0.020 270 / 0.7);
}

[data-theme="light"] .int-marquee-item:hover {
  background: oklch(1 0 0 / 1);
}

.int-marquee-item .int-logo-wrap {
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.int-marquee-item .int-logo-wrap svg {
  height: 24px;
  width: auto;
  max-width: 40px;
}

.int-marquee-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-1);
}
