:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --bg: #f8fafc;
  --bg-warm: #f1f5f9;
  --surface: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --brand: #0284c7;
  --brand-bright: #0ea5e9;
  --brand-soft: #e0f2fe;
  --brand-deep: #0369a1;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --ok: #059669;
  --ok-bg: #d1fae5;
  --font-display: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  --font-ui: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 1rem;
  --radius-sm: 0.65rem;
  --max: 1120px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.1), 0 8px 20px rgba(2, 132, 199, 0.08);
  --nav-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ——— Nav ——— */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 1.25rem;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.nav-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, #38bdf8, var(--brand));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.nav-links {
  display: none;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 160ms var(--ease),
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 200ms var(--ease),
    color 160ms ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.28);
}

.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.98rem;
  border-radius: 0.65rem;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3.25rem 1.25rem 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 165, 233, 0.14), transparent 55%),
    linear-gradient(180deg, var(--sky-50) 0%, var(--bg) 55%, var(--bg) 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(2, 132, 199, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 15%, transparent 65%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--brand);
  animation: rise 700ms var(--ease) both;
}

.hero-title {
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--ink);
  animation: rise 800ms var(--ease) 60ms both;
}

.hero-sub {
  margin: 1.15rem auto 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--ink-muted);
  animation: rise 850ms var(--ease) 120ms both;
}

.hero-cta {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  animation: rise 900ms var(--ease) 180ms both;
}

/* ——— Product console mock ——— */

.hero-product {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 3rem auto 0;
  width: 100%;
  padding-bottom: 0;
}

.console {
  display: flex;
  min-height: 280px;
  border-radius: 1rem 1rem 0 0;
  border: 1px solid var(--border-strong);
  border-bottom: none;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.console-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 3.25rem;
  padding: 0.85rem 0;
  background: #0c4a6e;
  flex-shrink: 0;
}

.rail-mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  background: var(--brand-bright);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.rail-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
}

.rail-dot--active {
  background: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.console-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.console-crumbs {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ok);
  flex-shrink: 0;
}

.console-status i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.console-canvas {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  padding: 2rem 1rem 2.25rem;
  min-height: 220px;
}

.canvas-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wire-path {
  fill: none;
  stroke: rgba(2, 132, 199, 0.35);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}

.wire-pulse {
  fill: var(--brand-bright);
  filter: drop-shadow(0 0 4px rgba(14, 165, 233, 0.7));
}

.wire-pulse--b {
  fill: #38bdf8;
}

.flow-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  min-width: 7.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.flow-card-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.flow-card-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.flow-card-icon--http {
  background: var(--sky-100);
  color: var(--brand);
}

.flow-card-icon--hub {
  background: linear-gradient(145deg, #38bdf8, var(--brand));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.flow-card-icon--sql {
  background: #ecfdf5;
  color: var(--ok);
}

.flow-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.flow-card-body strong {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.flow-card-body span {
  font-size: 0.7rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.flow-card--hub {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow:
    var(--shadow-md),
    0 0 0 3px rgba(2, 132, 199, 0.08);
}

/* ——— Connector strip ——— */

.strip {
  padding: 2.25rem 1.25rem 2.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.strip-label {
  margin: 0 auto 1.1rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.strip-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.strip-chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink-soft);
  transition: border-color 160ms ease, color 160ms ease;
}

.strip-chip:hover {
  border-color: rgba(2, 132, 199, 0.35);
  color: var(--brand);
}

/* ——— Sections ——— */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.section-head {
  max-width: 36rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head h2,
.agent-copy h2,
.cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--ink);
}

.section-head p,
.agent-copy > p {
  margin: 0.9rem 0 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms var(--ease), border-color 220ms ease;
}

.step:hover {
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.step p {
  margin: 0.5rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ——— Agent ——— */

.section--agent {
  padding-top: 2rem;
}

.agent-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(14, 165, 233, 0.1), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.agent-copy .checklist {
  margin: 1.35rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.5rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.agent-visual {
  display: flex;
  justify-content: center;
}

.agent-card {
  width: 100%;
  max-width: 320px;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}

.agent-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-ok {
  color: #065f46;
  background: var(--ok-bg);
}

.muted {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.agent-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.agent-metric strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.agent-bar {
  margin-top: 1.1rem;
  height: 5px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.12);
  overflow: hidden;
}

.agent-bar i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
}

.agent-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ——— CTA band ——— */

.cta-band {
  margin: 1rem 1.25rem 4.5rem;
  padding: 3.25rem 1.5rem;
  border-radius: 1.25rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.25), transparent 55%),
    linear-gradient(145deg, #0c4a6e 0%, var(--brand) 55%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(2, 132, 199, 0.28);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  margin: 0.75rem auto 1.5rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-band .btn-primary:hover {
  background: var(--sky-50);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* ——— Footer ——— */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.88rem;
  background: var(--surface);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 1.15rem;
  font-weight: 500;
}

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

/* ——— Motion ——— */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 750ms var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Responsive ——— */

@media (max-width: 640px) {
  .console-canvas {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1rem 1.75rem;
    min-height: 320px;
  }

  .canvas-wires {
    display: none;
  }

  .flow-card {
    width: min(100%, 220px);
  }

  .console-rail {
    width: 2.75rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-product {
    margin-top: 2.25rem;
  }
}

@media (min-width: 720px) {
  .nav {
    padding-inline: 2rem;
  }

  .nav-links {
    display: flex;
  }

  .hero {
    padding-inline: 2rem;
  }

  .section {
    padding-inline: 2rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .agent-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    padding: 3rem 2.5rem;
  }

  .strip,
  .footer,
  .cta-band {
    margin-inline: 2rem;
  }

  .strip {
    margin-inline: 0;
    padding-inline: 2rem;
  }

  .footer {
    margin-inline: 0;
    padding-inline: 2rem;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-product {
    margin-top: 3.5rem;
  }

  .console {
    min-height: 300px;
  }

  .console-canvas {
    min-height: 240px;
    padding: 2.25rem 1.5rem 2.5rem;
  }

  .flow-card {
    min-width: 9rem;
    padding: 1rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
