/* ══════════════════════════════════════════════════════════════
   LANDING PAGE — Glivvo RH
   Design System: Inter, Indigo primary, clean modern SaaS
   ══════════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ────────────────────────── */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-bg: #eef2ff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-dark-primary: #f1f5f9;
  --text-dark-muted: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, .1), 0 4px 10px rgba(0, 0, 0, .05);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, .12);
  --shadow-2xl: 0 25px 60px rgba(0, 0, 0, .18);
  --shadow-primary: 0 8px 30px rgba(99, 102, 241, .25);
  --shadow-primary-lg: 0 12px 40px rgba(99, 102, 241, .35);
  --transition-fast: .15s ease;
  --transition: .25s ease;
  --transition-slow: .4s cubic-bezier(.16, 1, .3, 1);
  --transition-spring: .5s cubic-bezier(.34, 1.56, .64, 1);
}

/* ── RESET & BASE ────────────────────────────── */

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: block !important;
}

/* Force all top-level sections to be block-level and full-width */
nav.navbar,
section,
.trust-bar,
.stats-section,
footer.footer {
  display: block;
  width: 100%;
}

/* Ensure sections don't float or go inline */
.hero, .section, .section-alt, .stats-section, .cta-section {
  width: 100%;
  max-width: 100vw;
}

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

/* ── UTILITIES ────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 50%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── ANIMATIONS / KEYFRAMES ───────────────────── */

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

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes statCountUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, .4), 0 0 60px rgba(99, 102, 241, .15);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, .6), 0 0 80px rgba(99, 102, 241, .25);
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes borderRotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50%      { border-color: var(--primary); }
}

/* Scroll-triggered animation utility classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children delays */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: .08s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: .16s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: .24s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: .32s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: .4s; }
.stagger-children .animate-on-scroll:nth-child(7) { transition-delay: .48s; }
.stagger-children .animate-on-scroll:nth-child(8) { transition-delay: .56s; }

/* ── BUTTONS ────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  font-family: inherit;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .15) 50%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after {
  opacity: 1;
  animation: shimmer 1s ease forwards;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.btn-ghost::after { display: none; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

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

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

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

/* ── NAVBAR ────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, .6);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .06);
  border-bottom-color: transparent;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon { font-size: 24px; }

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-links a:not(.btn)::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}

.nav-links a:not(.btn):hover::before {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

/* ── HERO ────────────────────────────────────── */

.hero {
  padding: 140px 0 100px;
  overflow: hidden;
  position: relative;
}

/* Subtle radial gradient backdrop — parallax depth */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, .07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  background-attachment: fixed;
  transform: translateZ(-1px) scale(1.5);
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, .05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  background-attachment: fixed;
  transform: translateZ(-2px) scale(2);
  will-change: transform;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: slideInLeft .8s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  border-radius: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(99, 102, 241, .15);
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--primary);
  max-width: max-content;
  animation: typing 2s steps(30) forwards, blink .7s step-end infinite;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.03em;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-trust .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Hero Mockup — 3D Perspective Tilt ──────── */

.hero-visual {
  animation: slideInRight .8s cubic-bezier(.16, 1, .3, 1) .1s both;
  perspective: 1200px;
}

.hero-mockup {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .2),
    0 8px 20px rgba(0, 0, 0, .15),
    0 0 0 1px rgba(255, 255, 255, .05) inset;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) scale(1);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1),
              box-shadow .6s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
  position: relative;
}

.hero-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, .08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  border-radius: var(--radius-lg);
  opacity: 1;
  transition: opacity .6s ease;
}

.hero-mockup:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .2),
    0 12px 30px rgba(0, 0, 0, .12),
    0 0 0 1px rgba(99, 102, 241, .1) inset;
}

.hero-mockup:hover::before {
  opacity: 0;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-dark-card);
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  z-index: 2;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: transform var(--transition);
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.hero-mockup:hover .mockup-dots span {
  transform: scale(1.15);
}

.mockup-title {
  color: var(--text-dark-muted);
  font-size: 12px;
  font-weight: 500;
}

.mockup-body {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.mockup-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.mockup-kpi {
  background: var(--bg-dark-card);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  border: 1px solid var(--border-dark);
  transition: all var(--transition);
}

.hero-mockup:hover .mockup-kpi {
  border-color: rgba(99, 102, 241, .2);
}

.mkpi-val {
  display: block;
  color: var(--text-dark-primary);
  font-size: 22px;
  font-weight: 700;
}

.mkpi-lab {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
}

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.mockup-chart .bar {
  flex: 1;
  background: var(--border-dark);
  border-radius: 4px 4px 0 0;
  transition: all var(--transition);
}

.mockup-chart .bar.active {
  background: var(--primary);
}

.mockup-chart .bar:hover {
  background: var(--primary-light);
  transform: scaleY(1.05);
  transform-origin: bottom;
}

.mockup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-dark-card);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #cbd5e1;
  border: 1px solid var(--border-dark);
  transition: all var(--transition);
}

.mockup-item:hover {
  border-color: rgba(99, 102, 241, .3);
  background: #253347;
}

.mi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mi-dot.green { background: #22c55e; }
.mi-dot.yellow { background: #f59e0b; }
.mi-dot.blue { background: #3b82f6; }

.mockup-item span:nth-child(2) { flex: 1; }

.mi-badge {
  background: var(--border-dark);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark-muted);
}

.mi-badge.warn {
  background: #422006;
  color: #f59e0b;
}

/* ── Phone Mockup ────────────────────────────── */

.phone-frame {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 36px !important;
  padding: 0;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e293b;
  border: 1.5px solid #334155;
}

.phone-screen {
  background: var(--bg-dark);
  border-radius: 36px;
  padding: 48px 24px 32px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 11px;
  color: var(--text-dark-muted);
  margin-bottom: 16px;
  padding: 0 4px;
}

.phone-app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.phone-app-logo {
  font-size: 20px;
}

.phone-app-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark-primary);
  letter-spacing: -.01em;
}

.phone-greeting {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark-primary);
  margin-bottom: 6px;
  text-align: center;
}

.phone-time-display {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', monospace;
}

.phone-next-status {
  font-size: 13px;
  color: var(--text-dark-muted);
  margin-bottom: 24px;
}

.phone-next-status strong {
  color: var(--success);
}

.phone-btn-ponto {
  width: 100%;
  padding: 16px 24px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .04em;
  cursor: default;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(34, 197, 94, .35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-mockup:hover .phone-btn-ponto {
  transform: scale(1.02);
  box-shadow: 0 6px 28px rgba(34, 197, 94, .45);
}

.phone-gps-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--success);
  margin-bottom: 20px;
}

.phone-gps-icon {
  font-size: 14px;
}

.phone-camera-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.phone-camera-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-dark-card);
  border: 2px dashed var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}

.hero-mockup:hover .phone-camera-circle {
  border-color: rgba(99, 102, 241, .4);
}

.phone-camera-label {
  font-size: 11px;
  color: var(--text-dark-muted);
}

/* ── Trust Bar ───────────────────────────────── */

.trust-bar {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.trust-bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-badge-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* ── SECTIONS (shared) ────────────────────────── */

.section {
  padding: 100px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 1px;
  opacity: .5;
}

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

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 14px;
  border: 1px solid rgba(99, 102, 241, .12);
}

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── STEPS (Como funciona) ────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition-slow);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, .2);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
}

.step-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: inline-block;
  animation: floatSoft 3s ease-in-out infinite;
}

.step-card:nth-child(2) .step-icon {
  animation-delay: .4s;
}

.step-card:nth-child(3) .step-icon {
  animation-delay: .8s;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FEATURES ────────────────────────────────── */

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

/* Featured first card — spans 2 columns with gradient border */
.feature-card:first-child {
  grid-column: span 2;
  position: relative;
  background: var(--bg);
  border: none;
  padding: 32px;
  z-index: 1;
}

/* Gradient border via pseudo-element (conic gradient technique) */
.feature-card:first-child::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #a78bfa, var(--primary));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.feature-card:first-child::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99, 102, 241, .06), rgba(167, 139, 250, .04));
  z-index: -2;
}

.feature-card:first-child .feature-icon {
  font-size: 38px;
}

.feature-card:first-child h3 {
  font-size: 20px;
  font-weight: 800;
}

.feature-card:first-child p {
  font-size: 14px;
  max-width: 480px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition-slow);
  position: relative;
}

.feature-card:hover {
  transform: perspective(800px) rotateY(-2deg) translateY(-8px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, .08),
    0 4px 12px rgba(0, 0, 0, .04);
  border-color: var(--primary);
}

.feature-card:nth-child(even):hover {
  transform: perspective(800px) rotateY(2deg) translateY(-8px);
}

.feature-card:first-child:hover {
  transform: translateY(-8px);
  box-shadow:
    0 16px 40px rgba(99, 102, 241, .12),
    0 6px 16px rgba(0, 0, 0, .06);
}

/* Hover glow accent for regular cards */
.feature-card:not(:first-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--transition), width var(--transition);
}

.feature-card:not(:first-child):hover::after {
  opacity: 1;
  width: 80%;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── STATS / NUMBERS ─────────────────────────── */

.stats-section {
  background: var(--bg-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern in background */
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, .08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(167, 139, 250, .06) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
}

/* Animation classes triggered by JS IntersectionObserver */
.stat-item.animate-stat {
  animation: statCountUp .7s cubic-bezier(.16, 1, .3, 1) both;
}

.stat-item:nth-child(2).animate-stat { animation-delay: .1s; }
.stat-item:nth-child(3).animate-stat { animation-delay: .2s; }
.stat-item:nth-child(4).animate-stat { animation-delay: .3s; }

.stat-number {
  display: block;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, .15));
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-dark-muted);
  font-weight: 500;
}

/* Dividers between stats */
.stat-item + .stat-item {
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-dark), transparent);
}

/* ── PLANS ────────────────────────────────────── */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.plan-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 2px solid var(--border);
  position: relative;
  transition: all var(--transition-slow);
}

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

/* Featured plan: Profissional (middle card) */
.plan-card.featured {
  border-color: var(--primary);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--primary),
    0 0 40px rgba(99, 102, 241, .15);
  transform: scale(1.05);
  z-index: 2;
  background: var(--bg);
}

.plan-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #a78bfa, var(--primary-dark));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-6px);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px var(--primary),
    0 0 60px rgba(99, 102, 241, .2);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 6px 20px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .3px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, .35);
}

.plan-header { margin-bottom: 20px; }

.plan-header h3 {
  font-size: 22px;
  font-weight: 800;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.plan-price {
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
}

.price-value {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}

.plan-card.featured .price-value {
  color: var(--primary);
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 2px;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  padding: 7px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features .check {
  color: var(--success);
  font-weight: 700;
  font-size: 15px;
}

.plan-features .x { color: #cbd5e1; }

.plan-features .excluded {
  color: var(--text-muted);
  opacity: .5;
}

.plan-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
  font-style: italic;
}

.plan-card.featured .plan-subtitle {
  color: var(--primary);
  font-weight: 600;
  font-style: normal;
}

/* ── PRICING TOGGLE ──────────────────────────── */

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}

.toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), font-weight var(--transition-fast);
  user-select: none;
}

.toggle-label.active {
  color: var(--text);
  font-weight: 700;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 26px;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle-discount {
  display: inline-block;
  background: #dcfce7;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
  vertical-align: middle;
}

.plans-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ── FAQ ────────────────────────────────────── */

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

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  transition: color var(--transition-fast);
}

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

.faq-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}

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

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

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

.faq-answer p {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA ────────────────────────────────────── */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, var(--primary-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Background decoration orbs */
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, .05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, .04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.cta-content p {
  font-size: 17px;
  opacity: .9;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Pulsing glow CTA button */
.pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
  position: relative;
}

.cta-content .btn-white {
  animation: pulseGlow 2.5s ease-in-out infinite;
  position: relative;
}

.cta-content .btn-white:hover {
  animation: none;
  box-shadow: 0 0 30px rgba(255, 255, 255, .3), 0 12px 32px rgba(0, 0, 0, .15);
}

/* ── FOOTER ────────────────────────────────────── */

.footer {
  background: var(--bg-dark);
  color: var(--text-dark-muted);
  padding: 56px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  padding-bottom: 36px;
}

.footer-brand .logo-text { color: var(--text-dark-primary); }

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  color: var(--text-dark-primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-dark-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-dark-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 18px 0;
}

.footer-bottom p {
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

/* ── MODAL CADASTRO ────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-2xl);
  animation: fadeInScale .3s cubic-bezier(.16, 1, .3, 1) both;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-alt);
  color: var(--text);
  transform: rotate(90deg);
}

/* Stepper */
.stepper {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
}

.stepper .step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition: all var(--transition);
}

.stepper .step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.stepper .step.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.stepper .step.active span {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, .3);
}

.stepper .step.done { color: var(--success); }

.stepper .step.done span {
  background: var(--success);
  color: #fff;
}

/* Step Content */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeInUp .3s ease both;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Form */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-fast);
  background: var(--bg);
  color: var(--text);
}

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

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}

/* Plan Selection in Modal */
.plan-select-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-select-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.plan-select-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
}

.plan-select-item.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.plan-select-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.plan-select-item.selected .plan-select-radio {
  border-color: var(--primary);
}

.plan-select-item.selected .plan-select-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.plan-select-info { flex: 1; }

.plan-select-name {
  font-weight: 700;
  font-size: 15px;
}

.plan-select-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.plan-select-price {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
}

/* Confirm Summary */
.confirm-summary {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.confirm-summary p {
  font-size: 14px;
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
}

.confirm-summary p strong {
  color: var(--text-muted);
  font-weight: 500;
}

.confirm-summary p span {
  font-weight: 600;
}

.confirm-terms { margin-bottom: 8px; }

.confirm-terms label {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
}

.confirm-terms a { color: var(--primary); }

/* Success */
.success-content {
  text-align: center;
  padding: 24px 0;
}

.success-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: floatSoft 2s ease-in-out infinite;
}

.success-content h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.success-info {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 22px;
  margin: 24px 0;
  text-align: left;
  border: 1px solid var(--border);
}

.success-info p {
  font-size: 14px;
  padding: 5px 0;
}

/* ── MOBILE CTA (hidden by default, shown via media query) ── */

.mobile-cta {
  display: none;
}

/* ── TESTIMONIALS ─────────────────────────────── */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  letter-spacing: .5px;
}

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

.testimonial-meta strong {
  font-size: 15px;
  color: var(--text);
}

.testimonial-meta span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  border: none;
  margin: 0;
  padding: 0;
}

.testimonial-stars {
  font-size: 16px;
  letter-spacing: 2px;
}

.testimonial-company-size {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-alt);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
  font-weight: 500;
}

/* ── BEFORE vs AFTER COMPARISON ──────────────── */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.comparison-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition);
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.comparison-card.before {
  border-color: rgba(239, 68, 68, .3);
  background: linear-gradient(135deg, rgba(239, 68, 68, .03) 0%, var(--bg) 100%);
}

.comparison-card.after {
  border-color: rgba(34, 197, 94, .3);
  background: linear-gradient(135deg, rgba(34, 197, 94, .03) 0%, var(--bg) 100%);
}

.comparison-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.comparison-title.before-title {
  color: var(--danger);
  border-bottom-color: rgba(239, 68, 68, .2);
}

.comparison-title.after-title {
  color: var(--success);
  border-bottom-color: rgba(34, 197, 94, .2);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.comparison-icon-x,
.comparison-icon-check {
  font-size: 16px;
  flex-shrink: 0;
}

.comparison-vs {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════ */

/* ── Desktop-first: 1024px (tablet landscape) ── */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 42px;
  }

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

  /* Featured card still spans 2 on tablet */
  .feature-card:first-child {
    grid-column: span 2;
  }

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

  /* Reset stat dividers for 2-col layout */
  .stat-item + .stat-item::before {
    display: none;
  }

  .stat-item:nth-child(odd) {
    position: relative;
  }

  .stat-item:nth-child(even)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border-dark), transparent);
    display: block;
  }

  .stat-number {
    font-size: 44px;
  }

  /* Testimonials tablet */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  /* Comparison tablet */
  .comparison-grid {
    gap: 20px;
  }

  .comparison-card {
    padding: 28px 24px;
  }
}

/* ── Tablet & Mobile: 768px ──────────────────── */
@media (max-width: 768px) {
  /* Navbar mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links a:not(.btn)::before { display: none; }

  .nav-toggle { display: flex; }

  /* Hero mobile */
  .hero {
    padding: 100px 0 60px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-visual {
    order: -1;
    perspective: none;
    animation-name: fadeInDown;
    animation-duration: .6s;
  }

  .hero-mockup {
    transform: none;
    box-shadow: var(--shadow-xl);
  }

  .hero-mockup:hover {
    transform: none;
    box-shadow: var(--shadow-2xl);
  }

  .phone-frame {
    max-width: 280px;
  }

  .phone-screen {
    min-height: 440px;
    padding: 44px 18px 24px;
  }

  .phone-time-display {
    font-size: 34px;
  }

  .trust-bar-row {
    gap: 16px;
  }

  .trust-badge {
    font-size: 11px;
  }

  .trust-badge-icon {
    font-size: 14px;
  }

  .hero-content {
    text-align: center;
    animation-name: fadeInUp;
    animation-duration: .6s;
  }

  .hero-subtitle {
    max-width: none;
  }

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

  .hero-trust {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 11px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-visual {
    max-width: 280px;
    margin: 0 auto;
  }

  /* Section sizing */
  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 15px;
  }

  /* Steps mobile */
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:first-child {
    grid-column: span 1;
  }

  /* Stats mobile */
  .stats-section {
    padding: 60px 0;
  }

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

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 13px;
  }

  /* Reset all stat dividers on mobile */
  .stat-item + .stat-item::before,
  .stat-item:nth-child(even)::before {
    display: none;
  }

  /* Testimonials mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  /* Comparison mobile */
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comparison-vs {
    width: 48px;
    height: 48px;
    font-size: 16px;
    margin: 0 auto;
  }

  .comparison-card {
    padding: 28px 24px;
  }

  /* Plans mobile */
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .plan-card.featured {
    transform: none;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, .12);
  }

  .plan-card.featured:hover {
    transform: translateY(-6px);
  }

  .price-value {
    font-size: 42px;
  }

  /* CTA mobile */
  .cta-content h2 {
    font-size: 26px;
  }

  /* Footer mobile */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Modal mobile */
  .modal-box {
    padding: 24px;
    border-radius: var(--radius);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stepper .step {
    font-size: 0;
    padding: 10px;
    justify-content: center;
  }

  .stepper .step span {
    font-size: 11px;
  }

  /* Hamburger → X animation */
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

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

  /* Reset 3D tilt on feature cards for mobile */
  .feature-card:hover,
  .feature-card:nth-child(even):hover {
    transform: translateY(-4px);
  }

  /* Disable section border pseudo on first section */
  .section:first-of-type::before {
    display: none;
  }

  /* Testimonials / Comparison / Showcase grids — 1 column */
  .testimonials-grid,
  .comparison-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  /* Sticky mobile CTA bar */
  .mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    z-index: 90;
    display: flex;
    justify-content: center;
  }

  /* Add bottom padding to body so content isn't hidden behind sticky CTA */
  body {
    padding-bottom: 64px;
  }
}

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

  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .mockup-kpi-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Smaller KPI text on small phones */
  .mockup-kpi-row,
  .kpi-row {
    font-size: 12px;
  }

  .mkpi-val {
    font-size: 18px;
  }

  .mkpi-lab {
    font-size: 10px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 12px;
  }

  .plan-card {
    padding: 28px 20px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .cta-content h2 {
    font-size: 22px;
  }

  .cta-content p {
    font-size: 15px;
  }
}

/* ── Reduced Motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-mockup {
    transform: none;
  }

  .hero-mockup:hover {
    transform: none;
  }

  .cta-content .btn-white {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   FEATURE SHOWCASE SECTIONS
   ══════════════════════════════════════════════════════════════ */

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

.showcase-grid.reversed {
  direction: rtl;
}

.showcase-grid.reversed > * {
  direction: ltr;
}

.showcase-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 12px 0 16px;
  line-height: 1.2;
}

.showcase-content > p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.showcase-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.sf-icon {
  flex-shrink: 0;
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.showcase-phone {
  width: 280px;
  margin: 0 auto;
  background: var(--bg-dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(255, 255, 255, .08) inset, 0 0 60px rgba(99, 102, 241, .1);
  position: relative;
}

.sp-notch {
  width: 120px;
  height: 28px;
  background: var(--bg-dark);
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.sp-screen {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-radius: 26px;
  padding: 20px 20px 28px;
  margin-top: -14px;
  text-align: center;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sp-greeting {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
}

.sp-time {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -2px;
  line-height: 1;
}

.sp-btn-entry {
  background: var(--success);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 50px;
  letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(34, 197, 94, .35);
  width: 100%;
  margin-top: 4px;
}

.sp-gps, .sp-camera {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-gps::before { content: "📍"; }
.sp-camera::before { content: "📸"; }

.showcase-wpp {
  width: 300px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(37, 211, 102, .08);
  background: #ece5dd;
}

.wpp-header {
  background: #075e54;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wpp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.wpp-name {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.wpp-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ece5dd;
}

.wpp-bubble {
  background: #dcf8c6;
  padding: 10px 14px;
  border-radius: 8px 8px 8px 0;
  font-size: 14px;
  color: #303030;
  max-width: 85%;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}

.wpp-bubble.wpp-highlight {
  background: #c8f7a6;
  font-size: 16px;
  font-weight: 600;
}

.wpp-bubble.wpp-file {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: var(--primary);
  font-weight: 500;
  font-size: 13px;
}

.showcase-dash {
  width: 340px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(99, 102, 241, .08);
  border: 1px solid var(--border);
}

.dash-header {
  background: var(--bg-dark);
  padding: 14px 20px;
  display: flex;
  align-items: center;
}

.dash-title {
  color: var(--text-dark-primary);
  font-weight: 600;
  font-size: 14px;
}

.dash-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-card {
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.dash-lab {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}

.dash-positive { background: #f0fdf4; }
.dash-positive .dash-val { color: #16a34a; }

.dash-negative { background: #fef2f2; }
.dash-negative .dash-val { color: #dc2626; }

.dash-neutral { background: var(--primary-bg); }
.dash-neutral .dash-val { color: var(--primary); }

.dash-info { background: #eff6ff; }
.dash-info .dash-val { color: #2563eb; }

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

.dash-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.dash-bar-track {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width .8s cubic-bezier(.16, 1, .3, 1);
}

.dash-bar-fill.alt {
  background: var(--warning);
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showcase-grid.reversed { direction: ltr; }
  .showcase-visual { order: -1; }
  .showcase-content h2 { font-size: 26px; }
  .showcase-phone { width: 240px; }
  .sp-time { font-size: 38px; }
  .showcase-wpp { width: 260px; }
  .showcase-dash { width: 100%; max-width: 320px; }
}

@media (max-width: 600px) {
  .showcase-phone { width: 220px; border-radius: 28px; padding: 10px; }
  .sp-notch { width: 100px; height: 24px; }
  .sp-screen { border-radius: 20px; padding: 16px 14px 22px; min-height: 300px; gap: 10px; }
  .sp-time { font-size: 32px; }
  .sp-btn-entry { font-size: 12px; padding: 12px 20px; }
  .showcase-wpp { width: 240px; }
  .showcase-dash { max-width: 280px; }
  .dash-val { font-size: 18px; }
  .showcase-content h2 { font-size: 22px; }
  .showcase-features li { font-size: 14px; }
}
