/* ════════════════════════════════════════════════════════
   MailPilot — Cinematic Scroll Landing Page
   Premium Design System + Animation Styles
   ════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-sky: linear-gradient(180deg, #e0f0ff 0%, #f0f7ff 30%, #f8fbff 60%, #ffffff 100%);
  --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-pad: clamp(80px, 10vh, 140px);

  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
}

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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gradient-sky);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ══════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.25, 0, 0.1, 1), visibility 0.8s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-logo svg {
  animation: preloaderPulse 1.8s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.02em;
}

.preloader-bar-track {
  width: 200px;
  height: 3px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  border-radius: 99px;
  transition: width 0.15s ease-out;
}

.preloader-percent {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
}


/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 60px);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.03);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.25s;
  position: relative;
}

.nav-link:hover { color: var(--gray-900); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 99px;
  transition: width 0.3s cubic-bezier(0.25, 0, 0.1, 1);
}

.nav-link:hover::after { width: 100%; }

/* ── Navbar auth ── */
.nav-auth-btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-brand);
  padding: 8px 20px;
  border-radius: 99px;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 2px 12px rgba(59,130,246,0.3);
}
.nav-auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59,130,246,0.45);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nav-avatar:hover {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
  transform: scale(1.08);
}
.nav-username {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-logout {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 99px;
  padding: 5px 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nav-logout:hover { color: var(--gray-900); border-color: var(--gray-400); }



/* ══════════════════════════════════════
   CLOUDS — Parallax Background
   ══════════════════════════════════════ */
.clouds-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  filter: blur(40px);
  animation: cloudDrift linear infinite;
  will-change: transform;
}

.cloud-1 { width: 500px; height: 120px; top: 8%;  left: -200px; opacity: 0.35; animation-duration: 80s; }
.cloud-2 { width: 400px; height: 100px; top: 22%; left: -150px; opacity: 0.25; animation-duration: 100s; animation-delay: -20s; }
.cloud-3 { width: 600px; height: 140px; top: 45%; left: -250px; opacity: 0.20; animation-duration: 120s; animation-delay: -40s; }
.cloud-4 { width: 350px; height: 90px;  top: 60%; left: -180px; opacity: 0.30; animation-duration: 90s;  animation-delay: -10s; }
.cloud-5 { width: 450px; height: 110px; top: 75%; left: -200px; opacity: 0.18; animation-duration: 110s; animation-delay: -55s; }
.cloud-6 { width: 300px; height: 80px;  top: 15%; left: -150px; opacity: 0.28; animation-duration: 70s;  animation-delay: -35s; }

@keyframes cloudDrift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 700px)); }
}


/* ══════════════════════════════════════
   PIN SECTIONS — Scroll-Driven Canvas
   ══════════════════════════════════════ */
.pin-section {
  position: relative;
  z-index: 1;
  /* Height = viewport + scrollable distance for the animation */
  height: 400vh;
}

.pin-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.animation-divider {
  height: 350px;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

#heroSection .pin-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 5;
  pointer-events: none;
}

#transformSection .pin-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background: linear-gradient(to top, transparent, #ffffff);
  z-index: 5;
  pointer-events: none;
}


/* ══════════════════════════════════════
   HERO OVERLAY
   ══════════════════════════════════════ */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.hq {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgb(0, 39, 101);
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateY(52px);
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.25, 0, 0.1, 1),
              transform 0.65s cubic-bezier(0.25, 0, 0.1, 1);
  will-change: opacity, transform;
  padding: 0 clamp(32px, 6vw, 100px);
  max-width: 90vw;
  margin: 0;
}

.hq-left  { left: 0; text-align: left; }
.hq-right { right: 0; left: auto; text-align: right; }

.hq.hq-in {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
}

.hq.hq-out {
  opacity: 0;
  transform: translateY(-50%) translateY(-52px);
  transition: opacity 0.45s cubic-bezier(0.25, 0, 0.1, 1),
              transform 0.45s cubic-bezier(0.25, 0, 0.1, 1);
}



/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0, 0.1, 1);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.45), 0 0 0 4px rgba(59, 130, 246, 0.08);
}

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

.btn-ghost {
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

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

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}


/* ══════════════════════════════════════
   SCROLL INDICATOR
   ══════════════════════════════════════ */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.6s;
}

.scroll-indicator.visible { opacity: 1; }
.scroll-indicator.fade-out { opacity: 0; }

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--gray-300);
  border-radius: 99px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--brand-500);
  border-radius: 99px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.3; }
}

.scroll-indicator span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ══════════════════════════════════════
   TRANSFORM OVERLAY
   ══════════════════════════════════════ */
.transform-overlay {
  position: absolute;
  z-index: 10;
  left: clamp(24px, 6vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 420px;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 0, 0.1, 1);
  pointer-events: none;
}

.transform-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.transform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--brand-600);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  animation: dotPulse 2s ease-in-out infinite;
}

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

.transform-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(255,255,255,0.7);
}

.transform-text {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--gray-600);
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(255,255,255,0.8);
}


/* ══════════════════════════════════════
   CONTENT SECTIONS
   ══════════════════════════════════════ */
.content-section {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) 24px;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-500);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}


/* ─── Features Grid ─── */
.features-section {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.25, 0, 0.1, 1), box-shadow 0.4s;
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0, 0.1, 1), transform 0.7s cubic-bezier(0.25, 0, 0.1, 1);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  margin-bottom: 20px;
}

.feature-icon svg { width: 24px; height: 24px; stroke: #fff; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}


/* ─── Steps ─── */
.how-section { background: transparent; }

.steps-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  padding: 40px 32px;
  border-radius: 20px;
  background: rgba(217, 218, 219, 0.65);
  border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
}

.step-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0, 0.1, 1), transform 0.7s cubic-bezier(0.25, 0, 0.1, 1);
}

.step-connector {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-connector::after {
  content: '';
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 99px;
  opacity: 0.3;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}


/* ─── Pricing ─── */
.pricing-section { background: rgba(255,255,255,0.5); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 24px;
  background: rgb(211, 225, 241);
  border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s;
  will-change: opacity, transform;
}

#planMonthly  { transition-delay: 0s; }
#planQuarterly { transition-delay: 0.15s; }
#planYearly   { transition-delay: 0.08s; }

.pricing-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card--featured.revealed {
  transform: translateY(-12px);
}

.pricing-card:not(.pricing-card--featured):hover {
  box-shadow: 0 20px 60px rgba(59,130,246,0.1), 0 4px 16px rgba(0,0,0,0.05);
  transform: translateY(-6px);
}

.pricing-card--featured {
  background: var(--gradient-dark);
  border-color: transparent;
  color: #45c6f0;
  box-shadow: 0 24px 80px rgba(59,130,246,0.25);
}

.pricing-card--featured:hover {
  box-shadow: 0 32px 100px rgba(59,130,246,0.35);
  transform: translateY(-18px);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-500);
}

.pricing-card--featured .pricing-label { color: rgba(255,255,255,0.6); }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.pricing-currency {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-700);
}

.pricing-card--featured .pricing-currency { color: rgba(255, 255, 255, 0.8); }

.pricing-amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
}

.pricing-card--featured .pricing-amount { color: #fff; }

.pricing-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-left: 4px;
}

.pricing-card--featured .pricing-period { color: rgba(255,255,255,0.5); }

.pricing-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.pricing-card--featured .pricing-desc { color: rgba(255,255,255,0.6); }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-700);
}

.pricing-card--featured .pricing-features li { color: rgba(255, 255, 255, 0.85); }

.pricing-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--brand-500);
}

.pricing-card--featured .pricing-features li svg { stroke: #60a5fa; }

.pricing-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.pricing-card--featured .btn-primary {
  background: var(--gradient-brand);
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card--featured.revealed { transform: translateY(0); }
  .pricing-card--featured:hover { transform: translateY(-6px); }
}

/* ─── CTA Section ─── */
.cta-section { padding-bottom: 60px; }

/* ─── Support & Reviews ─── */
.support-section { background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }

.support-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start;
}

/* Form */
.support-form-wrap {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 24px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--gray-800);
  background: rgba(255,255,255,0.9);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* Star Picker */
.star-picker {
  display: flex;
  gap: 6px;
}

.star-picker span {
  font-size: 1.8rem;
  color: var(--gray-200);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
}

.star-picker span:hover,
.star-picker span.active {
  color: #f59e0b;
  transform: scale(1.15);
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 4px;
}

.reviews-list:empty::after {
  content: 'No reviews yet. Be the first to share your experience!';
  display: block;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  padding: 48px 24px;
  background: rgba(255,255,255,0.6);
  border-radius: 20px;
  border: 1.5px dashed var(--gray-200);
}

.review-card {
  padding: 24px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: reviewSlideIn 0.4s cubic-bezier(0.25, 0, 0.1, 1);
}

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

.review-stars {
  display: flex;
  gap: 3px;
}

.review-stars span {
  font-size: 1rem;
  color: #f59e0b;
}

.review-text {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
}

.review-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .support-layout { grid-template-columns: 1fr; }
  .reviews-list { max-height: none; }
}

.cta-card {
  position: relative;
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 40px;
  border-radius: 32px;
  background: var(--gradient-dark);
  overflow: hidden;
  color: #fff;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
}

.cta-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.8s cubic-bezier(0.25, 0, 0.1, 1), transform 0.8s cubic-bezier(0.25, 0, 0.1, 1);
}

.cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  position: relative;
}

.cta-actions { position: relative; }

.cta-section .btn-primary {
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.5);
}

.cta-footnote {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 20px;
  position: relative;
}


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 2;
  padding: 32px 24px;
  border-top: 1px solid var(--gray-100);
  background: rgba(255,255,255,0.4);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-700);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--gray-400);
}


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .pin-section { height: 300vh; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.2rem); }

  .transform-overlay {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 60px;
    transform: none;
    max-width: none;
    text-align: center;
  }

  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: center; }

  .step-connector {
    width: 2px;
    height: 40px;
    flex-direction: column;
  }
  .step-connector::after {
    width: 2px;
    height: 100%;
  }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
}
