/* =========================================================================
   TruthBox Landing Page — Umbrel-inspired, dark-first
   ========================================================================= */

/* --- Tokens --- */
:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --surface: #111111;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.04);
  --ink: #ffffff;
  --ink-70: rgba(255, 255, 255, 0.7);
  --ink-50: rgba(255, 255, 255, 0.5);
  --ink-30: rgba(255, 255, 255, 0.3);
  --ink-10: rgba(255, 255, 255, 0.1);
  --accent: #5ab4ac;
  --accent-dark: #3d9d94;
  --accent-glow: rgba(90, 180, 172, 0.15);
  --accent-glow-strong: rgba(90, 180, 172, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --max-w: 1200px;
  --nav-h: 64px;
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Light theme overrides --- */
[data-theme="light"] {
  --bg: #fafafa;
  --bg-alt: #f2f2f0;
  --surface: #ffffff;
  --surface-border: rgba(0, 0, 0, 0.08);
  --surface-hover: rgba(0, 0, 0, 0.03);
  --ink: #111111;
  --ink-70: rgba(0, 0, 0, 0.65);
  --ink-50: rgba(0, 0, 0, 0.45);
  --ink-30: rgba(0, 0, 0, 0.25);
  --ink-10: rgba(0, 0, 0, 0.08);
  --accent-glow: rgba(90, 180, 172, 0.1);
  --accent-glow-strong: rgba(90, 180, 172, 0.2);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

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

.link-accent {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(90, 180, 172, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.link-accent:hover {
  text-decoration-color: var(--accent);
}

/* =========================================================================
   NAV — Glassmorphic sticky header
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--ink-10);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.7);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-70);
  transition: color 0.15s var(--ease);
}

.nav__link:hover { color: var(--ink); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* --- Theme Toggle --- */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--ink-70);
  transition: color 0.15s, background 0.15s;
}

.theme-toggle:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.theme-toggle__icon { width: 18px; height: 18px; }

[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

/* --- CTA Buttons --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  padding: 0 1.5rem;
  height: 44px;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.btn-cta--nav {
  background: var(--ink);
  color: var(--bg);
  height: 38px;
  font-size: 0.8125rem;
  padding: 0 1.25rem;
}

.btn-cta--nav:hover { opacity: 0.85; }

.btn-cta--hero {
  background: var(--ink);
  color: var(--bg);
  height: 52px;
  font-size: 1rem;
  padding: 0 2rem;
}

.btn-cta--hero:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-cta--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-30);
  height: 52px;
  font-size: 1rem;
  padding: 0 2rem;
}

.btn-cta--secondary:hover {
  border-color: var(--ink-50);
  background: var(--surface-hover);
}

.btn-cta--accent {
  background: var(--accent);
  color: #fff;
}

.btn-cta--accent:hover { background: var(--accent-dark); }

.btn-cta--full { width: 100%; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: calc(var(--nav-h) + 3rem) 24px 3rem;
  overflow: hidden;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero__bg-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(90, 180, 172, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero__bg-glow {
  background: radial-gradient(ellipse at center, rgba(90, 180, 172, 0.04) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  flex-shrink: 0;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-70);
  max-width: 560px;
  margin: 0 0 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero__note {
  font-size: 0.8125rem;
  color: var(--ink-50);
}

/* --- 3D Product Mockup (6-face CSS box) --- */
.hero__product {
  position: relative;
  z-index: 1;
  margin-top: 0;
  flex-shrink: 0;
}

.mockup-scene {
  perspective: 1100px;
  width: 520px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: grab;
}

.mockup-scene:active { cursor: grabbing; }

.mockup-scene--specs {
  width: 420px;
  height: 340px;
}

.mockup-box {
  width: 340px;
  height: 68px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-15deg) rotateY(-25deg);
  animation: mockupRotate 20s ease-in-out infinite;
}

.mockup-box--specs {
  width: 280px;
  height: 56px;
  animation: mockupFloat 6s ease-in-out infinite;
}

@keyframes mockupRotate {
  0%   { transform: rotateX(-15deg) rotateY(-25deg); }
  25%  { transform: rotateX(-20deg) rotateY(-50deg); }
  50%  { transform: rotateX(-12deg) rotateY(-25deg); }
  75%  { transform: rotateX(-15deg) rotateY(5deg); }
  100% { transform: rotateX(-15deg) rotateY(-25deg); }
}

@keyframes mockupFloat {
  0%, 100% { transform: rotateX(-20deg) rotateY(-25deg) translateY(0); }
  50%      { transform: rotateX(-20deg) rotateY(-25deg) translateY(-6px); }
}

.mockup-face {
  position: absolute;
  background: #1e1e1e;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mockup-face svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Closed box — W:340 × D:245 × H:68
   All faces share same center. Top/bottom offset via top+left to align. */
.mockup-top {
  width: 340px;
  height: 245px;
  top: calc((68px - 245px) / 2);
  left: 0;
  transform: rotateX(90deg) translateZ(34px);
}

.mockup-front {
  width: 340px;
  height: 68px;
  transform: translateZ(122.5px);
}

.mockup-back {
  width: 340px;
  height: 68px;
  transform: rotateY(180deg) translateZ(122.5px);
}

.mockup-left {
  width: 245px;
  height: 68px;
  left: calc((340px - 245px) / 2);
  transform: rotateY(-90deg) translateZ(170px);
}

.mockup-right {
  width: 245px;
  height: 68px;
  left: calc((340px - 245px) / 2);
  transform: rotateY(90deg) translateZ(170px);
}

.mockup-bottom {
  width: 340px;
  height: 245px;
  top: calc((68px - 245px) / 2);
  left: 0;
  transform: rotateX(-90deg) translateZ(34px);
  background: #050505;
}

.mockup-shadow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(90, 180, 172, 0.18) 0%, rgba(90, 180, 172, 0.06) 40%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(-40px);
  pointer-events: none;
}

/* Specs version — W:280 D:202 H:56 */
.mockup-box--specs .mockup-top {
  width: 280px;
  height: 202px;
  top: calc((56px - 202px) / 2);
  left: 0;
  transform: rotateX(90deg) translateZ(28px);
}

.mockup-box--specs .mockup-front {
  width: 280px;
  height: 56px;
  transform: translateZ(101px);
}

.mockup-box--specs .mockup-back {
  width: 280px;
  height: 56px;
  transform: rotateY(180deg) translateZ(101px);
}

.mockup-box--specs .mockup-left {
  width: 202px;
  height: 56px;
  left: calc((280px - 202px) / 2);
  transform: rotateY(-90deg) translateZ(140px);
}

.mockup-box--specs .mockup-right {
  width: 202px;
  height: 56px;
  left: calc((280px - 202px) / 2);
  transform: rotateY(90deg) translateZ(140px);
}

.mockup-box--specs .mockup-bottom {
  width: 280px;
  height: 202px;
  top: calc((56px - 202px) / 2);
  left: 0;
  transform: rotateX(-90deg) translateZ(28px);
}

.mockup-box--specs .mockup-shadow {
  width: 320px;
  height: 320px;
}

/* =========================================================================
   TRUST STRIP
   ========================================================================= */
.trust-strip {
  padding: 2rem 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
  background: var(--bg-alt);
}

.trust-strip__items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-70);
}

.trust-strip__icon { font-size: 1.125rem; }

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.section__subtitle {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--ink-70);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

/* =========================================================================
   OUTCOME CARDS — What It Does
   ========================================================================= */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.outcome-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.outcome-card:hover {
  border-color: var(--ink-30);
  transform: translateY(-2px);
}

.outcome-card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.outcome-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.625rem;
  line-height: 1.35;
}

.outcome-card__text {
  font-size: 0.875rem;
  color: var(--ink-70);
  line-height: 1.65;
}

/* =========================================================================
   AGENT COMPARE
   ========================================================================= */
.agent-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
}

.agent-card--personal {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.agent-card__badge {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.agent-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.agent-card__desc {
  font-size: 0.9375rem;
  color: var(--ink-70);
  margin-bottom: 1.5rem;
}

.agent-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.agent-card__features li {
  font-size: 0.875rem;
  color: var(--ink-70);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.agent-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.agent-card__channel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-border);
  font-size: 0.8125rem;
  color: var(--ink-50);
}

.agent-card__channel-icon { font-size: 1.125rem; }

/* =========================================================================
   STEPS — How it works
   ========================================================================= */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: 0.875rem;
  color: var(--ink-70);
  line-height: 1.65;
}

.step__connector {
  width: 60px;
  height: 2px;
  background: var(--ink-10);
  margin-top: 24px;
  flex-shrink: 0;
}

/* =========================================================================
   SPECS — Hardware
   ========================================================================= */
.specs-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.specs-visual {
  display: flex;
  justify-content: center;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.spec-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.spec-item__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 0.375rem;
}

.spec-item__value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.spec-item__detail {
  font-size: 0.8125rem;
  color: var(--ink-50);
}

/* =========================================================================
   PRICING
   ========================================================================= */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
}

.pricing-card--sub {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.pricing-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
}

.pricing-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 0.75rem;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.125rem;
  margin-bottom: 0.25rem;
}

.pricing-card__currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing-card__period-inline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-50);
  margin-left: 0.25rem;
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--ink-50);
  margin-bottom: 1.5rem;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.pricing-card__features li {
  font-size: 0.875rem;
  color: var(--ink-70);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.pricing-note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-50);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================================================
   FOUNDER
   ========================================================================= */
.founder-card {
  max-width: 720px;
  margin: 0 auto;
}

.founder-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.founder-card__text {
  font-size: 1rem;
  color: var(--ink-70);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.founder-card__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.founder-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  transition: all 0.2s var(--ease);
}

.founder-card__link:hover {
  background: var(--accent);
  color: #fff;
}

.founder-card__link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.faq-item__q {
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-50);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] .faq-item__q::after {
  content: "\2212";
}

.faq-item__a {
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-70);
  line-height: 1.7;
}

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.final-cta {
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--ink-10);
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.final-cta__text {
  font-size: 1.0625rem;
  color: var(--ink-70);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.final-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--ink-10);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-50);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--ink-30);
}

/* =========================================================================
   MODAL
   ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--ease);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  color: var(--ink-50);
  transition: color 0.15s, background 0.15s;
}

.modal__close:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.375rem;
}

.modal__subtitle {
  font-size: 0.9375rem;
  color: var(--ink-50);
  margin-bottom: 1.75rem;
}

.modal__field {
  margin-bottom: 1rem;
}

.modal__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-70);
  margin-bottom: 0.375rem;
}

.modal__input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.modal__input::placeholder { color: var(--ink-30); }

.modal__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.modal__input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Honeypot — invisible to humans */
.modal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.modal__submit {
  height: 48px;
  font-size: 1rem;
}

.modal__success {
  text-align: center;
  padding: 1rem 0;
}

.modal__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.modal__success h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.modal__success p {
  font-size: 0.9375rem;
  color: var(--ink-70);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* Tablet */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; gap: 2rem; }
  .hero__content { max-width: 720px; }
  .hero__subtitle { margin: 0 auto 2.5rem; }
  .hero__actions { justify-content: center; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .agent-compare { grid-template-columns: 1fr; }
  .specs-showcase { grid-template-columns: 1fr; }
  .specs-visual { margin-bottom: 1rem; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 420px; }
  .steps { flex-direction: column; align-items: center; gap: 1.5rem; }
  .step__connector { width: 2px; height: 30px; }
  .mockup-scene { width: 400px; height: 320px; }
  .mockup-box { width: 280px; height: 56px; }
  .mockup-box .mockup-top { width: 280px; height: 202px; top: calc((56px - 202px) / 2); left: 0; transform: rotateX(90deg) translateZ(28px); }
  .mockup-box .mockup-front { width: 280px; height: 56px; transform: translateZ(101px); }
  .mockup-box .mockup-back { width: 280px; height: 56px; transform: rotateY(180deg) translateZ(101px); }
  .mockup-box .mockup-left { width: 202px; height: 56px; left: calc((280px - 202px) / 2); transform: rotateY(-90deg) translateZ(140px); }
  .mockup-box .mockup-right { width: 202px; height: 56px; left: calc((280px - 202px) / 2); transform: rotateY(90deg) translateZ(140px); }
  .mockup-box .mockup-bottom { width: 280px; height: 202px; top: calc((56px - 202px) / 2); left: 0; transform: rotateX(-90deg) translateZ(28px); }
  .mockup-box .mockup-shadow { width: 300px; height: 300px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .section { padding: 4rem 0; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  /* Mobile menu */
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 24px 1.5rem;
    gap: 1rem;
  }

  .nav__links.open .nav__link {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .btn-cta--nav { display: none; }

  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 2rem; flex-direction: column; text-align: center; gap: 1.5rem; }
  .hero__content { max-width: 100%; }
  .hero__subtitle { margin: 0 auto 2rem; }
  .hero__actions { justify-content: center; }
  .hero__title { font-size: 2.25rem; }

  .mockup-scene { width: 320px; height: 260px; }
  .mockup-box { width: 220px; height: 44px; }
  .mockup-box .mockup-top { width: 220px; height: 158px; top: calc((44px - 158px) / 2); left: 0; transform: rotateX(90deg) translateZ(22px); }
  .mockup-box .mockup-front { width: 220px; height: 44px; transform: translateZ(79px); }
  .mockup-box .mockup-back { width: 220px; height: 44px; transform: rotateY(180deg) translateZ(79px); }
  .mockup-box .mockup-left { width: 158px; height: 44px; left: calc((220px - 158px) / 2); transform: rotateY(-90deg) translateZ(110px); }
  .mockup-box .mockup-right { width: 158px; height: 44px; left: calc((220px - 158px) / 2); transform: rotateY(90deg) translateZ(110px); }
  .mockup-box .mockup-bottom { width: 220px; height: 158px; top: calc((44px - 158px) / 2); left: 0; transform: rotateX(-90deg) translateZ(22px); }
  .mockup-box .mockup-shadow { width: 240px; height: 240px; }
  .mockup-scene--specs { width: 260px; height: 220px; }

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

  .pricing-card { padding: 2rem 1.5rem; }

  .footer__inner { flex-direction: column; gap: 0.75rem; text-align: center; }

  .modal { padding: 2rem 1.5rem; }
}

/* Animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
