/* ══════════════════════════════════════════════════════════════════
   EXCELERENCE — Full Site Styles
   Fonts: Sora (headings) · Inter (body)
   Palette: #2979ff (electric blue) · #080b1a (dark base)
   ══════════════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg:           #06070d;
  --bg-surface:   #09091a;
  --bg-elevated:  #0e0e1c;
  --blue:         #2979ff;
  --blue-light:   #4d9fff;
  --blue-dim:     rgba(41, 121, 255, 0.08);
  --blue-border:  rgba(41, 121, 255, 0.18);
  --blue-glow:    rgba(41, 121, 255, 0.32);
  --white:        #ffffff;
  --muted:        #6a7288;
  --muted-light:  #8e98b0;
  --border:       rgba(255, 255, 255, 0.06);
  --nav-h:        72px;
  --fh:           'Sora', sans-serif;
  --fb:           'Inter', sans-serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.22, 1, 0.36, 1);
  --max-w:        1200px;
  --pad-x:        48px;
  --section-py:   120px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════════════
   SHARED COMPONENTS
   ══════════════════════════════════════════════════════════════════ */

/* ── Eyebrow badge ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 40px;
  background: rgba(41, 121, 255, 0.1);
  border: 1px solid rgba(41, 121, 255, 0.28);
  width: fit-content;
}

.eyebrow--center { margin: 0 auto; }

.eyebrow-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  flex-shrink: 0;
  animation: dot-blink 2.8s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--blue); }
  50%       { opacity: 0.45; box-shadow: 0 0 4px var(--blue); }
}

.eyebrow-text {
  font-family: var(--fb);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  text-transform: uppercase;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(145deg, #2979ff 0%, #1758ce 100%);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 26px rgba(41, 121, 255, 0.42),
    0 4px 14px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform   200ms var(--ease),
    box-shadow  200ms var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 44px rgba(41, 121, 255, 0.62),
    0 8px 24px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.btn-primary.btn-lg { padding: 16px 34px; font-size: 16px; }

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--ease);
}

.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    color        200ms var(--ease),
    border-color 200ms var(--ease),
    background   200ms var(--ease),
    transform    200ms var(--ease);
}

.btn-outline:hover {
  color: var(--white);
  border-color: rgba(41, 121, 255, 0.48);
  background: rgba(41, 121, 255, 0.08);
  transform: translateY(-2px);
}

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


/* ══════════════════════════════════════════════════════════════════
   SHINY CTA BUTTON — hero "Get Your Free Quote"
   Animated conic-gradient border, dots texture, inner shimmer.
   Animation only plays on hover/focus; static border at rest.
   ══════════════════════════════════════════════════════════════════ */

/* Houdini custom properties — enable smooth interpolation of conic params */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}
@property --gradient-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

.shiny-cta {
  /* Tune to site palette */
  --shiny-cta-bg:               #060f2c;
  --shiny-cta-bg-subtle:        #112460;
  --shiny-cta-fg:               #ffffff;
  --shiny-cta-highlight:        #4090ff;
  --shiny-cta-highlight-subtle: #68d0ff;

  /* Timing — 5 s feels deliberate and premium, not frantic */
  --duration:     5s;
  --shadow-size:  2px;
  --transition:   700ms cubic-bezier(0.25, 1, 0.5, 1);

  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  text-decoration: none;

  /* Match existing btn-primary sizing exactly */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;

  /* Pill shape is the shiny button's signature */
  border-radius: 360px;
  color: var(--shiny-cta-fg);

  /* Conic border trick: solid fill inside, spinning gradient on border */
  border: 1px solid transparent;
  background:
    linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-cta-highlight)        var(--gradient-percent),
      var(--gradient-shine)             calc(var(--gradient-percent) * 2),
      var(--shiny-cta-highlight)        calc(var(--gradient-percent) * 3),
      transparent                       calc(var(--gradient-percent) * 4)
    ) border-box;

  box-shadow:
    0 0 32px rgba(41, 121, 255, 0.36),
    0 2px 12px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px var(--shiny-cta-bg-subtle);

  transition:
    --gradient-angle-offset var(--transition),
    --gradient-percent      var(--transition),
    --gradient-shine        var(--transition),
    transform               200ms var(--ease),
    box-shadow              200ms var(--ease);
}

/* Shared pseudo-element base */
.shiny-cta::before,
.shiny-cta::after,
.shiny-cta span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
}

.shiny-cta:active { translate: 0 1px; }

/* Rotating dot texture mask */
.shiny-cta::before {
  --size:     calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space:    calc(var(--position) * 2);
  width:      var(--size);
  height:     var(--size);
  background: radial-gradient(
    circle at var(--position) var(--position),
    white calc(var(--position) / 4),
    transparent 0
  ) padding-box;
  background-size:   var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black,
    transparent 10% 90%,
    black
  );
  border-radius: inherit;
  opacity: 0.35;
  animation: gradient-angle linear infinite var(--duration),
             gradient-angle linear infinite calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}

/* Inner shimmer sweep */
.shiny-cta::after {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(
    -50deg,
    transparent,
    var(--shiny-cta-highlight),
    transparent
  );
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.45;
  animation: shimmer linear infinite var(--duration),
             shimmer linear infinite calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}

.shiny-cta span { z-index: 1; }

/* Hover glow bloom inside the button */
.shiny-cta span::before {
  --size: calc(100% + 1rem);
  width:  var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 3px var(--shiny-cta-highlight);
  opacity: 0;
  transition: opacity var(--transition);
  animation: breathe linear infinite calc(var(--duration) * 1.5);
}

/* Border animation — paused at rest, runs on interaction */
.shiny-cta {
  animation: gradient-angle linear infinite var(--duration),
             gradient-angle linear infinite calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}
.shiny-cta,
.shiny-cta::before,
.shiny-cta::after {
  animation-play-state: paused, running;
}

.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent:       15%;
  --gradient-angle-offset:  95deg;
  --gradient-shine:         var(--shiny-cta-highlight-subtle);
  transform:                translateY(-2px);
  box-shadow:
    0 0 56px rgba(41, 121, 255, 0.58),
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px var(--shiny-cta-bg-subtle);
}

.shiny-cta:is(:hover, :focus-visible),
.shiny-cta:is(:hover, :focus-visible)::before,
.shiny-cta:is(:hover, :focus-visible)::after {
  animation-play-state: running;
}

.shiny-cta:is(:hover, :focus-visible) span::before {
  opacity: 1;
}

@keyframes gradient-angle {
  to { --gradient-angle: 360deg; }
}

@keyframes shimmer {
  to { rotate: 360deg; }
}

@keyframes breathe {
  from, to { scale: 1;   }
  50%       { scale: 1.2; }
}

/* Mobile: keep the static border glow, disable all animation */
@media (hover: none) and (pointer: coarse) {
  .shiny-cta,
  .shiny-cta::before,
  .shiny-cta::after {
    animation: none;
  }
  .shiny-cta {
    box-shadow:
      0 0 32px rgba(41, 121, 255, 0.46),
      0 4px 12px rgba(0, 0, 0, 0.35),
      inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  }
}

/* ── Nav phone ── */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--fb);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
  white-space: nowrap;
}

.nav-phone svg {
  width: 14px;
  height: 14px;
  color: var(--blue-light);
  flex-shrink: 0;
}

.nav-phone:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
}

/* ── CTA section phone alternative ── */
.cta-phone-alt {
  font-size: 14px;
  color: var(--muted);
  margin: -8px 0 28px;
}

.cta-phone-alt a {
  color: var(--blue-light);
  font-weight: 600;
  transition: color 180ms var(--ease);
}

.cta-phone-alt a:hover { color: var(--white); }

/* ── Section structure ── */
.section { padding: var(--section-py) 0; position: relative; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-h2 {
  font-family: var(--fh);
  font-weight: 800;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 20px 0;
}

.section-desc {
  font-size: 16px;
  line-height: 1.74;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Brand logo shared ── */
.nav-logo-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.brand-name {
  font-family: var(--fh);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.085em;
  color: var(--white);
}

.brand-tagline {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--blue-light);
  text-transform: uppercase;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.7s var(--ease-spring),
    transform 0.7s var(--ease-spring);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 360ms var(--ease),
    backdrop-filter  360ms var(--ease),
    border-color     360ms var(--ease);
}

.navbar.is-scrolled {
  background: rgba(6, 7, 13, 0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  flex-shrink: 0;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  transition:
    color      180ms var(--ease),
    background 180ms var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
}

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

.nav-login {
  padding: 9px 18px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transition:
    color      180ms var(--ease),
    background 180ms var(--ease);
}

.nav-login:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  padding: 9px 22px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(145deg, #2979ff 0%, #185ecc 100%);
  border-radius: 8px;
  box-shadow:
    0 0 22px rgba(41, 121, 255, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform   200ms var(--ease),
    box-shadow  200ms var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1.5px);
  box-shadow:
    0 0 36px rgba(41, 121, 255, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-cta:active { transform: translateY(0); }

.mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
}

.mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}

.mobile-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block-start: var(--nav-h);
  background: #04050b; /* hero-only deepened base — body stays at --bg */
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Subtle edge vignette — deepens corners, pulls focus to center */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 85% at 50% 50%,
    transparent 45%,
    rgba(4, 5, 11, 0.55) 100%
  );
  z-index: 1;
}

/* Ambient environmental glow behind logo — logo illuminates the space */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 42% 48% at 79% 42%,
    rgba(12, 42, 168, 0.16) 0%,
    rgba(10, 30, 130, 0.06) 50%,
    transparent 75%
  );
  z-index: 0;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.bg-blob--right {
  width: 900px;
  height: 900px;
  right: -280px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(20, 65, 210, 0.19) 0%, transparent 55%);
}

.bg-blob--left {
  width: 500px;
  height: 500px;
  left: -120px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(41, 121, 255, 0.07) 0%, transparent 65%);
}

.bg-grid { display: none; }

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

.bg-nebula {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 78% 38%, rgba(41, 121, 255, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 55% 60% at 12% 72%, rgba(80,  30, 180, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 42% 32% at 52% 8%,  rgba(180, 220, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 30% 38% at 92% 82%, rgba(60,  70, 200, 0.09) 0%, transparent 50%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* Layout */
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 100px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Left: copy */
.hero-copy { display: flex; flex-direction: column; }

.hero-copy .eyebrow { margin-bottom: 28px; }

.hero-h1 {
  font-family: var(--fh);
  font-weight: 800;
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 22px;
}

.hero-h1 em {
  font-style: normal;
  background: linear-gradient(130deg, #ffffff 18%, #7ab8ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 16.5px;
  line-height: 1.74;
  color: var(--muted);
  max-width: 475px;
  margin-bottom: 44px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}

/* Hero metrics */
.hero-metrics { display: flex; align-items: center; }

.metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 26px;
}

.metric:first-child { padding-left: 0; }

.metric-val {
  font-family: var(--fh);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1;
}

.metric-lbl {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.metric-sep {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Right: logo */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrap {
  position: relative;
  width: min(640px, 100%);
  aspect-ratio: 3 / 2;
  pointer-events: none;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: logo-float 12s ease-in-out infinite;
  will-change: transform;
}

@keyframes logo-float {
  0%,  100% { transform: translateY(0px);  }
  45%        { transform: translateY(-9px); }
  72%        { transform: translateY(-5px); }
}


/* ══════════════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════════════ */
.services-section { background: var(--bg-surface); }

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41,121,255,0.25), transparent);
}

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

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    border-color 250ms var(--ease),
    transform    250ms var(--ease),
    box-shadow   250ms var(--ease);
}

.service-card:hover {
  border-color: rgba(41, 121, 255, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 0 30px rgba(41, 121, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.25);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(41, 121, 255, 0.12);
  border: 1px solid rgba(41, 121, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  flex-shrink: 0;
}

.card-icon svg { width: 20px; height: 20px; }

.card-title {
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--muted);
  flex: 1;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-light);
  margin-top: 4px;
  transition: color 180ms var(--ease), gap 180ms var(--ease);
}

.card-cta span { transition: transform 180ms var(--ease); }
.card-cta:hover { color: var(--white); }
.card-cta:hover span { transform: translateX(3px); }


/* ══════════════════════════════════════════════════════════════════
   WHY US — 21st.dev feature card design
   ══════════════════════════════════════════════════════════════════ */
.why-section {
  background: var(--bg);
  overflow: hidden;
}

/* Stronger headline for this specific section */
.why-section .section-h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: -0.035em;
}

.why-section .section-desc {
  font-size: 16px;
  line-height: 1.75;
  max-width: 560px;
}

/* Blueprint grid background */
.why-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 121, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 121, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 25%, transparent 85%);
}

/* Ambient glow orbs */
.why-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.why-glow--tl {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -160px;
  background: rgba(41, 121, 255, 0.09);
}

.why-glow--br {
  width: 560px;
  height: 560px;
  bottom: -180px;
  right: -180px;
  background: rgba(41, 121, 255, 0.07);
}

/* ── Feature cards grid (21st.dev layout: 2-col + 1 full-width) ── */
.feat21-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* Large blurred glow sitting behind the entire card cluster */
.feat21-cluster-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    ellipse 55% 50% at 50% 50%,
    rgba(41, 121, 255, 0.07) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  animation: cluster-breathe 7s ease-in-out infinite;
}

@keyframes cluster-breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;    transform: translate(-50%, -50%) scale(1.04); }
}

/* Base card — sharp corners, key 21st.dev design signature */
.feat21-card {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.025) 0%, transparent 45%),
    var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 4px 24px -4px rgba(0, 0, 0, 0.55),
    0 0 0 0 rgba(41, 121, 255, 0);
  transition:
    border-color 300ms var(--ease),
    box-shadow   300ms var(--ease),
    transform    300ms var(--ease-spring);
  z-index: 1;
}

/* Inner top highlight — premium SaaS signature */
.feat21-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(41, 121, 255, 0.3) 60%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.feat21-card:hover {
  border-color: rgba(41, 121, 255, 0.3);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 36px -4px rgba(0, 0, 0, 0.65),
    0 0 32px -6px rgba(41, 121, 255, 0.12),
    0 0 0 1px rgba(41, 121, 255, 0.06) inset;
}

/* Full-width bottom card */
.feat21-card--wide {
  grid-column: 1 / -1;
  padding: 56px 52px;
  align-items: center;
  gap: 48px;
}

/* ── Corner bracket decorators — the core 21st.dev visual signature ── */
.feat21-corner {
  position: absolute;
  display: block;
  width: 9px;
  height: 9px;
  z-index: 2;
}

.feat21-corner--tl { top: -1px;    left: -1px;   border-top:    2px solid var(--blue); border-left:   2px solid var(--blue); }
.feat21-corner--tr { top: -1px;    right: -1px;  border-top:    2px solid var(--blue); border-right:  2px solid var(--blue); }
.feat21-corner--bl { bottom: -1px; left: -1px;   border-bottom: 2px solid var(--blue); border-left:   2px solid var(--blue); }
.feat21-corner--br { bottom: -1px; right: -1px;  border-bottom: 2px solid var(--blue); border-right:  2px solid var(--blue); }

/* ── Card header: icon+label (muted, small) → large bold description ── */
.feat21-head {
  padding: 28px 28px 24px;
}

.feat21-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.feat21-label-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* text-2xl font-semibold mt-8 equivalent from the original component */
.feat21-desc {
  margin-top: 32px;
  font-family: var(--fh);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 320px;
}

/* ── Card media area ── */
.feat21-media {
  position: relative;
  flex: 1;
  min-height: 210px;
  overflow: hidden;
}

.feat21-media--top-border {
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

/* Radial gradient fades matching the original component's image treatments */
.feat21-fade-bottom {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    125% 125% at 50% 0%,
    transparent 40%,
    var(--bg-elevated) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.feat21-fade-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 48%,
    var(--bg-elevated) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Funnel visualization (Card 1) ── */
.feat21-funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 32px 32px;
}

.feat21-funnel-row {
  display: flex;
  justify-content: center;
}

.feat21-funnel-bar {
  width: 0;              /* starts collapsed; animates to --bar-w on .is-visible */
  height: 36px;
  background: linear-gradient(
    135deg,
    rgba(41, 121, 255, 0.15) 0%,
    rgba(41, 121, 255, 0.05) 100%
  );
  border: 1px solid rgba(41, 121, 255, 0.18);
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
  overflow: hidden;
  transition: background 200ms var(--ease);
}

/* Sequential funnel animation on scroll-reveal */
.feat21-card.is-visible .feat21-funnel-row:nth-child(1) .feat21-funnel-bar {
  width: var(--bar-w);
  transition: width 680ms var(--ease-spring) 0.15s, background 200ms var(--ease);
}
.feat21-card.is-visible .feat21-funnel-row:nth-child(2) .feat21-funnel-bar {
  width: var(--bar-w);
  transition: width 680ms var(--ease-spring) 0.40s, background 200ms var(--ease);
}
.feat21-card.is-visible .feat21-funnel-row:nth-child(3) .feat21-funnel-bar {
  width: var(--bar-w);
  transition: width 680ms var(--ease-spring) 0.65s, background 200ms var(--ease);
}
.feat21-card.is-visible .feat21-funnel-row:nth-child(4) .feat21-funnel-bar {
  width: var(--bar-w);
  transition: width 680ms var(--ease-spring) 0.90s, background 200ms var(--ease);
}

.feat21-card:hover .feat21-funnel-bar {
  background: linear-gradient(
    135deg,
    rgba(41, 121, 255, 0.2) 0%,
    rgba(41, 121, 255, 0.08) 100%
  );
}

.feat21-funnel-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  opacity: 0.65;
}

.feat21-funnel-lbl {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Landing page wireframe blueprint (Card 1) ── */
.wf-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 16px 14px 20px;
}

/* ── Wireframe figure ── */
.wf {
  flex-shrink: 0;
  width: 52%;
  border: 1px solid rgba(41, 121, 255, 0.22);
  background: rgba(6, 6, 20, 0.78);
  background-image: radial-gradient(rgba(41, 121, 255, 0.05) 1px, transparent 1px);
  background-size: 10px 10px;
  overflow: hidden;
  margin: 0;
  opacity: 0;
  transform: translateY(5px);
  font-family: inherit;
  box-shadow: 0 0 0 1px rgba(41, 121, 255, 0.06), 0 6px 24px rgba(0, 0, 0, 0.45);
}

.feat21-card.is-visible .wf {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease) 0.1s, transform 700ms var(--ease-spring) 0.1s;
}

/* ── Navigation bar ── */
.wf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 4px;
}

.wf-brand {
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.wf-nav-link {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wf-nav-cta-tag {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(41, 121, 255, 0.4);
  border: 1px solid rgba(41, 121, 255, 0.58);
  padding: 1.5px 4px;
  border-radius: 1px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Hero section ── */
.wf-hero {
  padding: 10px 8px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(41, 121, 255, 0.07) 0%, rgba(41, 121, 255, 0.02) 100%);
}

.wf-headline {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
  margin: 0 0 5px;
}

.wf-tagline {
  font-size: 6.5px;
  color: rgba(255, 255, 255, 0.28);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.wf-btn--hero {
  display: inline-block;
  background: linear-gradient(135deg, #2979ff 0%, rgba(41, 90, 255, 0.9) 100%);
  border: 1px solid rgba(41, 121, 255, 1);
  color: rgba(255, 255, 255, 0.98);
  font-size: 6.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  line-height: 1;
  position: relative;
  cursor: default;
  box-shadow: 0 0 12px rgba(41, 121, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.wf-btn--hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

/* ── Trust / social proof strip ── */
.wf-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 6px;
  background: rgba(255, 196, 48, 0.025);
}

.wf-trust-stars {
  font-size: 8px;
  color: rgba(255, 196, 48, 0.92);
  letter-spacing: 1.5px;
  flex-shrink: 0;
  line-height: 1;
  text-shadow: 0 0 6px rgba(255, 196, 48, 0.35);
}

.wf-trust-label {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Service highlights ── */
.wf-services {
  display: flex;
  gap: 4px;
  padding: 5px 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wf-svc {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.016);
  padding: 5px 4px 5px;
  min-width: 0;
}

.wf-svc-icon {
  width: 9px;
  height: 9px;
  border-radius: 1px;
}

/* Web Design — blue */
.wf-svc:nth-child(1) .wf-svc-icon {
  border: 1px solid rgba(41, 121, 255, 0.5);
  background: rgba(41, 121, 255, 0.18);
  box-shadow: inset 0 0 5px rgba(41, 121, 255, 0.12);
}

/* Automation — indigo */
.wf-svc:nth-child(2) .wf-svc-icon {
  border: 1px solid rgba(99, 82, 255, 0.5);
  background: rgba(99, 82, 255, 0.18);
  box-shadow: inset 0 0 5px rgba(99, 82, 255, 0.12);
}

/* Performance — cyan */
.wf-svc:nth-child(3) .wf-svc-icon {
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: inset 0 0 5px rgba(0, 212, 255, 0.08);
}

.wf-svc-name {
  display: block;
  font-size: 6.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
}

/* ── Lead capture form ── */
.wf-form {
  padding: 7px 8px 9px;
  background: linear-gradient(180deg, rgba(41, 121, 255, 0.07) 0%, rgba(41, 121, 255, 0.04) 100%);
  border-top: 1px solid rgba(41, 121, 255, 0.18);
}

.wf-form-heading {
  display: block;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
}

.wf-field {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 1px;
  padding: 3.5px 5px;
  margin-bottom: 3px;
}

.wf-field-label {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.03em;
  display: block;
  line-height: 1;
}

.wf-btn--submit {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, rgba(41, 121, 255, 0.88) 0%, rgba(41, 90, 255, 0.75) 100%);
  border: 1px solid rgba(41, 121, 255, 0.95);
  color: rgba(255, 255, 255, 0.92);
  font-size: 6.5px;
  font-weight: 700;
  padding: 4px 4px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
  cursor: default;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(41, 121, 255, 0.3), 0 1px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.wf-btn--submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

/* ── Callout annotation zone ── */
.wf-annos {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding-left: 2px;
}

.wf-anno {
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(8px);
}

.feat21-card.is-visible .wf-anno {
  opacity: 1;
  transform: none;
  transition:
    opacity 400ms var(--ease) var(--at, 0.3s),
    transform 450ms var(--ease-spring) var(--at, 0.3s);
}

.wf-anno-line {
  width: 16px;
  height: 1px;
  background: rgba(41, 121, 255, 0.3);
  flex-shrink: 0;
}

.wf-anno-chip {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(41, 121, 255, 0.07);
  border: 1px solid rgba(41, 121, 255, 0.18);
  padding: 3px 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.03em;
}

.wf-check {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Code visualization (Card 2) ── */
.feat21-code {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.9;
  padding: 24px 28px 28px;
  white-space: nowrap;
}

.feat21-code-ln { display: block; }
.feat21-indent  { padding-left: 18px; }

/* Syntax colors matching a popular dark theme */
.code-kw  { color: #c792ea; }  /* purple  — const/let/function */
.code-fn  { color: #82aaff; }  /* blue    — function names */
.code-key { color: #80cbc4; }  /* teal    — object keys */
.code-str { color: #c3e88d; }  /* green   — strings */
.code-val { color: #f78c6c; }  /* orange  — false/null/numbers */
.code-pt  { color: rgba(255, 255, 255, 0.38); }  /* muted punctuation */
.code-br  { color: rgba(255, 255, 255, 0.52); }  /* brackets */

/* ── Template vs Custom comparison (Card 2) ── */
.cmp {
  display: flex;
  flex: 1;
  min-height: 240px;
}

.cmp-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 28px;
  transition: background 300ms var(--ease);
}

.cmp-col--bad {
  background: transparent;
}

.cmp-col--good {
  background: linear-gradient(
    160deg,
    rgba(41, 121, 255, 0.055) 0%,
    transparent 65%
  );
  border-left: 1px solid rgba(41, 121, 255, 0.12);
}

.feat21-card:hover .cmp-col--good {
  background: linear-gradient(
    160deg,
    rgba(41, 121, 255, 0.08) 0%,
    transparent 65%
  );
}

/* Column header */
.cmp-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.cmp-head-icon {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.cmp-head-icon--blue {
  border-color: rgba(41, 121, 255, 0.4);
  background: rgba(41, 121, 255, 0.1);
  color: var(--blue-light);
  box-shadow: 0 0 10px rgba(41, 121, 255, 0.15);
}

.cmp-head-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1;
}

.cmp-head-lbl--blue {
  color: rgba(255, 255, 255, 0.9);
}

/* Row items */
.cmp-rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 0;
  line-height: 1.3;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity  360ms var(--ease),
    transform 360ms var(--ease-spring),
    color     200ms var(--ease);
}

.cmp-col--good .cmp-row {
  transform: translateX(6px);
}

.cmp-row--good {
  color: rgba(255, 255, 255, 0.88);
}

/* Staggered reveal when card scrolls into view */
.feat21-card.is-visible .cmp-row:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.22s; }
.feat21-card.is-visible .cmp-row:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.36s; }
.feat21-card.is-visible .cmp-row:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.50s; }
.feat21-card.is-visible .cmp-row:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.64s; }

/* Hover brightens the good-column rows */
.feat21-card:hover .cmp-row--good {
  color: rgba(255, 255, 255, 0.96);
}

/* Row icon */
.cmp-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-icon--x {
  border-color: rgba(239, 68, 68, 0.3);
  color: rgba(239, 68, 68, 0.6);
}

.cmp-icon--check {
  border-color: rgba(34, 197, 94, 0.45);
  color: rgba(74, 222, 128, 0.9);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.15);
}

/* Vertical separator */
.cmp-sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cmp-vs {
  font-size: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.14);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  background: var(--bg-elevated);
  padding: 5px 0;
  writing-mode: initial;
}

/* ── Full-width card: header + flow ── */
.feat21-wide-header {
  text-align: center;
  width: 100%;
}

.feat21-wide-header .feat21-label {
  justify-content: center;
}

.feat21-wide-heading {
  margin-top: 28px;
  font-family: var(--fh);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--white);
}

.feat21-wide-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted-light);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Badge circles (CircularUI equivalent) ── */
.feat21-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.feat21-badge-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Gradient border wrapper matching bg-gradient-to-b from-border */
.feat21-badge-wrap {
  background: linear-gradient(to bottom, var(--border), transparent);
  border-radius: 18px;
  padding: 1px;
}

.feat21-badge-inner {
  background: linear-gradient(to bottom, var(--bg-elevated), rgba(9, 9, 26, 0.55));
  border-radius: 17px;
  padding: 14px;
  display: flex;
  align-items: center;
}

.feat21-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid;
  flex-shrink: 0;
}

/* Overlapping circles — second sits on top of first */
.feat21-circle + .feat21-circle {
  margin-left: -10px;
}

.feat21-circle--empty {
  border-color: rgba(41, 121, 255, 0.45);
  background: transparent;
}

.feat21-circle--border {
  border-color: rgba(41, 121, 255, 0.4);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(41, 121, 255, 0.2),
    rgba(41, 121, 255, 0.2) 1px,
    transparent 1px,
    transparent 4px
  );
}

.feat21-circle--blue {
  border-color: var(--blue);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(41, 121, 255, 0.55),
    rgba(41, 121, 255, 0.55) 1px,
    transparent 1px,
    transparent 4px
  );
  position: relative;
  z-index: 1;
}

.feat21-circle--primary {
  border-color: rgba(41, 121, 255, 0.5);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(41, 121, 255, 0.32),
    rgba(41, 121, 255, 0.32) 1px,
    transparent 1px,
    transparent 4px
  );
}

.feat21-badge-lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

/* ── Premium workflow diagram (wide card) ── */
.wflow {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.wflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 72px;
  max-width: 106px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease-spring);
}

.feat21-card.is-visible .wflow-step:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.10s; }
.feat21-card.is-visible .wflow-step:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.38s; }
.feat21-card.is-visible .wflow-step:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.66s; }
.feat21-card.is-visible .wflow-step:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.94s; }
.feat21-card.is-visible .wflow-step:nth-child(9) { opacity: 1; transform: none; transition-delay: 1.22s; }

/* Node square — sharp corners, premium layering */
.wflow-node {
  width: 64px;
  height: 64px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
    var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 14px -2px rgba(0, 0, 0, 0.45);
  transition:
    border-color 300ms var(--ease),
    box-shadow   300ms var(--ease),
    color        300ms var(--ease);
}

/* Destination node — prominent blue emphasis */
.wflow-node--dest {
  border-color: rgba(41, 121, 255, 0.5);
  color: var(--blue-light);
  background:
    linear-gradient(145deg, rgba(41, 121, 255, 0.12) 0%, transparent 55%),
    var(--bg-elevated);
  box-shadow:
    0 0 32px -4px rgba(41, 121, 255, 0.4),
    0 2px 14px -2px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(41, 121, 255, 0.1) inset;
}

/* Expanding ring pulse */
.wflow-node--dest::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(41, 121, 255, 0.3);
  animation: wflow-dest-ring 2.8s ease-out infinite;
}

@keyframes wflow-dest-ring {
  0%   { opacity: 0.8; transform: scale(1);    }
  70%  { opacity: 0;   transform: scale(1.38); }
  100% { opacity: 0;   transform: scale(1.38); }
}

/* Activation pulse on scroll-reveal for each node */
@keyframes wflow-node-pop {
  0%   { box-shadow: 0 0 0 0   rgba(41, 121, 255, 0.45), 0 2px 14px -2px rgba(0,0,0,0.45); }
  50%  { box-shadow: 0 0 0 12px rgba(41, 121, 255, 0),    0 2px 14px -2px rgba(0,0,0,0.45); }
  100% { box-shadow: 0 0 0 0   rgba(41, 121, 255, 0),    0 2px 14px -2px rgba(0,0,0,0.45); }
}

.feat21-card.is-visible .wflow-step:nth-child(1) .wflow-node { animation: wflow-node-pop 0.7s ease-out 0.10s both; }
.feat21-card.is-visible .wflow-step:nth-child(3) .wflow-node { animation: wflow-node-pop 0.7s ease-out 0.38s both; }
.feat21-card.is-visible .wflow-step:nth-child(5) .wflow-node { animation: wflow-node-pop 0.7s ease-out 0.66s both; }
.feat21-card.is-visible .wflow-step:nth-child(7) .wflow-node { animation: wflow-node-pop 0.7s ease-out 0.94s both; }
.feat21-card.is-visible .wflow-step:nth-child(9) .wflow-node { animation: wflow-node-pop 0.7s ease-out 1.22s both; }

/* Live status dot — top-right corner of each node */
.wflow-status {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg);
  box-shadow: 0 0 6px 1px rgba(34, 197, 94, 0.4);
  animation: wflow-green-pulse 2.5s ease-in-out infinite;
}

@keyframes wflow-green-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.wflow-status--dest {
  background: var(--blue);
  box-shadow: 0 0 8px 2px rgba(41, 121, 255, 0.55);
  animation: wflow-blue-pulse 1.8s ease-in-out infinite;
}

@keyframes wflow-blue-pulse {
  0%, 100% { opacity: 1; transform: scale(1);    }
  50%       { opacity: 0.7; transform: scale(1.18); }
}

.wflow-lbl {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.025em;
  line-height: 1.4;
}

.wflow-lbl--dest {
  color: var(--blue-light);
  font-weight: 600;
  font-size: 12px;
}

/* ── Connector track with comet pulse ── */
.wflow-conn {
  flex: 1;
  position: relative;
  height: 4px;
  margin-top: 30px; /* (64px node / 2) - (4px / 2) = 30px */
}

/* Static line — draws left-to-right on scroll reveal */
.wflow-conn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  background: linear-gradient(
    to right,
    rgba(41, 121, 255, 0.15),
    rgba(41, 121, 255, 0.42),
    rgba(41, 121, 255, 0.15)
  );
  transition: transform 480ms var(--ease);
}

.wflow-conn--final::before {
  background: linear-gradient(
    to right,
    rgba(41, 121, 255, 0.28),
    rgba(41, 121, 255, 0.7)
  );
}

.feat21-card.is-visible .wflow-conn:nth-child(2)::before  { transform: translateY(-50%) scaleX(1); transition-delay: 0.26s; }
.feat21-card.is-visible .wflow-conn:nth-child(4)::before  { transform: translateY(-50%) scaleX(1); transition-delay: 0.54s; }
.feat21-card.is-visible .wflow-conn:nth-child(6)::before  { transform: translateY(-50%) scaleX(1); transition-delay: 0.82s; }
.feat21-card.is-visible .wflow-conn:nth-child(8)::before  { transform: translateY(-50%) scaleX(1); transition-delay: 1.10s; }

/* Comet dot — glowing pulse that travels each connector sequentially */
.wflow-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 32px;
  height: 3px;
  border-radius: 1.5px;
  transform: translateY(-50%);
  background: linear-gradient(to right, transparent 0%, rgba(41, 121, 255, 0.45) 35%, var(--blue) 100%);
  box-shadow: 0 0 10px 2px rgba(41, 121, 255, 0.5), 0 0 4px 1px var(--blue);
  animation: wflow-comet 6s linear infinite;
  animation-play-state: paused;
  will-change: left, opacity;
}

/* Sequential stagger: each connector fires 1.5s apart in a 6s cycle */
.feat21-card.is-visible .wflow-conn:nth-child(2) .wflow-dot { animation-play-state: running; animation-delay:  0s;    }
.feat21-card.is-visible .wflow-conn:nth-child(4) .wflow-dot { animation-play-state: running; animation-delay: -4.5s; }
.feat21-card.is-visible .wflow-conn:nth-child(6) .wflow-dot { animation-play-state: running; animation-delay: -3.0s; }
.feat21-card.is-visible .wflow-conn:nth-child(8) .wflow-dot { animation-play-state: running; animation-delay: -1.5s; }

@keyframes wflow-comet {
  0%   { left: -2%;   opacity: 0; }
  4%   { opacity: 1;  }
  22%  { opacity: 1;  }
  25%  { left: 100%;  opacity: 0; }
  100% { left: 100%;  opacity: 0; }
}

/* Stagger delay for second card */
.reveal--d2 { transition-delay: 0.13s; }

/* ── CTA strip (sharp corners matching card design) ── */
.why-cta-strip {
  margin-top: 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(41, 121, 255, 0.18);
  border-radius: 0;
  padding: 52px 60px;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.why-cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 121, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.why-cta-body { flex: 1; }

.why-cta-h3 {
  font-family: var(--fh);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 10px;
}

.why-cta-p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--muted);
}

.why-cta-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════════
   PROCESS
   ══════════════════════════════════════════════════════════════════ */
.process-section { background: var(--bg-surface); }

.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41,121,255,0.2), transparent);
}

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

.process-step { padding: 0 32px 0 0; }

.step-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.step-num {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue);
  background: rgba(41, 121, 255, 0.12);
  border: 1px solid rgba(41, 121, 255, 0.28);
  border-radius: 6px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.step-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(41, 121, 255, 0.3), rgba(41, 121, 255, 0.05));
  margin-left: 12px;
}

.step-title {
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--muted);
}


/* ══════════════════════════════════════════════════════════════════
   RESULTS
   ══════════════════════════════════════════════════════════════════ */
.results-section { background: var(--bg); }

/* Big metrics bar */
.results-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 60px;
  margin-bottom: 64px;
  gap: 0;
}

.rm-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  flex: 1;
}

.rm-val {
  font-family: var(--fh);
  font-size: clamp(36px, 3.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}

.rm-lbl {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.rm-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 40px;
}

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

.cap-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition:
    border-color 250ms var(--ease),
    transform    250ms var(--ease);
}

.cap-card:hover {
  border-color: rgba(41, 121, 255, 0.38);
  transform: translateY(-3px);
}

.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(41, 121, 255, 0.1);
  border: 1px solid rgba(41, 121, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.cap-icon svg { width: 18px; height: 18px; }

.cap-title {
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.cap-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}


/* ══════════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════════════ */
.cta-section { background: var(--bg-surface); }

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41,121,255,0.25), transparent);
}

.cta-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-elevated);
  padding: 80px 60px;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 121, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content .eyebrow { margin-bottom: 24px; }

.cta-h2 {
  font-family: var(--fh);
  font-weight: 800;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 17px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}


/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.footer {
  background: #030407;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand-col { display: flex; flex-direction: column; gap: 16px; }

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 280px;
}

.footer-email {
  font-size: 13.5px;
  color: var(--blue-light);
  transition: color 180ms var(--ease);
}

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

.footer-col-title {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 180ms var(--ease);
}

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

.footer-cta-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy,
.footer-legal {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}


/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 72px;
  }
  .hero-copy     { align-items: center; }
  .hero-desc     { max-width: 540px; }
  .hero-metrics  { justify-content: center; }
  .hero-buttons  { justify-content: center; }
  .hero-logo-wrap { width: min(480px, 90%); aspect-ratio: 3 / 2; }

  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .feat21-grid       { grid-template-columns: 1fr; }
  .feat21-card--wide { padding: 44px 36px; gap: 36px; }
  .wflow { width: 100%; }
  .why-cta-strip   { flex-direction: column; text-align: center; padding: 48px 40px; gap: 32px; }
  .why-cta-btns    { justify-content: center; }
  .process-grid    { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root {
    --pad-x:      24px;
    --section-py: 80px;
  }
  .nav-links,
  .nav-actions  { display: none; }
  .mobile-btn   { display: flex; }

  .hero-container  { padding-block: 56px; }
  .hero-h1         { font-size: 36px; }
  .hero-buttons    { flex-direction: column; align-items: stretch; }
  .btn-primary,
  .btn-outline     { justify-content: center; }
  .hero-metrics    { flex-wrap: wrap; gap: 20px 0; }
  .metric-sep      { display: none; }
  .metric          { padding-inline: 16px; }
  .hero-logo-wrap  { width: min(360px, 88%); aspect-ratio: 3 / 2; }

  .services-grid    { grid-template-columns: 1fr; }
  .feat21-card--wide { padding: 36px 24px; gap: 32px; }
  .feat21-badge-group--hide-xs { display: none; }
  .why-cta-strip    { padding: 40px 28px; }

  /* Workflow diagram: 2-col wrap on mobile */
  .wflow            { flex-wrap: wrap; justify-content: center; gap: 24px 16px; }
  .wflow-conn       { display: none; }
  .wflow-step       { min-width: 72px; max-width: 88px; }
  .feat21-card--wide { gap: 32px; }
  .process-grid     { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr 1fr; }

  .results-metrics {
    flex-wrap: wrap;
    padding: 36px 32px;
    gap: 32px;
  }
  .rm-divider { display: none; }
  .rm-item    { flex: 0 0 calc(50% - 16px); }

  .cta-card    { padding: 52px 28px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline { justify-content: center; }

  .footer-grid    { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom  { flex-direction: column; gap: 8px; text-align: center; }

  .section-header { margin-bottom: 48px; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 30px; }
  .hero-logo-wrap { width: min(300px, 86%); aspect-ratio: 3 / 2; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .rm-item { flex: 0 0 100%; }
  .feat21-code { font-size: 12px; }
}


/* ══════════════════════════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════════════════════════ */

.contact-form {
  width: 100%;
  max-width: 560px;
  margin: 40px auto 0;
  text-align: left;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-label {
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
}

.form-required { color: var(--blue-light); }
.form-optional  { color: var(--muted); font-weight: 400; }

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-family: var(--fb);
  font-size: 14.5px;
  color: var(--white);
  outline: none;
  transition:
    border-color 180ms var(--ease),
    background   180ms var(--ease),
    box-shadow   180ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder { color: var(--muted); }

.form-input:focus {
  border-color: rgba(41, 121, 255, 0.5);
  background: rgba(41, 121, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.12);
}

.form-input.is-invalid {
  border-color: rgba(255, 80, 80, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-error-msg {
  font-size: 12px;
  color: #ff6b6b;
  min-height: 16px;
}

/* ── Select dropdown ── */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: #111827;
  color: #fff;
}

/* ── Asset checkboxes grid ── */
.form-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  padding: 4px 0;
}

.form-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.form-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-check-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 180ms var(--ease),
    background   180ms var(--ease),
    box-shadow   180ms var(--ease);
}

.form-check-input:checked + .form-check-box {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.15);
}

.form-check-input:checked + .form-check-box::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.form-check-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--fb);
}

.form-turnstile { margin-bottom: 20px; }

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-privacy {
  font-size: 12.5px;
  color: var(--muted);
}

/* Loading state */
.contact-submit {
  position: relative;
}

.contact-submit .btn-spinner {
  display: none;
}

.contact-submit.is-loading .btn-text,
.contact-submit.is-loading .btn-arrow {
  opacity: 0;
}

.contact-submit.is-loading .btn-spinner {
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cf-spin 0.65s linear infinite;
}

@keyframes cf-spin {
  to { transform: rotate(360deg); }
}

/* Feedback banner */
.form-feedback {
  display: none;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.form-feedback.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.form-feedback.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #f87171;
}

/* ── Consent checkbox ── */
.form-consent-group { margin-bottom: 20px; }

.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-consent-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-consent-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 180ms var(--ease),
    background   180ms var(--ease),
    box-shadow   180ms var(--ease);
}

.form-consent-checkbox:checked + .form-consent-check {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.15);
}

.form-consent-checkbox:checked + .form-consent-check::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.form-consent-checkbox.is-invalid + .form-consent-check {
  border-color: rgba(255, 80, 80, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.08);
}

.form-consent-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.form-link {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms var(--ease);
}

.form-link:hover { color: var(--white); }

/* ── Footer legal links bar ── */
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.35);
  transition: color 180ms var(--ease);
}

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

.footer-legal-links span { color: rgba(255, 255, 255, 0.18); }

@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-legal-links { justify-content: center; }
}

@media (max-width: 560px) {
  .form-row         { grid-template-columns: 1fr; }
  .form-submit-row  { flex-direction: column; align-items: flex-start; }
  .form-check-grid  { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════════
   LEGAL PAGES (privacy-policy, terms-of-service)
   ══════════════════════════════════════════════════════════════════ */

.legal-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.legal-hero .eyebrow { margin-bottom: 20px; }

.legal-title {
  font-family: var(--fh);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 13.5px;
  color: var(--muted);
}

.legal-body {
  padding: 72px 0 100px;
  background: var(--bg);
}

.legal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 60px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-card h2 {
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.legal-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-card p {
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--muted-light);
  margin-bottom: 14px;
}

.legal-card ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-card ul li {
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--muted-light);
  margin-bottom: 6px;
}

.legal-card a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms var(--ease);
}

.legal-card a:hover { color: var(--white); }

.legal-highlight {
  background: rgba(41, 121, 255, 0.06);
  border: 1px solid rgba(41, 121, 255, 0.15);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
}

.legal-highlight p { margin-bottom: 0; font-size: 13.5px; }

@media (max-width: 768px) {
  .legal-card {
    padding: 36px 24px;
    border-radius: 16px;
  }
  .legal-body { padding: 48px 0 72px; }
}


/* ══════════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE
   Replace GPU-heavy effects with lighter equivalents on touch screens.
   Canvas animation is fully disabled in JS on mobile; these rules
   handle everything else that triggers compositing or repaints.
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {

  /* ── Navbar: solid bg instead of live blur (biggest compositor cost) ── */
  .navbar.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 7, 13, 0.97);
    transition: background-color 250ms var(--ease), border-color 250ms var(--ease);
  }

  /* ── Background blobs: smaller blur radius ── */
  .bg-blob {
    filter: blur(50px);
  }

  /* ── Why section glow: reduce blur radius ── */
  .why-glow { filter: blur(50px); opacity: 0.7; }

  /* ── Contain hero-bg repaints to its own stacking context ── */
  .hero-bg {
    contain: paint;
  }
}

/* ── Respect reduced-motion system preference ── */
@media (prefers-reduced-motion: reduce) {
  .hero-logo-img {
    animation: none;
    will-change: auto;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .eyebrow-dot {
    animation: none;
  }
}
