/* ============================================================
   shared/styles.css — linqIQ Common Design System
   Imported by all landing pages. Covers variables, reset,
   typography, layout, navbar, hero, cards, forms, footer,
   carousel, and responsive breakpoints.
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --color-bg:               #080E1A;
  --color-surface:          #0D1626;
  --color-surface-2:        #111D33;
  --color-primary:          #0EA5E9;
  --color-secondary:        #6366F1;
  --color-accent-red:       #EF4444;
  --color-accent-gold:      #F59E0B;
  --color-accent-green:     #22C55E;
  --color-accent-emerald:   #10B981;
  --color-text:             #F0F6FF;
  --color-text-muted:       #7A90B0;
  --color-text-light:       #B0C4DE;
  --color-text-gray:        #9CA3AF;
  --color-text-dim:         #D1D5DB;
  --color-border:           #1E2E47;
  --color-border-primary:   rgba(14, 165, 233, 0.1);
  --color-border-secondary: rgba(99, 102, 241, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'IBM Plex Sans', 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ── BACKGROUND EFFECTS ── */

/* Radial gradient orbs */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Grid pattern overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(0deg,   transparent 24%, rgba(14, 165, 233, 0.02) 25%, rgba(14, 165, 233, 0.02) 26%, transparent 27%, transparent 74%, rgba(14, 165, 233, 0.02) 75%, rgba(14, 165, 233, 0.02) 76%, transparent 77%, transparent),
    linear-gradient(90deg,  transparent 24%, rgba(14, 165, 233, 0.02) 25%, rgba(14, 165, 233, 0.02) 26%, transparent 27%, transparent 74%, rgba(14, 165, 233, 0.02) 75%, rgba(14, 165, 233, 0.02) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* Content wrapper — lifts content above pseudo-element backgrounds */
.content {
  position: relative;
  z-index: 2;
}

/* ── TYPOGRAPHY ── */
h1, .font-display {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2, h3, .font-heading {
  font-family: 'DM Sans', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT UTILITIES ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.section {
  padding: 6rem 0;
  scroll-margin-top: 80px;
}

section[id] {
  scroll-margin-top: 80px;
}

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-header-left {
  text-align: left;
  max-width: 800px;
  margin: 0 0 3rem;
}

/* ── ASYMMETRIC GRID UTILITIES ── */
.grid-featured {
  grid-column: span 2;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .section-header-left {
    text-align: center;
    margin: 0 auto 2rem;
  }
  .grid-featured {
    grid-column: span 1;
  }
  .grid-2-1,
  .grid-1-2 {
    grid-template-columns: 1fr;
  }
}

.section-header .eyebrow,
.section-eyebrow {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-header .title,
.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section-header .subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(8, 14, 26, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-primary);
  padding: 1rem 2rem;
  transition: padding 0.3s ease, background 0.3s ease;
}

/* Some pages use <nav> directly instead of .navbar */
nav.navbar,
nav:not(.navbar) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(8, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-primary);
  padding: 1rem 2rem;
}

.navbar-content,
.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo,
.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Primary CTA button in navbar */
.open-app-btn,
.nav-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary) 0%, #06B6D4 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.open-app-btn:hover,
.nav-cta:hover {
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
}

/* Scrolled state — reduced padding, darker bg */
.navbar.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(8, 14, 26, 0.95);
}

/* ── HERO SECTION ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-eyebrow,
.hero-pretitle {
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero h1,
.hero-headline,
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-gray);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-description {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  background: rgba(13, 22, 38, 0.8);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 500px;
  backdrop-filter: blur(10px);
}

.hero-stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.hero-stat-label {
  font-size: 0.95rem;
  color: var(--color-text-dim);
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  box-shadow: 0 0 60px rgba(14, 165, 233, 0.6);
  transform: translateY(-3px);
  background: #06B6D4;
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  padding: 1rem 2rem;
  border: 2px solid var(--color-primary);
  border-radius: 100px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(14, 165, 233, 0.1);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
  transform: translateY(-3px);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* ── GLASS CARD ── */
.glass-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-primary);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.1);
}

/* ── CHAPTER CARDS (narrative pages) ── */
.chapter-card {
  background: linear-gradient(135deg, rgba(13, 22, 38, 0.8), rgba(17, 29, 51, 0.8));
  border: 1px solid var(--color-border-primary);
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
  backdrop-filter: blur(10px);
}

/* Colored left-border accent variants */
.chapter-card.accent-red,
.chapter-1 {
  border-left: 4px solid var(--color-accent-red);
  padding-left: 2rem;
}

.chapter-card.accent-orange,
.chapter-2 {
  border-left: 4px solid var(--color-accent-gold);
  padding-left: 2rem;
}

.chapter-card.accent-cyan,
.chapter-3 {
  border-left: 4px solid var(--color-primary);
  padding-left: 2rem;
}

.chapter-card.accent-green,
.chapter-4 {
  border-left: 4px solid var(--color-accent-green);
  padding-left: 2rem;
}

/* ── FEATURE CARD ── */
.feature-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.15);
  transform: translateY(-8px);
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── STAT CARD ── */
.stat-card {
  text-align: center;
}

.stat-card .stat-number,
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-card .stat-label,
.stat-label {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Counter numbers used across multiple pages */
.counter-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--color-text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── SHIFT / FEATURE CARDS GRID ── */
.shift-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.shift-card {
  background: var(--color-surface);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 14px;
  padding: 2rem;
  border-top: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.shift-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.1);
  transform: translateY(-5px);
}

.shift-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.shift-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.shift-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  height: 1px;
  background: rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
  position: relative;
  z-index: 2;
}

/* ── BE BETTER / MANTRA BANNERS ── */
.be-better-container {
  background: linear-gradient(135deg, rgba(13, 22, 38, 0.8) 0%, rgba(17, 29, 51, 0.8) 100%);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 3rem auto;
  max-width: 1200px;
  text-align: center;
}

.be-better-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.be-better-standalone {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  font-style: italic;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 2rem auto;
}

.mantra-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 2px solid rgba(14, 165, 233, 0.25);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
  text-align: center;
}

.mantra-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

/* ── HIGHLIGHT / ACCENT UTILITIES ── */
.highlight {
  background: linear-gradient(120deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.2));
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.accent {
  font-weight: 700;
}

/* ── FORM STYLES ── */
#audit-form {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 4rem auto;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 20px;
}

#linqiq-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group-full textarea {
  min-height: 120px;
  resize: vertical;
}

.form-header h2,
.form-title {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-header p,
.form-subtitle {
  text-align: center;
  color: var(--color-text-gray);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 0;
}

.form-group label,
.form-label {
  display: block;
  font-weight: 500;
  color: var(--color-text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

label {
  font-weight: 500;
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

.optional {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

input,
select,
textarea,
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: 'IBM Plex Sans', 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

select option {
  background: var(--color-bg);
  color: var(--color-text);
}

textarea,
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Radio groups */
.radio-group,
.renewal-options {
  display: flex;
  gap: 2rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  width: auto;
  accent-color: var(--color-primary);
}

.radio-option label {
  margin-bottom: 0;
  cursor: pointer;
  color: var(--color-text-muted);
}

/* Submit button */
button[type="submit"],
.form-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
  margin-top: 1rem;
}

button[type="submit"]:hover,
.form-submit:hover {
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

button[type="submit"]:active,
.form-submit:active {
  transform: scale(0.97);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

button[type="submit"]:disabled,
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form grid layout (used by some pages) */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Form error state */
.form-error {
  color: var(--color-accent-red);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Form success state */
.success-icon {
  font-size: 3rem;
  color: var(--color-accent-green);
  margin-bottom: 1rem;
}

.form-success-state,
.success-message {
  text-align: center;
  padding: 2rem;
}

.form-success-state h3,
.success-message h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  color: var(--color-accent-green);
  margin-bottom: 1rem;
}

.form-success-state p,
.success-message p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Form loading spinner */
.form-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: formSpin 0.6s linear infinite;
}

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

/* Trust badges (under forms) */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.badge-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

/* ── TESTIMONIAL / CAROUSEL ── */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
  background: var(--color-surface-2);
  border-radius: 8px;
  padding: 3rem 2rem;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(13, 22, 38, 0.8), rgba(17, 29, 51, 0.8));
  border: 1px solid var(--color-border-primary);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.testimonial-carousel .testimonial-card {
  display: none;
}

.testimonial-carousel .testimonial-card.active {
  display: block;
}

/* Carousel slide mechanics */
.carousel-slide {
  flex: 0 0 100%;
  display: none;
}

.carousel-slide.active {
  display: block;
  animation: fadeInSlide 0.5s ease-in-out;
}

/* For grid-based carousel layout (page 13 style) */
.carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-quote,
.testimonial-text {
  font-size: 1rem;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--color-text-gray);
}

.testimonial-stars {
  color: var(--color-accent-gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot,
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active,
.dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 5px;
}

/* Carousel arrow buttons */
.carousel-prev,
.carousel-next,
.carousel-btn {
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
}

.carousel-prev:hover,
.carousel-next:hover,
.carousel-btn:hover {
  background: rgba(14, 165, 233, 0.4);
  border-color: rgba(14, 165, 233, 0.8);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* ── TESTIMONIAL GRID (static, replaces carousel) ── */
.testimonial-grid {
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-featured {
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border-primary);
  border-left: 3px solid var(--color-primary);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-featured::before {
  content: '\201C';
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-featured .tg-quote {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 1rem;
  max-width: 65ch;
}

.testimonial-featured .tg-attr {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.testimonial-supporting {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.testimonial-supporting-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-primary);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-supporting-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
}

.testimonial-supporting-card .tg-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial-supporting-card .tg-attr {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .testimonial-supporting {
    grid-template-columns: 1fr;
  }
  .testimonial-featured {
    padding: 2rem 1.5rem;
  }
}

/* ── CHAPTER STYLES (narrative pages) ── */
.chapters-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.chapter {
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.chapter.visible {
  opacity: 1;
  transform: translateY(0);
}

.chapter-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.chapter-number {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  opacity: 0.2;
}

.chapter-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.chapter-text {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

/* Chapter accent colours */
.chapter-1 .chapter-title { color: #FCA5A5; }
.chapter-1 .accent        { color: var(--color-accent-red); }
.chapter-2 .chapter-title { color: #FDBA74; }
.chapter-2 .accent        { color: var(--color-accent-gold); }
.chapter-3 .chapter-title { color: #06B6D4; }
.chapter-3 .accent        { color: var(--color-primary); }
.chapter-4 .chapter-title { color: #6EE7B7; }
.chapter-4 .accent        { color: var(--color-accent-emerald); }

/* ── FINAL CTA SECTION ── */
.final-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #06B6D4 100%);
  padding: 4rem 2rem;
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 1200px;
}

.final-cta-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

/* ── FOOTER ── */
footer,
.footer {
  background: #050B14;
  border-top: 1px solid var(--color-border);
  padding: 48px 2rem 0;
  color: var(--color-text-gray);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a,
.footer-contact span {
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.footer-social a {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--color-primary);
}

.related-perspectives {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.related-perspectives h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.related-perspectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 24px;
}

.related-perspectives-grid a {
  color: var(--color-text-muted);
  font-size: 13px;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.related-perspectives-grid a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-text-muted);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom a {
  color: var(--color-text-muted);
  margin-left: 20px;
}

.footer-bottom a:hover {
  color: var(--color-primary);
}


/* ── DISCLAIMERS ── */
.site-disclaimers {
  background: #050B14;
  padding: 2rem 2rem 1.5rem;
  border-top: 1px solid var(--color-border-primary);
}

.site-disclaimers .container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .site-disclaimers .container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.disclaimer-block {
  margin-bottom: 0;
}

.disclaimer-block h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.disclaimer-block p {
  font-size: 0.7rem;
  line-height: 1.55;
  color: #4A5E78;
}

.disclaimer-link {
  display: inline;
  font-size: 0.7rem;
  color: #4A5E78;
  text-decoration: none;
  font-style: italic;
  transition: color 0.2s;
}

.disclaimer-link:hover {
  color: var(--color-text-muted);
}

/* ── SCROLL ANIMATIONS ── */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-animate.active {
  animation: fadeInUp 0.6s ease-out forwards;
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll reveal — transition-based (used by form.js IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── KEYFRAME ANIMATIONS ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInSlide {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── MOBILE MENU TOGGLE ── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── RESPONSIVE: MOBILE (<768px) ── */
@media (max-width: 768px) {
  /* Mobile nav */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(8, 14, 26, 0.95);
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border-primary);
    width: 100%;
  }

  .nav-links.active,
  .nav-links.open {
    display: flex;
  }

  /* Hero stacks to column */
  .hero {
    flex-direction: column;
    padding: 100px 1rem 2rem;
    gap: 2rem;
  }

  .hero-visual {
    width: 100%;
  }

  .hero h1,
  .hero-headline,
  .hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
  }

  .hero-subheadline {
    font-size: 1.2rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* Reduce section padding */
  .section {
    padding: 3rem 0;
  }

  /* Full-width cards */
  .shift-cards {
    grid-template-columns: 1fr;
  }

  /* Chapter adjustments */
  .chapter-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chapter-number {
    font-size: 3rem;
  }

  .chapter-title {
    font-size: 1.8rem;
  }

  /* Navbar CTA */
  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  nav:not(.navbar) {
    padding: 1rem;
  }

  /* Form adjustments */
  #linqiq-form {
    grid-template-columns: 1fr;
  }

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

  .audit-form,
  #audit-form {
    padding: 2rem 1.5rem;
  }

  /* Carousel */
  .carousel {
    grid-template-columns: 1fr;
  }

  /* Section heading */
  .section-heading {
    font-size: 1.8rem;
  }

  /* Final CTA */
  .final-cta-heading {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }

  /* Footer stacks to column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom a {
    margin-left: 0;
    margin-right: 10px;
  }
}

/* ── RESPONSIVE: TABLET (768px-1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .shift-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    gap: 2rem;
  }

  .hero h1,
  .hero-headline,
  .hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
}

/* ── RESPONSIVE: SMALL MOBILE (<480px) ── */
@media (max-width: 480px) {
  .hero h1,
  .hero-headline,
  .hero-title {
    font-size: 2rem;
  }

  .hero-subheadline {
    font-size: 1.1rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .trust-badges {
    gap: 1rem;
  }
}
