/* ==========================================================
   EFFECTUSX360 DESIGN SYSTEM & STYLESHEET
   ----------------------------------------------------------
   Colors:  Ink #12151A · Paper #EDEFF1 · Surface #FFFFFF
            Signal Blue #2151FF · Effect Coral #FF5A36
            Slate #5B6472 · Line #D8DCE1
   Type:    Display: Space Grotesk (500/600/700)
            Body: Inter (400/500/600/700)
            Mono: JetBrains Mono (400/500/600)
   ========================================================== */

:root {
  /* Color Tokens - Modern Slate, Indigo & Rose Scheme */
  --ink: #0F172A;
  --paper: #F8FAFC;
  --surface: #FFFFFF;
  --signal: #4F46E5;
  --signal-hover: #4338CA;
  --signal-dim: rgba(79, 70, 229, 0.1);
  --effect: #F43F5E;
  --effect-hover: #E11D48;
  --effect-dim: rgba(244, 63, 94, 0.1);
  --slate: #64748B;
  --line: #E2E8F0;
  --ink-soft: #334155;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(79, 70, 229, 0.12);

  /* Typography - Sleek & Modern Outfit Display */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Animation */
  --maxw: 1200px;
  --radius: 12px;
  --pulse-duration: 8s;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================
   CSS Reset & Base Styles
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ==========================================================
   Accessibility & Skip Link
   ========================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: var(--ink);
  color: var(--surface);
  padding: 14px 24px;
  z-index: 10000;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 0 0 var(--radius) 0;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 0;
  outline: none;
}

/* Focus Indicator Ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================
   Typography Hierarchy
   ========================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--slate);
  font-weight: 400;
  line-height: 1.55;
  margin-top: 18px;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--signal);
  color: var(--surface);
  box-shadow: 0 6px 20px rgba(33, 81, 255, 0.25);
}

.btn-primary:hover {
  background-color: var(--signal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33, 81, 255, 0.35);
}

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

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

.btn-ghost:hover {
  border-color: var(--ink);
  background-color: rgba(18, 21, 26, 0.02);
  transform: translateY(-2px);
}

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

.btn-on-dark {
  background-color: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-on-dark:hover {
  background-color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

/* ==========================================================
   Layout Structure
   ========================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  overflow: hidden;
}

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

.section-head {
  max-width: 680px;
  margin-bottom: 60px;
}

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

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

.section-head p {
  font-size: 1.1rem;
  color: var(--slate);
  margin-top: 16px;
}

/* ==========================================================
   Header & Sticky Navigation
   ========================================================== */
header.site {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(237, 239, 241, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

nav.primary {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.primary a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
}

nav.primary a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--signal);
  transition: var(--transition);
}

nav.primary a:hover {
  color: var(--signal);
}

nav.primary a:hover::after {
  width: 100%;
}

nav.primary a.active {
  color: var(--signal);
}

nav.primary a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-phone svg {
  color: var(--signal);
}

.nav-phone:hover {
  color: var(--signal);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover {
  border-color: var(--ink);
  background-color: rgba(18, 21, 26, 0.03);
}

.nav-toggle span, 
.nav-toggle span::before, 
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  position: relative;
  transition: var(--transition);
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* Mobile Nav Toggle Active State */
.nav-toggle[aria-expanded="true"] span {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile Menu Panel */
#mobile-menu {
  display: none;
}

@media (max-width: 860px) {
  nav.primary {
    display: none;
  }
  .nav-phone {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  #mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px 28px;
    border-top: 1px solid var(--line);
    background-color: var(--paper);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  }
  #mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 4px;
    color: var(--ink);
    border-bottom: 1px solid rgba(216, 220, 225, 0.4);
  }
  #mobile-menu a:last-child {
    border-bottom: none;
    font-family: var(--font-mono);
    color: var(--signal);
  }
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background-image: radial-gradient(circle at 80% 20%, rgba(33, 81, 255, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 10% 80%, rgba(255, 90, 54, 0.02) 0%, transparent 40%);
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--signal);
  background-image: linear-gradient(120deg, var(--signal-dim) 0%, rgba(33, 81, 255, 0.05) 100%);
  padding: 0 4px;
  border-radius: 4px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-note::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--effect);
  display: inline-block;
}

/* ==========================================================
   Signature Element — Signal Pipeline
   ========================================================== */
.pipeline-shell {
  margin-top: 90px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pipeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding-top: 26px;
}

/* Background Pipe Track */
.pipeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  z-index: 1;
}

/* Segmented Active Tracks Overlay */
.pipeline-track-fill {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, var(--signal) 0%, var(--signal) 40%, var(--effect) 60%, var(--effect) 100%);
  opacity: 0.15;
  z-index: 1;
}

/* Animated Pulse Traveling Dot */
.pulse-dot {
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  margin-left: -8px;
  border-radius: 50%;
  background-color: var(--signal);
  left: 10%;
  z-index: 3;
  box-shadow: 0 0 0 6px rgba(33, 81, 255, 0.2), 
              0 0 16px var(--signal);
  animation: travel var(--pulse-duration) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes travel {
  0% {
    left: 10%;
    background-color: var(--signal);
    box-shadow: 0 0 0 6px rgba(33, 81, 255, 0.2), 0 0 16px var(--signal);
  }
  48% {
    background-color: var(--signal);
    box-shadow: 0 0 0 6px rgba(33, 81, 255, 0.2), 0 0 16px var(--signal);
  }
  52% {
    background-color: var(--effect);
    box-shadow: 0 0 0 6px rgba(255, 90, 54, 0.2), 0 0 16px var(--effect);
  }
  100% {
    left: 90%;
    background-color: var(--effect);
    box-shadow: 0 0 0 6px rgba(255, 90, 54, 0.2), 0 0 16px var(--effect);
  }
}

.node {
  position: relative;
  width: 20%;
  text-align: center;
  z-index: 2;
}

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 3px solid var(--line);
  margin: 0 auto 16px;
  transition: var(--transition);
}

/* Active Node highlights */
.node:nth-child(3) .node-dot { border-color: var(--signal); }
.node:nth-child(4) .node-dot { border-color: var(--signal); }
.node:nth-child(5) .node-dot { border-color: var(--effect); }
.node:nth-child(6) .node-dot { border-color: var(--effect); }

.node:hover .node-dot {
  transform: scale(1.3);
}

.node-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}

.node-desc {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.5;
}

/* Mobile Static Pipeline Fallback */
.pipeline-mobile {
  display: none;
  margin-top: 50px;
  flex-direction: column;
  position: relative;
  padding-left: 24px;
  border-left: 2px dashed var(--line);
}

.pipeline-mobile .node {
  width: 100%;
  text-align: left;
  padding: 0 0 32px 16px;
}

.pipeline-mobile .node:last-child {
  padding-bottom: 0;
}

.pipeline-mobile .node-dot {
  position: absolute;
  left: -31px;
  top: 4px;
  margin: 0;
  background-color: var(--surface);
  border-width: 3px;
  width: 12px;
  height: 12px;
}

.pipeline-mobile .node:nth-child(1) .node-dot { border-color: var(--signal); background-color: var(--signal); }
.pipeline-mobile .node:nth-child(2) .node-dot { border-color: var(--signal); background-color: var(--signal); }
.pipeline-mobile .node:nth-child(3) .node-dot { border-color: var(--effect); background-color: var(--effect); }
.pipeline-mobile .node:nth-child(4) .node-dot { border-color: var(--effect); background-color: var(--effect); }

@media (max-width: 760px) {
  .pipeline-shell {
    display: none;
  }
  .pipeline-mobile {
    display: flex;
  }
}

/* ==========================================================
   Value Propositions (3-Up Grid)
   ========================================================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.value-card {
  background-color: var(--surface);
  padding: 44px 36px;
  transition: var(--transition);
}

.value-card:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

.value-card .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--effect);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.value-card h3 {
  margin: 16px 0 12px;
}

.value-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .value-card {
    padding: 36px 28px;
  }
}

/* ==========================================================
   Services Section & Pillars
   ========================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--signal-dim);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--signal);
  transition: var(--transition);
}

.pillar:hover .pillar-icon {
  transform: scale(1.1) rotate(2deg);
}

.pillar h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.pillar > p {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.pillar ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.pillar li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.pillar li a {
  color: var(--ink-soft);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.pillar li a:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.pillar li svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--signal);
}

.pillar-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  align-self: flex-start;
}

.pillar-link:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

/* Custom design accents for AI Automation (The Differentiator) */
.pillar.automation {
  border: 1.5px solid var(--effect);
  background: linear-gradient(180deg, var(--surface) 0%, #FFF8F6 100%);
  position: relative;
}

.pillar.automation::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--effect), transparent) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.pillar.automation:hover {
  box-shadow: 0 20px 48px rgba(255, 90, 54, 0.1);
  border-color: var(--effect);
}

.pillar.automation .pillar-icon {
  color: var(--effect);
}

.pillar.automation li svg {
  color: var(--effect);
}

.pillar.automation li a:hover {
  color: var(--effect);
  border-bottom-color: var(--effect);
}

.pillar.automation .pillar-link:hover {
  color: var(--effect);
  border-bottom-color: var(--effect);
}

.pillar.automation .tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background-color: var(--effect);
  color: var(--surface);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================
   Process Section (Dark)
   ========================================================== */
.process-box {
  background-color: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 80px 60px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.process-box .eyebrow {
  color: var(--signal-dim);
}

.process-box .section-head h2 {
  color: var(--surface);
}

.process-box .section-head p {
  color: #AEB3BD;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.step {
  border-top: 2px solid #2C3038;
  padding-top: 24px;
  transition: var(--transition);
}

.step:hover {
  border-top-color: var(--effect);
}

.step .step-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--effect);
  font-weight: 600;
}

.step h4 {
  color: var(--surface);
  font-size: 1.15rem;
  margin: 12px 0 8px;
}

.step p {
  margin: 0;
  font-size: 0.88rem;
  color: #B9BEC7;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .process-box {
    padding: 50px 32px;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }
}

@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================
   Proof & Case Studies
   ========================================================== */
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.proof-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 8px 18px;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.proof-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--signal);
  display: inline-block;
}

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

.case-card {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  background-color: var(--surface);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  border-color: var(--signal);
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.case-card .eyebrow {
  color: var(--slate);
  margin-bottom: 16px;
}

.case-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.case-card p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 20px;
}

.case-stat {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.case-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--signal);
  line-height: 1;
}

.case-stat-num.coral {
  color: var(--effect);
}

.case-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--slate);
  letter-spacing: 0.05em;
}

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

/* ==========================================================
   FAQ Section (Accordion)
   ========================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  padding: 8px 24px;
  transition: var(--transition);
}

details:hover {
  border-color: var(--signal-dim);
  box-shadow: var(--shadow-sm);
}

details[open] {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--signal);
  flex: none;
  transition: transform 0.25s ease;
  line-height: 1;
}

details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
  color: var(--effect);
}

details p {
  margin: 4px 0 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================
   Final CTA & Audit Lead-Capture Form
   ========================================================== */
.cta-band {
  background-color: var(--signal);
  color: var(--surface);
  border-radius: 20px;
  padding: 80px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(255, 90, 54, 0.08) 0%, transparent 40%);
}

.cta-band h2 {
  color: var(--surface);
}

.cta-band p.cta-desc {
  color: #DCE3FF;
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 1.1rem;
}

.cta-form {
  max-width: 580px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-form input, 
.cta-form textarea {
  flex: 1;
  min-width: 220px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--surface);
  transition: var(--transition);
}

.cta-form input::placeholder, 
.cta-form textarea::placeholder {
  color: rgba(220, 227, 255, 0.65);
}

.cta-form input:focus, 
.cta-form textarea:focus {
  outline: none;
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.cta-form textarea {
  min-height: 110px;
  resize: vertical;
  width: 100%;
}

/* Honeypot Spam Field (Visually Hidden) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-msg {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 10px;
  min-height: 1.5em;
  transition: var(--transition);
}

/* Loading button spinner */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

@media (max-width: 768px) {
  .cta-band {
    padding: 60px 24px;
  }
  .cta-form-row {
    flex-direction: column;
    gap: 16px;
  }
  .cta-form input {
    width: 100%;
  }
}

/* ==========================================================
   Footer
   ========================================================== */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background-color: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

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

.footer-brand p {
  color: var(--slate);
  font-size: 0.9rem;
  max-width: 300px;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-brand .tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--signal);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
}

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

.footer-grid a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.footer-grid a:hover {
  color: var(--signal);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--slate);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: var(--transition);
}

.social-row a:hover {
  border-color: var(--signal);
  color: var(--signal);
  background-color: rgba(33, 81, 255, 0.02);
  transform: translateY(-2px);
}

/* ==========================================================
   Scroll-Reveal Animations
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   Reduced Motion Guidelines
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .pulse-dot {
    animation: none !important;
    left: 10% !important; /* static fallback */
  }

  .node:hover .node-dot {
    transform: none !important;
  }
}
