/* ========================================
   Instamedia AI Avatar Landing Page — V2
   "Luminous" — Light theme, cinematic dark accents
   Manrope typeface, warm amber accent
   ======================================== */

/* ========================================
   1. RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

/* ========================================
   2. CUSTOM PROPERTIES
   ======================================== */
:root {
  /* Colors — warm light palette */
  --bg-main: #fafaf7;
  --bg-alt: #f1f0eb;
  --bg-dark: #daf68f;
  --bg-dark-surface: #1a1c24;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.08);
  --accent: #1a1b23;
  --accent-soft: rgba(193, 122, 47, 0.1);
  --text-heading: #1a1b23;
  --text-secondary: #5c5d6e;
  --text-muted: #6e7085;
  --text-on-dark: #1a1b23;
  --text-on-dark-secondary: #8b8fa3;
  --text-on-dark-muted: #8890a6;

  /* Typography */
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-display: clamp(2.5rem, 5vw + 0.75rem, 4rem);
  --text-h1: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  --text-h2: clamp(1.375rem, 2vw + 0.5rem, 1.875rem);
  --text-h3: clamp(1.0625rem, 1vw + 0.25rem, 1.25rem);
  --text-body: clamp(0.9375rem, 0.5vw + 0.8rem, 1.0625rem);
  --text-small: clamp(0.8125rem, 0.3vw + 0.7rem, 0.875rem);
  --text-xs: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --nav-height: 72px;
  --z-nav: 1000;
}

/* ========================================
   3. UTILITIES
   ======================================== */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.container-narrow {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section-padding {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Dark section utility */
.dark-section {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.dark-section .section-title {
  color: var(--text-on-dark);
}

.dark-section .section-subtitle {
  color: var(--text-on-dark-secondary);
}

.dark-section .overline {
  color: var(--accent);
}

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

/* Focus indicators */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline-offset: 3px;
}

.faq-question:focus-visible {
  outline-offset: -2px;
}

.nav-toggle:focus-visible {
  outline-offset: 4px;
}

/* ========================================
   4. TYPOGRAPHY
   ======================================== */
.overline {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-title {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ========================================
   5. BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-small);
  border-radius: var(--radius-full);
  padding: 0.625rem 1.5rem;
  min-height: 44px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--text-heading);
  color: var(--bg-main);
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 4px 24px rgba(26, 27, 35, 0.2);
}

/* On dark sections, invert the primary button */
.dark-section .btn-primary {
  background: var(--bg-main);
  color: var(--text-heading);
}

.dark-section .btn-primary:hover {
  box-shadow: 0 4px 24px rgba(250, 250, 247, 0.15);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--border-dark);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 0.8125rem 1.75rem;
  font-size: var(--text-body);
}

/* Hero-specific buttons */
.btn-hero {
  background: #fff;
  color: var(--text-heading);
  border: none;
  font-weight: 800;
}

.btn-hero:hover {
  box-shadow: 0 6px 30px rgba(255, 255, 255, 0.2);
}

.btn-hero-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: none;
}

.btn-hero-ghost:hover {
  color: #fff;
  transform: none;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ========================================
   6. NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: none;
  border-bottom-color: var(--border-dim);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

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

.nav-scrolled {
  background: var(--bg-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-scrolled .logo-mark {
  color: var(--text-heading);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: calc(var(--z-nav) + 1);
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast), background var(--transition-base);
}

.nav-scrolled .nav-toggle-bar {
  background: var(--text-heading);
}

.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: var(--text-small);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

.nav-scrolled .nav-link {
  color: var(--text-secondary);
}

.nav-scrolled .nav-link:hover,
.nav-scrolled .nav-link.active {
  color: var(--text-heading);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: #fff !important;
  color: var(--text-heading) !important;
}

.nav-scrolled .nav-cta {
  background: var(--text-heading) !important;
  color: #fff !important;
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav {
    height: 64px;
  }

  .nav-menu {
    height: 100vh;
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: var(--z-nav);
  }

  .nav-open .nav-menu {
    transform: translateX(0);
  }

  .nav-link {
    font-size: var(--text-h3) !important;
    color: var(--text-heading) !important;
  }

  .nav-link::after {
    display: none;
  }

  .nav-open .nav-toggle-bar {
    background: var(--text-heading);
  }

  .nav-cta {
    margin-top: var(--space-md);
    background: var(--text-heading) !important;
    color: var(--bg-main) !important;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* ========================================
   7. HERO — Full-screen cinematic
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(17, 19, 24, 0.97) 0%,
      rgba(17, 19, 24, 0.95) 40%,
      rgba(17, 19, 24, 0.75) 65%,
      rgba(17, 19, 24, 0.4) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-4xl);
}

.hero-content {
  max-width: 580px;
  animation: fade-up 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-on-dark-secondary);
  margin-bottom: var(--space-lg);
  padding: 6px 14px;
  border: 1px solid var(--bg-dark);
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: var(--text-display);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: var(--text-body);
  color: var(--text-on-dark-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero-qualifiers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.hero-qualifier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.hero-qualifier svg {
  color: var(--bg-dark);
}

@media (max-width: 767px) {
  .hero {
    padding-top: 64px;
  }

  .hero-overlay {
    background: linear-gradient(180deg,
        rgba(17, 19, 24, 0.7) 0%,
        rgba(17, 19, 24, 0.92) 50%,
        rgba(17, 19, 24, 0.98) 100%);
  }

  .hero-inner {
    padding-block: var(--space-2xl);
  }

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

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-qualifiers {
    justify-content: center;
  }
}

/* ========================================
   8. TRUST BAR
   ======================================== */
.trust {
  background: var(--bg-alt);
  padding-block: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.trust-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* Logo marquee carousel */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  margin-bottom: var(--space-xl);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  animation: logo-scroll 30s linear infinite;
  width: max-content;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

.trust-logo {
  height: clamp(48px, 7vw, 80px);
  width: auto;
  filter: brightness(0);
  opacity: 0.35;
  transition: opacity var(--transition-base);
  flex-shrink: 0;
}

.trust-logo:hover {
  opacity: 0.65;
}

/* Trust stats */
.trust-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.trust-stat {
  text-align: center;
  line-height: 1.3;
}

.trust-stat strong {
  display: block;
  font-size: var(--text-h3);
  font-weight: 800;
  color: var(--text-heading);
}

.trust-stat span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 639px) {
  .trust-stats {
    gap: var(--space-xl);
  }
}

/* ========================================
   9. PROBLEMS
   ======================================== */
.problems {
  background: var(--bg-main);
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.problem-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.problem-num {
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--text-heading);
  opacity: 0.3;
  flex-shrink: 0;
  line-height: 1;
  min-width: 40px;
}

.problem-item h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.problem-item p {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl) var(--space-3xl);
  }
}

/* ========================================
   10. SOLUTION — Dark accent section
   ======================================== */
.solution-inner {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.solution-content {
  flex: 1;
  max-width: 580px;
}

.solution-content .section-title {
  text-align: left;
  color: var(--text-on-dark);
}

.solution-content p {
  color: var(--text-on-dark-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.solution-features {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.solution-features li {
  font-size: var(--text-body);
  color: var(--text-on-dark);
  padding-left: var(--space-lg);
  position: relative;
}

.solution-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.solution-visual {
  flex: 0 0 auto;
  width: clamp(240px, 35vw, 440px);
}

.solution-image {
  width: 100%;
  display: block;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-dark);
}

@media (max-width: 767px) {
  .solution-inner {
    flex-direction: column;
    text-align: center;
  }

  .solution-content .section-title {
    text-align: center;
  }

  .solution-features {
    align-items: flex-start;
    text-align: left;
  }

  .solution-visual {
    order: -1;
    width: 100%;
    max-width: 400px;
  }
}

/* ========================================
   11. SERVICES
   ======================================== */
.services {
  background: var(--bg-main);
}

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

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-main);
  transition: box-shadow var(--transition-base), transform var(--transition-fast);
}

.service-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.service-card-body {
  padding: var(--space-xl);
}

.service-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  padding: 3px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   12. CASE STUDY
   ======================================== */
.case-study {
  background: var(--bg-alt);
}

.case-study-client {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.case-study-title {
  max-width: 800px;
  text-align: left;
  margin-bottom: var(--space-2xl);
}

.case-study-hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  display: block;
  margin-bottom: var(--space-2xl);
}

.case-study-body {
  display: flex;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.case-study-text {
  flex: 1;
}

.case-study-text p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
}

.case-study-features-list {
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.case-study-features-list li {
  font-size: var(--text-small);
  color: var(--text-secondary);
  padding-left: var(--space-lg);
  position: relative;
}

.case-study-features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.case-study-metrics {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.case-metric {
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 180px;
}

.case-metric-value {
  display: block;
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.case-metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-study-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.case-study-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

@media (max-width: 767px) {
  .case-study-title {
    text-align: center;
  }

  .case-study-body {
    flex-direction: column;
  }

  .case-study-metrics {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .case-metric {
    flex: 1;
    min-width: 140px;
  }

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

/* ========================================
   12b. TESTIMONIALS
   ======================================== */
.testimonials {
  background: var(--bg-main);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 960px;
  margin-inline: auto;
}

.testimonial {
  padding: var(--space-xl) var(--space-2xl);
  border-left: 3px solid var(--text-heading);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.testimonial-quote {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-author strong {
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--text-heading);
  font-style: normal;
}

.testimonial-author span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: normal;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   13. HOW IT WORKS
   ======================================== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  position: relative;
  margin-bottom: var(--space-xl);
}

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

.step-number {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--text-heading);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.step-title {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.step-desc {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 260px;
  margin-inline: auto;
}

.step-timeline {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  padding: 3px 12px;
  border: 1px solid var(--bg-dark);
  border-radius: var(--radius-full);
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}

/* ========================================
   14. STATS — Dark accent section
   ======================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--text-on-dark);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3xl);
    position: relative;
  }

  .stat {
    position: relative;
  }

  .stat+.stat::before {
    content: '';
    position: absolute;
    left: calc(var(--space-3xl) / -2);
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border-dark);
  }
}

/* ========================================
   15. WHY INSTAMEDIA
   ======================================== */
.why {
  background: var(--bg-main);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin-inline: auto;
}

.why-item {
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition-base);
}

.why-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.why-item h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.why-item p {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

.why-footer {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: var(--text-small);
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   16. FAQ
   ======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
}

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

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg) 0;
  text-align: left;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text-heading);
  transition: color var(--transition-fast);
}

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

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-base), color var(--transition-fast);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.faq-open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: var(--space-lg);
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ========================================
   17. FINAL CTA
   ======================================== */
.final-cta {
  text-align: center;
  padding-block: clamp(5rem, 10vw, 10rem);
}

.final-cta-title {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--text-on-dark);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.final-cta-subtitle {
  font-size: var(--text-body);
  color: var(--text-on-dark-secondary);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
}

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

.final-cta-contact {
  font-size: var(--text-small);
  color: var(--text-on-dark-muted);
  margin-top: var(--space-xl);
}

.final-cta-pricing {
  font-size: var(--text-small);
  color: var(--text-on-dark-secondary);
  margin-bottom: var(--space-sm);
}

.final-cta-urgency {
  display: inline-block;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-on-dark);
  background: rgba(0, 0, 0, 0.15);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2xl);
}

.final-cta-urgency strong {
  color: var(--text-on-dark);
}

/* ========================================
   17b. CONTACT FORM
   ======================================== */
.contact-form {
  max-width: 640px;
  margin-inline: auto;
  text-align: left;
}

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

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

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

.form-label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-on-dark);
}

.form-input {
  font-family: var(--font);
  font-size: var(--text-body);
  color: var(--text-heading);
  background: var(--bg-main);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  min-height: 48px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--text-heading);
  box-shadow: 0 0 0 3px rgba(26, 27, 35, 0.12);
}

.form-input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #e74c3c;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236e7085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  text-align: center;
}

.form-divider {
  font-size: var(--text-small);
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

.form-submit {
  border: none;
}

/* Success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-on-dark);
  text-align: center;
}

.form-success svg {
  color: var(--bg-dark);
  margin-bottom: var(--space-sm);
}

.form-success-title {
  font-size: var(--text-h3);
  font-weight: 700;
}

.form-success-subtitle {
  font-size: var(--text-small);
  color: var(--text-on-dark-secondary);
}

/* ========================================
   18. FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--space-3xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer .logo-mark {
  color: var(--text-on-dark);
}

.footer-tagline {
  font-size: var(--text-small);
  color: var(--text-on-dark-secondary);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.footer-cert {
  font-size: var(--text-small);
  color: var(--text-on-dark-muted);
}

.footer-heading {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-on-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--text-small);
  color: var(--text-on-dark-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

.footer-contact p {
  font-size: var(--text-small);
  color: var(--text-on-dark-secondary);
  margin-bottom: var(--space-xs);
}

.footer-contact a {
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--text-on-dark);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-block: var(--space-lg);
}

.footer-bottom p {
  font-size: var(--text-small);
  color: var(--text-on-dark-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ========================================
   18b. STICKY MOBILE CTA
   ======================================== */
.sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-dark-surface);
    border-top: 1px solid var(--border-dark);
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .sticky-cta.visible {
    transform: translateY(0);
  }

  .sticky-cta-btn {
    flex: 1;
    font-size: var(--text-small);
    padding: 0.625rem 0.75rem;
    min-height: 44px;
    text-align: center;
  }

  /* Add bottom padding to body so sticky bar doesn't cover content */
  body.sticky-cta-active {
    padding-bottom: 68px;
  }
}

/* ========================================
   19. ANIMATIONS
   ======================================== */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   20. REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}