/* ============================================
   ChurnShield Landing Page — Styles
   Dark theme, bento grid, premium aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --bg-body: #0a0a0f;
  --bg-tile: #111118;
  --bg-tile-hover: #16161f;
  --border-tile: #1e1e2e;
  --border-tile-hover: #2a2a3a;
  --accent: #00E5A0;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --accent-glow-strong: rgba(0, 229, 160, 0.25);
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --gap: 10px;
  --radius: 14px;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle noise texture overlay for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover { opacity: 0.8; }

/* --- Layout --- */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 60px;
  position: relative;
  z-index: 1;
}

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(17, 17, 24, 0.5);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--border-tile);
  border-radius: var(--radius);
  margin-bottom: var(--gap);
  position: sticky;
  top: 12px;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.88);
  border-color: var(--border-tile-hover);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo .shield-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), #00b882);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-mobile-only {
  display: none !important;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.25s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.nav-signin {
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.25s ease;
  margin-right: 4px;
}
.nav-signin:hover {
  color: var(--text-primary) !important;
  opacity: 1 !important;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), #00c48c);
  color: #0a0a0f !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--accent-glow-strong);
  opacity: 1 !important;
}

/* --- Hamburger Menu --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-hamburger:hover {
  background: rgba(255,255,255,0.06);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

/* --- Tile Base --- */
.tile {
  background: var(--bg-tile);
  border: 1px solid var(--border-tile);
  border-radius: 16px;
  padding: 36px;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;

  /* Scroll animation */
  opacity: 0;
  transform: translateY(30px);
}

.tile.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.tile:hover {
  border-color: var(--border-tile-hover);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.tile.is-visible:hover {
  transform: translateY(-2px);
}

/* --- Tile Sizes --- */
.tile-full    { grid-column: span 12; }
.tile-8       { grid-column: span 8; }
.tile-6       { grid-column: span 6; }
.tile-4       { grid-column: span 4; }
.tile-3       { grid-column: span 3; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 72px 56px;
  min-height: 500px;
  background: var(--bg-tile);
  background-image:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0, 229, 160, 0.06), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 100, 200, 0.03), transparent);
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #c8c8d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .highlight {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, var(--accent), #00f0b5, var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer-text 3s ease-in-out infinite;
}

@keyframes shimmer-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  filter: drop-shadow(0 20px 60px rgba(0, 229, 160, 0.1));
}

/* Hero SVG chart */
.hero-chart {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 0 60px rgba(0, 229, 160, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00c48c);
  color: #0a0a0f;
  box-shadow: 0 2px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 40px var(--accent-glow-strong), 0 0 20px var(--accent-glow);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-tile-hover);
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* ============================================
   PROBLEM + STATS
   ============================================ */
.problem-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.problem-tile .section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.problem-tile h2 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.problem-tile p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 520px;
}

/* Stat tiles */
.stat-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 160px;
  line-height: 1.5;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.step-tile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 229, 160, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-tile h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-tile p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

/* ============================================
   FEATURES
   ============================================ */
.feature-tile h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 229, 160, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

/* Retry timeline visual */
.retry-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
  padding: 16px 0;
}

.retry-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.retry-node .node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-tile);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform 0.3s ease;
}

.retry-node:hover .node-dot {
  transform: scale(1.3);
}

.retry-node .node-dot.failed {
  background: #ff4466;
  box-shadow: 0 0 12px rgba(255, 68, 102, 0.3);
}

.retry-node .node-dot.success {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow-strong);
}

.retry-node .node-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
  white-space: nowrap;
}

.retry-line {
  flex: 1;
  height: 2px;
  background: var(--border-tile-hover);
  min-width: 30px;
}

.retry-line.active {
  background: linear-gradient(90deg, var(--accent), rgba(0, 229, 160, 0.3));
}

/* ============================================
   PRICING
   ============================================ */

/* --- Billing Toggle --- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.toggle-pill {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-tile);
  border-radius: 100px;
  padding: 4px;
  gap: 0;
}

.toggle-option {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 22px;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
}

.toggle-option.active {
  background: var(--accent);
  color: #0a0a0f;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.toggle-option:not(.active):hover {
  color: var(--text-primary);
}

.toggle-save-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 229, 160, 0.2);
  padding: 5px 12px;
  border-radius: 100px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toggle-save-badge.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Billed annually note --- */
.pricing-billed-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-height: 18px;
  margin-bottom: 4px;
  transition: opacity 0.2s ease;
}

.pricing-section {
  padding: 60px 36px;
}

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

.pricing-section .section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-tile);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-tile-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
  border-color: transparent;
  background: rgba(0, 229, 160, 0.04);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 40px rgba(0, 229, 160, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.pricing-card.popular:hover {
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 60px rgba(0, 229, 160, 0.15),
    0 12px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px) scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0a0a0f;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  transition: opacity 0.2s ease;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 20px 0;
  flex: 1;
}

.pricing-features li {
  font-size: 0.825rem;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

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

/* ============================================
   SOCIAL PROOF
   ============================================ */
.testimonial-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image:
    radial-gradient(ellipse 60% 60% at 20% 30%, rgba(0, 229, 160, 0.03), transparent);
}

.testimonial-quote {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid rgba(0, 229, 160, 0.3);
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4.5rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -24px;
  left: -8px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0088cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0a0a0f;
  flex-shrink: 0;
}

.author-info .name {
  font-weight: 600;
  font-size: 0.9rem;
}

.author-info .role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Trust badge tiles */
.trust-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
}

.trust-tile .trust-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.trust-tile h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.trust-tile p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Stripe-style logo */
.stripe-wordmark {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #635bff, #a259ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding: 60px 48px;
}

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

.faq-section .section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.faq-section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: color 0.25s ease;
}

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

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), color 0.25s ease;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 16px;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  padding-bottom: 22px;
}

/* ============================================
   FOOTER CTA
   ============================================ */
.footer-cta {
  text-align: center;
  padding: 80px 36px;
  background-image:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(0, 229, 160, 0.07), transparent);
}

.footer-cta h2 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, #c8c8d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-cta p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid transparent;
  background-image: linear-gradient(180deg, rgba(0, 229, 160, 0.04), transparent 60px);
  padding: 48px 0 20px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--max-width));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-tile-hover), var(--accent), var(--border-tile-hover), transparent);
  opacity: 0.5;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

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

.footer-brand .nav-logo {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.825rem;
  line-height: 1.7;
}

.footer-links-group {
  display: flex;
  gap: 64px;
}

.footer-col {
  position: relative;
}

/* Subtle dividers between footer columns */
.footer-col + .footer-col::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--border-tile), transparent);
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid var(--border-tile);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   SECTION LABELS (shared)
   ============================================ */
.section-header .section-label {
  display: block;
}

/* ============================================
   RESPONSIVE — Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding: 48px 32px;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { max-width: 420px; }

  .tile-8, .tile-6, .tile-4, .tile-3 {
    grid-column: span 6;
  }

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

  .footer-links-group { gap: 40px; }
  .footer-col + .footer-col::before { left: -20px; }
}

/* ============================================
   RESPONSIVE — Tablet small (768px)
   ============================================ */
@media (max-width: 768px) {
  .page-wrapper { padding: 16px 16px 48px; }

  /* Nav: show hamburger, hide links & desktop CTA */
  .nav { padding: 14px 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(17, 17, 24, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-tile);
    border-radius: var(--radius);
    padding: 20px 24px;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-tile);
    min-height: 44px;
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-cta-desktop { display: none; }
  .nav-signin { display: none; }
  .nav-mobile-only { display: list-item !important; }
  .nav-mobile-cta { background: var(--accent); color: #0a0a0f; padding: 12px 20px; border-radius: 8px; display: inline-block; font-weight: 600; text-align: center; min-height: 44px; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { padding: 36px 24px; min-height: auto; gap: 32px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero-visual { max-width: 100%; }

  /* All tiles full width */
  .tile-8, .tile-6, .tile-4, .tile-3 {
    grid-column: span 12;
  }

  .tile { padding: 28px 24px; }

  /* Pricing */
  .billing-toggle { flex-direction: column; gap: 8px; }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-section { padding: 32px 20px; }

  /* Pricing card hover: no scale on mobile (touch) */
  .pricing-card:hover {
    transform: translateY(-2px);
  }
  .pricing-card.popular:hover {
    transform: translateY(-2px);
  }

  /* FAQ */
  .faq-section { padding: 32px 20px; }
  .faq-question { font-size: 0.95rem; padding: 18px 0; min-height: 44px; }

  /* Footer CTA */
  .footer-cta { padding: 56px 24px; }
  .footer-cta h2 { font-size: 1.8rem; }
  .footer-cta p { font-size: 0.95rem; }

  /* Footer */
  .footer-inner { flex-direction: column; }
  .footer-brand { max-width: 100%; }
  .footer-links-group { gap: 32px; }
  .footer-col + .footer-col::before { display: none; }

  /* Retry timeline */
  .retry-timeline { flex-wrap: wrap; justify-content: center; gap: 4px; }

  /* Testimonial */
  .testimonial-quote { font-size: 1.1rem; }

  /* Problem tile */
  .problem-tile h2 { font-size: 1.6rem; }

  /* Section gap */
  .bento-grid .section-gap { height: 16px; }

  /* Stat tiles side-by-side on tablet-small  */
  .stat-tile { padding: 28px 20px; }
  .stat-number { font-size: 2.6rem; }
}

/* ============================================
   RESPONSIVE — Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  .page-wrapper { padding: 12px 12px 40px; }

  .nav { padding: 12px 16px; top: 8px; border-radius: 12px; }
  .nav-logo img { height: 26px; }

  /* Hero */
  .hero { padding: 28px 18px; gap: 24px; }
  .hero h1 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 14px; }
  .hero p { font-size: 0.925rem; margin-bottom: 24px; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; margin-bottom: 18px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; padding: 14px 20px; min-height: 44px; }

  /* Tiles */
  .tile { padding: 24px 18px; border-radius: 12px; }

  /* Stats */
  .stat-number { font-size: 2.2rem; }
  .stat-label { font-size: 0.8rem; }

  /* Steps */
  .step-tile { padding: 28px 18px; }
  .step-tile h3 { font-size: 1.05rem; }
  .step-tile p { font-size: 0.825rem; }

  /* Features */
  .feature-tile h3 { font-size: 1.1rem; }
  .feature-tile p { font-size: 0.85rem; }

  /* Pricing */
  .pricing-section { padding: 24px 16px; }
  .pricing-section h2 { font-size: 1.6rem; }
  .pricing-card { padding: 24px 20px; }
  .pricing-price { font-size: 2rem; }

  /* FAQ */
  .faq-section { padding: 24px 16px; }
  .faq-section h2 { font-size: 1.6rem; }
  .faq-question { font-size: 0.9rem; }
  .faq-answer p { font-size: 0.85rem; }

  /* Footer CTA */
  .footer-cta { padding: 48px 18px; }
  .footer-cta h2 { font-size: 1.5rem; }
  .footer-cta p { font-size: 0.9rem; margin-bottom: 24px; }
  .footer-cta .btn { width: 100%; justify-content: center; min-height: 44px; }

  /* Footer */
  .footer { padding: 32px 0 16px; }
  .footer-inner { padding: 0 16px; gap: 24px; }
  .footer-links-group { flex-direction: column; gap: 24px; }
  .footer-bottom { padding: 16px 16px 0; margin-top: 24px; font-size: 0.75rem; }

  /* Section gap */
  .bento-grid .section-gap { height: 10px; }

  /* Problem tile */
  .problem-tile h2 { font-size: 1.4rem; }
  .problem-tile p { font-size: 0.875rem; }

  /* Trust tiles */
  .trust-tile { padding: 24px 18px; }
}

/* ============================================
   ANIMATION DELAY UTILITY
   ============================================ */
.tile:nth-child(1) { transition-delay: 0s; }
.tile:nth-child(2) { transition-delay: 0.08s; }
.tile:nth-child(3) { transition-delay: 0.16s; }
.tile:nth-child(4) { transition-delay: 0.24s; }

/* Section separators via grid row gaps */
.bento-grid .section-gap {
  grid-column: span 12;
  height: 24px;
}
