/* ============================================================
   CAAPI OS — STYLE SYSTEM
   Applying: SKILL 01 (Taste) · SKILL 02 (Impeccable) ·
             SKILL 03 (Animate) · SKILL 04 (Polish) ·
             SKILL 05 (Deploy)
   ============================================================ */


/* ============================================================
   :ROOT — ALL DESIGN TOKENS
   (SKILL 02: Rules 1, 2, 6, 11, 15, 16 + SKILL 03 easing)
   ============================================================ */

:root {
  /* --- FONTS (Rule 1) --- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* --- TYPE SCALE — 1.25x modular from 16px base (Rule 2) --- */
  --text-xs:   0.8rem;       /* 12.8px */
  --text-sm:   0.875rem;     /* 14px   */
  --text-base: 1rem;         /* 16px   */
  --text-md:   1.25rem;      /* 20px   */
  --text-lg:   1.5625rem;    /* 25px   */
  --text-xl:   1.9375rem;    /* 31px   */
  --text-2xl:  2.4375rem;    /* 39px   */
  --text-3xl:  3.0625rem;    /* 49px   */
  --text-4xl:  3.8125rem;    /* 61px   */

  /* --- COLORS — Hamptons palette: navy + sage + coastal cream --- */
  --color-primary:       #1B3A6B;
  --color-primary-hover: #0F2647;
  --color-secondary:     #4A7C59;
  --color-secondary-hover: #3A6448;

  --color-bg:            #F7F5F0;
  --color-bg-alt:        #EAF0F5;
  --color-bg-dark:       #0C1F3F;
  --color-bg-dark-alt:   #132035;

  --color-text:          #111827;
  --color-text-muted:    #4D6680;
  --color-text-light:    #F5F5F2;
  --color-text-light-muted: rgba(245, 245, 242, 0.72);

  --color-border:        #C8D5E0;
  --color-border-dark:   rgba(255, 255, 255, 0.08);
  --color-surface:       #EDF2F7;
  --color-surface-dark:  #152030;

  /* --- SPACING — 8px grid (Rule 11) --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  16px;
  --space-4:  24px;
  --space-5:  32px;
  --space-6:  48px;
  --space-7:  64px;
  --space-8:  80px;
  --space-9:  96px;
  --space-10: 128px;

  /* --- LAYOUT WIDTHS (Rule 16) --- */
  --width-full:    1200px;
  --width-content: 800px;
  --width-narrow:  640px;
  --width-text:    65ch;

  /* --- GRID (Rule 15) --- */
  --grid-gap: 24px;

  /* --- BORDER RADIUS --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* --- VAULT MOCKUP COLORS (brand-specific, CSS vars for Rule 6) --- */
  --vault-bg:          #0D1B33;
  --vault-bg-dark:     #091527;
  --vault-border:      rgba(255, 255, 255, 0.06);
  --vault-text:        rgba(245, 245, 242, 0.5);
  --vault-text-active: #F5F5F2;

  /* --- EASING TOKENS (SKILL 03) --- */
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit:     cubic-bezier(0.4, 0, 1, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
}


/* ============================================================
   REDUCED MOTION RESPECT (SKILL 03 Golden Rule 4)
   ============================================================ */

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


/* ============================================================
   CSS RESET
   ============================================================ */

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

blockquote {
  font-style: normal;
}


/* ============================================================
   ANIMATION FOUNDATION (SKILL 03 Part 1)
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {

  /* Scroll reveal base states */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.6s var(--ease-entrance),
      transform 0.6s var(--ease-entrance);
    will-change: transform;
  }

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

  /* Stagger delays */
  .reveal-delay-1 { transition-delay: 0.10s; }
  .reveal-delay-2 { transition-delay: 0.20s; }
  .reveal-delay-3 { transition-delay: 0.30s; }
  .reveal-delay-4 { transition-delay: 0.40s; }
  .reveal-delay-5 { transition-delay: 0.50s; }

  /* Hero entrance — staggered (SKILL 03 Part 4) */
  .hero-eyebrow {
    animation: heroFadeUp 0.6s var(--ease-entrance) 0.10s both;
  }
  .hero-headline {
    animation: heroFadeUp 0.8s var(--ease-entrance) 0.22s both;
  }
  .hero-subtext {
    animation: heroFadeUp 0.7s var(--ease-entrance) 0.38s both;
  }
  .hero-cta-group {
    animation: heroFadeUp 0.6s var(--ease-entrance) 0.52s both,
               heroScale  0.6s var(--ease-spring)   0.52s both;
  }
  .hero-trust-note {
    animation: heroFadeUp 0.5s var(--ease-entrance) 0.65s both;
  }
  .hero-visual {
    animation: heroFadeUp 1.0s var(--ease-entrance) 0.30s both;
  }

  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes heroScale {
    from { transform: translateY(32px) scale(0.95); }
    to   { transform: translateY(0) scale(1); }
  }

  /* Ambient hero background (SKILL 03 Part 5) */
  @keyframes ambientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* FAQ chevron rotation */
  @keyframes chevronOpen {
    from { transform: rotate(0deg); }
    to   { transform: rotate(180deg); }
  }

}


/* ============================================================
   LAYOUT — CONTAINER
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--width-full);
  margin-inline: auto;
  padding-inline: var(--space-4);
}


/* ============================================================
   TYPOGRAPHY — BASE STYLES
   (SKILL 02 Rules 1–5 · SKILL 04 Part 1)
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p {
  max-width: var(--width-text);         /* Rule 5 — 65ch cap */
  line-height: 1.58;
}

/* Eyebrow labels (SKILL 01 Part 2 + SKILL 02 Rule 4) */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  display: block;
}


/* ============================================================
   BUTTONS
   (SKILL 02 Rule 10, 13 · SKILL 03 Part 3 · SKILL 04 Part 2)
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  will-change: transform;
  transition:
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s var(--ease-smooth),
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-lg {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-md);
  min-height: 56px;
}

.btn-full {
  width: 100%;
}

/* Primary — dark fill */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 31, 63, 0.25);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}
.btn-primary:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Secondary — ghost outline */
.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 31, 63, 0.15);
}
.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}
.btn-secondary:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Bundle CTA — gold accent */
.btn-bundle {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
  font-weight: 700;
}
.btn-bundle:hover {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 124, 89, 0.35);
}
.btn-bundle:active {
  transform: translateY(0) scale(0.98);
}
.btn-bundle:focus-visible {
  outline: 3px solid var(--color-text-light);
  outline-offset: 2px;
}

/* Inverted — light fill on dark bg */
.btn-inverted {
  background-color: var(--color-text-light);
  color: var(--color-primary);
  border-color: var(--color-text-light);
}
.btn-inverted:hover {
  background-color: var(--color-bg);
  border-color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.btn-inverted:active {
  transform: translateY(0) scale(0.98);
}
.btn-inverted:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Ghost inverted — outline on dark bg */
.btn-ghost-inverted {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: rgba(245, 244, 240, 0.4);
}
.btn-ghost-inverted:hover {
  background-color: rgba(245, 244, 240, 0.1);
  border-color: var(--color-text-light);
  transform: translateY(-2px);
}
.btn-ghost-inverted:active {
  transform: translateY(0) scale(0.98);
}
.btn-ghost-inverted:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}


/* ============================================================
   NAVIGATION
   (SKILL 01 — push logo slightly larger · SKILL 03 Part 3)
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav.scrolled {
  background-color: rgba(247, 245, 240, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border), 0 4px 24px rgba(12, 31, 63, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-4);
  max-width: var(--width-full);
  margin-inline: auto;
}

/* Wordmark — slightly larger than expected (SKILL 01 signature) */
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  z-index: 101;
  position: relative;
}
.nav-wordmark:hover {
  color: var(--color-primary);
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

/* Nav menu — mobile: hidden dropdown, desktop: flex row */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4);
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 8px 32px rgba(12, 31, 63, 0.08);
}

.nav-menu.open {
  display: flex;
}

.nav-links-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nav-link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-2) 0;
  position: relative;
  transition: color 0.15s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s var(--ease-entrance);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

.nav-cta {
  align-self: flex-start;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  background: none;
  border: none;
  padding: var(--space-2);
  z-index: 101;
  position: relative;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-in-out);
}

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

/* Desktop nav (Rule 19 — mobile first, 1024px desktop) */
@media (min-width: 1024px) {
  .nav-container {
    padding: var(--space-4) var(--space-6);
  }

  .nav-hamburger {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: var(--space-7);
    box-shadow: none;
  }

  .nav-links-group {
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
  }

  .nav-link {
    font-size: var(--text-sm);
    padding: var(--space-1) 0;
    letter-spacing: 0.01em;
  }
  .nav-link:hover::after {
    width: 100%;
  }

  .nav-cta {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    min-height: 44px;
    align-self: auto;
  }
}


/* ============================================================
   HERO SECTION
   (SKILL 01 — break symmetry, texture, rotated element
    SKILL 03 — ambient bg, entrance animation, Part 5)
   ============================================================ */

.hero {
  position: relative;
  padding-top: 128px;
  padding-bottom: var(--space-10);
  background:
    linear-gradient(
      135deg,
      var(--color-bg) 0%,
      var(--color-bg-alt) 50%,
      var(--color-bg) 100%
    );
  background-size: 300% 300%;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .hero {
    animation: ambientShift 10s ease infinite;
  }
}

/* Grain texture overlay (SKILL 01 Part 2 — texture) */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.hero-text {
  max-width: var(--width-narrow);
}

.hero-eyebrow {
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.hero-subtext {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 56ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-trust-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  max-width: none;
}

/* ---- VAULT WINDOW MOCKUP (CSS-only, Caapi OS-specific visual) ---- */

.hero-visual {
  position: relative;
  align-self: flex-start;
}

.vault-window {
  background: var(--vault-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(1.5deg);
  width: 100%;
  max-width: 480px;
  transition: transform 0.4s var(--ease-smooth);
}

.vault-window:hover {
  transform: rotate(0.5deg) translateY(-4px);
}

.vault-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--vault-bg-dark);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--vault-border);
}

.vault-dots {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.vault-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.vault-dot--red    { background: #FF5F56; }
.vault-dot--yellow { background: #FFBD2E; }
.vault-dot--green  { background: #27C93F; }

.vault-titlebar-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(245, 244, 240, 0.45);
  letter-spacing: 0.04em;
  flex: 1;
  text-align: center;
}

.vault-body {
  display: flex;
}

/* Sidebar */
.vault-sidebar {
  width: 148px;
  flex-shrink: 0;
  background: var(--vault-bg-dark);
  padding: var(--space-4) var(--space-2) var(--space-4) var(--space-3);
  border-right: 1px solid var(--vault-border);
}

.vault-sidebar-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-2);
}

.vault-sidebar-section {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 244, 240, 0.25);
  padding: var(--space-2) var(--space-2) var(--space-1);
  margin-top: var(--space-2);
}

.vault-sidebar-item {
  font-size: 11px;
  color: rgba(245, 244, 240, 0.5);
  padding: 5px var(--space-2);
  border-radius: var(--radius-sm);
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease, background 0.15s ease;
}

.vault-sidebar-item--active {
  color: var(--color-text-light);
  background: rgba(74, 124, 89, 0.12);
  border-left: 2px solid var(--color-secondary);
  padding-left: calc(var(--space-2) - 2px);
}

/* Content area */
.vault-content {
  flex: 1;
  padding: var(--space-4) var(--space-4) var(--space-4);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.vault-note-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: var(--space-3);
}

.vault-note-date {
  font-size: 9px;
  color: rgba(245, 244, 240, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.vault-note-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: -0.01em;
}

.vault-backlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vault-backlink {
  display: inline-block;
  background: rgba(74, 124, 89, 0.12);
  color: var(--color-secondary);
  border: 1px solid rgba(74, 124, 89, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.vault-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.vault-line {
  height: 8px;
  background: rgba(245, 244, 240, 0.1);
  border-radius: 3px;
  width: 100%;
}
.vault-line--short  { width: 55%; }
.vault-line--medium { width: 78%; }

.vault-stats {
  display: flex;
  gap: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.vault-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vault-stat-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: -0.02em;
}

.vault-stat-lbl {
  font-size: 9px;
  color: rgba(245, 244, 240, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Float card (SKILL 01 — breaks symmetry, slight rotation) */
.hero-float-card {
  position: absolute;
  bottom: -24px;
  left: -32px;
  background: var(--color-bg-dark);
  border: 1px solid rgba(74, 124, 89, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4);
  transform: rotate(-1.5deg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  max-width: 200px;
}

.hero-float-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: var(--space-1);
}

.hero-float-text {
  font-size: 11px;
  color: rgba(245, 244, 240, 0.55);
  line-height: 1.5;
}

/* Brand mark ✦ — Caapi OS signature (SKILL 01 Part 2) */
.hero-brand-mark {
  position: absolute;
  top: -16px;
  right: -8px;
  font-size: 32px;
  color: var(--color-secondary);
  opacity: 0.6;
  transform: rotate(15deg);
  pointer-events: none;
}

/* Hero desktop — 2-column layout */
@media (min-width: 1024px) {
  .hero {
    padding-top: 160px;
    padding-bottom: var(--space-10);
  }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
  }
  .hero-text {
    flex: 0 0 52%;
    max-width: 52%;
  }
  .hero-visual {
    flex: 1;
    padding-bottom: 24px;
    padding-right: var(--space-6);
  }
  .vault-window {
    max-width: none;
  }
}


/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */

.social-proof {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}

.social-proof-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.social-proof-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  max-width: none;
}

.social-proof-roles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.proof-sep {
  color: var(--color-secondary);
  font-weight: 400;
}


/* ============================================================
   PROBLEM SECTION — DARK
   (SKILL 02 Rule 8 — contrast · SKILL 01 — brand texture)
   ============================================================ */

.problem {
  background-color: var(--color-bg-dark);
  padding: var(--space-9) 0;
  position: relative;
}

.problem::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
}

.problem-eyebrow {
  color: var(--color-secondary);
}

.problem-headline {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
  max-width: 18ch;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.problem-card {
  background: var(--color-surface-dark);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-secondary), transparent);
  opacity: 0.6;
}

/* Card hover (SKILL 03 Part 3) */
.problem-card {
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-smooth),
    border-color 0.2s ease;
  will-change: transform;
}
.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(74, 124, 89, 0.2);
}

.problem-icon {
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.problem-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.problem-card p {
  font-size: var(--text-base);
  color: var(--color-text-light-muted);
  line-height: 1.6;
  max-width: var(--width-text);
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
  }
  .problem-card:last-child {
    grid-column: 1 / -1;
    max-width: 540px;
  }
}

@media (min-width: 1024px) {
  .problem {
    padding: var(--space-10) 0;
  }
  .problem-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .problem-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}


/* ============================================================
   SOLUTION SECTION
   (SKILL 01 — alternating layout, oversized numbers)
   ============================================================ */

.solution {
  background-color: var(--color-bg);
  padding: var(--space-9) 0;
}

.solution-headline {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  color: var(--color-text);
  margin-bottom: var(--space-9);
  max-width: 16ch;
}

.solution-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.solution-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Oversized decorative numbers (SKILL 01 — bleeds past container) */
.solution-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-border);
  user-select: none;
  flex-shrink: 0;
}

.solution-content h3 {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.solution-content p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Desktop: alternating layout (SKILL 01 — breaks symmetry) */
@media (min-width: 1024px) {
  .solution {
    padding: var(--space-10) 0;
  }

  .solution-blocks {
    gap: var(--space-7);
  }

  .solution-block {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-8);
  }

  .solution-block .solution-num {
    width: 160px;
    flex-shrink: 0;
    text-align: right;
  }

  .solution-block--flip {
    flex-direction: row-reverse;
  }

  .solution-block--flip .solution-num {
    text-align: left;
  }

  .solution-content {
    flex: 1;
    padding-top: var(--space-2);
  }
}


/* ============================================================
   PRODUCTS SECTION
   (SKILL 02 Rule 17 — bundle is dominant)
   ============================================================ */

.products {
  background-color: var(--color-bg-alt);
  padding: var(--space-9) 0;
}

.products-headline {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  margin-bottom: var(--space-8);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  margin-bottom: var(--space-6);
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-smooth);
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(12, 31, 63, 0.1);
}

.product-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.product-price-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.product-includes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.product-includes li {
  font-size: var(--text-base);
  color: var(--color-text);
  padding-left: var(--space-4);
  position: relative;
}

.product-includes li::before {
  content: '✦';
  position: absolute;
  left: 0;
  font-size: 10px;
  color: var(--color-secondary);
  top: 4px;
}

.product-quote {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-secondary);
  padding-left: var(--space-3);
  margin-top: var(--space-2);
  max-width: var(--width-text);
  line-height: 1.5;
}

/* Bundle card — dominant (SKILL 02 Rule 17) */
.bundle-card {
  background: var(--color-primary);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-smooth);
}

.bundle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(12, 31, 63, 0.35);
}

.bundle-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  margin-bottom: var(--space-4);
}

.bundle-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bundle-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  font-weight: 900;
  color: var(--color-text-light);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.bundle-desc {
  font-size: var(--text-base);
  color: var(--color-text-light-muted);
  line-height: 1.6;
}

.bundle-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.bundle-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.bundle-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-text-light);
  letter-spacing: -0.03em;
}

.bundle-save {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary);
  background: rgba(74, 124, 89, 0.15);
  padding: 2px 10px;
  border-radius: 100px;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bundle-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .bundle-left {
    flex: 1;
    max-width: 52%;
  }
  .bundle-right {
    align-items: flex-end;
  }
}

@media (min-width: 1024px) {
  .products {
    padding: var(--space-10) 0;
  }
  .product-card {
    padding: var(--space-6);
  }
}


/* ============================================================
   WALKTHROUGH STRIP
   ============================================================ */

.walkthrough-strip {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-7) 0;
}

.walkthrough-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

.walkthrough-headline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  max-width: none;
}

.walkthrough-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 58ch;
}

.walkthrough-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .walkthrough-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
  }
  .walkthrough-text {
    flex: 1;
  }
}

/* Hero walkthrough link */
.hero-walkthrough-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  transition: color 0.15s ease;
  letter-spacing: 0.01em;
}
.hero-walkthrough-link:hover {
  color: var(--color-primary);
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works {
  background: var(--color-bg);
  padding: var(--space-9) 0;
}

.hiw-headline {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  margin-bottom: var(--space-9);
}

.steps-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.step-connector-el {
  display: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

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

  .steps-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .step {
    flex: 1;
    padding-right: var(--space-6);
  }

  .step:last-child {
    padding-right: 0;
  }

  .step-connector-el {
    display: flex;
    align-items: flex-start;
    padding-top: 23px;
    flex: 0 0 48px;
  }

  .step-connector-line {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      var(--color-secondary) 0,
      var(--color-secondary) 5px,
      transparent 5px,
      transparent 12px
    );
  }
}


/* ============================================================
   TESTIMONIALS
   (SKILL 01 — colored left border on featured quote)
   ============================================================ */

.testimonials {
  background: var(--color-surface);
  padding: var(--space-9) 0;
}

.testimonials-headline {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  margin-bottom: var(--space-8);
}

/* Featured testimonial */
.testimonial-featured {
  position: relative;
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-7);
  border-left: 4px solid var(--color-secondary);
  background: var(--color-bg);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: var(--space-8);
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 900;
  color: var(--color-secondary);
  opacity: 0.25;
  line-height: 0.8;
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  pointer-events: none;
}

.testimonial-featured-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  line-height: 1.45;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
  max-width: 70ch;
  position: relative;
  z-index: 1;
}

.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Testimonial cards grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-smooth);
  will-change: transform;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(12, 31, 63, 0.08);
}

.tcard-quote {
  font-style: italic;
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  flex: 1;
}

.tcard-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tcard-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.tcard-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .testimonials {
    padding: var(--space-10) 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .testimonial-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}


/* ============================================================
   CLIENT RESULTS — CASE STUDY
   ============================================================ */

.case-study {
  background: var(--color-bg-dark);
  padding: var(--space-9) 0;
  position: relative;
}

.case-study::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
}

.cs-header {
  max-width: var(--width-content);
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

.cs-header .eyebrow {
  color: var(--color-secondary);
}

.cs-headline {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.cs-context {
  font-size: var(--text-md);
  color: var(--color-text-light-muted);
  line-height: 1.6;
  max-width: 58ch;
}

/* Quote block */
.cs-quote-block {
  position: relative;
  background: var(--color-surface-dark);
  border: 1px solid var(--color-border-dark);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6) var(--space-6) var(--space-5) var(--space-7);
  margin-bottom: var(--space-8);
  z-index: 1;
}

.cs-quote-mark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--color-secondary);
  opacity: 0.2;
  line-height: 0.8;
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  pointer-events: none;
}

.cs-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: var(--color-text-light);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
  max-width: 68ch;
  position: relative;
  z-index: 1;
}

.cs-attribution {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.cs-name {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text-light);
}

.cs-sep {
  color: var(--color-secondary);
  opacity: 0.5;
}

.cs-role {
  font-size: var(--text-sm);
  color: var(--color-text-light-muted);
}

.cs-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  background: rgba(74, 124, 89, 0.15);
  border: 1px solid rgba(74, 124, 89, 0.3);
  padding: 3px 12px;
  border-radius: 100px;
  margin-left: auto;
}

/* Document screenshots grid */
.cs-docs-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

.cs-doc-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cs-doc-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease-smooth);
}

.cs-doc-frame:hover {
  transform: translateY(-4px);
}

.cs-doc-frame img {
  width: 100%;
  display: block;
}

.cs-doc-caption {
  font-size: var(--text-sm);
  color: var(--color-text-light-muted);
  line-height: 1.5;
  padding-left: var(--space-1);
}

/* Stats row */
.cs-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5) var(--space-6);
  padding: var(--space-6);
  background: var(--color-surface-dark);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
}

.cs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}

.cs-stat-num {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  font-weight: 900;
  color: var(--color-secondary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cs-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-light-muted);
  font-weight: 500;
  white-space: nowrap;
}

.cs-stat-sep {
  font-size: var(--text-xl);
  color: var(--color-secondary);
  opacity: 0.3;
  align-self: center;
}

@media (min-width: 768px) {
  .cs-docs-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .case-study {
    padding: var(--space-10) 0;
  }
  .cs-doc-figure:first-child .cs-doc-frame {
    transform: rotate(-0.75deg);
  }
  .cs-doc-figure:last-child .cs-doc-frame {
    transform: rotate(0.75deg);
  }
  .cs-doc-figure:first-child .cs-doc-frame:hover {
    transform: rotate(-0.75deg) translateY(-6px);
  }
  .cs-doc-figure:last-child .cs-doc-frame:hover {
    transform: rotate(0.75deg) translateY(-6px);
  }
}


/* ============================================================
   FAQ — ACCORDION
   (SKILL 01 — 2-column layout breaks symmetry)
   ============================================================ */

.faq {
  background: var(--color-bg);
  padding: var(--space-9) 0;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.faq-heading-col .faq-headline {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  max-width: 18ch;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-4) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.3s var(--ease-in-out);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-item.open .faq-question {
  color: var(--color-secondary);
}

.faq-answer {
  padding-bottom: var(--space-5);
}

.faq-answer p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Desktop: 2-column layout (SKILL 01 — asymmetric) */
@media (min-width: 1024px) {
  .faq {
    padding: var(--space-10) 0;
  }
  .faq-container {
    flex-direction: row;
    gap: var(--space-10);
    align-items: flex-start;
  }
  .faq-heading-col {
    flex: 0 0 320px;
    position: sticky;
    top: 120px;
  }
  .faq-list {
    flex: 1;
  }
}


/* ============================================================
   FINAL CTA — DARK
   (SKILL 03 Part 5 — ambient bg · SKILL 02 Rule 8 — contrast)
   ============================================================ */

.final-cta {
  position: relative;
  background:
    linear-gradient(
      135deg,
      var(--color-bg-dark) 0%,
      var(--color-bg-dark-alt) 50%,
      var(--color-bg-dark) 100%
    );
  background-size: 300% 300%;
  padding: var(--space-9) 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .final-cta {
    animation: ambientShift 10s ease infinite;
  }
}

.final-cta-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--width-content);
  margin-inline: auto;
}

.final-cta-eyebrow {
  color: var(--color-secondary);
}

.final-cta-headline {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.final-cta-sub {
  font-size: var(--text-md);
  color: var(--color-text-light-muted);
  margin-bottom: var(--space-7);
  margin-inline: auto;
  max-width: 52ch;
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-4);
}

.final-cta-bundle {
  display: inline-block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-light-muted);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.final-cta-bundle:hover {
  color: var(--color-secondary);
}

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


/* ============================================================
   FOOTER
   (SKILL 02 Rule 20 — all required elements)
   ============================================================ */

.footer {
  background: var(--color-bg-dark);
  padding: var(--space-9) 0 var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
  display: inline-block;
  margin-bottom: var(--space-3);
}
.footer-wordmark:hover {
  color: var(--color-secondary);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(245, 244, 240, 0.35);
  line-height: 1.6;
  max-width: 32ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(245, 244, 240, 0.5);
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--color-text-light);
}
.footer-link:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-email {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary);
  transition: color 0.15s ease;
}
.footer-email:hover {
  color: var(--color-secondary-hover);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(245, 244, 240, 0.25);
  max-width: none;
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

.footer-legal .footer-link {
  font-size: var(--text-xs);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-8);
  }
  .footer-brand {
    flex: 0 0 220px;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .footer-nav {
    gap: var(--space-2) var(--space-5);
    flex-direction: column;
  }
}


/* ============================================================
   UTILITY — FOCUS STATES & ACCESSIBILITY
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}


/* ============================================================
   CARD BASE — shared hover foundation
   ============================================================ */

.card {
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-smooth);
  will-change: transform;
}


/* ============================================================
   RESPONSIVE — TABLET (768px)
   ============================================================ */

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-5);
  }

  .hero-cta-group {
    flex-direction: row;
    flex-wrap: nowrap;
  }
}


/* ============================================================
   RESPONSIVE — DESKTOP (1024px)
   ============================================================ */

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-6);
  }

  /* Section spacing upgrade */
  .social-proof {
    padding: var(--space-5) 0;
  }

  .solution-headline,
  .products-headline,
  .testimonials-headline,
  .hiw-headline {
    margin-bottom: var(--space-9);
  }
}


/* ============================================================
   RESPONSIVE — LARGE DESKTOP (1280px+)
   ============================================================ */

@media (min-width: 1280px) {
  .hero {
    padding-bottom: var(--space-10);
  }

  .vault-window {
    transform: rotate(2deg);
  }
}


/* ============================================================
   MOBILE FIXES — max 767px
   Targeted corrections only — desktop untouched
   ============================================================ */

@media (max-width: 767px) {

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* Remove vault rotation — causes right-side bleed */
  .vault-window {
    transform: none;
    max-width: 100%;
  }

  /* Float card — absolute + negative left was overflowing */
  .hero-float-card {
    position: static;
    transform: none;
    margin-top: var(--space-4);
    max-width: 100%;
  }

  /* Decorative mark — not needed on mobile */
  .hero-brand-mark {
    display: none;
  }

  /* Hero CTA — full width on mobile */
  .hero-cta-group .btn-lg {
    width: 100%;
    justify-content: center;
  }

  /* Solution headline — too wide at clamp minimum */
  .solution-headline {
    font-size: var(--text-lg);
  }

  /* Reduce section vertical padding on mobile */
  .problem,
  .solution,
  .products,
  .how-it-works,
  .testimonials,
  .case-study,
  .faq,
  .final-cta,
  .footer {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  /* Nav logo — slightly smaller */
  .nav-logo-img {
    height: 40px;
  }

  /* Case study badge — don't push to far right */
  .cs-badge {
    margin-left: 0;
    margin-top: var(--space-2);
  }

  /* Stats row — force single row, no stacking */
  .cs-stats-row {
    flex-wrap: nowrap;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
  }

  .cs-stat-num {
    font-size: var(--text-2xl);
  }

  .cs-stat-label {
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }

  .cs-stat-sep {
    display: none;
  }

}
