/* =====================================================
   NexiLife Media — Premium Editorial Theme · v3 (Production)
   Fixes: progressive enhancement, denser hero, fixed nav breakpoints,
   fixed 1:1 stat, tighter final CTA, mobile overflow patches
   ===================================================== */

:root {
  /* Surfaces */
  --bg: #0E0E10;
  --bg-2: #131316;
  --bg-elev: #18181C;
  --bg-elev-2: #1E1E22;
  --bg-elev-3: #25252A;

  /* Brand accent */
  --accent: #7A63FF;
  --accent-2: #A493FF;
  --accent-3: #C4B5FF;
  --accent-deep: #5B46D4;

  /* Text — bumped contrast on muted/dim for readability */
  --text: #F5F5F5;
  --text-soft: #E7E7E7;
  --text-muted: #B0B0B6;     /* was #9d9da3, now better WCAG */
  --text-dim: #7A7A82;        /* was #65656b */
  --text-faint: #45454C;

  /* Lines */
  --border: rgba(231, 231, 231, 0.07);
  --border-strong: rgba(231, 231, 231, 0.11);
  --border-bright: rgba(231, 231, 231, 0.18);
  --border-accent: rgba(122, 99, 255, 0.28);

  /* Glass */
  --glass: rgba(255, 255, 255, 0.022);
  --glass-2: rgba(255, 255, 255, 0.038);
  --glass-3: rgba(255, 255, 255, 0.055);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --max: 1240px;
  --max-narrow: 920px;
  --gutter: 28px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================================================
   Base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
em { font-style: italic; }

/* Better focus states for keyboard a11y */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-elev-2); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--bg-elev-3); }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =====================================================
   Typography
   ===================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
  font-feature-settings: 'ss01';
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* fallback for unsupported browsers */
  color: var(--accent-3);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 400; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 4vw, 3.25rem); font-weight: 400; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.75vw, 1.35rem); font-weight: 600; letter-spacing: -0.015em; }

p { margin: 0; color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

/* =====================================================
   Background Accents
   ===================================================== */
.bg-accents {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.orb-1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(122, 99, 255, 0.40) 0%, transparent 65%);
  top: -200px; left: -160px;
  opacity: 0.6;
  animation: float-1 24s ease-in-out infinite;
}

.orb-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(164, 147, 255, 0.28) 0%, transparent 65%);
  top: 35%; right: -180px;
  opacity: 0.5;
  animation: float-2 30s ease-in-out infinite;
}

.orb-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(91, 70, 212, 0.30) 0%, transparent 65%);
  bottom: -140px; left: 35%;
  opacity: 0.5;
  animation: float-3 26s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 90px) scale(1.08); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-90px, -50px) scale(1.1); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -70px) scale(1.06); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(231, 231, 231, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 231, 231, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, black 30%, transparent 80%);
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
}

header, main, footer { position: relative; z-index: 1; }

/* =====================================================
   Scroll Progress
   ===================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(122, 99, 255, 0.6);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.3s var(--ease-snappy), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.25s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  user-select: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #8975ff 0%, var(--accent) 50%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(122, 99, 255, 0.5),
    0 12px 32px -10px rgba(122, 99, 255, 0.55),
    0 4px 12px -4px rgba(122, 99, 255, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
  z-index: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 0 1px rgba(122, 99, 255, 0.6),
    0 18px 40px -10px rgba(122, 99, 255, 0.7),
    0 6px 16px -4px rgba(122, 99, 255, 0.5);
}

.btn-primary:hover::before { transform: translateX(110%); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.35s var(--ease-back), background 0.3s var(--ease);
}
.btn-arrow svg { width: 12px; height: 12px; }
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  background: var(--glass-2);
  border-color: var(--border-bright);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--glass-3);
  border-color: var(--border-accent);
  color: var(--accent-3);
  transform: translateY(-1px);
}
.btn-ghost .btn-arrow {
  background: rgba(122, 99, 255, 0.18);
  color: var(--accent-2);
}
.btn-ghost:hover .btn-arrow { transform: translateX(4px); background: rgba(122, 99, 255, 0.28); }

/* Link button — make underline visible */
.btn-link {
  padding: 12px 4px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: 0;
  position: relative;
}
.btn-link::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px;
  bottom: 6px;
  height: 1px;
  background: var(--text-dim);
  transition: background 0.3s var(--ease), bottom 0.3s var(--ease);
}
.btn-link:hover { color: var(--accent-2); }
.btn-link:hover::after { background: var(--accent-2); bottom: 4px; }
.btn-link svg { transition: transform 0.3s var(--ease-snappy); }
.btn-link:hover svg { transform: translateY(2px); }

.btn-sm { padding: 10px 18px; font-size: 0.86rem; gap: 8px; }
.btn-sm .btn-arrow { width: 18px; height: 18px; }
.btn-sm .btn-arrow svg { width: 10px; height: 10px; }

.btn-lg { padding: 17px 30px; font-size: 1rem; }
.btn-xl { padding: 20px 36px; font-size: 1.08rem; gap: 12px; }
.btn-xl .btn-arrow { width: 26px; height: 26px; }
.btn-xl .btn-arrow svg { width: 14px; height: 14px; }

.btn-block { display: flex; width: 100%; }

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.scrolled {
  padding: 11px 0;
  background: rgba(14, 14, 16, 0.78);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variation-settings: 'opsz' 24;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(122, 99, 255, 0.32));
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 22px rgba(122, 99, 255, 0.55));
  transform: scale(1.04) rotate(-3deg);
}

.brand-name { display: inline-flex; }
.brand-mark { color: var(--text); }
.brand-accent {
  color: var(--accent-2);
  font-style: italic;
  font-variation-settings: 'opsz' 24, 'SOFT' 100, 'WONK' 1;
}

.primary-nav ul {
  display: flex;
  gap: 2px;
  align-items: center;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.primary-nav .nav-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  font-weight: 400;
  transition: color 0.25s var(--ease);
}

.primary-nav a:hover {
  color: var(--text);
  background: var(--glass-2);
}
.primary-nav a:hover .nav-num,
.primary-nav a.active .nav-num { color: var(--accent-2); }
.primary-nav a.active { color: var(--text); background: var(--glass-2); }

.header-cta { display: inline-flex; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--glass-2);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-back), opacity 0.3s var(--ease), width 0.3s var(--ease);
}
.nav-toggle span:nth-child(2) { width: 12px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); width: 18px; }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); width: 18px; }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 16px; right: 16px;
  background: rgba(20, 20, 22, 0.96);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 10px;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 99;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6);
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: 14px;
  transition: background 0.25s var(--ease);
}
.mobile-nav .nav-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}
.mobile-nav a:hover { background: var(--glass-2); }
.mobile-nav .mobile-cta { margin-top: 8px; padding: 14px 16px; }

/* =====================================================
   Section Markers
   ===================================================== */
.section-marker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-marker-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  background: rgba(122, 99, 255, 0.10);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  color: var(--accent-2);
  font-weight: 500;
  font-size: 0.7rem;
}

.section-marker-label {
  position: relative;
  padding-left: 14px;
}
.section-marker-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 1px;
  background: var(--text-dim);
}

.section-marker-center {
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   HERO — denser, CTA-above-fold
   ===================================================== */
.hero {
  position: relative;
  padding: 130px 0 80px;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Top meta line — fixed: single divider, no overflow */
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px 6px 6px;
  background: var(--glass-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.meta-divider {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2));
}

.meta-label { white-space: nowrap; }

/* Hero title */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.hero-line {
  display: block;
  line-height: 0.98;
  letter-spacing: -0.04em;
  /* Avoid descender clipping on italic */
  padding-bottom: 0.05em;
}

.hero-line:nth-child(2) {
  padding-left: clamp(30px, 7vw, 110px);
}

.hero-line-faint {
  color: var(--text-dim);
  font-style: normal;
  font-weight: 300;
}

/* Hero bottom: split layout */
.hero-bottom {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: flex-start;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-trust svg {
  width: 15px;
  height: 15px;
  color: var(--accent-2);
  flex-shrink: 0;
}

/* Hero stat sidebar */
.hero-right {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
}

.hero-stat-suffix {
  color: var(--accent-2);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  margin-left: 1px;
}

/* Fixed 1:1 stat - cohesive single render, no italic colon weirdness */
.hero-stat-num-pair {
  letter-spacing: -0.02em;
}
.hero-stat-num-pair .ratio-sep {
  color: var(--accent-2);
  font-weight: 400;
  margin: 0 1px;
  font-style: normal;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 240px;
}

/* Live pipeline canvas */
.hero-canvas {
  position: relative;
  margin-top: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.65), rgba(20, 20, 22, 0.75));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 80px -30px rgba(0, 0, 0, 0.5);
}

.hero-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(122, 99, 255, 0.25), transparent 40%, transparent 60%, rgba(122, 99, 255, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-canvas-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 4px;
}

.canvas-meta {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.7rem;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  box-shadow: 0 0 10px var(--accent);
}
.dot-pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: pulse-ring 1.8s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-canvas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lead-card {
  position: relative;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}

.lead-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
}

.lead-card-incoming {
  background: linear-gradient(160deg, rgba(122, 99, 255, 0.10) 0%, rgba(20, 20, 22, 0.8) 60%);
  border-color: var(--border-accent);
}

.lead-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.lead-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(122, 99, 255, 0.15), 0 4px 12px -4px rgba(122, 99, 255, 0.5);
  flex-shrink: 0;
}

.lead-avatar-pulse {
  background: rgba(122, 99, 255, 0.2);
  color: var(--accent-2);
  animation: avatar-pulse 1.8s ease-in-out infinite;
}

@keyframes avatar-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(122, 99, 255, 0.15), 0 0 0 0 rgba(122, 99, 255, 0); }
  50% { box-shadow: 0 0 0 2px rgba(122, 99, 255, 0.3), 0 0 0 8px rgba(122, 99, 255, 0); }
}

.lead-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.status-pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.status-pip-on {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.status-pip-pulse {
  background: var(--accent);
  animation: pip-pulse 1.4s ease-in-out infinite;
}

@keyframes pip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.lead-card-body { margin-bottom: 12px; }

.lead-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}

.lead-card-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.lead-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.lead-card-foot strong { color: var(--text); font-weight: 600; }

.lead-card-foot-progress { border-top: 1px solid var(--border-accent); padding-top: 14px; }

.progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(122, 99, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  animation: progress-grow 2.4s ease-in-out infinite;
}

@keyframes progress-grow {
  0% { width: 15%; }
  50% { width: 75%; }
  100% { width: 15%; }
}

/* =====================================================
   Sections
   ===================================================== */
.section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: 70px;
}

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  margin-bottom: 22px;
}

.section-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 620px;
}

.section-head-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.section + .section { padding-top: 100px; }

.section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 30vw, 400px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
}

/* =====================================================
   Problem
   ===================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.problem-card {
  position: relative;
  padding: 34px 30px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
}

.problem-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(122, 99, 255, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.problem-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  background: var(--bg-elev-2);
}

.problem-card:hover::after { opacity: 1; }

.problem-card-num {
  position: absolute;
  top: 26px; right: 30px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  transition: color 0.4s var(--ease);
}

.problem-card:hover .problem-card-num { color: var(--accent-2); }

.problem-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(122, 99, 255, 0.14), rgba(122, 99, 255, 0.04));
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  color: var(--accent-2);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease-back);
}

.problem-card:hover .problem-icon { transform: scale(1.06) rotate(-3deg); }

.problem-icon svg { width: 22px; height: 22px; }

.problem-card h3 { margin-bottom: 10px; color: var(--text); }
.problem-card p { font-size: 0.96rem; line-height: 1.65; }

/* =====================================================
   Solution
   ===================================================== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solution-card {
  position: relative;
  padding: 38px 30px;
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.7) 0%, rgba(18, 18, 22, 0.7) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(122, 99, 255, 0.25), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
}

.solution-card:hover::before { opacity: 1; }

.solution-card-num { margin-bottom: 26px; }

.solution-card-num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(122, 99, 255, 0.10);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.solution-card h3 {
  margin-bottom: 14px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
}

.solution-card > p {
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}

.solution-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.solution-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
  position: relative;
  padding-left: 22px;
}

.solution-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(122, 99, 255, 0.15);
  border: 1px solid var(--border-accent);
}

.solution-points li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 8.5px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--accent-2);
  border-bottom: 1.5px solid var(--accent-2);
  transform: rotate(-45deg);
}

.solution-card-feature {
  background: linear-gradient(180deg, rgba(122, 99, 255, 0.10) 0%, rgba(24, 24, 28, 0.7) 60%);
  border-color: var(--border-accent);
}

.solution-card-feature::after {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 30% 30%, rgba(122, 99, 255, 0.20), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.solution-card-feature > * { position: relative; z-index: 1; }

.solution-tag {
  position: absolute;
  top: 26px; right: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(122, 99, 255, 0.55);
}

.solution-tag::before {
  content: '★';
  font-family: var(--font-body);
  font-size: 0.75rem;
  margin-right: 1px;
}

/* =====================================================
   Process
   ===================================================== */
.process-list {
  position: relative;
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 36px;
  padding: 32px 0;
}

.process-num-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-num {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: 1.3rem;
  color: var(--accent-2);
  background: linear-gradient(180deg, rgba(122, 99, 255, 0.14), rgba(122, 99, 255, 0.04));
  border: 1px solid var(--border-accent);
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow:
    0 0 0 6px rgba(14, 14, 16, 0.7),
    0 0 24px -8px rgba(122, 99, 255, 0.5);
  z-index: 2;
}

.process-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, var(--border-accent), var(--border));
  margin-top: 8px;
  min-height: 80px;
}

.process-body { padding-top: 14px; }

.process-body h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.process-body p {
  line-height: 1.7;
  max-width: 580px;
  font-size: 1.02rem;
}

/* =====================================================
   Why Us
   ===================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-card {
  position: relative;
  padding: 36px 30px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 99, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  background: var(--bg-elev-2);
}

.why-card:hover::before { opacity: 1; }

.why-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(122, 99, 255, 0.16), rgba(122, 99, 255, 0.04));
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  color: var(--accent-2);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease-back);
}

.why-card:hover .why-icon { transform: rotate(-6deg) scale(1.05); }

.why-icon svg { width: 24px; height: 24px; }

.why-card h3 { margin-bottom: 12px; font-size: 1.22rem; font-weight: 500; color: var(--text); }
.why-card p { line-height: 1.65; font-size: 0.95rem; }

/* =====================================================
   ROI
   ===================================================== */
.roi-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  padding: 70px;
  background: linear-gradient(135deg, rgba(28, 28, 32, 0.85) 0%, rgba(20, 20, 22, 0.9) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.roi-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(122, 99, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}

.roi-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(122, 99, 255, 0.3), transparent 50%, rgba(122, 99, 255, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.roi-content { position: relative; z-index: 1; }

.roi-title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.roi-content > p {
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 1.02rem;
  max-width: 480px;
}

.roi-cta { display: inline-flex; }

.roi-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roi-stat {
  padding: 22px 26px;
  background: var(--glass-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.roi-stat:hover {
  transform: translateX(8px);
  border-color: var(--border-accent);
  background: var(--glass-3);
}

.roi-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

/* Fixed: % and : as cleaner inline accents (not full italic) */
.roi-stat-em {
  color: var(--accent-2);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: 0.75em;
}

.roi-stat-label {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.roi-disclaimer {
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-style: italic;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  align-items: flex-start;
}

.faq-side {
  position: sticky;
  top: 110px;
}

.faq-side .section-title { margin-bottom: 20px; }
.faq-side .section-lead { margin-bottom: 30px; }

.faq-cta { display: inline-flex; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-item:hover { border-color: var(--border-bright); }

.faq-item[open] {
  border-color: var(--border-accent);
  background: var(--bg-elev-2);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  cursor: pointer;
  user-select: none;
  transition: color 0.25s var(--ease);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-q-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color 0.3s var(--ease);
}

.faq-q-text {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.faq-item:hover .faq-q-num,
.faq-item[open] .faq-q-num { color: var(--accent-2); }

.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--accent-2);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-back), opacity 0.3s var(--ease);
}

.faq-icon::before { width: 14px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 14px; }

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 26px 22px 56px;
  border-top: 1px solid var(--border);
  margin-top: -1px;
  padding-top: 18px;
}

.faq-answer p {
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.faq-item[open] .faq-answer { animation: faq-open 0.4s var(--ease); }

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Final CTA — fixed padding
   ===================================================== */
.final-cta-section {
  padding: 100px 0 140px;
}

.final-cta-card {
  position: relative;
  padding: 80px 48px 70px;
  text-align: center;
  background: linear-gradient(180deg, rgba(28, 28, 32, 0.85) 0%, rgba(20, 20, 22, 0.85) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.final-cta-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 450px;
  background: radial-gradient(ellipse, rgba(122, 99, 255, 0.40) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.final-cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 99, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 99, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at center 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at center 30%, black 30%, transparent 80%);
  pointer-events: none;
}

.final-cta-card > * { position: relative; z-index: 1; }

.final-cta-title {
  margin: 0 auto 22px;
  max-width: 720px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.035em;
}

.final-cta-sub {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.final-cta-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.final-cta-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.final-cta-trust svg {
  width: 16px;
  height: 16px;
  color: var(--accent-2);
  flex-shrink: 0;
}

/* =====================================================
   Application Form
   ===================================================== */
.application-card {
  text-align: left;
  padding: 64px 56px 60px;
}

.application-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.application-head .final-cta-title { margin-bottom: 18px; }
.application-head .final-cta-sub { margin-bottom: 0; }

.application-form {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.form-field-full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-field label .req {
  color: var(--accent-2);
  margin-left: 3px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.045);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(122, 99, 255, 0.18);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--accent-2);
  border-bottom: 1.5px solid var(--accent-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: border-color 0.25s var(--ease);
}

.form-field select {
  padding-right: 44px;
  cursor: pointer;
}

.form-field select option {
  background: var(--bg-elev);
  color: var(--text);
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.form-submit {
  min-width: 280px;
}

.form-note {
  font-size: 0.84rem;
  color: var(--text-dim);
  max-width: 420px;
  line-height: 1.55;
}

/* =====================================================
   Thank-you Page
   ===================================================== */
.thanks-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thanks-header {
  position: relative;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}

.thanks-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 0;
  position: relative;
  z-index: 1;
}

.thanks-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 48px 56px;
  text-align: center;
  background: linear-gradient(180deg, rgba(28, 28, 32, 0.85), rgba(20, 20, 22, 0.85));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.thanks-glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 380px;
  background: radial-gradient(ellipse, rgba(122, 99, 255, 0.35) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

.thanks-card > *:not(.thanks-glow) { position: relative; z-index: 1; }

.thanks-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(122, 99, 255, 0.28), rgba(122, 99, 255, 0.06));
  border: 1px solid var(--border-accent);
  color: var(--accent-2);
  box-shadow: 0 0 30px -8px rgba(122, 99, 255, 0.55);
}

.thanks-icon svg { width: 36px; height: 36px; }

.thanks-title {
  font-size: clamp(1.85rem, 4.5vw, 2.8rem);
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.thanks-sub {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 480px;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.thanks-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: transparent;
  margin-top: 0;
}

.thanks-footer .footer-bottom { border-top: none; padding: 18px 0; }

@media (max-width: 720px) {
  .application-card { padding: 44px 22px 40px; }
  .application-head { margin-bottom: 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; padding: 13px 14px; } /* 16px prevents iOS zoom */
  .form-submit { width: 100%; min-width: 0; }

  .thanks-main { padding: 56px 0; }
  .thanks-card { padding: 48px 24px 40px; }
  .thanks-actions { flex-direction: column; width: 100%; }
  .thanks-actions .btn { width: 100%; }
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(14, 14, 16, 0.4), rgba(8, 8, 10, 0.95));
  margin-top: 60px;
}

.footer-inner {
  padding: 80px 28px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 70px;
  margin-bottom: 70px;
}

.footer-brand-block .brand-footer { margin-bottom: 20px; display: inline-flex; }

.footer-tagline {
  max-width: 360px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: color 0.25s var(--ease);
}

.footer-col a:hover { color: var(--accent-2); }

.footer-cta {
  color: var(--accent-2) !important;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-cta span {
  display: inline-block;
  transition: transform 0.3s var(--ease-snappy);
}

.footer-cta:hover span { transform: translateX(4px); }

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 99, 255, 0.18);
  margin: 0 -8px;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  display: flex;
  align-items: baseline;
  font-variation-settings: 'opsz' 144;
}

.footer-wordmark-em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  -webkit-text-stroke: 1px rgba(122, 99, 255, 0.32);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* =====================================================
   Reveal Animations — JS-additive (progressive enhancement)
   Default: visible. Only hidden when JS adds .reveals-armed to <body>.
   ===================================================== */
.js-reveal { opacity: 1; transform: none; }

.reveals-armed .js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveals-armed .js-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.problem-grid > .js-reveal:nth-child(2) { transition-delay: 0.08s; }
.problem-grid > .js-reveal:nth-child(3) { transition-delay: 0.16s; }
.problem-grid > .js-reveal:nth-child(4) { transition-delay: 0.24s; }

.solution-grid > .js-reveal:nth-child(2) { transition-delay: 0.12s; }
.solution-grid > .js-reveal:nth-child(3) { transition-delay: 0.24s; }

.why-grid > .js-reveal:nth-child(2) { transition-delay: 0.06s; }
.why-grid > .js-reveal:nth-child(3) { transition-delay: 0.12s; }
.why-grid > .js-reveal:nth-child(4) { transition-delay: 0.18s; }
.why-grid > .js-reveal:nth-child(5) { transition-delay: 0.24s; }
.why-grid > .js-reveal:nth-child(6) { transition-delay: 0.30s; }

.process-list .process-step.js-reveal:nth-child(2) { transition-delay: 0.1s; }
.process-list .process-step.js-reveal:nth-child(3) { transition-delay: 0.2s; }
.process-list .process-step.js-reveal:nth-child(4) { transition-delay: 0.3s; }

.faq-list .js-reveal:nth-child(2) { transition-delay: 0.05s; }
.faq-list .js-reveal:nth-child(3) { transition-delay: 0.10s; }
.faq-list .js-reveal:nth-child(4) { transition-delay: 0.15s; }
.faq-list .js-reveal:nth-child(5) { transition-delay: 0.20s; }
.faq-list .js-reveal:nth-child(6) { transition-delay: 0.25s; }
.faq-list .js-reveal:nth-child(7) { transition-delay: 0.30s; }

/* Hero staggered reveal */
.hero-meta.js-reveal { transition-delay: 0s; }
.hero-line.js-reveal { transition-delay: 0.1s; transition-duration: 1.1s; }
.hero-line.js-reveal:nth-child(2) { transition-delay: 0.22s; }
.hero-line.js-reveal:nth-child(3) { transition-delay: 0.34s; }
.hero-sub.js-reveal { transition-delay: 0.46s; }
.hero-ctas.js-reveal { transition-delay: 0.54s; }
.hero-trust.js-reveal { transition-delay: 0.62s; }
.hero-right.js-reveal { transition-delay: 0.4s; }
.hero-canvas.js-reveal { transition-delay: 0.7s; }

/* =====================================================
   Responsive — fixed nav breakpoint
   ===================================================== */

/* Tablet & smaller: collapse desktop nav early to avoid wrapping */
@media (max-width: 1023px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; }
}

@media (max-width: 980px) {
  :root { --gutter: 24px; }
  .section { padding: 90px 0; }
  .section + .section { padding-top: 80px; }
  .section-head { margin-bottom: 56px; }

  .hero { padding: 120px 0 60px; }
  .hero-line:nth-child(2) { padding-left: clamp(20px, 5vw, 60px); }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 28px;
    order: 1;
  }
  .hero-left { order: 0; }
  .hero-stat-block {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
  }
  .hero-stat { flex: 1; min-width: 160px; }
  .hero-canvas-grid { grid-template-columns: 1fr 1fr; }
  .hero-canvas-grid .lead-card-incoming { grid-column: span 2; }

  .problem-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .solution-grid { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .roi-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 50px 36px;
  }

  .faq-layout { grid-template-columns: 1fr; gap: 44px; }
  .faq-side { position: static; }

  .footer-top { grid-template-columns: 1fr; gap: 44px; }

  .final-cta-card { padding: 70px 40px 60px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .section { padding: 76px 0; }
  .section + .section { padding-top: 64px; }
  .section-head { margin-bottom: 40px; }

  h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  h2 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }

  .hero { padding: 110px 0 40px; }
  .hero-meta {
    font-size: 0.68rem;
    padding: 5px 12px 5px 5px;
    max-width: 100%;
  }
  .hero-line:nth-child(2) { padding-left: 20px; }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }
  .hero-ctas .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .hero-ctas .btn-link {
    align-self: center;
    padding: 6px 4px;
  }
  .hero-ctas .btn-link::after { bottom: 2px; }
  .hero-ctas .btn-link:hover::after { bottom: 0; }
  .hero-trust { gap: 14px 18px; }
  .hero-trust li { font-size: 0.82rem; }
  .hero-stat-num { font-size: 1.85rem; }
  .hero-stat-block { gap: 18px; }
  .hero-canvas { padding: 16px; border-radius: var(--radius-lg); }
  .hero-canvas-grid { grid-template-columns: 1fr; }
  .hero-canvas-grid .lead-card-incoming { grid-column: auto; }

  .problem-grid { grid-template-columns: 1fr; gap: 14px; }
  .problem-card { padding: 28px 24px; }

  .why-grid { grid-template-columns: 1fr; gap: 14px; }

  .solution-card { padding: 30px 24px; }
  .solution-card-feature { padding-top: 56px; }
  .solution-tag { top: 18px; right: 18px; }

  .process-step {
    grid-template-columns: 50px 1fr;
    gap: 18px;
    padding: 24px 0;
  }
  .process-num { width: 48px; height: 48px; font-size: 1.1rem; border-radius: 14px; }
  .process-body { padding-top: 8px; }
  .process-body h3 { font-size: 1.25rem; }
  .process-body p { font-size: 0.96rem; }

  .roi-card { padding: 32px 22px; border-radius: var(--radius-lg); }
  .roi-stat { padding: 18px 20px; }
  .roi-stat-num { font-size: 2rem; }
  .roi-disclaimer { margin-top: 24px; font-size: 0.82rem; }

  .faq-item summary { padding: 18px 20px; gap: 12px; }
  .faq-q-text { font-size: 0.96rem; }
  .faq-answer { padding: 16px 20px 20px 20px; }

  .final-cta-section { padding: 70px 0 90px; }
  .final-cta-card {
    padding: 56px 24px 50px;
    border-radius: var(--radius-lg);
  }
  .final-cta-trust {
    gap: 14px 24px;
    justify-content: center;
  }

  .footer-inner { padding: 64px 20px 28px; }
  .footer-top { gap: 36px; margin-bottom: 50px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-wordmark { font-size: clamp(3rem, 18vw, 5.5rem); }
}

@media (max-width: 460px) {
  .footer-links { grid-template-columns: 1fr; }
  .hero-stat-block { flex-direction: column; gap: 20px; }
  .hero-stat { min-width: 0; }
  .hero-meta { font-size: 0.65rem; letter-spacing: 0.06em; }
}

/* =====================================================
   Reduced Motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveals-armed .js-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   Print
   ===================================================== */
@media print {
  .bg-accents, .scroll-progress, .nav-toggle, .mobile-nav,
  .hero-canvas, .final-cta-glow, .final-cta-grid-bg,
  .footer-wordmark { display: none !important; }
  body { background: #fff; color: #000; }
  * { color: #000 !important; box-shadow: none !important; }
  .btn { border: 1px solid #000 !important; }
}