/* ─── DESIGN TOKENS ──────────────────────────────────── */
:root {
  --black:    #080C14;
  --ink:      #0D1420;
  --card:     #111926;
  --navy:     #152035;
  --blue:     #1560E8;
  --electric: #2D8EFF;
  --teal:     #0ECFC8;
  --gold:     #F0B429;
  --white:    #EEF3FF;
  --muted:    #7A91B8;
  --border:   rgba(255, 255, 255, 0.07);
  --glow:     rgba(21, 96, 232, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.68;
}

/* ─── UTILITY ────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(21, 96, 232, 0.12);
  border: 1px solid rgba(21, 96, 232, 0.3);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.13;
}

.section-title em {
  font-style: normal;
  color: var(--teal);
}

.section-body {
  color: var(--muted);
  max-width: 520px;
  margin-top: 0.85rem;
  font-size: 0.97rem;
  line-height: 1.74;
}

hr.div {
  border: none;
  border-top: 1px solid var(--border);
}

.mt-2 {
  margin-top: 2rem;
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.9rem 2.1rem;
  border-radius: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 0 32px var(--glow);
}

.btn-primary:hover {
  background: #0e4fd4;
  transform: translateY(-2px);
  box-shadow: 0 0 48px var(--glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 0.9rem 1.9rem;
  border-radius: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.22s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--teal);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--white);
}

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

.nav-demo {
  background: transparent;
  border: 1px solid rgba(21, 96, 232, 0.5);
  color: var(--electric);
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-demo:hover {
  background: rgba(21, 96, 232, 0.12);
  border-color: var(--electric);
}

.nav-cta {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.58rem 1.3rem;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: #0e4fd4;
}

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 5% 5rem;
  position: relative;
  overflow: hidden;
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.hero-text {
  text-align: left;
  animation: fadeUp 0.7s ease both;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 65% at 50% -5%, rgba(21, 96, 232, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 85% 75%, rgba(14, 207, 200, 0.08) 0%, transparent 55%),
    var(--black);
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, black, transparent 80%);
}

/* Animated streaming lines */
.stream-line {
  position: absolute;
  height: 1px;
  width: 120px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.5;
  animation: stream 4s linear infinite;
}

.stream-line:nth-child(1) { top: 20%; left: -10%; animation-delay: 0s; animation-duration: 5s; }
.stream-line:nth-child(2) { top: 45%; left: -10%; animation-delay: 1.5s; animation-duration: 6s; }
.stream-line:nth-child(3) { top: 70%; left: -10%; animation-delay: 0.7s; animation-duration: 4.5s; }
.stream-line:nth-child(4) { top: 33%; right: -10%; animation-delay: 2s; animation-duration: 5.5s; left: auto; background: linear-gradient(270deg, transparent, var(--electric), transparent); }
.stream-line:nth-child(5) { top: 60%; right: -10%; animation-delay: 0.3s; animation-duration: 4s; left: auto; background: linear-gradient(270deg, transparent, var(--electric), transparent); }

@keyframes stream {
  0%   { transform: translateX(0); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.5; }
  100% { transform: translateX(110vw); opacity: 0; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(14, 207, 200, 0.08);
  border: 1px solid rgba(14, 207, 200, 0.25);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
}

.hero-badge::before {
  content: '\25CF';
  font-size: 0.5rem;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

#hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  line-height: 1.13;
  letter-spacing: -0.028em;
}

#hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(0.93rem, 1.4vw, 1.1rem);
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.72;
}

.hero-sub strong {
  color: var(--white);
  font-weight: 500;
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ─── HERO VISUAL — Rich Product Illustration ──────── */
.hero-visual {
  position: relative;
  animation: fadeUp 0.7s ease 0.25s both;
}

/* Glow orb behind window */
.hv-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 96, 232, 0.25), rgba(14, 207, 200, 0.08) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Floating particles */
.hv-particles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 0;
}

.hv-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--electric);
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

.hv-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hv-particles span:nth-child(2) { left: 85%; top: 15%; animation-delay: 1s; background: var(--teal); }
.hv-particles span:nth-child(3) { left: 15%; top: 75%; animation-delay: 2s; }
.hv-particles span:nth-child(4) { left: 90%; top: 70%; animation-delay: 0.5s; background: var(--teal); }
.hv-particles span:nth-child(5) { left: 50%; top: 5%; animation-delay: 3s; background: var(--gold); width: 3px; height: 3px; }
.hv-particles span:nth-child(6) { left: 5%; top: 50%; animation-delay: 1.5s; width: 3px; height: 3px; }
.hv-particles span:nth-child(7) { left: 70%; top: 90%; animation-delay: 4s; background: var(--teal); width: 3px; height: 3px; }
.hv-particles span:nth-child(8) { left: 40%; top: 85%; animation-delay: 2.5s; width: 3px; height: 3px; }

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  15%  { opacity: 0.7; transform: translateY(-8px) scale(1); }
  85%  { opacity: 0.7; transform: translateY(-30px) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(0); }
}

/* Window container */
.hero-visual-window {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, rgba(17, 25, 38, 0.95), rgba(13, 20, 32, 0.98));
  border: 1px solid rgba(21, 96, 232, 0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 8px 60px rgba(21, 96, 232, 0.15),
    0 0 120px rgba(14, 207, 200, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Titlebar */
.hv-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.hv-dots {
  display: flex;
  gap: 0.4rem;
}

.hv-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.hv-titlebar-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex: 1;
}

.hv-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28C840;
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.6);
  animation: blink 2s infinite;
}

.hv-status-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #28C840;
}

.hv-body {
  padding: 1.6rem 1.4rem 1.2rem;
}

/* ── Pipeline flow ── */
.hv-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 1.4rem;
}

.hv-flow-node {
  text-align: center;
  padding: 0.9rem 0.6rem;
  border-radius: 12px;
  flex-shrink: 0;
  width: 80px;
  position: relative;
}

.hv-fn-icon {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.hv-fn-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hv-fn-sub {
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.hv-fn-source {
  background: rgba(240, 180, 41, 0.08);
  border: 1px solid rgba(240, 180, 41, 0.2);
  color: var(--gold);
}

.hv-fn-engine {
  background: rgba(21, 96, 232, 0.1);
  border: 1px solid rgba(21, 96, 232, 0.35);
  color: var(--electric);
  width: 90px;
  box-shadow:
    0 0 30px rgba(21, 96, 232, 0.12),
    inset 0 0 20px rgba(21, 96, 232, 0.05);
}

.hv-engine-ring {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(21, 96, 232, 0.15);
  border-radius: 16px;
  animation: enginePulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes enginePulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.04); }
}

.hv-fn-dash {
  background: rgba(14, 207, 200, 0.08);
  border: 1px solid rgba(14, 207, 200, 0.2);
  color: var(--teal);
}

/* Animated stream tracks between nodes */
.hv-stream-track {
  flex: 1;
  height: 2px;
  position: relative;
  margin: 0 0.3rem;
}

.hv-stream-line-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
}

.hv-stream-particle {
  position: absolute;
  top: -2px;
  left: -6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 10px var(--electric), 0 0 20px rgba(21, 96, 232, 0.3);
  animation: streamFlow 2s linear infinite;
}

.hv-sp-2 {
  animation-delay: 0.7s;
  width: 4px;
  height: 4px;
  top: -1px;
  opacity: 0.7;
}

.hv-sp-3 {
  animation-delay: 1.4s;
  width: 3px;
  height: 3px;
  top: -0.5px;
  opacity: 0.5;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

@keyframes streamFlow {
  0%   { left: -6px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ── Live metrics cards ── */
.hv-live-row {
  display: flex;
  gap: 0.6rem;
}

.hv-live-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  position: relative;
  overflow: hidden;
}

.hv-live-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
}

.hv-lc-events::before {
  background: linear-gradient(90deg, transparent, var(--electric), transparent);
}

.hv-lc-latency::before {
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.hv-lc-uptime::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hv-lc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.hv-lc-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hv-lc-badge {
  font-size: 0.52rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.hv-lc-up {
  background: rgba(40, 200, 64, 0.12);
  color: #28C840;
}

.hv-lc-good {
  background: rgba(14, 207, 200, 0.12);
  color: var(--teal);
}

.hv-lc-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.hv-lc-unit {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

/* Sparkline chart */
.hv-sparkline {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 0.4rem;
}

.hv-spark-line {
  fill: none;
  stroke: var(--electric);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1.5s ease 0.6s forwards;
}

.hv-spark-area {
  opacity: 0;
  animation: fadeIn 0.5s ease 1.8s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Latency dots */
.hv-latency-dots {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.hv-latency-dots span {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--teal);
  animation: latencyPing 2s ease infinite;
}

.hv-latency-dots span:nth-child(1) { animation-delay: 0s; }
.hv-latency-dots span:nth-child(2) { animation-delay: 0.15s; }
.hv-latency-dots span:nth-child(3) { animation-delay: 0.3s; }
.hv-latency-dots span:nth-child(4) { animation-delay: 0.45s; }
.hv-latency-dots span:nth-child(5) { animation-delay: 0.6s; }

@keyframes latencyPing {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 1; }
}

/* Uptime ring */
.hv-uptime-ring {
  width: 32px;
  height: 32px;
  margin-top: 0.3rem;
}

.hv-uptime-ring svg {
  width: 100%;
  height: 100%;
}

.hv-ring-fill {
  animation: ringDraw 1.5s ease 0.8s both;
  stroke-dasharray: 87.96;
  stroke-dashoffset: 87.96;
}

@keyframes ringDraw {
  to { stroke-dashoffset: 0.088; }
}

/* Tagline */
.hero-visual-tagline {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--electric), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.hero-stats {
  margin-top: 3.5rem;
  display: flex;
  gap: 0;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  animation: fadeUp 0.7s ease 0.45s both;
  flex-wrap: wrap;
}

.h-stat {
  flex: 1;
  min-width: 140px;
  padding: 1.5rem 1.8rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.h-stat:last-child {
  border-right: none;
}

.h-stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
}

.h-stat strong span {
  color: var(--teal);
}

.h-stat small {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.hero-logos {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s ease 0.55s both;
}

.hero-logos p {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.logos-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.client-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: default;
}

.client-logo:hover {
  color: rgba(255, 255, 255, 0.4);
}

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

/* ─── PROBLEM ────────────────────────────────────────── */
#problem {
  padding: 6rem 5%;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.problem-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.problem-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 96, 232, 0.05), rgba(14, 207, 200, 0.03));
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.pain-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pain-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.pain-item h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.pain-item p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── FEATURES ───────────────────────────────────────── */
#features {
  padding: 6rem 5%;
  background: var(--black);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3.5rem;
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.feat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.feat-card:hover {
  border-color: rgba(21, 96, 232, 0.35);
  transform: translateY(-5px);
}

.feat-card:hover::after {
  transform: scaleX(1);
}

.feat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 1.2rem;
}

.feat-icon {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
  display: block;
}

.feat-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.feat-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.72;
}

.feat-proof {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--teal), var(--electric));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── FLUENTUM HIGHLIGHT ─────────────────────────────── */
#fluentum {
  padding: 6rem 5%;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.fluentum-visual {
  background: var(--card);
  border: 1px solid rgba(21, 96, 232, 0.25);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.fluentum-header {
  background: linear-gradient(135deg, rgba(21, 96, 232, 0.2), rgba(14, 207, 200, 0.1));
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

.fl-window-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-left: 0.5rem;
}

.fluentum-body {
  padding: 1.8rem;
}

.kafka-flow {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.kafka-node {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
}

.kn-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.kn-blue { background: rgba(21, 96, 232, 0.2); }
.kn-teal { background: rgba(14, 207, 200, 0.15); }
.kn-gold { background: rgba(240, 180, 41, 0.15); }

.kafka-node h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.kafka-node p {
  font-size: 0.76rem;
  color: var(--muted);
}

.kafka-arrow {
  text-align: center;
  font-size: 0.75rem;
  color: var(--teal);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.fl-metric {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.fl-m {
  flex: 1;
  text-align: center;
  background: rgba(14, 207, 200, 0.05);
  border: 1px solid rgba(14, 207, 200, 0.15);
  border-radius: 8px;
  padding: 0.8rem;
}

.fl-m strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal);
}

.fl-m span {
  font-size: 0.72rem;
  color: var(--muted);
}

.check-list {
  margin-top: 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.91rem;
  color: #c0cfea;
  align-items: flex-start;
}

.check-list li span {
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
}

.fl-ctas {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ─── CASE STUDY ─────────────────────────────────────── */
#casestudy {
  padding: 6rem 5%;
  background: var(--black);
}

.cs-wrapper {
  background: var(--card);
  border: 1px solid rgba(21, 96, 232, 0.2);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 3rem;
}

.cs-header {
  background: linear-gradient(135deg, rgba(21, 96, 232, 0.18), rgba(14, 207, 200, 0.08));
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cs-client {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.cs-avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #003087, #001f5b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-client-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.cs-client-info p {
  font-size: 0.84rem;
  color: var(--muted);
}

.cs-tag {
  background: rgba(14, 207, 200, 0.1);
  border: 1px solid rgba(14, 207, 200, 0.25);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.cs-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.cs-left {
  padding: 2.5rem 3rem;
  border-right: 1px solid var(--border);
}

.cs-right {
  padding: 2.5rem 3rem;
}

.cs-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.challenge-list,
.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.challenge-list li,
.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #c0cfea;
  line-height: 1.6;
}

.challenge-list li::before {
  content: '\26A0';
  font-size: 0.8rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.solution-list li::before {
  content: '\2713';
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.cs-results {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cs-result {
  padding: 1.8rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.cs-result:last-child {
  border-right: none;
}

.cs-result strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.cs-result span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
  display: block;
}

/* ─── TESTIMONIALS / PROOF ───────────────────────────── */
#proof {
  padding: 6rem 5%;
  background: var(--ink);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.25s;
}

.testi-card:hover {
  border-color: rgba(21, 96, 232, 0.3);
}

.testi-stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.1rem;
}

.testi-text {
  font-size: 0.93rem;
  color: #c8d8f0;
  line-height: 1.76;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.t-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
}

.t-role {
  font-size: 0.76rem;
  color: var(--muted);
}

.kpi-row {
  display: flex;
  gap: 1rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.kpi {
  flex: 1;
  min-width: 150px;
  text-align: center;
  background: linear-gradient(135deg, rgba(21, 96, 232, 0.1), rgba(14, 207, 200, 0.05));
  border: 1px solid rgba(21, 96, 232, 0.2);
  border-radius: 12px;
  padding: 1.8rem 1rem;
}

.kpi strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
}

.kpi span {
  font-size: 0.79rem;
  color: var(--muted);
}

.certs-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.55rem 1rem;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--muted);
}

/* ─── URGENCY ────────────────────────────────────────── */
#urgency {
  padding: 5rem 5%;
  text-align: center;
  background: linear-gradient(135deg, rgba(21, 96, 232, 0.14), rgba(14, 207, 200, 0.07));
  border-top: 1px solid rgba(21, 96, 232, 0.2);
  border-bottom: 1px solid rgba(21, 96, 232, 0.2);
}

#urgency .section-title {
  max-width: 700px;
  margin: 0 auto;
}

#urgency .section-title em {
  color: var(--gold);
}

#urgency p {
  color: var(--muted);
  max-width: 520px;
  margin: 0.9rem auto 0;
  font-size: 0.97rem;
}

#urgency .btn-primary {
  margin-top: 2rem;
  padding: 1rem 2.8rem;
  font-size: 1rem;
}

.urgency-meta {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ─── FAQ ────────────────────────────────────────────── */
#faq {
  padding: 6rem 5%;
  background: var(--black);
}

.faq-list {
  max-width: 780px;
  margin-top: 3rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  padding: 1.4rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

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

.faq-q .arr {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: all 0.25s;
  color: var(--muted);
}

.faq-item.open .arr {
  transform: rotate(180deg);
  border-color: var(--teal);
  color: var(--teal);
}

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

.faq-item.open .faq-a {
  max-height: 320px;
  padding-bottom: 1.5rem;
}

.faq-a-inner {
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.78;
}

.faq-a-inner strong {
  color: var(--white);
}

.faq-a-inner a {
  color: var(--electric);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.faq-a-inner a:hover {
  color: var(--teal);
}

/* ─── FINAL CTA ──────────────────────────────────────── */
#cta-final {
  padding: 7rem 5%;
  text-align: center;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

#cta-final::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 96, 232, 0.12), transparent 65%);
  pointer-events: none;
}

.cta-final-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-final-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.cta-contact-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.cta-contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.cta-contact span {
  color: var(--white);
  font-weight: 500;
}

.cta-body {
  margin: 1rem auto 0;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: #050810;
  border-top: 1px solid var(--border);
  padding: 4rem 5% 2rem;
}

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

.footer-brand .logo-text {
  font-size: 1.35rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 240px;
  margin: 0.8rem 0 1.4rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.s-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}

.s-btn:hover {
  border-color: var(--blue);
  color: var(--teal);
}

.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.28);
}

.footer-bottom a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-disclaimer {
  margin-top: 0.4rem;
}

.footer-cta-link {
  color: var(--teal) !important;
  font-weight: 600;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
/* ─── RESPONSIVE: TABLET ─────────────────────────────── */
@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual {
    max-width: 540px;
    margin: 0 auto;
  }

  #problem,
  #fluentum {
    grid-template-columns: 1fr;
  }

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

  .cs-body {
    grid-template-columns: 1fr;
  }

  .cs-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .cs-results {
    grid-template-columns: 1fr 1fr;
  }

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

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

/* ─── RESPONSIVE: MOBILE ────────────────────────────── */
@media (max-width: 640px) {
  nav ul {
    display: none;
  }

  .nav-demo {
    display: none;
  }

  .nav-cta {
    font-size: 0.76rem;
    padding: 0.5rem 1rem;
  }

  #hero {
    padding: 6rem 5% 3rem;
  }

  #hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .feat-grid,
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }

  .hero-logos {
    text-align: center;
  }

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

  .cs-header {
    padding: 1.5rem 1.2rem;
  }

  .cs-left,
  .cs-right {
    padding: 1.5rem 1.2rem;
  }

  .cs-results {
    grid-template-columns: 1fr 1fr;
  }

  .cs-result strong {
    font-size: 1.4rem;
  }

  .kpi-row {
    gap: 0.6rem;
  }

  .kpi {
    min-width: 120px;
    padding: 1.2rem 0.6rem;
  }

  .kpi strong {
    font-size: 1.8rem;
  }

  .cta-contact-row {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

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

  /* Hero visual mobile */
  .hv-flow {
    gap: 0.2rem;
  }

  .hv-flow-node {
    width: 58px;
    padding: 0.55rem 0.25rem;
    border-radius: 8px;
  }

  .hv-fn-icon {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }

  .hv-fn-label {
    font-size: 0.55rem;
  }

  .hv-fn-sub {
    display: none;
  }

  .hv-engine-ring {
    display: none;
  }

  .hv-stream-track {
    margin: 0 0.15rem;
  }

  .hv-live-row {
    flex-direction: column;
  }

  .hv-body {
    padding: 1rem 0.7rem 0.8rem;
  }

  .hv-lc-value {
    font-size: 1rem;
  }

  .hv-glow {
    width: 180px;
    height: 180px;
  }

  .hv-particles {
    display: none;
  }
}

/* ─── RESPONSIVE: SMALL MOBILE ──────────────────────── */
@media (max-width: 380px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
    font-size: 0.84rem;
    padding: 0.8rem 1.2rem;
  }

  .hv-flow-node {
    width: 50px;
    padding: 0.45rem 0.15rem;
  }

  .hv-fn-label {
    font-size: 0.5rem;
  }

  .hv-live-card {
    padding: 0.5rem 0.6rem;
  }
}

/* ─── ACCESSIBILITY: reduced motion ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
