/* ============================================
   FlowPilot — Components
   All section and component styles.
   ============================================ */

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height-mobile);
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .site-nav {
    height: var(--nav-height);
  }
}

.site-nav__inner {
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-0);
}

.site-nav__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .site-nav__logo {
    width: 36px;
    height: 36px;
  }
}

.site-nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-0);
  letter-spacing: -0.01em;
}

.site-nav__links {
  display: none;
  gap: 32px;
  font-size: 15px;
}

.site-nav__links a {
  color: var(--text-1);
  transition: color var(--duration-base) var(--ease-out);
}

.site-nav__links a:hover {
  color: var(--text-0);
}

.site-nav__cta {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav__links {
    display: flex;
  }
  .site-nav__cta {
    display: block;
  }
}

/* Hamburger (mobile only) */
.site-nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background var(--duration-base) var(--ease-out);
}

.site-nav__hamburger:hover {
  background: var(--bg-2);
}

.site-nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-0);
  transition: background var(--duration-base) var(--ease-out);
  transform-origin: center;
}

/* Hamburger stays as hamburger — close is handled by the dedicated Collapse button inside the menu */
.site-nav__hamburger[aria-expanded="true"] span {
  background: var(--brand-400);
}

@media (min-width: 1024px) {
  .site-nav__hamburger {
    display: none;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 200;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.mobile-menu[hidden] {
  display: none;
}

/* Menu top bar: X close button on the left */
.mobile-menu__header {
  flex-shrink: 0;
  height: var(--nav-height-mobile);
  display: flex;
  align-items: center;
  padding: 0 var(--container-padding);
}

.mobile-menu__close-top {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-0);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out);
  margin-left: -8px;
}

.mobile-menu__close-top:hover,
.mobile-menu__close-top:focus-visible {
  background: var(--bg-2);
}

.mobile-menu__close-top svg {
  width: 22px;
  height: 22px;
}

/* Menu body: nav links */
.mobile-menu__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px var(--container-padding) 32px;
  min-height: 0;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 14px 4px;
  font-size: 19px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-0);
  transition: color var(--duration-base) var(--ease-out),
              padding-left var(--duration-base) var(--ease-out);
  letter-spacing: normal;
  border: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--brand-300);
  padding-left: 12px;
}

.mobile-menu a.btn--primary {
  margin-top: 32px;
  align-self: flex-start;
  justify-content: center;
  text-align: center;
  padding: 14px 28px;
  font-size: 15px;
  color: #fff;
  background: var(--brand-500);
  border-radius: var(--radius-md);
  box-shadow: 0 0 24px var(--brand-glow-soft);
}

.mobile-menu a.btn--primary:hover,
.mobile-menu a.btn--primary:focus-visible {
  padding-left: 28px;
  background: var(--brand-600);
  color: #fff;
}

/* Optional bottom collapse button (kept for explicit affordance) */
.mobile-menu__close {
  flex-shrink: 0;
  margin-top: auto;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
  color: var(--text-0);
  border-color: var(--border-strong);
  background: var(--bg-2);
}

.mobile-menu__close svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-base) var(--ease-out);
}

.mobile-menu__close:hover svg {
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn--primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 0 24px var(--brand-glow-soft);
}

.btn--primary:hover {
  background: var(--brand-600);
  box-shadow: 0 0 32px var(--brand-glow);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  background: var(--bg-2);
  border-color: var(--border-lit);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  padding: 48px 0 64px;
  overflow: hidden;
}

/* Ambient background glow */
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-glow-soft), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  gap: 64px;
  align-items: center;
}

.hero__content {
  max-width: 640px;
}

.hero__content .eyebrow {
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-400) 0%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero__subhead {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--text-1);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__ctas .btn {
  width: 100%;
}

.hero__micro {
  font-size: 13px;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .hero__ctas {
    flex-direction: row;
    gap: 16px;
  }
  .hero__ctas .btn {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 120px;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 80px;
  }
  .hero__title {
    margin-bottom: 32px;
  }
  .hero__subhead {
    margin-bottom: 40px;
  }
}

/* ─── Hero visual panel ─── */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero__glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, var(--brand-glow), transparent 60%);
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.workflow-panel {
  position: relative;
  z-index: 1;
  padding: 24px;
  background:
    linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
    var(--gradient-border) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-2xl);
}

.workflow-panel .eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--text-2);
}

@media (min-width: 1024px) {
  .workflow-panel {
    padding: 32px;
  }
}

.workflow-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
}

.workflow-node__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-1);
  border-radius: var(--radius-md);
  color: var(--text-1);
}

.workflow-node__icon svg {
  width: 18px;
  height: 18px;
}

.workflow-node__text {
  flex: 1;
  min-width: 0;
}

.workflow-node__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-0);
  margin-bottom: 2px;
}

.workflow-node__subtitle {
  font-size: 12px;
  color: var(--text-2);
}

.workflow-node--featured {
  border-color: var(--brand-500);
  box-shadow:
    0 0 0 1px var(--brand-500),
    0 0 24px var(--brand-glow-soft);
}

.workflow-node--featured .workflow-node__icon {
  background: var(--brand-500);
  color: #fff;
}

.workflow-line {
  width: 2px;
  height: 24px;
  margin-left: 33px;
  background: linear-gradient(to bottom, var(--brand-500), var(--brand-glow-soft));
  opacity: 0.7;
}

.workflow-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  font-size: 12px;
  color: var(--text-2);
}

.workflow-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ═══════════════════════════════════════════
   HERO WORKFLOW PANEL — IDLE ANIMATIONS
   Scoped to .hero so HIW Tab 2 stays unaffected.
   ═══════════════════════════════════════════ */

.hero .workflow-panel {
  position: relative;
}

/* Plan A revised: no floating motion at all (accessibility-first).
   Only the featured node has a soft glow pulse to suggest "AI is alive".
   The two end nodes stay static as stable anchors. */

.hero .workflow-node--featured {
  animation: hero-node-glow 2.4s ease-in-out infinite;
}

@keyframes hero-node-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px var(--brand-500),
      0 0 20px var(--brand-glow-soft);
  }
  50% {
    box-shadow:
      0 0 0 1px var(--brand-500),
      0 0 36px var(--brand-glow);
  }
}

/* Connection lines: hold a flowing pulse dot */
.hero .workflow-line {
  position: relative;
  overflow: visible;
  z-index: 0;
}

/* Match HIW behavior: make all nodes positioned and above lines.
   This ensures the traveling particle (line::after) stays within the
   line's visual range and doesn't float over node cards. */
.hero .workflow-node {
  position: relative;
  z-index: 1;
}

.hero .workflow-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-300);
  box-shadow: 0 0 10px var(--brand-400);
  opacity: 0;
  animation: hero-pulse-travel 3s ease-in-out infinite;
}

/* Stagger the two lines so the pulse feels like one signal traveling end-to-end */
.hero .workflow-line:nth-of-type(2)::after {
  animation-delay: 0s;
}

.hero .workflow-line:nth-of-type(4)::after {
  animation-delay: 1.5s;
}

@keyframes hero-pulse-travel {
  0% {
    top: -3px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    top: calc(100% - 3px);
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    top: calc(100% - 3px);
    opacity: 0;
  }
}

/* Running status dot — breathing pulse */
.hero .workflow-status__dot {
  animation: hero-status-breathe 1.8s ease-in-out infinite;
}

@keyframes hero-status-breathe {
  0%, 100% {
    box-shadow: 0 0 8px var(--accent-cyan);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 16px var(--accent-cyan), 0 0 24px var(--accent-cyan);
    opacity: 0.7;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero .workflow-node,
  .hero .workflow-node--featured,
  .hero .workflow-line::after,
  .hero .workflow-status__dot {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════
   CARD GRID (Pain Points)
   ═══════════════════════════════════════════ */

.pain-points {
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .pain-points {
    padding: 120px 0;
  }
}

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

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.card {
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-base) var(--ease-out);
}

.card:hover {
  border-color: var(--border-lit);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px var(--brand-glow-soft);
}

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--brand-300);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-1);
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */

.features {
  padding: 64px 0;
  background: linear-gradient(to bottom, transparent, var(--brand-glow-soft), transparent);
  background-size: 100% 40%;
  background-position: 0 50%;
  background-repeat: no-repeat;
}

@media (min-width: 1024px) {
  .features {
    padding: 120px 0;
  }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

@media (min-width: 1024px) {
  .feature-list {
    gap: 120px;
  }
}

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .feature--reverse .feature__content {
    order: 2;
  }
}

.feature__content .feature__subtitle {
  margin-bottom: 16px;
}

.feature__title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-0);
  margin-bottom: 16px;
}

.feature__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  margin-bottom: 24px;
}

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

.feature__list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--text-1);
  line-height: 1.5;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--brand-500);
  border-radius: 50%;
  opacity: 0.3;
  box-shadow: 0 0 0 3px var(--brand-glow-soft);
}

/* ─── Feature visuals ─── */
.feature__visual {
  position: relative;
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  min-height: 280px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .feature__visual {
    padding: 32px;
    min-height: 360px;
  }
}

/* Visual 1: Canvas with blocks */
.visual-canvas {
  position: relative;
  height: 100%;
  min-height: 240px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  border-radius: var(--radius-lg);
  padding: 20px;
}

.canvas-block {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-0);
  font-weight: 500;
}

.canvas-block svg {
  width: 14px;
  height: 14px;
  color: var(--brand-300);
}

.canvas-block--1 { top: 20px; left: 20px; }
.canvas-block--2 {
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  border-color: var(--brand-500);
  box-shadow: 0 0 20px var(--brand-glow-soft);
}
.canvas-block--3 { bottom: 20px; right: 20px; }

.canvas-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, var(--brand-500), var(--brand-glow-soft));
  transform-origin: 0 0;
}

.canvas-line--1 {
  top: 45px;
  left: 120px;
  width: 80px;
  transform: rotate(40deg);
}

.canvas-line--2 {
  top: 120px;
  right: 80px;
  width: 80px;
  transform: rotate(40deg);
}

/* Visual 2: Chat-style step creation */
.visual-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
}

.chat-bubble--user {
  background: var(--bg-2);
  border: 1px solid var(--border);
  align-self: flex-end;
  color: var(--text-0);
}

.chat-bubble--ai {
  background: var(--brand-glow-soft);
  border: 1px solid var(--border-lit);
  align-self: flex-start;
  color: var(--text-0);
}

.chat-bubble--ai::before {
  content: "✦";
  color: var(--brand-300);
  margin-right: 6px;
  font-weight: 700;
}

.chat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: -10px;
}

.chat-label--ai {
  color: var(--brand-300);
  align-self: flex-start;
}

.chat-label--user {
  align-self: flex-end;
}

/* Visual 3: Integration grid */
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .integration-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
  }
}

.integration-tile {
  min-height: 72px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  font-size: 11px;
  font-weight: 500;
  padding: 8px;
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
}

.integration-tile:hover {
  border-color: var(--border-lit);
  color: var(--text-0);
}

.integration-tile--highlight {
  background: var(--brand-glow-soft);
  border-color: var(--border-lit);
  color: var(--text-0);
}

.integration-tile svg {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
}

.integration-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════
   HOW IT WORKS (Static — vertical stepper)
   ═══════════════════════════════════════════ */

.how-it-works {
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .how-it-works {
    padding: 120px 0;
  }
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 1024px) {
  .steps {
    gap: 48px;
  }
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  position: relative;
}

@media (min-width: 1024px) {
  .step {
    gap: 32px;
  }
}

.step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step__number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-1);
  border: 1px solid var(--brand-500);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-300);
  box-shadow: 0 0 20px var(--brand-glow-soft);
}

.step__line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--brand-500), var(--brand-glow-soft));
  opacity: 0.4;
  min-height: 40px;
}

.step:last-child .step__line {
  display: none;
}

.step__content {
  padding-bottom: 24px;
}

.step__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 12px;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .step__title {
    font-size: 26px;
  }
}

.step__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
}

.step__quote {
  display: block;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--bg-1);
  border-left: 2px solid var(--brand-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px;
  font-style: italic;
  color: var(--text-0);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════ */

.final-cta {
  position: relative;
  padding: 64px 0;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--brand-glow-soft), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 1024px) {
  .final-cta {
    padding: 120px 0;
  }
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.final-cta__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin-bottom: 20px;
}

.final-cta__subhead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-1);
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-0);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
  }
}

.site-footer__brand .site-nav__brand {
  margin-bottom: 12px;
}

.site-footer__tagline {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-1);
  margin-bottom: 12px;
}

.site-footer__note {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 320px;
}

.site-footer__col h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col a {
  font-size: 14px;
  color: var(--text-1);
  transition: color var(--duration-base) var(--ease-out);
}

.site-footer__col a:hover {
  color: var(--text-0);
}

.site-footer__bottom {
  max-width: var(--container-max);
  margin: 40px auto 0;
  padding: 24px var(--container-padding) 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
