/* ============================================
   TrustGov Marketing Site — Shared Styles
   ============================================ */

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

/* Variables */
:root {
  --navy: #271d3b;
  --navy-deep: #0e0a18;
  --navy-mid: #352a4d;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --gold-glow: rgba(201,162,39,0.4);
  --cream: #faf8f5;
  --warm: #f3f0ea;
  --warm-border: #e4dfd6;
  --white: #ffffff;
  --text-dark: #1e1533;
  --text-body: #4a4258;
  --text-muted: #8a8298;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; font-size: 125%; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[v-cloak] { display: none; }

img { max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ======= LAYOUT ======= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--navy-deep);
  color: #fff;
}

.section-cream {
  background: var(--cream);
}

.section-gold {
  background: var(--gold);
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 16px; }

.highlight {
  font-style: italic;
  color: var(--gold);
}
p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.section-dark .text-muted { color: rgba(255,255,255,0.4); }

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 640px;
}

.section-dark .lead { color: rgba(255,255,255,0.5); }

/* ======= BUTTONS ======= */
.btn-gold {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
  color: var(--navy-deep);
}

.btn-ghost {
  display: inline-block;
  padding: 14px 32px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(201,162,39,0.08);
  color: var(--gold);
}

.section-dark .btn-ghost {
  border-color: rgba(201,162,39,0.3);
  color: rgba(255,255,255,0.7);
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ======= HEADER ======= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14,10,24,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,162,39,0.08);
  transition: background 0.3s;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.site-logo span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: #fff;
}
.site-nav a.active {
  color: #fff;
  position: relative;
}
.site-nav > a.active::after,
.site-nav .nav-dropdown-trigger.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.nav-dropdown-trigger.active {
  position: relative;
}
.nav-dropdown-menu a.active {
  color: #fff;
  background: rgba(201,162,39,0.1);
}

.site-nav .btn-gold {
  padding: 10px 24px;
  font-size: 0.84rem;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  cursor: pointer;
}
.nav-arrow {
  font-size: 0.6em;
  margin-left: 2px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14,10,24,0.98);
  border: 1px solid rgba(201,162,39,0.1);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.86rem;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: #fff;
  background: rgba(201,162,39,0.08);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ======= FOOTER ======= */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201,162,39,0.06);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-contact-bar {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-col {
  flex: 1;
  min-width: 0;
}

.footer-col:last-child {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.footer-col h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.footer-col p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-col p a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-col p a:hover { color: var(--gold-light); }

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover {
  background: var(--gold-light);
  transform: scale(1.1);
  color: var(--navy-deep);
}

.footer-policy-link {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.footer-policy-link:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
}

/* ======= HERO ======= */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
  background: var(--navy-deep);
  color: #fff;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  user-select: none;
  width: clamp(400px, 50vw, 700px);
  height: auto;
  opacity: 0.03;
}

.cta-section .hero-bg-text {
  width: auto;
  opacity: 1;
  font-family: var(--font-body);
  font-weight: 800;
  color: rgba(201,162,39,0.025);
  line-height: 0.8;
  white-space: nowrap;
}

.hero-bg-text img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-overline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero .lead {
  color: rgba(255,255,255,0.45);
  margin: 0 auto 36px;
  font-weight: 300;
  line-height: 1.8;
}

.hero .btn-group {
  justify-content: center;
}

/* Hero split layout (text + screenshot) */
.hero-split {
  text-align: left;
}
.hero-split .hero-content {
  max-width: none;
}
.hero-split .btn-group {
  justify-content: flex-start;
}
.hero-split-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}
.hero-screenshot {
  perspective: 1000px;
}
.hero-screenshot .screenshot-placeholder {
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.hero-screenshot .screenshot-placeholder:hover {
  transform: rotateY(0) rotateX(0);
}
.hero-screenshot .screenshot-body {
  aspect-ratio: 16/10;
}

@media (max-width: 900px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-split .btn-group {
    justify-content: center;
  }
  .hero-screenshot .screenshot-placeholder {
    transform: none;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ======= FEATURE GRID ======= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.2s;
}
.persona-card.reveal.visible {
  box-shadow: 6px 6px 0 var(--gold);
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  transition-delay: 0s !important;
}
.persona-card.reveal.visible:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--gold);
}
.confidence-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.confidence-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.confidence-question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--navy);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: #fff;
}

/* ======= MATURITY LADDER ======= */
.maturity-ladder {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.maturity-heading {
  text-align: center;
  margin-bottom: 48px;
}
.maturity-heading p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.maturity-towers-svg {
  width: 100%;
  height: auto;
  display: block;
}

.maturity-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3%;
  align-items: end;
}

.maturity-text {
  padding: 0 7% 5%;
  overflow: hidden;
}

/* Constrain each column's text to stay within its tower */
.maturity-text:nth-child(1) { max-height: 50%; }
.maturity-text:nth-child(2) { max-height: 62%; }
.maturity-text:nth-child(3) { max-height: 74%; }
.maturity-text:nth-child(4) { max-height: 82%; }

.maturity-text h3 {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.6vw, 1.3rem);
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  margin-bottom: clamp(4px, 1vw, 12px);
}

.maturity-text p {
  color: rgba(255,255,255,0.8);
  font-size: clamp(0.68rem, 1.25vw, 0.92rem);
  line-height: 1.5;
  margin: 0;
}

.maturity-tagline {
  margin-top: clamp(6px, 1vw, 14px) !important;
  font-style: italic;
  color: rgba(255,255,255,0.5) !important;
}

/* Mobile: hide SVG, show stacked cards */
@media (max-width: 768px) {
  .maturity-towers-svg { display: none; }

  .maturity-overlay {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .maturity-text {
    background: var(--navy);
    border-radius: 14px;
    padding: 24px 20px;
    max-height: none;
    overflow: visible;
  }

  .maturity-text h3 { font-size: 1.1rem; }
  .maturity-text p { font-size: 0.85rem; }
}

/* ======= SECTION DIVIDER ======= */
.section-divider {
  border: none;
  height: 1px;
  width: 65%;
  background: var(--navy);
  margin: 0 auto;
  border-radius: 1px;
  opacity: 0.15;
}

/* ======= STATS BAR ======= */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

/* Light backgrounds (cream, white) — explicit for safety */
.section-cream .stat-value { color: var(--navy); }
.section-cream .stat-label { color: var(--text-muted); }

/* Dark backgrounds */
.section-dark .stat-value { color: #fff; }

.stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.section-dark .stat-label { color: rgba(255,255,255,0.55); }

/* ======= TESTIMONIAL ======= */
.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 16px;
}

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

.testimonial-attr strong {
  color: var(--text-body);
  font-weight: 600;
}

/* ======= CTA SECTION ======= */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section h2 em {
  color: var(--gold-light);
  font-style: italic;
}

.cta-section p {
  margin-bottom: 32px;
}

/* ======= FORMS ======= */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Form status messages */
.form-success {
  background: rgba(39, 174, 96, 0.08);
  border: 1.5px solid rgba(39, 174, 96, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  color: #27ae60;
  font-size: 0.92rem;
}

.form-error {
  background: rgba(231, 76, 60, 0.08);
  border: 1.5px solid rgba(231, 76, 60, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  color: #e74c3c;
  font-size: 0.92rem;
}

/* ======= CASE STUDY CARDS ======= */
.case-study-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--warm-border);
  transition: all 0.2s;
}
.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.case-study-card-body {
  padding: 28px;
}

.case-study-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201,162,39,0.1);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  margin-bottom: 12px;
}

.case-study-card h3 {
  margin-bottom: 10px;
}

.case-study-card p {
  color: var(--text-body);
  font-size: 0.9rem;
}

.case-study-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 12px;
}
.case-study-coming-soon {
  opacity: 0.6;
  cursor: default;
}
.case-study-coming-soon:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ======= PAGE HERO (smaller, for inner pages) ======= */
.page-hero {
  background: var(--navy-deep);
  padding: 120px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero .hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
}

.page-hero h1 {
  color: #fff;
  position: relative;
  z-index: 1;
}

.page-hero .lead {
  color: rgba(255,255,255,0.45);
  position: relative;
  z-index: 1;
  margin: 16px auto 0;
}

/* ======= TWO-COLUMN LAYOUT ======= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.screenshot-img {
  width: 100%;
  display: block;
}

/* ======= SECTION WATERMARK ======= */
.section-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 40vw, 500px);
  height: auto;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

/* ======= SCREENSHOT PLACEHOLDER ======= */
.screenshot-placeholder {
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.screenshot-bar {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 5px;
  background: var(--navy-deep);
}
.screenshot-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(201,162,39,0.2);
}
.screenshot-body {
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.screenshot-badge {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}
.screenshot-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.screenshot-hint {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
}

/* ======= ALTERNATING FEATURE BLOCKS ======= */
.feat {
  position: relative;
  overflow: hidden;
}
.feat-light {
  background: var(--white);
  color: var(--text-dark);
}
.feat-dark {
  background: var(--navy-deep);
  color: #fff;
}
.feat-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.feat-dark .feat-inner {
  direction: rtl;
}
.feat-dark .feat-inner > * {
  direction: ltr;
}
.feat-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}
.feat-light .feat-text h2 { color: var(--navy); }
.feat-dark .feat-text h2 { color: #fff; }
.feat-text p {
  font-size: 0.92rem;
  line-height: 1.8;
  font-weight: 300;
  max-width: 440px;
}
.feat-light .feat-text p { color: var(--text-body); }
.feat-dark .feat-text p { color: rgba(255,255,255,0.45); }
.feat-detail {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.65;
  border-left: 3px solid var(--gold);
}
.feat-light .feat-detail {
  background: rgba(201,162,39,0.04);
  color: var(--text-body);
}
.feat-dark .feat-detail {
  background: rgba(201,162,39,0.04);
  color: rgba(255,255,255,0.55);
}

/* Dark bg screenshot placeholder */
.feat-dark .screenshot-placeholder {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.feat-dark .screenshot-bar {
  background: rgba(0,0,0,0.3);
}
.feat-dark .screenshot-hint {
  color: rgba(255,255,255,0.15);
}

/* ======= SITE LOGO IMAGE ======= */
.site-logo-img {
  height: 36px;
  width: auto;
  vertical-align: middle;
}

/* ======= ENGINE STACK + CAROUSEL ======= */
.engine-stack {
  position: relative;
}

/* Connected frame — sits over the carousel */
.engine-frame {
  position: absolute;
  top: -65px;
  bottom: -65px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 70%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

/* Top: Analytics & Assurance — filled navy */
.engine-label-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy);
  border-radius: 16px 16px 0 0;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 28px 48px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(39, 29, 59, 0.25);
}
.engine-label-top svg {
  opacity: 0.8;
  stroke: var(--gold);
}

/* Middle: white body with side borders, carousel visible through */
.engine-frame-body {
  flex: 1;
  background: transparent;
  border-left: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
}

/* Bottom: Automation Engine */
.engine-base {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--navy);
  border: 2px solid var(--navy);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 20px 48px;
  overflow: hidden;
  pointer-events: auto;
}
.engine-base-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
.engine-gear {
  width: 48px;
  height: 48px;
  color: var(--white);
  opacity: 0.2;
  flex-shrink: 0;
}
.engine-gear-1 {
  animation: gear-spin 8s linear infinite;
}
.engine-gear-2 {
  animation: gear-spin 6s linear infinite reverse;
  width: 36px;
  height: 36px;
}
.engine-gear-3 {
  animation: gear-spin 10s linear infinite;
  width: 42px;
  height: 42px;
}
@keyframes gear-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Experiment: engine divider + text blocks */
.engine-divider {
  border: none;
  border-top: 1px solid var(--navy);
  opacity: 0.7;
  margin: 12px 0;
}
.engine-text-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.engine-text-block h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.engine-text-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.engine-do-label h3 {
  text-transform: none;
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 0;
}

/* Carousel (middle layer — full width) */
.carousel-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 40px 0;
}
.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-scroll 40s linear infinite;
}
/* hover pause disabled — carousel runs continuously */
@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.carousel-card {
  flex-shrink: 0;
  width: 220px;
  margin: 0 20px;
  padding: 28px 22px;
  background: var(--white);
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.carousel-card.center-active {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--gold);
}
.carousel-card-inner {
  pointer-events: none;
}
.carousel-card-icon {
  color: var(--gold);
  margin-bottom: 12px;
}
.carousel-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.carousel-card-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ======= SCROLL REVEAL ======= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======= SECTION LABELS (temporary — remove when done) ======= */
.section-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 9998;
  background: #e03e3e;
  color: #fff;
  font-family: 'DM Sans', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1;
  pointer-events: none;
  opacity: 0.9;
}

/* ======= AVA TEASER ======= */
.ava-teaser {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #e8e4dd;
  border-radius: 10px;
  padding: 36px 40px;
  text-align: center;
}
.ava-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.3);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.ava-teaser h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.ava-teaser p {
  color: #6a6280;
  font-size: 0.88rem;
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 640px) {
  .ava-teaser { padding: 28px 24px; }
}

/* ======= THEME SWITCHER ======= */
.theme-switcher{position:fixed;bottom:24px;right:24px;z-index:9999;background:rgba(14,10,24,0.95);backdrop-filter:blur(12px);border:1px solid rgba(201,162,39,0.15);border-radius:12px;padding:10px;display:flex;align-items:center;gap:6px;box-shadow:0 8px 32px rgba(0,0,0,0.3)}
.theme-switcher-label{font-size:0.7rem;color:rgba(255,255,255,0.4);text-transform:uppercase;letter-spacing:0.1em;padding:0 8px;font-family:'DM Sans',sans-serif}
.theme-switcher button{padding:8px 16px;border:none;border-radius:8px;font-family:'DM Sans',sans-serif;font-size:0.8rem;font-weight:500;cursor:pointer;transition:all 0.2s;background:transparent;color:rgba(255,255,255,0.5)}
.theme-switcher button.active{background:#c9a227;color:#0e0a18;font-weight:600}
.theme-switcher button:hover:not(.active){background:rgba(255,255,255,0.08);color:rgba(255,255,255,0.8)}

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-contact-bar { flex-wrap: wrap; gap: 32px; }
  .footer-col { flex: 1 1 45%; }
  .footer-col:last-child { flex: 1 1 100%; justify-content: flex-start; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { gap: 32px; }
  .feat-inner {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
  }
  .feat-inner > * {
    direction: ltr !important;
  }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(14,10,24,0.98);
    padding: 24px 40px;
    gap: 16px;
    border-bottom: 1px solid rgba(201,162,39,0.08);
  }
  .nav-toggle { display: block; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  .nav-dropdown-menu a {
    padding: 6px 0 6px 16px;
    font-size: 0.84rem;
  }
  .nav-arrow { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .site-header-inner { padding: 0 24px; }
  .footer-inner { padding: 0 24px; }
  .hero { padding: 100px 24px 60px; }
  .page-hero { padding: 100px 24px 48px; }
  .section { padding: 56px 0; }
  .btn-group { flex-direction: column; align-items: center; }
  .hero-bg-text { width: clamp(250px, 60vw, 400px); }
}
