/* ============================================================
   financialAIvisor.com — Premium Design System
   Epic agency aesthetic — Stripe/Linear/Vercel tier
   ============================================================ */

/* ==========================================================
   1. CUSTOM PROPERTIES
   ========================================================== */

:root {
  /* --- Brand Colors --- */
  --color-bg-primary: #090E1A;
  --color-accent: #2563EB;
  --color-accent-rgb: 37, 99, 235;
  --color-accent-light: #60A5FA;
  --color-accent-secondary: #C9A84C;
  --color-accent-secondary-rgb: 201, 168, 76;
  --color-surface-card: #0F172A;
  --color-surface-elevated: #1E293B;
  --color-surface-light: #F8FAFC;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #94A3B8;
  --color-text-on-light: #0F172A;

  /* --- Typography --- */
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* --- Spacing (4px base) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-20: 80px;
  --space-24: 96px;

  /* --- Border Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.4);
  --shadow-3d: 0 1px 0 0 rgba(255,255,255,0.08) inset,
               0 -2px 4px 0 rgba(0,0,0,0.3) inset,
               0 4px 8px -2px rgba(0,0,0,0.4);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================
   2. RESET & BASE
   ========================================================== */

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

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

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}


/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

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

.text-gold {
  color: var(--color-accent-secondary);
}

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

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: block;
}

.section__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.text-center .section__subtitle {
  margin: 0 auto;
}

/* Badge / Pill */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge--blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge--gold {
  background: rgba(201, 168, 76, 0.1);
  color: var(--color-accent-secondary);
  border: 1px solid rgba(201, 168, 76, 0.2);
}


/* ==========================================================
   4. CONTAINER & LAYOUT
   ========================================================== */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section--dark {
  background-color: var(--color-bg-primary);
}

.section--light {
  background-color: var(--color-surface-light);
  color: var(--color-text-on-light);
}

.section--light .section__title {
  color: var(--color-text-on-light);
}

.section--light .section__eyebrow {
  color: var(--color-accent);
}

.section--light .section__subtitle {
  color: #475569;
}

/* Force ALL text inside light sections to be dark — nuclear option */
.section--light h2,
.section--light h3,
.section--light p,
.section--light li,
.section--light span,
.section--light strong {
  color: #0F172A;
}

.section--light .pain-card__desc,
.section--light .pain-card p {
  color: rgba(255,255,255,0.65);
}

.section--light .section__eyebrow {
  color: var(--color-accent) !important;
}

.section--accent {
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, #0E1D35 100%);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

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

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

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

.text-center {
  text-align: center;
}

/* Section Split Layout */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-split--reverse {
  direction: rtl;
}

.section-split--reverse > * {
  direction: ltr;
}

.section-image {
  position: relative;
}

.section-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
}

.section-image::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}


/* ==========================================================
   5. BUTTONS — 3D Premium
   ========================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

/* Primary — 3D Trustworthy Blue */
.btn--primary {
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.15) inset,
              0 -2px 0 0 rgba(0, 0, 0, 0.2) inset,
              0 4px 8px -2px rgba(37, 99, 235, 0.4),
              0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.15) inset,
              0 -2px 0 0 rgba(0, 0, 0, 0.2) inset,
              0 8px 16px -4px rgba(37, 99, 235, 0.5),
              0 4px 8px -2px rgba(0, 0, 0, 0.3);
}

.btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.1) inset,
              0 -1px 0 0 rgba(0, 0, 0, 0.2) inset,
              0 2px 4px -1px rgba(37, 99, 235, 0.3);
}

/* Secondary — Premium Gold 3D */
.btn--secondary {
  background: linear-gradient(180deg, #D4B85C 0%, #C9A84C 100%);
  color: var(--color-bg-primary);
  font-weight: 700;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.25) inset,
              0 -2px 0 0 rgba(0, 0, 0, 0.15) inset,
              0 4px 8px -2px rgba(201, 168, 76, 0.4),
              0 2px 4px -1px rgba(0, 0, 0, 0.15);
}

.btn--secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.25) inset,
              0 -2px 0 0 rgba(0, 0, 0, 0.15) inset,
              0 8px 16px -4px rgba(201, 168, 76, 0.5),
              0 4px 8px -2px rgba(0, 0, 0, 0.2);
}

.btn--secondary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.15) inset,
              0 -1px 0 0 rgba(0, 0, 0, 0.15) inset,
              0 2px 4px -1px rgba(201, 168, 76, 0.3);
}

/* Outline — Blue border on transparent */
.btn--outline {
  background: transparent;
  color: var(--color-accent-light);
  border: 1.5px solid rgba(var(--color-accent-rgb), 0.5);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(var(--color-accent-rgb), 0.08);
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.2);
}

.btn--outline:active {
  transform: translateY(0);
}

/* Button Sizes */
.btn--lg {
  padding: 20px 48px;
  font-size: 1.1rem;
  border-radius: 14px;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
  border-radius: 10px;
}


/* ==========================================================
   6. HEADER — Refined & Tall
   ========================================================== */

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-7) 0;
  transition: background-color var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
  background: transparent;
}

#header.scrolled {
  background: rgba(9, 14, 26, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-5) 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo__ai {
  color: var(--color-accent);
}

/* Desktop Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  padding: var(--space-1) 0;
  transition: color var(--transition-base);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: width var(--transition-base);
}

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

.nav__link:hover::after {
  width: 100%;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header__cta .btn {
  padding: 10px 22px;
  font-size: 0.9rem;
  border-radius: 10px;
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

#hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

#hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
#mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(9, 14, 26, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  transition: right var(--transition-slow);
  z-index: 999;
}

#mobile-nav.open {
  right: 0;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.mobile-nav__links a {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.mobile-nav__links a:hover {
  color: var(--color-accent);
}

.mobile-nav__links .mobile-nav__cta {
  margin-top: var(--space-4);
}


/* ==========================================================
   7. HERO — Split Layout with Floating Image
   ========================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-primary);
  background-image:
    linear-gradient(135deg, rgba(10, 22, 40, 0.82) 0%, rgba(6, 12, 24, 0.85) 100%),
    url('../images/bg-hero-skyline.png');
  background-size: cover, 130%;
  background-position: center, 20% 40%;
  background-repeat: no-repeat, no-repeat;
  animation: hero-drift 45s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  0%   { background-position: center, 20% 40%; background-size: cover, 130%; }
  100% { background-position: center, 80% 60%; background-size: cover, 145%; }
}


#how-it-works::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/campaigns-laptop.png');
  background-size: 60%;
  background-position: right -20% top 20%;
  background-repeat: no-repeat;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
  animation: bg-drift-reverse 30s ease-in-out infinite;
}

#results::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/ai-assistant-phone.png');
  background-size: 30%;
  background-position: left -5% center;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  animation: bg-drift 28s ease-in-out infinite;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/bg-hero-advisor-v2.png');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Radial blue glow — top right */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Secondary warm glow */
.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: -5%;
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(var(--color-accent-secondary-rgb), 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  text-align: left;
  max-width: none;
}

.hero__image {
  position: relative;
}

.hero__image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5),
              0 12px 24px -8px rgba(0, 0, 0, 0.3);
}

.hero__headline {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero__headline .text-accent {
  display: inline;
  color: var(--color-accent-light);
}

.hero__sub {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 0 var(--space-10);
  line-height: 1.7;
}

.hero__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 480px;
  margin: 0 0 var(--space-10);
  text-align: left;
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.hero__bullets li::before {
  content: '\2713';
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(var(--color-accent-rgb), 0.12);
  color: var(--color-accent-light);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero__cta {
  margin-top: var(--space-10);
  display: flex;
  gap: var(--space-4);
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  text-align: center;
  position: relative;
}

.hero__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}


/* ==========================================================
   8. PAIN POINTS — Light BG, Elevated 3D Cards
   ========================================================== */

.pain-points {
  background: var(--color-surface-light);
  padding: var(--space-24) 0;
}

.pain-points h2,
.pain-points h3,
.pain-points h4 {
  color: var(--color-text-on-light);
}

.pain-points p {
  color: #64748B;
}

.pain-points .section-label,
.pain-points .section__eyebrow {
  color: var(--color-accent);
}

.pain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.pain-card {
  background: #0A1628;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pain-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(0, 212, 255, 0.06);
  transform: translateY(-4px);
}

.pain-card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0A1628;
}

.pain-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pain-card:hover .pain-card__img img {
  transform: scale(1.05);
}

.pain-card__body {
  padding: 28px 32px 32px;
}

.pain-card__icon {
  display: none;
}

.pain-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}

.pain-card__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}


/* ==========================================================
   9. HOW IT WORKS / STEPS
   ========================================================== */

.steps {
  background: var(--color-bg-primary);
  padding: var(--space-24) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  margin-top: var(--space-16);
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-light);
  background: linear-gradient(135deg, #1E3A5F 0%, #172554 100%);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
              0 -2px 4px 0 rgba(0, 0, 0, 0.3) inset,
              0 4px 8px -2px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.step__title {
  font-size: 1.3rem;
  margin-bottom: var(--space-4);
}

.step__desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}


/* ==========================================================
   10. RESULTS / SOCIAL PROOF — Bold Stats
   ========================================================== */

.results {
  padding: var(--space-24) 0;
  background: var(--color-surface-elevated);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 20px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-16);
}

.stats-bar__item {
  text-align: center;
  padding: 0 var(--space-6);
  position: relative;
}

.stats-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
}

.stats-bar__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stats-bar__label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Testimonials Grid */
.testimonials-grid,
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

/* Testimonial Card — Premium with Gold Accent */
.testimonial-card,
.testimonial {
  background: linear-gradient(135deg, #0F172A 0%, #131B2E 100%);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

/* Gold accent line at top */
.testimonial-card::before,
.testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-secondary), transparent);
}

/* Large decorative quote mark */
.testimonial-card::after,
.testimonial::after {
  content: '\201D';
  position: absolute;
  top: 16px;
  right: 32px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card__quote,
.testimonial__text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial-card__author,
.testimonial__author {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  position: relative;
  z-index: 1;
}

.testimonial-card__title {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}


/* ==========================================================
   11. FEATURES — Glass-like on Dark
   ========================================================== */

.features {
  padding: var(--space-24) 0;
  background: var(--color-bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.feature-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1),
              0 16px 40px -8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1E3A5F 0%, #172554 100%);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
              0 -2px 4px 0 rgba(0, 0, 0, 0.3) inset,
              0 4px 8px -2px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ==========================================================
   12. SYSTEM CARDS — Go Grow / Go Close
   ========================================================== */

.system-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 20px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.system-card--grow {
  border-top: 3px solid var(--color-accent);
}

.system-card--close {
  border-top: 3px solid var(--color-accent-secondary);
}

.system-card__number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
  pointer-events: none;
}

.system-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.system-card__features {
  list-style: none;
  padding: 0;
}

.system-card__features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.system-card__features li:last-child {
  border-bottom: none;
}

.system-card__features li::before {
  content: '\2713';
  color: var(--color-accent-light);
  font-weight: 700;
  flex-shrink: 0;
}

.system-card--close .system-card__features li::before {
  color: var(--color-accent-secondary);
}

/* Standalone system features list (used in split layouts) */
.system-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.system-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.system-features li:last-child {
  border-bottom: none;
}

.system-features li::before {
  content: '✓';
  color: var(--color-accent-light);
  font-weight: 700;
  flex-shrink: 0;
}


/* ==========================================================
   13. FAQ ACCORDION — Premium with smooth transitions
   ========================================================== */

.faq {
  padding: var(--space-24) 0;
  background: var(--color-surface-elevated);
}

.faq-list {
  max-width: 800px;
  margin: var(--space-16) auto 0;
}

.accordion {
  max-width: 800px;
  margin: var(--space-16) auto 0;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-7) 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-base);
  gap: var(--space-4);
}

.accordion-trigger:hover {
  color: var(--color-accent-light);
}

.accordion-trigger__chevron {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(var(--color-accent-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out-expo), background-color var(--transition-base);
  color: var(--color-accent-light);
  font-size: 1rem;
}

.accordion-trigger:hover .accordion-trigger__chevron {
  background: rgba(var(--color-accent-rgb), 0.15);
}

.accordion-trigger__chevron::after {
  content: '+';
  display: block;
  line-height: 1;
  font-weight: 300;
  font-size: 1.4rem;
}

.accordion-item.open .accordion-trigger__chevron {
  transform: rotate(45deg);
  background: rgba(var(--color-accent-rgb), 0.15);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo);
}

.accordion-item.open .accordion-content {
  max-height: 400px;
}

.accordion-content__inner {
  padding-bottom: var(--space-7);
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ==========================================================
   14. CTA SECTION — Gradient BG with Glass Form
   ========================================================== */

.cta-section {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #090E1A 0%, #0E1830 50%, #131B2E 100%);
}

/* Radial accent glow */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(var(--color-accent-rgb), 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(var(--color-accent-secondary-rgb), 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle dot pattern */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all section content sits above ::after background images */
.section > .container,
.cta-section > .container,
.hero > .container {
  position: relative;
  z-index: 1;
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.cta-content {
  max-width: 500px;
}

.cta-content h2 {
  margin-bottom: var(--space-6);
}

.cta-content p {
  margin-bottom: var(--space-8);
}

.cta-form-wrapper {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.cta-form-wrapper h3 {
  margin-bottom: var(--space-6);
  font-size: 1.3rem;
}


/* ==========================================================
   15. FOOTER
   ========================================================== */

.footer {
  background: #050A14;
  padding: var(--space-16) 0 var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.footer__logo .logo__ai {
  color: var(--color-accent);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--color-accent-light);
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.footer__bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}


/* ==========================================================
   16. FORM STYLES
   ========================================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea,
.cta-form-wrapper input,
.cta-form-wrapper select,
.cta-form-wrapper textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder,
.cta-form-wrapper input::placeholder,
.cta-form-wrapper textarea::placeholder {
  color: #4A5568;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.cta-form-wrapper input:focus,
.cta-form-wrapper select:focus,
.cta-form-wrapper textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.12),
              0 0 16px -4px rgba(var(--color-accent-rgb), 0.15);
}

.form-select,
.cta-form-wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

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

.cta-form-wrapper label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.cta-form-wrapper .required {
  color: var(--color-accent);
}

.cta-form-wrapper .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.form-error {
  color: #F04438;
  background: rgba(240, 68, 56, 0.08);
  border: 1px solid rgba(240, 68, 56, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}

.form-submit {
  width: 100%;
  margin-top: var(--space-4);
}

.cta-content ol {
  list-style: none;
  counter-reset: cta-steps;
  margin: var(--space-6) 0;
  padding: 0;
}

.cta-content ol li {
  counter-increment: cta-steps;
  padding-left: var(--space-10);
  position: relative;
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.cta-content ol li::before {
  content: counter(cta-steps);
  position: absolute;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E3A5F 0%, #172554 100%);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
              0 -2px 4px 0 rgba(0, 0, 0, 0.3) inset,
              0 2px 4px -1px rgba(0, 0, 0, 0.2);
  color: var(--color-accent-light);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-content h3 {
  margin-top: var(--space-8);
  font-size: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

/* Light section form overrides */
.section--light .form-input,
.section--light .form-select,
.section--light .form-textarea {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: var(--color-text-on-light);
}

.section--light .form-input:focus,
.section--light .form-select:focus,
.section--light .form-textarea:focus {
  border-color: var(--color-accent);
}


/* ==========================================================
   17. FLOATING & TILT ANIMATIONS
   ========================================================== */

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

.float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.float-delay {
  animation-delay: -3s;
}

.tilt-hover {
  transition: transform 0.4s ease;
}

.tilt-hover:hover {
  transform: perspective(800px) rotateY(-5deg) rotateX(3deg) scale(1.02);
}

/* ==========================================================
   DECORATIVE BACKGROUND IMAGES
   ========================================================== */

@keyframes bg-drift {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.02); }
  50% { transform: translate(-20px, 15px) scale(0.98); }
  75% { transform: translate(15px, 25px) scale(1.01); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes bg-drift-reverse {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-25px, 20px) rotate(2deg); }
  50% { transform: translate(20px, -15px) rotate(-1deg); }
  75% { transform: translate(-10px, -25px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.bg-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  will-change: transform;
}

.bg-decor--network {
  width: 800px;
  height: 800px;
  top: -10%;
  right: -10%;
  animation: bg-drift 25s ease-in-out infinite;
}

.bg-decor--waves {
  width: 900px;
  height: 700px;
  bottom: -15%;
  left: -10%;
  animation: bg-drift-reverse 30s ease-in-out infinite;
}

.bg-decor--network-2 {
  width: 600px;
  height: 600px;
  top: 20%;
  left: -5%;
  animation: bg-drift 20s ease-in-out infinite;
  animation-delay: -8s;
  opacity: 0.04;
}

.bg-decor--waves-2 {
  width: 700px;
  height: 500px;
  top: -20%;
  right: -8%;
  animation: bg-drift-reverse 22s ease-in-out infinite;
  animation-delay: -5s;
  opacity: 0.05;
}

.bg-decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ==========================================================
   18. SCROLL REVEAL ANIMATION
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}

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

/* Stagger delays */
.reveal-delay-1,
.reveal-d1 {
  transition-delay: 0.1s;
}

.reveal-delay-2,
.reveal-d2 {
  transition-delay: 0.2s;
}

.reveal-delay-3,
.reveal-d3 {
  transition-delay: 0.3s;
}

.reveal-delay-4,
.reveal-d4 {
  transition-delay: 0.4s;
}

/* Fade in from left */
.reveal--left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

/* Fade in from right */
.reveal--right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

/* Scale up */
.reveal--scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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


/* ==========================================================
   19. RESPONSIVE
   ========================================================== */

/* --- Tablet landscape and below --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .cta-content {
    max-width: 100%;
    text-align: center;
  }

  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
  }

  .hero__sub {
    margin: 0 auto var(--space-10);
  }

  .hero__bullets {
    margin: 0 auto var(--space-10);
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__stats {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .section-split--reverse {
    direction: ltr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    padding: var(--space-10);
  }

  .stats-bar__item:not(:last-child)::after {
    display: none;
  }

  .testimonials-grid,
  .testimonials {
    grid-template-columns: 1fr;
  }
}

/* --- Tablet portrait and below --- */
@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }

  /* Header mobile */
  .nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  /* Hero adjustments */
  .hero {
    min-height: auto;
    padding: var(--space-24) 0 var(--space-14);
  }

  .hero__headline {
    font-size: clamp(2.25rem, 8vw, 3.25rem);
  }

  .hero__image {
    display: none;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero__stat:not(:last-child)::after {
    width: 60px;
    height: 1px;
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(-1 * var(--space-3));
    transform: translateX(-50%);
  }

  /* Grids go responsive */
  .pain-cards,
  .steps-grid {
    grid-template-columns: 1fr;
  }

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

  /* Stats bar stacks */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-8);
  }

  /* Form row stacks */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer stacks */
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Small phones --- */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-5);
  }

  .hero__headline {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

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

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .pain-card__body {
    padding: 20px 24px 24px;
  }

  .feature-card {
    padding: var(--space-8);
  }

  .system-card {
    padding: var(--space-8);
  }

  .cta-form-wrapper {
    padding: var(--space-8);
  }

  .testimonial-card,
  .testimonial {
    padding: var(--space-8);
  }
}
