/* ==========================================================================
   CRMLink.ai — Design System & Global Styles
   Based on Seoinux design language: bold orange primary, deep navy dark,
   Figtree + DM Sans type pairing, pill buttons, diffuse shadows,
   scroll-reveal animations.
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400;1,9..40,500&family=Figtree:wght@400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --color-primary:        #E8590C;
  --color-primary-light:  #FB923C;
  --color-primary-dark:   #C2410C;
  --color-primary-rgb:    232, 89, 12;

  --color-secondary:      #0F0D2E;
  --color-secondary-rgb:  15, 13, 46;

  --color-accent:         #FF6B2B;
  --color-accent-dark:    #D4520A;

  /* Neutrals */
  --color-dark:           #1A1A2E;
  --color-text:           #374151;
  --color-text-muted:     #64748B;
  --color-text-light:     #9CA3AF;
  --color-border:         #E2E8F0;
  --color-surface:        #EFF4F6;
  --color-surface-warm:   #FFF7ED;
  --color-white:          #FFFFFF;
  --color-black:          #0C0A1D;

  /* Functional */
  --color-success:        #10B981;
  --color-error:          #EF4444;

  /* Typography */
  --font-heading: 'Figtree', 'Segoe UI', sans-serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.5rem;     /* 56px — Seoinux H1 */

  --leading-tight:  1.18;
  --leading-snug:   1.3;
  --leading-normal: 1.7;
  --leading-relaxed: 1.875;

  /* Spacing (8px base) */
  --space-1:  0.25rem;   /* 4  */
  --space-2:  0.5rem;    /* 8  */
  --space-3:  0.75rem;   /* 12 */
  --space-4:  1rem;      /* 16 */
  --space-5:  1.25rem;   /* 20 */
  --space-6:  1.5rem;    /* 24 */
  --space-8:  2rem;      /* 32 */
  --space-10: 2.5rem;    /* 40 */
  --space-12: 3rem;      /* 48 */
  --space-16: 4rem;      /* 64 */
  --space-20: 5rem;      /* 80 */
  --space-24: 6rem;      /* 96 */
  --space-32: 8rem;      /* 128 */

  /* Radii */
  --radius-sm:   0.375rem;  /* 6  */
  --radius-md:   0.75rem;   /* 12 */
  --radius-lg:   1rem;      /* 16 */
  --radius-xl:   1.5rem;    /* 24 */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl:    0 12px 48px rgba(0,0,0,0.12);
  --shadow-card:  0 6px 24px rgba(var(--color-secondary-rgb), 0.08);
  --shadow-glow:  0 0 40px rgba(var(--color-primary-rgb), 0.20);

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

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

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  line-height: var(--leading-tight);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-5xl); }
  h3 { font-size: var(--text-3xl); }
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-16) 0;
}

.section--lg {
  padding: var(--space-20) 0;
}

@media (min-width: 768px) {
  .section    { padding: var(--space-20) 0; }
  .section--lg { padding: var(--space-24) 0; }
}

.section--dark {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

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

.section--warm {
  background-color: var(--color-surface-warm);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

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

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  line-height: 1.2;
  z-index: 0;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
  z-index: -1;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.45);
}

.btn--primary::after {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-dark);
  border: 2px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--dark {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-secondary-rgb), 0.4);
}

.btn--dark::after {
  background: rgba(255,255,255,0.08);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--blue {
  background: linear-gradient(135deg, var(--color-dark), #2A2A4E);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.35);
}

.btn--blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.45);
}

.btn--blue::after {
  background: linear-gradient(135deg, #0F0F22, var(--color-dark));
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), rgba(var(--color-primary-rgb), 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.card__text {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

.card--bordered {
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.card--bordered:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.header-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.footer-brand .header-logo img {
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 8px;
}

.header-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  z-index: 1000;
  padding: var(--header-height) var(--space-6) var(--space-8);
}

.header-nav.active {
  display: flex;
}

.header-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--color-dark);
  padding: var(--space-3) var(--space-6);
  transition: all var(--duration-fast) ease;
  position: relative;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.header-nav a:hover {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
}

.header-nav a.active {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.08);
  font-weight: 600;
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--color-primary);
  border-radius: 0 2px 2px 0;
}

/* Mobile nav CTA buttons */
.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 320px;
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.mobile-nav-cta .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  font-size: var(--text-base);
}

.mobile-nav-cta .btn--ghost {
  color: var(--color-dark);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  font-weight: 600;
}

.mobile-nav-cta .btn--ghost:hover {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
  border-color: var(--color-primary);
}

.header-actions {
  display: none;
  align-items: center;
  gap: var(--space-3);
  z-index: 1001;
}

.header-actions .btn {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-sm);
}

.header-actions .btn--ghost {
  color: var(--color-dark);
  background: transparent;
  border: 2px solid var(--color-border);
  font-weight: 600;
}

.header-actions .btn--ghost:hover {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.12);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: var(--space-2);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--duration-fast) ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .hamburger { display: none; }

  .header-nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    gap: var(--space-1);
    padding: 0;
    inset: auto;
  }

  .header-nav a {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-3);
    width: auto;
    max-width: none;
    border-radius: var(--radius-full);
  }

  .header-nav a:hover {
    background: none;
  }

  .header-nav a.active {
    background: none;
  }

  .header-nav a.active::after {
    left: var(--space-3);
    right: var(--space-3);
    top: auto;
    bottom: -2px;
    transform: none;
    width: auto;
    height: 2px;
    border-radius: 1px;
  }

  .mobile-nav-cta {
    display: none;
  }

  .header-actions {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-16);
  background: var(--color-secondary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(100, 80, 200, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

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

@media (min-width: 1024px) {
  .hero-content { text-align: left; }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(var(--color-primary-rgb), 0.15);
  color: var(--color-primary-light);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(var(--color-primary-rgb), 0.25);
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--text-6xl);
  }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  max-width: 540px;
  line-height: var(--leading-relaxed);
}

@media (max-width: 1023px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-visual__mockup {
  position: relative;
  max-width: 520px;
  width: 100%;
}

/* Float animation for hero visual */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.blob--1 {
  width: 300px;
  height: 300px;
  background: rgba(var(--color-primary-rgb), 0.2);
  top: -50px;
  right: -50px;
}

.blob--2 {
  width: 200px;
  height: 200px;
  background: rgba(100, 80, 200, 0.15);
  bottom: -30px;
  left: -30px;
}

/* ---------- Trust / Logo Bar ---------- */
.trust-bar {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--color-border);
}

.trust-bar p {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0.5;
}

.trust-logos svg {
  height: 28px;
  width: auto;
  color: var(--color-text-light);
}

@media (min-width: 768px) {
  .trust-logos {
    gap: var(--space-12);
  }
  .trust-logos svg {
    height: 32px;
  }
}

/* ---------- Feature Row (Alternating) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.feature-row--reverse .feature-row__visual {
  order: 0;
}

@media (min-width: 768px) {
  .feature-row--reverse .feature-row__visual {
    order: -1;
  }
}

.feature-row__content {
  max-width: 480px;
}

.feature-row__visual {
  display: flex;
  justify-content: center;
}

.feature-row__visual img,
.feature-row__visual .placeholder-img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 100%;
}

.feature-row__content h3 {
  margin-bottom: var(--space-4);
}

.feature-row__content p {
  margin-bottom: var(--space-6);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text);
}

.feature-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-success);
}

/* ---------- Stats Band ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  padding: var(--space-12) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  text-align: center;
}

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

.stat-item__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin-bottom: var(--space-1);
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-item__number {
    font-size: var(--text-5xl);
  }
}

.stat-item__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--ease-out);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-card__quote {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(var(--color-primary-rgb), 0.12);
  pointer-events: none;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: #FBBF24;
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-card__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-dark);
}

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

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 2px solid var(--color-border);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pricing-card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-primary);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-5xl);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
  line-height: 1;
}

.pricing-card__price sup {
  font-size: var(--text-2xl);
  vertical-align: super;
  margin-right: 2px;
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-card__features {
  text-align: left;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.pricing-card__features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-success);
}

.pricing-card .btn {
  width: 100%;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--duration-fast) ease;
}

.faq-item.active {
  border-color: var(--color-primary-light);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-dark);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--duration-fast) ease;
}

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

.faq-question:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: -3px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--color-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.faq-answer__inner {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #1a1840 100%);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(var(--color-primary-rgb), 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  position: relative;
  z-index: 1;
}

.cta-band .btn-group {
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

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

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

.footer-brand {
  max-width: 320px;
}

.footer-brand .header-logo {
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--duration-fast) ease;
}

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

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

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

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) ease;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-primary-light);
}

.footer-app-badges {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer-app-badges a {
  display: inline-flex;
  transition: opacity var(--duration-fast) ease;
}

.footer-app-badges a:hover {
  opacity: 0.8;
}

.footer-app-badges svg {
  height: 40px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--duration-fast) ease;
}

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

/* ---------- Page Hero (Internal Pages) ---------- */
.page-hero {
  background: var(--color-secondary);
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 130%;
  background: radial-gradient(ellipse, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  font-size: var(--text-lg);
}

.page-hero .section-label {
  position: relative;
  z-index: 1;
}

/* ---------- Device Mockup ---------- */
.device-mockup {
  position: relative;
  display: inline-block;
}

.device-mockup--iphone {
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), inset 0 0 0 2px rgba(255,255,255,0.1);
}

.device-mockup--iphone::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.device-mockup--iphone .device-mockup__screen {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: var(--color-surface);
}

.device-mockup--android {
  background: #222;
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-xl);
}

.device-mockup--android::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #333;
  border-radius: 50%;
  z-index: 3;
}

.device-mockup--android .device-mockup__screen {
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-surface);
}

.device-mockup__screen img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* ---------- Contact Form ---------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  background: var(--color-white);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-1);
  display: none;
}

.form-input.error + .form-error,
.form-textarea.error + .form-error {
  display: block;
}

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

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-10);
}

.form-success.active {
  display: block;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--color-success);
  margin: 0 auto var(--space-4);
}

.form-success h3 {
  margin-bottom: var(--space-3);
}

/* ---------- Feature Comparison Table ---------- */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--color-dark);
}

.comparison-table thead th {
  background: var(--color-surface);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-dark);
  position: sticky;
  top: 0;
}

.comparison-table thead th.featured {
  background: var(--color-primary);
  color: var(--color-white);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: var(--color-success);
}

.comparison-table .cross {
  color: var(--color-text-light);
}

/* ---------- App Badges (Inline SVG) ---------- */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #000;
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  transition: opacity var(--duration-fast) ease;
}

.app-badge:hover {
  opacity: 0.85;
}

.app-badge svg {
  width: 24px;
  height: 24px;
}

.app-badge__label {
  font-size: 9px;
  line-height: 1;
  display: block;
  opacity: 0.8;
}

.app-badge__store {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- Placeholder images ---------- */
.placeholder-img {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  min-height: 300px;
  padding: var(--space-4);
  text-align: center;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ---------- Mobile App Showcase ---------- */
.app-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.app-showcase .device-mockup--iphone {
  width: 220px;
}

@media (min-width: 768px) {
  .app-showcase .device-mockup--iphone {
    width: 260px;
  }
}

.app-showcase .device-mockup--iphone:nth-child(2) {
  transform: scale(1.08);
  z-index: 2;
}

/* ---------- Icon Feature Grid ---------- */
.icon-feature {
  text-align: center;
  padding: var(--space-6);
}

.icon-feature__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), rgba(var(--color-primary-rgb), 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--color-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.icon-feature:hover .icon-feature__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.3);
}

.icon-feature__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.icon-feature__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.icon-feature__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ---------- Dashboard Mockup (Hero Visual) ---------- */
.dashboard-mockup {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-mockup__bar {
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.dashboard-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.dashboard-mockup__dot:nth-child(1) { background: #EF4444; }
.dashboard-mockup__dot:nth-child(2) { background: #FBBF24; }
.dashboard-mockup__dot:nth-child(3) { background: #10B981; }

.dashboard-mockup__content {
  padding: var(--space-6);
  min-height: 320px;
  background: var(--color-white);
}

/* Dashboard mockup inner elements */
.mock-sidebar {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0;
  min-height: 320px;
}

.mock-sidebar__nav {
  background: var(--color-secondary);
  padding: var(--space-4) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  border-radius: 0;
}

.mock-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-nav-icon--active {
  background: var(--color-primary);
}

.mock-nav-icon span {
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
}

.mock-nav-icon--active span {
  background: var(--color-white);
}

.mock-main {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.mock-title {
  height: 12px;
  width: 120px;
  background: var(--color-dark);
  border-radius: 2px;
  opacity: 0.7;
}

.mock-badge {
  height: 24px;
  width: 80px;
  background: rgba(var(--color-primary-rgb), 0.15);
  border-radius: var(--radius-full);
}

.mock-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.mock-stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.mock-stat-num {
  height: 16px;
  width: 48px;
  background: var(--color-dark);
  border-radius: 2px;
  margin-bottom: var(--space-2);
  opacity: 0.8;
}

.mock-stat-label {
  height: 8px;
  width: 64px;
  background: var(--color-text-light);
  border-radius: 2px;
  opacity: 0.5;
}

.mock-chart {
  flex: 1;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  min-height: 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
  gap: 6px;
}

.mock-chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--color-primary), var(--color-primary-light));
  border-radius: 3px 3px 0 0;
  min-height: 20px;
  opacity: 0.7;
}

.mock-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 80px 60px;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.mock-text {
  height: 8px;
  background: var(--color-text-light);
  border-radius: 2px;
  opacity: 0.4;
}

.mock-text--dark {
  background: var(--color-dark);
  opacity: 0.6;
}

.mock-text--short { width: 60%; }
.mock-text--med   { width: 80%; }
.mock-text--full  { width: 100%; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--color-white); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-8 { margin-top: var(--space-8); }
.mx-auto { margin-left: auto; margin-right: auto; }

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

/* ==========================================================================
   ENHANCED UX — Premium micro-interactions, animations & visual polish
   ========================================================================== */

/* ---------- Custom Scrollbar (desktop) ---------- */
@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--color-surface); }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--color-primary-dark); }
  html { scrollbar-width: thin; scrollbar-color: var(--color-primary) var(--color-surface); }
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary-light));
  z-index: 10000;
  transition: none;
  pointer-events: none;
}

/* ---------- Page Load Animation ---------- */
body {
  animation: pageIn 0.6s var(--ease-out) both;
}
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.4);
  z-index: 999;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all var(--duration-normal) var(--ease-out);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.5);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* ---------- Enhanced Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

/* Desktop nav link animated underline */
@media (min-width: 1024px) {
  .header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: var(--space-3);
    right: var(--space-3);
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--duration-normal) var(--ease-out);
  }

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

/* Enhanced mobile nav overlay (mobile only) */
@media (max-width: 1023px) {
  .header-nav {
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-nav.active {
    display: flex;
    opacity: 1;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* Stagger mobile nav links and CTA (mobile only) */
@media (max-width: 1023px) {
  .header-nav.active > a,
  .header-nav.active .mobile-nav-cta {
    animation: navSlideIn 0.4s var(--ease-out) both;
  }
  .header-nav.active > a:nth-child(1) { animation-delay: 0.05s; }
  .header-nav.active > a:nth-child(2) { animation-delay: 0.1s; }
  .header-nav.active > a:nth-child(3) { animation-delay: 0.15s; }
  .header-nav.active > a:nth-child(4) { animation-delay: 0.2s; }
  .header-nav.active > a:nth-child(5) { animation-delay: 0.25s; }
  .header-nav.active > a:nth-child(6) { animation-delay: 0.3s; }
  .header-nav.active > a:nth-child(7) { animation-delay: 0.35s; }
  .header-nav.active > a:nth-child(8) { animation-delay: 0.4s; }
  .header-nav.active .mobile-nav-cta  { animation-delay: 0.45s; }
}

@keyframes navSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Enhanced Buttons ---------- */
/* Shine sweep on primary buttons */
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: none;
  z-index: 1;
}

.btn--primary:hover::before {
  animation: btnShine 0.6s ease forwards;
}

@keyframes btnShine {
  to { left: 130%; }
}

/* Ripple effect on all buttons */
.btn .btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- Enhanced Cards ---------- */
.card {
  border: 1px solid transparent;
  background-clip: padding-box;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, transparent);
  z-index: -1;
  transition: background var(--duration-normal) ease;
  border-radius: calc(var(--radius-xl) + 1px);
}

.card:hover::before {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent), var(--color-primary));
}

.card:hover {
  border-color: transparent;
}

/* Card 3D tilt (will be driven by JS) */
.card[data-tilt] {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ---------- Animated Section Labels ---------- */
.section-label::before {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.4); }
}

/* ---------- Enhanced Text Gradient Animation ---------- */
.text-gradient {
  background-size: 200% auto;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* ---------- Enhanced Hero ---------- */
/* Animated grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* Animated floating particles/orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-orb--1 {
  width: 6px;
  height: 6px;
  background: var(--color-primary-light);
  top: 20%;
  left: 15%;
  animation: orbFloat 8s ease-in-out infinite;
  opacity: 0.6;
}

.hero-orb--2 {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  top: 60%;
  left: 80%;
  animation: orbFloat 6s ease-in-out infinite reverse;
  opacity: 0.4;
}

.hero-orb--3 {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  top: 75%;
  left: 25%;
  animation: orbFloat 10s ease-in-out infinite 1s;
  opacity: 0.3;
}

.hero-orb--4 {
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.6);
  top: 30%;
  right: 20%;
  animation: orbFloat 7s ease-in-out infinite 0.5s;
  opacity: 0.5;
}

.hero-orb--5 {
  width: 3px;
  height: 3px;
  background: var(--color-primary-light);
  top: 50%;
  left: 60%;
  animation: orbFloat 9s ease-in-out infinite 2s;
  opacity: 0.4;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(20px, -30px); }
  50%      { transform: translate(-15px, -60px); }
  75%      { transform: translate(25px, -20px); }
}

/* Animated blobs (enhanced) */
.blob {
  filter: blur(80px);
  animation: blobPulse 8s ease-in-out infinite;
}

.blob--1 {
  animation-delay: 0s;
}

.blob--2 {
  animation-delay: 4s;
}

@keyframes blobPulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  33%      { transform: scale(1.15) translate(10px, -15px); opacity: 1; }
  66%      { transform: scale(0.9) translate(-8px, 10px); opacity: 0.5; }
}

/* Hero label badge shimmer */
.hero-label {
  overflow: hidden;
}

.hero-label::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: labelShimmer 3s ease-in-out infinite;
}

@keyframes labelShimmer {
  0%, 100% { left: -100%; }
  50%      { left: 150%; }
}

/* Enhanced hero visual glow */
.hero-visual__mockup::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at center, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
  z-index: -1;
  animation: mockupGlow 4s ease-in-out infinite;
}

@keyframes mockupGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}

/* ---------- Enhanced Trust Bar ---------- */
.trust-logos {
  opacity: 0.5;
  transition: opacity var(--duration-normal) ease;
}

.trust-logos:hover {
  opacity: 0.7;
}

.trust-logos svg {
  transition: all var(--duration-normal) var(--ease-out);
}

.trust-logos svg:hover {
  color: var(--color-primary);
  transform: scale(1.1);
  opacity: 1;
}

/* ---------- Enhanced Feature Rows ---------- */
.feature-row__visual .placeholder-img,
.feature-row__visual img {
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-row__visual:hover .placeholder-img,
.feature-row__visual:hover img {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Feature list check animation */
.feature-list li {
  transition: transform var(--duration-fast) ease;
}

.feature-list li:hover {
  transform: translateX(4px);
}

.feature-list li:hover svg {
  transform: scale(1.2);
  transition: transform var(--duration-fast) ease;
}

/* ---------- Enhanced Stats Band ---------- */
.stats-band {
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.stats-band::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.02) 40px,
    rgba(255,255,255,0.02) 80px
  );
  pointer-events: none;
  animation: diagonalSlide 20s linear infinite;
}

@keyframes diagonalSlide {
  from { transform: translateX(-80px); }
  to   { transform: translateX(0); }
}

.stat-item {
  transition: transform var(--duration-normal) var(--ease-out);
}

.stat-item:hover {
  transform: scale(1.08);
}

.stat-item__number {
  transition: transform var(--duration-fast) ease;
}

.stat-item:hover .stat-item__number {
  transform: scale(1.05);
}

/* ---------- Enhanced Testimonials ---------- */
.testimonial-card {
  border: 1px solid transparent;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--color-primary-rgb), 0.1);
}

.testimonial-card__avatar {
  transition: transform var(--duration-normal) var(--ease-out);
}

.testimonial-card:hover .testimonial-card__avatar {
  transform: scale(1.1) rotate(-5deg);
}

/* ---------- Enhanced Pricing Cards ---------- */
.pricing-card {
  overflow: visible;
}

.pricing-card--featured {
  transform: scale(1.03);
  border-color: transparent;
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
  border: 2px solid transparent;
}

.pricing-card--featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.03), transparent 40%);
  pointer-events: none;
  border-radius: inherit;
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 20px 60px rgba(var(--color-primary-rgb), 0.2);
}

.pricing-card__price {
  transition: color var(--duration-fast) ease;
}

.pricing-card:hover .pricing-card__price {
  color: var(--color-primary);
}

/* ---------- Enhanced FAQ ---------- */
.faq-item {
  transition: all var(--duration-normal) var(--ease-out);
}

.faq-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 2px 12px rgba(var(--color-primary-rgb), 0.08);
}

.faq-item.active {
  box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.1);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.02), transparent);
}

.faq-question {
  transition: all var(--duration-fast) ease;
}

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

/* ---------- Enhanced CTA Band ---------- */
.cta-band {
  position: relative;
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(100, 80, 200, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: ctaGlow 6s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ---------- Enhanced Icon Features ---------- */
.icon-feature {
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.icon-feature:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.icon-feature__icon {
  position: relative;
}

.icon-feature:hover .icon-feature__icon svg {
  animation: iconBounce 0.4s var(--ease-out);
}

@keyframes iconBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); }
  60%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ---------- Enhanced Page Hero (Internal) ---------- */
.page-hero {
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Enhanced Footer ---------- */
.site-footer {
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary-light), var(--color-primary));
  background-size: 300% 100%;
  animation: footerGradient 6s ease-in-out infinite;
}

@keyframes footerGradient {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 0%; }
}

.footer-links a {
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary-light);
  transition: width var(--duration-normal) var(--ease-out);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-social a {
  transition: all var(--duration-normal) var(--ease-out);
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.3);
}

/* ---------- Enhanced Form Inputs ---------- */
.form-input,
.form-select,
.form-textarea {
  transition: all var(--duration-normal) var(--ease-out);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1), 0 2px 8px rgba(var(--color-primary-rgb), 0.08);
  transform: translateY(-1px);
}

/* Error shake animation */
.form-input.error,
.form-select.error,
.form-textarea.error {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* ---------- Enhanced Scroll Reveal Variants ---------- */
.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal--left.revealed,
.reveal--right.revealed,
.reveal--scale.revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Enhanced Device Mockup ---------- */
.device-mockup--iphone {
  transition: transform var(--duration-normal) var(--ease-out);
}

.device-mockup--iphone:hover {
  transform: translateY(-8px) rotate(-2deg);
}

.app-showcase .device-mockup--iphone:nth-child(2):hover {
  transform: scale(1.08) translateY(-8px) rotate(1deg);
}

/* ---------- Enhanced Dashboard Mockup ---------- */
.dashboard-mockup {
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) ease;
}

.dashboard-mockup:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Animated chart bars */
.mock-chart-bar {
  animation: chartGrow 1.5s var(--ease-out) both;
  transform-origin: bottom;
}

.mock-chart-bar:nth-child(1) { animation-delay: 0.1s; }
.mock-chart-bar:nth-child(2) { animation-delay: 0.2s; }
.mock-chart-bar:nth-child(3) { animation-delay: 0.3s; }
.mock-chart-bar:nth-child(4) { animation-delay: 0.4s; }
.mock-chart-bar:nth-child(5) { animation-delay: 0.5s; }
.mock-chart-bar:nth-child(6) { animation-delay: 0.6s; }
.mock-chart-bar:nth-child(7) { animation-delay: 0.7s; }
.mock-chart-bar:nth-child(8) { animation-delay: 0.8s; }

@keyframes chartGrow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 0.7; }
}

/* ---------- Enhanced App Badges ---------- */
.app-badge {
  transition: all var(--duration-normal) var(--ease-out);
}

.app-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ---------- Enhanced Comparison Table ---------- */
.comparison-table tbody tr {
  transition: background-color var(--duration-fast) ease;
}

.comparison-table tbody tr:hover {
  background-color: rgba(var(--color-primary-rgb), 0.03);
}

.comparison-table .check svg,
.comparison-table .cross svg {
  transition: transform var(--duration-fast) ease;
}

.comparison-table tbody tr:hover .check svg {
  transform: scale(1.2);
}

/* ---------- Focus Visible Ring (global) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* ---------- Selection Color ---------- */
::selection {
  background: rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-dark);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--scale {
    opacity: 1;
    transform: none;
  }
  .hero-visual__mockup { animation: none; }
  .scroll-progress { display: none; }
}

/* ==========================================================================
   RESPONSIVE / MOBILE ENHANCEMENTS
   ========================================================================== */

/* ---------- Extra-Small Screens (< 400px) ---------- */
@media (max-width: 399px) {
  :root {
    --text-4xl: 1.875rem;  /* 30px instead of 36px */
    --text-5xl: 2.25rem;   /* 36px instead of 48px */
    --text-6xl: 2.5rem;    /* 40px instead of 56px */
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .hero-title {
    font-size: 1.75rem;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-label {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: var(--text-sm);
  }

  .btn--lg {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-base);
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }

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

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

  .pricing-card {
    padding: var(--space-5);
  }

  .pricing-card__price {
    font-size: var(--text-4xl);
  }

  .pricing-card__price sup {
    font-size: var(--text-xl);
  }

  .section-header h2 {
    font-size: var(--text-2xl);
  }

  .page-hero h1 {
    font-size: var(--text-3xl);
  }

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

  .cta-band h2 {
    font-size: var(--text-2xl);
  }

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

  .app-showcase .device-mockup--iphone {
    width: 160px;
  }

  .app-showcase .device-mockup--iphone:nth-child(2) {
    transform: scale(1.05);
  }

  .device-mockup--iphone {
    border-radius: 28px;
    padding: 8px;
  }

  .device-mockup--iphone::before {
    width: 70px;
    height: 20px;
    top: 8px;
  }

  .device-mockup--iphone .device-mockup__screen {
    border-radius: 20px;
  }

  .mock-sidebar {
    grid-template-columns: 48px 1fr;
    min-height: 240px;
  }

  .dashboard-mockup__content {
    padding: var(--space-3);
    min-height: 240px;
  }

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

  .faq-question {
    padding: var(--space-4);
    font-size: var(--text-sm);
  }

  .faq-answer__inner {
    padding: 0 var(--space-4) var(--space-4);
    font-size: var(--text-sm);
  }
}

/* ---------- Small Screens (max 767px) ---------- */
@media (max-width: 767px) {
  /* Reduce section spacing on mobile */
  .section {
    padding: var(--space-10) 0;
  }

  .section--lg {
    padding: var(--space-12) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  /* Hero adjustments */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-10);
  }

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

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

  .hero-visual__mockup {
    max-width: 380px;
  }

  /* Page hero */
  .page-hero {
    padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-10);
  }

  .page-hero p {
    font-size: var(--text-base);
  }

  /* Feature rows center on mobile */
  .feature-row__content {
    max-width: 100%;
    text-align: center;
  }

  .feature-row__content .feature-list {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-row__content .btn-group {
    justify-content: center;
  }

  .feature-row {
    gap: var(--space-8);
  }

  /* Stats band */
  .stats-band {
    padding: var(--space-8) 0;
  }

  .stats-grid {
    gap: var(--space-6);
  }

  .stat-item__number {
    font-size: var(--text-3xl);
  }

  /* Grid spacing */
  .grid {
    gap: var(--space-6);
  }

  /* Trust bar */
  .trust-bar {
    padding: var(--space-6) 0;
  }

  .trust-logos {
    gap: var(--space-5);
  }

  .trust-logos svg {
    height: 22px;
  }

  /* CTA Band */
  .cta-band {
    padding: var(--space-10) 0;
  }

  .cta-band .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .cta-band .btn-group .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Footer */
  .site-footer {
    padding-top: var(--space-10);
  }

  .footer-grid {
    margin-bottom: var(--space-8);
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-brand .header-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-app-badges {
    justify-content: center;
  }

  /* Pricing cards: remove scale on featured for mobile stack */
  .pricing-card--featured {
    transform: none;
  }

  .pricing-card--featured:hover {
    transform: translateY(-8px);
  }

  .pricing-card:hover {
    transform: translateY(-4px);
  }

  /* Comparison table mobile hint */
  .comparison-table-wrapper {
    position: relative;
  }

  .comparison-table-wrapper::after {
    content: 'Scroll to see more \2192';
    display: block;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    padding: var(--space-3);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
  }

  /* App showcase */
  .app-showcase {
    gap: var(--space-4);
  }

  .app-showcase .device-mockup--iphone {
    width: 180px;
  }

  /* Icon features */
  .icon-feature {
    padding: var(--space-4);
  }

  /* Card hover effects: reduce on mobile */
  .card:hover {
    transform: translateY(-3px);
  }

  .testimonial-card:hover {
    transform: translateY(-3px);
  }

  /* Back to top: smaller on mobile */
  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 1rem;
    right: 1rem;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* ---------- Ensure tap targets are at least 44px ---------- */
@media (max-width: 1023px) {
  .hamburger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-nav > a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
  }

  .faq-question {
    min-height: 48px;
  }

  /* Full-width buttons on mobile for easier tapping */
  .hero-content .btn-group .btn {
    min-height: 48px;
  }

  .pricing-card .btn {
    min-height: 48px;
  }
}

/* ---------- Medium screens (640–767px) — 2-col pricing fix ---------- */
@media (min-width: 640px) and (max-width: 767px) {
  /* If pricing grid is 2-col, center the 3rd card */
  .grid--3 > .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    justify-self: center;
  }
}

/* ---------- Tablet landscape tweaks (768–1023px) ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    min-height: auto;
    padding-bottom: var(--space-16);
  }

  .hero-visual__mockup {
    max-width: 450px;
  }

  /* Pricing grid: 3 columns at tablet */
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-card {
    padding: var(--space-6);
  }

  .pricing-card--featured {
    transform: scale(1.02);
  }
}

/* ---------- Short viewport: make mobile nav scrollable from top ---------- */
@media (max-height: 640px) and (max-width: 1023px) {
  .header-nav {
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + var(--space-4));
  }

  .header-nav a {
    font-size: var(--text-base);
    padding: var(--space-2) var(--space-6);
  }
}

/* ---------- Landscape phone orientation ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-6));
    padding-bottom: var(--space-6);
  }

  .page-hero {
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-8);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    margin-bottom: var(--space-4);
  }
}

/* ---------- iOS Safe Areas (notch/bottom bar) ---------- */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(var(--space-6), env(safe-area-inset-left));
    padding-right: max(var(--space-6), env(safe-area-inset-right));
  }

  .site-footer {
    padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
  }

  .back-to-top {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
  }

  .header-nav {
    padding-top: env(safe-area-inset-top);
  }
}

/* ---------- Touch device: disable hover transforms for performance ---------- */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }

  .card:hover::before {
    background: linear-gradient(135deg, transparent, transparent);
  }

  .testimonial-card:hover {
    transform: none;
  }

  .testimonial-card:hover::before {
    opacity: 0;
  }

  .testimonial-card:hover .testimonial-card__avatar {
    transform: none;
  }

  .pricing-card:hover {
    transform: none;
  }

  .pricing-card--featured:hover {
    transform: scale(1.03);
  }

  .icon-feature:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .feature-row__visual:hover .placeholder-img,
  .feature-row__visual:hover img {
    transform: none;
    box-shadow: var(--shadow-xl);
  }

  .device-mockup--iphone:hover {
    transform: none;
  }

  .app-showcase .device-mockup--iphone:nth-child(2):hover {
    transform: scale(1.08);
  }

  .feature-list li:hover {
    transform: none;
  }

  .stat-item:hover {
    transform: none;
  }

  .stat-item:hover .stat-item__number {
    transform: none;
  }

  .btn--primary:hover {
    transform: none;
  }

  .btn--secondary:hover {
    transform: none;
  }

  .btn--dark:hover {
    transform: none;
  }

  .btn--ghost:hover {
    transform: none;
  }
}

/* ---------- Prevent horizontal overflow globally ---------- */
html {
  overflow-x: hidden;
}

.hero,
.stats-band,
.cta-band,
.page-hero,
.section {
  overflow-x: hidden;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .scroll-progress,
  .back-to-top { display: none; }
  body { color: #000; animation: none; }
}
