/* =============================================
   AuditMySaaS — Waitlist Landing Page Styles
   Design Bible Tokens + Production CSS
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds */
  --bg-root: hsl(222, 22%, 5%);
  --bg-surface: hsl(222, 18%, 8%);
  --bg-elevated: hsl(222, 14%, 11%);
  --bg-border: hsl(222, 14%, 20%);

  /* Typography */
  --text-primary: hsl(210, 20%, 92%);
  --text-secondary: hsl(215, 15%, 58%); /* WCAG AA: 5.51:1 on bg-root ✅ */
  --text-muted: hsl(215, 12%, 48%); /* WCAG AA: 3.89:1 on elevated (large text OK) */

  /* Severity / Accent */
  --critical: hsl(0, 85%, 60%);
  --high: hsl(25, 95%, 55%);
  --accent: hsl(145, 65%, 48%);
  --accent-dim: hsl(145, 65%, 35%);
  --upgrade-gold: hsl(42, 80%, 55%);

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', 'Fira Code', monospace;

  /* 2026 Fluid Type Scale (clamp: min, preferred, max) */
  --fs-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);     /* 11-12px */
  --fs-sm: clamp(0.8125rem, 0.775rem + 0.15vw, 0.875rem);    /* 13-14px */
  --fs-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);         /* 15-16px */
  --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);        /* 17-19px */
  --fs-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);           /* 20-24px */
  --fs-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);               /* 24-32px */
  --fs-3xl: clamp(1.875rem, 1.4rem + 1.5vw, 2.5rem);         /* 30-40px */
  --fs-4xl: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);           /* 36-52px */
  --fs-5xl: clamp(2.75rem, 1.8rem + 3vw, 4.5rem);            /* 44-72px */

  /* Spacing (fluid) */
  --section-pad-y: clamp(4rem, 8vw, 7rem);
  --section-gap: clamp(3rem, 5vw, 5rem);
  --card-pad: clamp(1.25rem, 3vw, 2rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Global Reset Additions ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: contain;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ---------- Text Selection (WCAG compliant — allow selection everywhere) ---------- */
/* user-select:none REMOVED — violates WCAG 2.1.1 (Keyboard) and blocks arrow key scroll */

/* Allow selection on form elements */
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* Blank page when printing */
@media print {
  body * { display: none !important; }
  body::after {
    content: 'AuditMySaaS — Conteúdo protegido. Acesse auditmysaas.app';
    display: block;
    text-align: center;
    padding: 4rem;
    font-size: 1.5rem;
    color: #333;
  }
}

/* Anti-highlight on images */
img {
  -webkit-user-drag: none;
  pointer-events: auto;
}

body {
  background-color: var(--bg-root);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* 2026 Typography — Headings with proper tracking & balance */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { text-wrap: pretty; }

/* Section consistent vertical rhythm (only when Tailwind py-* not set) */
section:not([class*="py-"]):not([class*="pt-"]):not([class*="pb-"]) {
  padding-block: var(--section-pad-y);
}

/* Subtle divider between sections */
section + section::before {
  content: '';
  display: block;
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(222, 14%, 20%, 0.2), transparent);
  margin: 0 auto;
  position: relative;
  top: calc(var(--section-pad-y) * -0.5);
}

/* 2026 Scroll-driven reveal (native CSS — no JS needed) */
@supports (animation-timeline: view()) {
  .glass-card,
  .bento-card,
  .step-card,
  .pricing-card,
  .faq-item {
    animation: scroll-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }

  @keyframes scroll-reveal {
    from {
      opacity: 0;
      transform: translateY(24px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* Remove loading class after JS loads */
body:not(.js-loading) * {
  animation-play-state: running !important;
}

/* Custom color utilities for Tailwind gaps */
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* ---------- Logo ---------- */
.logo-hover:hover .logo-text {
  text-shadow: 0 0 12px hsla(145, 65%, 48%, 0.35);
}
.logo-text {
  transition: text-shadow 0.3s ease;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-root);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(222, 14%, 28%);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-border) var(--bg-root);
}

/* ---------- Focus Visible (WCAG 2.4.7 — #CCFF00 for max contrast on dark) ---------- */
:focus-visible {
  outline: 2px solid #CCFF00;
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Selection ---------- */
::selection {
  background: hsla(145, 65%, 48%, 0.25);
  color: white;
}

/* ---------- Noise Texture Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  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)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ---------- Animated Gradient Blobs ---------- */
.blob-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  will-change: transform;
  contain: strict;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float-blob 20s ease-in-out infinite;
  animation-iteration-count: 3;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsl(200, 70%, 50%) 0%, transparent 70%);
  bottom: 20%;
  left: -150px;
  animation: float-blob 25s ease-in-out infinite reverse;
  animation-iteration-count: 3;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, hsl(280, 60%, 50%) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  animation: float-blob 22s ease-in-out infinite 5s;
  animation-iteration-count: 3;
}

@keyframes float-blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -50px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(40px, 30px) scale(1.02);
  }
}

/* ---------- Header Glass ---------- */
.header-glass {
  background: hsla(222, 22%, 5%, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid hsla(222, 14%, 20%, 0.3);
  transition: background-color 0.3s ease;
}

.header-glass:hover {
  background: hsla(222, 22%, 5%, 0.85);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: #CCFF00;
  color: #000;
  font-weight: 800;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary::before {
  display: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px hsla(75, 100%, 50%, 0.25);
  background: #d4ff33;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 1px 6px hsla(145, 65%, 48%, 0.15);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* WCAG 2.5.8 Target Size (Minimum) */
.btn-primary,
.btn-secondary,
.faq-trigger,
a[href] {
  min-height: 44px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-border);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: hsla(145, 65%, 48%, 0.05);
}

/* ---------- Form Inputs ---------- */
.input-field {
  background: var(--bg-elevated);
  border: 1.5px solid #3F3F46;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field::placeholder {
  color: #71717A;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsla(145, 65%, 48%, 0.15),
              0 0 20px hsla(145, 65%, 48%, 0.05);
}

.input-field.input-error {
  border-color: var(--critical);
  box-shadow: 0 0 0 3px hsla(0, 85%, 60%, 0.15);
}

.input-field.input-success {
  border-color: var(--accent);
}

/* Email feedback icons */
.email-feedback.show {
  display: flex !important;
  align-items: center;
}

.email-feedback.success { color: var(--accent); }
.email-feedback.error { color: var(--critical); }
.email-feedback.warning { color: var(--upgrade-gold); }

/* ---------- Glassmorphism ---------- */
.glass-card {
  background: hsla(222, 18%, 8%, 0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid hsla(222, 14%, 20%, 0.4);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.glass-card:hover {
  border-color: hsla(145, 65%, 48%, 0.25);
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.3),
              0 0 0 1px hsla(145, 65%, 48%, 0.08);
}

.glass-card-accent {
  border-color: hsla(145, 65%, 48%, 0.2);
}

.glass-card-accent:hover {
  border-color: hsla(145, 65%, 48%, 0.4);
  box-shadow: 0 8px 30px hsla(145, 65%, 48%, 0.08);
}

/* ---------- Hero Section ---------- */
#hero {
  position: relative;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, hsl(160, 70%, 60%) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

/* Headline — raw crisp typography, zero blur, brutalist DevSecOps */
.text-headline-glow {
  color: #fff;
}

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

/* Hero elements initial state for GSAP — only hidden when GSAP
   has loaded and will animate them. Without GSAP, elements stay visible. */
.gsap-ready .hero-element {
  opacity: 0;
  transform: translateY(30px);
}

/* ---------- Wave Progress Bar ---------- */
.wave-fill {
  position: relative;
}

.wave-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, hsla(145, 65%, 60%, 0.5));
  animation: pulse-glow 2s ease-in-out infinite;
  border-radius: 0 9999px 9999px 0;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---------- Terminal ---------- */
.terminal-window {
  box-shadow: 0 25px 60px hsla(0, 0%, 0%, 0.5),
              0 0 1px hsla(0, 0%, 100%, 0.05);
}

/* === Terminal 3D Scene === */
.terminal-scene {
  perspective: 1200px;
  transform-style: preserve-3d;
  position: relative;
}

/* Ambient Glow — changes color via JS class */
.terminal-ambient {
  position: absolute;
  inset: -40px;
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.8s ease, box-shadow 1.2s ease;
  pointer-events: none;
  z-index: -1;
}

.terminal-scene.glow-scan .terminal-ambient {
  opacity: 1;
  box-shadow: 0 0 80px 20px hsla(145, 65%, 48%, 0.06),
              0 0 160px 60px hsla(145, 65%, 48%, 0.03);
}

.terminal-scene.glow-critical .terminal-ambient {
  opacity: 1;
  box-shadow: 0 0 80px 20px hsla(0, 85%, 55%, 0.08),
              0 0 160px 60px hsla(0, 85%, 55%, 0.04);
  transition: box-shadow 0.3s ease;
}

.terminal-scene.glow-success .terminal-ambient {
  opacity: 1;
  box-shadow: 0 0 100px 30px hsla(145, 65%, 48%, 0.08),
              0 0 200px 80px hsla(145, 65%, 48%, 0.04);
}

/* Reflection — mirror below terminal */
.terminal-reflection {
  transform: scaleY(-1) translateY(-2px);
  opacity: 0.06;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(2px);
  height: 120px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

/* Screen shake on CRITICAL */
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2px, -1px); }
  20% { transform: translate(2px, 1px); }
  30% { transform: translate(-1px, 2px); }
  40% { transform: translate(1px, -1px); }
  50% { transform: translate(-2px, 0px); }
  60% { transform: translate(1px, 1px); }
  70% { transform: translate(0px, -2px); }
  80% { transform: translate(-1px, 1px); }
  90% { transform: translate(2px, -1px); }
}

.terminal-window.shake {
  animation: screenShake 0.15s ease-in-out;
}

/* Progress bar line */
.terminal-text .line-progress {
  color: var(--accent);
  letter-spacing: -0.5px;
}

.terminal-text .line-progress-stuck {
  color: var(--high);
  letter-spacing: -0.5px;
}

.terminal-body {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  min-height: 340px;
}

@media (min-width: 640px) {
  .terminal-body {
    font-size: 0.875rem;
    min-height: 400px;
  }
}

.terminal-text {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Terminal line colors */
.terminal-text .line-command {
  color: var(--text-primary);
}

.terminal-text .line-spinner {
  color: var(--text-secondary);
}

.terminal-text .line-critical {
  color: var(--critical);
}

.terminal-text .line-high {
  color: var(--high);
}

.terminal-text .line-detail {
  color: var(--text-muted);
  padding-left: 1rem;
}

.terminal-text .line-success {
  color: var(--accent);
}

.terminal-text .line-cta {
  color: var(--accent);
  font-weight: 600;
}

.terminal-text .line-empty {
  height: 1.2em;
}

/* Blinking cursor */
.terminal-cursor {
  color: var(--accent);
  font-family: var(--font-mono);
  animation: blink-cursor 1s step-end infinite;
  position: absolute;
  opacity: 0;
}

.terminal-cursor.active {
  opacity: 1;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Scan line effect */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  pointer-events: none;
  animation: scan-line 3s linear infinite;
  animation-play-state: paused;
}

.scan-line.active {
  animation-play-state: running;
  opacity: 0.6;
}

@keyframes scan-line {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* ---------- Steps / Como Funciona ---------- */
.gsap-ready .step-card {
  opacity: 0;
  transform: translateY(40px);
}

.step-card {
  overflow: visible;
  position: relative;
}

.step-number {
  box-shadow: 0 0 20px hsla(145, 65%, 48%, 0.3);
}

/* ---------- Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

  .bento-large {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "lg1 lg1 sm1"
      "sm2 sm3 lg2";
  }

  /* Explicit placement — alternating large card sides */
  .bento-grid > .bento-card:nth-child(1) { grid-area: lg1; }  /* Falhas - large left */
  .bento-grid > .bento-card:nth-child(2) { grid-area: sm1; }  /* Código IA */
  .bento-grid > .bento-card:nth-child(3) { grid-area: sm2; }  /* Credenciais */
  .bento-grid > .bento-card:nth-child(4) { grid-area: sm3; }  /* Bibliotecas */
  .bento-grid > .bento-card:nth-child(5) { grid-area: lg2; }  /* Privacidade - right */

  .bento-large {
    grid-column: auto; /* Reset span for explicit areas */
  }
}

.bento-card {
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
}

/* Bento card last paragraph fills space */
.bento-card > p:last-of-type {
  flex: 1;
}

.gsap-ready .bento-card {
  opacity: 0;
  transform: translateY(30px);
}

/* ---------- Cost Section ---------- */
.gsap-ready #cost .glass-card {
  opacity: 0;
  transform: translateY(30px);
}

/* Equal-height cards in all grid sections */
#cost .glass-card,
#por-que-diferente .glass-card,
#roi-comparison .glass-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Competitive Positioning (Fase 4) */
.gsap-ready #por-que-diferente .glass-card {
  opacity: 0;
  transform: translateY(30px);
}

/* ROI Comparison (Anti-Snyk) */
.gsap-ready #roi-comparison .glass-card {
  opacity: 0;
  transform: translateY(30px);
}

/* PR Bot Demo */
.gsap-ready #pr-bot-demo .glass-card {
  opacity: 0;
  transform: translateY(40px);
}

/* Regulatory Urgency */
.gsap-ready #regulatory-urgency .glass-card {
  opacity: 0;
  transform: scale(0.95);
}

/* ---------- Pricing ---------- */
.gsap-ready .pricing-card {
  opacity: 0;
}

/* Equal-height pricing cards with bottom-aligned buttons */
.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card ul {
  flex: 1;
}

.pricing-card:first-child {
  transform: translateX(-40px);
}

.pricing-card:last-child {
  transform: translateX(40px);
}

/* Pro card glow */
.pricing-pro {
  border-color: hsla(145, 65%, 48%, 0.3);
  box-shadow: 0 0 40px hsla(145, 65%, 48%, 0.05),
              inset 0 1px 0 hsla(145, 65%, 48%, 0.1);
}

.pricing-pro:hover {
  border-color: hsla(145, 65%, 48%, 0.5);
  box-shadow: 0 0 60px hsla(145, 65%, 48%, 0.08),
              inset 0 1px 0 hsla(145, 65%, 48%, 0.15);
}

/* ---------- FAQ Accordion ---------- */
.gsap-ready .faq-item {
  opacity: 0;
  transform: translateY(20px);
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-trigger[aria-expanded="true"] {
  color: var(--accent);
}

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

/* ---------- Final CTA ---------- */
#final-cta {
  position: relative;
}

.gsap-ready #final-cta h2,
.gsap-ready #final-cta p,
.gsap-ready #final-cta form {
  opacity: 0;
  transform: translateY(30px);
}

/* ---------- Sticky Bottom CTA ---------- */
.sticky-cta {
  /* Starts hidden (translate-y-full via Tailwind) */
}

.sticky-cta-glass {
  background: hsla(222, 22%, 5%, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid hsla(222, 14%, 20%, 0.3);
}

.safe-area-bottom {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

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

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

/* ---------- Animations (page-loaded states) ---------- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Prefers Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .blob {
    animation: none !important;
    opacity: 0.08;
  }

  .scan-line {
    display: none;
  }

  .text-gradient {
    animation: none;
    background-size: 100% 100%;
  }

  .wave-fill::after {
    animation: none;
    opacity: 0.7;
  }

  .hero-element,
  .step-card,
  .bento-card,
  #cost .glass-card,
  #por-que-diferente .glass-card,
  #roi-comparison .glass-card,
  #pr-bot-demo .glass-card,
  #regulatory-urgency .glass-card,
  .pricing-card,
  .faq-item,
  #final-cta h2,
  #final-cta p,
  #final-cta form {
    opacity: 1 !important;
    transform: none !important;
  }

  .terminal-cursor {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Responsive Fine-Tuning ---------- */
@media (max-width: 639px) {
  .bento-large {
    grid-column: span 1;
  }

  /* FASE 3.1: Prevent logo from being clipped by header CTA on mobile */
  .logo-text {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none !important;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .noise-overlay,
  .blob-container,
  .scan-line,
  .sticky-cta,
  .header-glass {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card {
    background: white;
    border: 1px solid #ccc;
    backdrop-filter: none;
  }
}

/* ========== AI BADGE HOVER ========== */
.ai-badge {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ai-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========== MAGNETIC BUTTON ========== */
[data-magnetic] {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== LIVE COUNTER ========== */
#live-counter {
  transition: all 0.4s ease;
  display: inline-block;
}

#live-counter.bump {
  transform: scale(1.3);
  color: hsl(145, 65%, 48%);
}

/* ========== CONFETTI CANVAS ========== */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ========== REFERRAL CARDS ========== */
#referral .glass-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

#referral .glass-card:hover {
  transform: translateY(-4px);
}

/* ========== SPLIT WORD ANIMATION ========== */
.split-word {
  display: inline-block;
}

/* ========== DOPAMINE MICRO-INTERACTIONS ========== */

/* Shake animation for invalid input */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-6px); }
  30%, 70% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Input success glow */
.input-field.input-success {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px hsla(145, 65%, 48%, 0.15),
              0 0 12px hsla(145, 65%, 48%, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Input error glow */
.input-field.input-error {
  border-color: var(--critical) !important;
  box-shadow: 0 0 0 3px hsla(0, 85%, 60%, 0.15),
              0 0 12px hsla(0, 85%, 60%, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Button success state (after valid submit) */
.btn-primary:disabled {
  cursor: not-allowed;
  background: hsl(145, 50%, 42%);
}

/* Endowed Progress — wave bar pulse on near-completion */
@keyframes progress-glow {
  0%, 100% { box-shadow: 0 0 8px hsla(145, 65%, 48%, 0.3); }
  50% { box-shadow: 0 0 16px hsla(145, 65%, 48%, 0.5); }
}

.wave-fill {
  animation: progress-glow 2s ease-in-out infinite;
}

/* CTA magnetic hover glow intensification */
.btn-primary[data-magnetic]:hover {
  box-shadow: 0 4px 24px hsla(75, 100%, 50%, 0.3),
              0 0 48px hsla(75, 100%, 50%, 0.1);
}

/* ========== CTA SUBTLE PULSE (Blueprint §805-815) ========== */
@keyframes cta-pulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 2px 12px hsla(75, 100%, 50%, 0.15);
  }
  50% { 
    transform: scale(1.015); 
    box-shadow: 0 4px 20px hsla(75, 100%, 50%, 0.25);
  }
}

.btn-primary[type="submit"]:not(:hover):not(:active):not(:focus) {
  animation: cta-pulse 3s ease-in-out infinite;
}

/* ========== SOCIAL PROOF TOAST ========== */
.social-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  background: hsla(222, 18%, 8%, 0.92);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid hsla(145, 65%, 48%, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 320px;
  box-shadow: 0 12px 40px hsla(0, 0%, 0%, 0.4),
              0 0 1px hsla(0, 0%, 100%, 0.05);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.social-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.social-toast.hiding {
  transform: translateY(20px);
  opacity: 0;
}

.social-toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}

.social-toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.social-toast-close:hover {
  opacity: 1;
}

/* ========== EXIT INTENT BANNER ========== */
.exit-banner {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 45;
  background: hsla(25, 95%, 55%, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.exit-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.exit-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  margin-left: 4px;
}

.exit-banner button {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin-left: 12px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.exit-banner button:hover {
  opacity: 1;
}

/* ========== SCROLL-DEPTH NUDGE ========== */
.scroll-nudge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  background: hsla(222, 18%, 8%, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(145, 65%, 48%, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 280px;
  box-shadow: 0 8px 30px hsla(0, 0%, 0%, 0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scroll-nudge.hiding {
  transform: translateY(20px);
  opacity: 0;
}

/* ========== RESPONSIVE VISUAL FIXES ========== */

/* Mobile form stacking fix */
@media (max-width: 639px) {
  #hero .flex-col { gap: 0.75rem; }

  /* Prevent iOS auto-zoom on input focus (WCAG) */
  .input-field {
    font-size: 16px;
  }
  
  .btn-primary { 
    width: 100%;
    justify-content: center;
  }
  
  /* Terminal smaller on mobile — fluid font + overflow safety */
  .terminal-body {
    min-height: 280px;
    padding: 1rem;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    word-break: break-word;
    overflow-x: auto;
  }
  
  /* Hero AI badges overflow prevention */
  .ai-badge {
    flex-shrink: 1;
  }
  
  [class*="flex-wrap"] {
    overflow: hidden;
  }
  
  /* Referral cards compact */
  #referral .grid { gap: 0.5rem; }
  
  /* Social proof toast mobile */
  .social-toast {
    left: 12px;
    right: 12px;
    bottom: 80px; /* Above sticky CTA */
    max-width: none;
  }
  
  /* Scroll nudge mobile */
  .scroll-nudge {
    right: 12px;
    left: 12px;
    bottom: 80px;
    max-width: none;
  }
  
  /* Cost section numbers */
  #cost .text-4xl { font-size: 2rem; }
  
  /* Pricing cards stack properly */
  .pricing-card:first-child,
  .pricing-card:last-child {
    transform: none;
  }
  
  /* ROI comparison mobile separator */
  #roi-comparison .grid > *:nth-child(2) {
    border-top: 1px solid hsla(222, 14%, 20%, 0.3);
    padding-top: 1.5rem;
  }
  
  /* Founder metrics fluid font sizing */
  #roi-comparison .text-3xl,
  .text-3xl {
    font-size: clamp(1.5rem, 5vw, 1.875rem);
  }
  
  /* Grid children overflow prevention */
  .grid > * {
    min-width: 0;
  }
  
  /* Trust badges tighter gap on mobile */
  [class*="trust"] {
    gap: 0.5rem;
  }
  
  /* Pricing journey mobile step separators */
  #pricing .grid > div + div {
    border-top: 1px dashed hsla(222, 14%, 20%, 0.4);
    padding-top: 1rem;
    margin-top: 0.5rem;
  }
  
  /* Footer mobile vertical rhythm */
  footer .flex-col {
    text-align: center;
  }
  
  footer [class*="gap"] {
    gap: 0.5rem;
  }
}

/* Tablet adjustments */
@media (min-width: 640px) and (max-width: 1023px) {
  .bento-large { grid-column: span 2; }
  
  #hero h1 { font-size: 2.75rem; }
}

/* Large screen polish */
@media (min-width: 1280px) {
  :root {
    --fs-5xl: 4.5rem;
    --card-pad: 2.5rem;
  }
  
  .terminal-body { min-height: 440px; }
  
  /* Extra breathing room on wide screens */
  .max-w-7xl { max-width: 82rem; }
}

/* Ultra-wide (2K+) polish */
@media (min-width: 1536px) {
  :root {
    --fs-5xl: 5rem;
    --section-pad-y: 8rem;
  }
}

/* Accessibility: respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .blob { display: none; }
  .noise-overlay { display: none; }
}

/* ========== TERMINAL CRT EFFECTS (Professional Motion Design) ========== */

/* CRT Scanlines overlay */
.terminal-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 0, 0, 0.03) 1px,
    rgba(0, 0, 0, 0.03) 2px
  );
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

/* Text glow per line type — enhanced with chromatic aberration on criticals */
.terminal-body .line-command {
  text-shadow: 0 0 6px hsla(145, 65%, 48%, 0.25), 0 0 20px hsla(145, 65%, 48%, 0.08);
}

.terminal-body .line-critical {
  text-shadow: 0 0 8px hsla(0, 85%, 60%, 0.4), 0 0 20px hsla(0, 85%, 60%, 0.2),
               -0.5px 0 0 hsla(0, 100%, 60%, 0.15), 0.5px 0 0 hsla(200, 100%, 60%, 0.1);
}

.terminal-body .line-high {
  text-shadow: 0 0 8px hsla(25, 95%, 55%, 0.35), 0 0 20px hsla(25, 95%, 55%, 0.15);
}

.terminal-body .line-success {
  text-shadow: 0 0 8px hsla(145, 65%, 48%, 0.35), 0 0 24px hsla(145, 65%, 48%, 0.15);
}

.terminal-body .line-cta {
  text-shadow: 0 0 6px hsla(42, 80%, 55%, 0.35), 0 0 16px hsla(42, 80%, 55%, 0.12);
}

.terminal-body .line-spinner {
  text-shadow: 0 0 4px hsla(210, 20%, 92%, 0.18);
}

.terminal-body .line-progress {
  text-shadow: 0 0 4px hsla(145, 65%, 48%, 0.2);
}

.terminal-body .line-progress-stuck {
  text-shadow: 0 0 6px hsla(25, 95%, 55%, 0.3);
}

/* Screen flicker on critical reveal */
@keyframes terminalFlash {
  0% { opacity: 1; }
  50% { opacity: 0.92; }
  100% { opacity: 1; }
}

.terminal-body .line-critical {
  animation: terminalFlash 0.15s ease-in-out;
}

/* Cursor blink with realistic timing */
.terminal-cursor.active {
  animation: cursorBlink 1.06s steps(1) infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Vignette on terminal edges */
.terminal-window {
  position: relative;
}

.terminal-window::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 2;
}

/* Reduced motion: disable CRT effects */
@media (prefers-reduced-motion: reduce) {
  .terminal-body::after {
    display: none;
  }
  .terminal-body .line-critical,
  .terminal-body .line-high,
  .terminal-body .line-success,
  .terminal-body .line-command,
  .terminal-body .line-cta,
  .terminal-body .line-spinner {
    text-shadow: none;
    animation: none;
  }
  .terminal-window::after {
    display: none;
  }
  .terminal-ambient {
    display: none;
  }
  .terminal-reflection {
    display: none;
  }
  .terminal-window.shake {
    animation: none;
  }
}

/* ========== PR BOT 3D CARD ========== */

/* Apple Vision Pro depth shadows */
#pr-bot-demo .glass-card {
  box-shadow: 0 4px 8px hsla(0, 0%, 0%, 0.15),
              0 12px 24px hsla(0, 0%, 0%, 0.12),
              0 24px 60px hsla(0, 0%, 0%, 0.08);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

#pr-bot-demo .glass-card:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 8px 16px hsla(0, 0%, 0%, 0.18),
              0 24px 48px hsla(0, 0%, 0%, 0.15),
              0 48px 100px hsla(0, 0%, 0%, 0.1);
}

/* PR Bot inline code glow */
#pr-bot-demo code {
  background: hsla(145, 65%, 48%, 0.08);
  border: 1px solid hsla(145, 65%, 48%, 0.15);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.8em;
}

/* ========== PREMIUM CTA PULSE ========== */

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 hsla(145, 65%, 48%, 0);
  }
  50% {
    box-shadow: 0 0 0 6px hsla(145, 65%, 48%, 0.12);
  }
}

.cta-post-terminal {
  animation: ctaPulse 4s ease-in-out infinite;
}

/* ========== FLOATING PARTICLES ========== */

.terminal-scene::before,
.terminal-scene::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: hsla(145, 65%, 48%, 0.15);
  pointer-events: none;
  z-index: -1;
}

.terminal-scene::before {
  top: 20%;
  left: -20px;
  animation: floatParticle 6s ease-in-out infinite;
}

.terminal-scene::after {
  bottom: 30%;
  right: -15px;
  animation: floatParticle 8s ease-in-out infinite reverse;
  width: 2px;
  height: 2px;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.15;
  }
  25% {
    transform: translateY(-15px) translateX(8px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-5px) translateX(-5px);
    opacity: 0.1;
  }
  75% {
    transform: translateY(-20px) translateX(12px);
    opacity: 0.25;
  }
}

/* ================================================================
   2026 CSS FEATURES — Progressive Enhancement
   ================================================================ */

/* ---------- @property: Animated CTA Gradient ---------- */
@property --cta-hue {
  syntax: '<angle>';
  inherits: false;
  initial-value: 75deg;
}

.btn-primary {
  --cta-hue: 75deg;
  background: hsl(var(--cta-hue) 100% 50%);
  transition: --cta-hue 0.6s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  --cta-hue: 85deg;
  background: hsl(var(--cta-hue) 100% 55%);
}

/* ---------- Scroll-Driven Animations (CSS 2026) ---------- */
@supports (animation-timeline: view()) {
  /* Reveal on scroll — replaces IntersectionObserver for visual reveals */
  .step-card,
  .bento-card,
  #cost .glass-card,
  .faq-item {
    opacity: 0;
    transform: translateY(40px);
    animation: scrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }

  @keyframes scrollReveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Staggered cards with sibling-index() */
  @supports (transition-delay: calc(sibling-index() * 1s)) {
    .bento-card {
      animation-delay: calc((sibling-index() - 1) * 0.06s);
    }
    .faq-item {
      animation-delay: calc((sibling-index() - 1) * 0.04s);
    }
  }

  /* Terminal 3D perspective on scroll — enhanced isometric entry */
  .terminal-scene {
    perspective: 1200px;
  }

  .terminal-scene .terminal-window {
    animation: terminal3DEntry linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
    will-change: transform, opacity;
  }

  @keyframes terminal3DEntry {
    from {
      transform: rotateX(12deg) rotateY(-2deg) scale(0.90) translateY(30px);
      opacity: 0.5;
      filter: blur(1px);
    }
    60% {
      filter: blur(0px);
    }
    to {
      transform: rotateX(0deg) rotateY(0deg) scale(1) translateY(0);
      opacity: 1;
      filter: blur(0px);
    }
  }

  /* Reflection fades in with terminal */
  .terminal-reflection {
    animation: reflectionFade linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 50%;
  }

  @keyframes reflectionFade {
    from { opacity: 0; }
    to { opacity: 0.06; }
  }

  /* PR Bot 3D card entry */
  #pr-bot-demo .glass-card {
    animation: prBot3DEntry linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 40%;
    will-change: transform, opacity;
  }

  @keyframes prBot3DEntry {
    from {
      transform: rotateX(8deg) translateY(40px) scale(0.95);
      opacity: 0.4;
    }
    to {
      transform: rotateX(0deg) translateY(0) scale(1);
      opacity: 1;
    }
  }

  /* Pricing cards slide in from sides on scroll */
  .pricing-card:first-child {
    animation: slideInLeft linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }

  .pricing-card:last-child {
    animation: slideInRight linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }

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

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

  /* Section headings reveal */
  section h2 {
    animation: headingReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 20%;
  }

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

/* ---------- @starting-style: FAQ Entry Animation ---------- */
@supports (selector(@starting-style)) {
  .faq-content[style*="max-height"] {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
  }
}

/* ---------- Hover 3D Tilt on Bento Cards ---------- */
.bento-card {
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.bento-card:hover {
  transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px);
  box-shadow: 0 20px 40px hsla(0, 0%, 0%, 0.35),
              0 0 1px hsla(145, 65%, 48%, 0.2);
}

/* ---------- Viewport Height Fix (2026) ---------- */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
}

/* ---------- Gradient Mesh Background (Premium) ---------- */
.blob-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, hsla(145, 65%, 48%, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, hsla(200, 70%, 50%, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 80%, hsla(280, 60%, 50%, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Shimmer Skeleton for Terminal ---------- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.terminal-body:empty::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 25%,
    hsla(222, 14%, 16%, 1) 50%,
    var(--bg-elevated) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ---------- Glow Cursor Trail (Desktop) ---------- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(145, 65%, 48%, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

@media (max-width: 768px) {
  .cursor-glow { display: none; }
}

/* ---------- Container Queries (2026) ---------- */
@supports (container-type: inline-size) {
  .bento-grid {
    container-type: inline-size;
  }

  @container (max-width: 500px) {
    .bento-large {
      grid-column: span 1;
    }
  }
}

/* ---------- Scroll Snap Sections ---------- */
/* REMOVED: scroll-snap-type: y proximity was hijacking arrow key 
   navigation. Arrow keys would jump between sections instead of 
   smooth scrolling. CSS scroll-snap on full-page layouts breaks
   user expectation of natural scroll. Anchor links + smooth 
   scroll-behavior provide better UX. */

/* ---------- Enhanced iOS Safe Area ---------- */
@supports (padding: max(0px)) {
  .safe-area-bottom {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Countdown Timer ---------- */
.countdown-timer {
  display: inline-flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
}

.countdown-value {
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.countdown-sep {
  font-size: 1.25rem;
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 0.1rem;
  animation: blink-cursor 1s step-end infinite;
}

/* ---------- Critical color for hero badge ---------- */
.text-critical { color: var(--critical); }
.bg-critical\/10 { background: hsla(0, 85%, 60%, 0.1); }
.border-critical\/30 { border-color: hsla(0, 85%, 60%, 0.3); }

/* ---------- 2026 Reduced Motion Overrides (WCAG 2.3.3 AAA) ---------- */
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none !important; }

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

  html { scroll-behavior: auto; }
  
  @supports (animation-timeline: view()) {
    .step-card, .bento-card, #cost .glass-card, .faq-item,
    .pricing-card, #terminal, section h2 {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }
}

/* ---------- WCAG 2.2 AAA: Focus-Visible (2.4.7 + 2.4.13) ---------- */
:focus-visible {
  outline: 3px solid var(--accent, #CCFF00);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Extra contrast on interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent, #CCFF00);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px hsla(145, 65%, 48%, 0.15);
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- WCAG 2.2: Screen Reader Only (sr-only) ---------- */
/* DUPLICATE REMOVED — canonical .sr-only lives at ~L642 */

/* ---------- WCAG 2.5.8: Touch Target Size (44x44 minimum) ---------- */
button,
[role="button"],
a,
input[type="checkbox"],
input[type="radio"],
summary {
  min-height: 44px;
}

/* Checkbox/radio actual hit area */
input[type="checkbox"],
input[type="radio"] {
  min-width: 20px;
  min-height: 20px;
}

/* ---------- WCAG: iOS Zoom Prevention (1.4.4 Resize Text) ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
  font-size: max(16px, 1em); /* Prevents iOS auto-zoom on focus */
}

/* ---------- Cursor Glow (pointer-events fix) ---------- */
.cursor-glow {
  pointer-events: none !important;
  z-index: 9998;
}

/* ---------- WCAG 2.2: High Contrast Mode (Windows) ---------- */
@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid CanvasText;
  }

  .btn-primary,
  .cta-btn,
  [data-magnetic] {
    border: 2px solid ButtonText;
  }

  .text-muted,
  .text-secondary {
    color: CanvasText;
  }
}

/* ---------- Smooth scroll only when user hasn't opted out ---------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------- Print Improvements ---------- */
@media print {
  .cursor-glow,
  .sticky-cta,
  [aria-hidden="true"] {
    display: none !important;
  }
}

/* Ensure sticky CTA doesn't cover footer on small screens */
@media (max-width: 767px) {
  main {
    padding-bottom: 72px;
  }
}

/* iPhone SE / 320px screens */
@media (max-width: 359px) {
  .sticky-cta-glass {
    padding: 8px 12px;
  }

  .sticky-cta .btn-primary {
    font-size: 13px;
    padding: 10px 12px;
    min-height: 44px;
  }
}

/* ================================================================
   CSS 2026 ENHANCEMENTS — Progressive Enhancement Layer
   Added: 2026-05-30
   NOTE: All rules below are additive — no existing CSS was removed.
   ================================================================ */

/* ---------- 1. text-wrap: balance — Better headline wrapping ---------- */
/* Distributes text evenly across lines so headings don't leave orphan words */
h1, h2, h3 {
  text-wrap: balance;
}

/* ---------- 2. text-wrap: pretty — Better paragraph wrapping ---------- */
/* Prevents orphan words at the end of paragraphs/list items */
p, li {
  text-wrap: pretty;
}

/* ---------- 3. content-visibility: auto — Below-fold rendering optimization ---------- */
/* Skips rendering of off-screen sections until user scrolls near them */
#terminal,
#como-funciona,
#features,
#cost,
#por-que-diferente,
#roi-comparison,
#pr-bot-demo,
#regulatory-urgency,
#pricing,
#faq,
#final-cta {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ---------- P0 Perf: CSS Containment on sections ---------- */
/* DISABLED: contain: layout style paint clips overflow, breaks sticky/fixed,
   and prevents sections from expanding. Use only with local build Tailwind. */
/* section[id] {
  contain: layout style paint;
} */

/* ---------- 4. scrollbar-gutter: stable — Prevent layout shift on scroll ---------- */
/* Reserves scrollbar space so content doesn't jump when overflow changes */
html {
  scrollbar-gutter: stable;
}

/* ---------- 5. Section dividers — Subtle gradient separator between sections ---------- */
/* Creates an elegant, barely-visible line between adjacent sections */
section + section {
  position: relative;
}

section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(145, 65%, 48%, 0.12), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ---------- 6. Glass card hover lift — Enhanced hover micro-interaction ---------- */
/* Already partially exists; this ensures the transition property covers all axes */
.glass-card {
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

/* ---------- 7. h1 letter-spacing — Tighter tracking for headlines ---------- */
/* Professional typographic density for large headings */
h1 {
  letter-spacing: -0.04em;
}

/* ---------- 8. Clamp typography — Fluid responsive type scale ---------- */
/* Smoothly scales headings between mobile and desktop without breakpoints */
h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw + 0.75rem, 3rem);
}

/* ---------- 9. Badge pulse limit — Stop animation after 3 cycles ---------- */
/* Prevents infinite pulsing; draws attention then stops to reduce motion fatigue */
.hero-element .animate-pulse {
  animation-iteration-count: 3;
}

/* ---------- 10. Scroll progress bar — Fixed top progress indicator ---------- */
/* Thin accent-colored bar at the top showing scroll position (driven by JS) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--upgrade-gold));
  z-index: 9999;
  transition: width 50ms linear;
  pointer-events: none;
}

/* ---------- 11. FAQ spacing — Consistent vertical rhythm in FAQ list ---------- */
/* Overrides Tailwind's space-y-3 to 16px for better readability */
.faq-list {
  gap: 16px;
  display: flex;
  flex-direction: column;
}

.faq-list > * + * {
  margin-top: 0;
}

/* ---------- 12. prefers-contrast: more — High contrast accessibility mode ---------- */
/* Enhanced contrast for users who request it via OS accessibility settings */
@media (prefers-contrast: more) {
  :root {
    --text-primary: hsl(0, 0%, 100%);
    --text-secondary: hsl(0, 0%, 82%);
    --text-muted: hsl(0, 0%, 72%);
    --bg-border: hsl(222, 14%, 30%);
  }

  .glass-card,
  .glass-card-accent {
    border-width: 2px;
    border-color: hsla(222, 14%, 40%, 0.8);
  }

  .btn-primary {
    font-weight: 900;
    border: 2px solid #000;
  }

  .btn-secondary {
    border-width: 2px;
  }

  .text-gradient {
    -webkit-text-fill-color: var(--accent);
    background: none;
  }

  .terminal-body {
    border: 1px solid var(--bg-border);
  }

  .pricing-pro {
    border-width: 2px;
    border-color: var(--accent);
  }

  .faq-trigger {
    border: 1px solid var(--bg-border);
    padding: 2px 4px;
    border-radius: 4px;
  }
}

/* ---------- 13. accent-color — Native form element theming ---------- */
/* Applies brand accent to checkboxes and radios without custom styling */
input[type="checkbox"],
input[type="radio"] {
  accent-color: hsl(145, 65%, 48%);
}

/* ---------- 14. view-transition — Cross-document navigation transitions ---------- */
/* Enables smooth page transitions for MPA navigation (Chrome 126+) */
@view-transition {
  navigation: auto;
}

/* ---------- 15. Container query extension — Bento card responsive interiors ---------- */
/* Additional container query breakpoints for finer-grained card layout control */
@supports (container-type: inline-size) {
  .bento-card {
    container-type: inline-size;
  }

  @container (max-width: 320px) {
    .bento-card h3 {
      font-size: 1rem;
    }
    .bento-card p {
      font-size: 0.8125rem;
    }
  }

  @container (min-width: 500px) {
    .bento-card {
      padding: 2rem;
    }
    .bento-card h3 {
      font-size: 1.375rem;
    }
  }
}

/* ---------- 16. Selection color ---------- */
/* DUPLICATE REMOVED — canonical ::selection lives at ~L139 */
/* Kept ::-moz-selection for Firefox compatibility */
::-moz-selection {
  background: hsla(145, 65%, 48%, 0.25);
  color: white;
}

/* ---------- 17. Pricing card Pro glow — Refined ambient glow ---------- */
/* Adds a subtle ring + diffused glow to make the Pro card stand out more */
.pricing-pro {
  box-shadow: 0 0 0 1px hsla(145, 65%, 48%, 0.2),
              0 4px 24px hsla(145, 65%, 48%, 0.08),
              inset 0 1px 0 hsla(145, 65%, 48%, 0.1);
}

/* ---------- 18. Footer trust badges mobile gap — Responsive spacing ---------- */
/* Tighter gap on mobile, relaxed on desktop for trust badge icons */
.footer-trust-badges,
[class*="trust-badge"] {
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-trust-badges,
  [class*="trust-badge"] {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .footer-trust-badges,
  [class*="trust-badge"] {
    gap: 1.5rem;
  }
}

/* ================================================================
   2026 ADVANCED UI/UX — YC-Grade Micro-Interactions & Animations
   ================================================================ */

/* ---------- 1. Button ripple effect (Material Design-inspired) ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), hsla(0,0%,100%,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.btn-primary:active::after {
  opacity: 1;
  transition: opacity 0s;
}

/* ---------- 2. Enhanced btn-secondary hover with gradient border ---------- */
.btn-secondary {
  position: relative;
}

.btn-secondary:hover {
  border-color: transparent;
  background-image: linear-gradient(var(--bg-surface), var(--bg-surface)),
                    linear-gradient(135deg, var(--accent), hsl(200, 70%, 50%));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ---------- 3. Pricing card hover glow intensification ---------- */
.pricing-pro:hover {
  box-shadow: 0 0 0 1px hsla(145, 65%, 48%, 0.35),
              0 8px 40px hsla(145, 65%, 48%, 0.12),
              inset 0 1px 0 hsla(145, 65%, 48%, 0.2);
}

/* ---------- 4. FAQ item hover subtle highlight ---------- */
.faq-item:hover {
  border-color: hsla(145, 65%, 48%, 0.15);
}

.faq-trigger:hover {
  background: hsla(145, 65%, 48%, 0.03);
}

/* ---------- 5. Step card hover icon scale ---------- */
.step-card:hover .step-number {
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 0 30px hsla(145, 65%, 48%, 0.5);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.step-card .step-number {
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

/* ---------- 6. Bento card icon hover animation ---------- */
.bento-card:hover .w-12 {
  transform: scale(1.08) rotate(-3deg);
  transition: transform 0.4s var(--ease-out-expo);
}

.bento-card .w-12 {
  transition: transform 0.4s var(--ease-out-expo);
}

/* ---------- 7. AI badge sequential entrance animation ---------- */
@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gsap-ready .ai-badge {
  opacity: 0;
}

/* ---------- 8. Trust badge hover pulse ---------- */
footer .inline-flex:hover {
  border-color: hsla(145, 65%, 48%, 0.3);
  background: hsla(145, 65%, 48%, 0.05);
  transition: all 0.3s ease;
}

/* ---------- 9. Scroll-driven header shrink (CSS-only) ---------- */
@supports (animation-timeline: scroll()) {
  .header-glass {
    animation: headerShrink linear both;
    animation-timeline: scroll();
    animation-range: 0px 200px;
  }

  @keyframes headerShrink {
    from {
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      background: hsla(222, 22%, 5%, 0.4);
    }
    to {
      backdrop-filter: blur(24px) saturate(200%);
      -webkit-backdrop-filter: blur(24px) saturate(200%);
      background: hsla(222, 22%, 5%, 0.85);
      box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    }
  }
}

/* ---------- 10. Cost card number hover color shift ---------- */
#cost .glass-card:hover [data-countup],
#cost .glass-card:hover [data-countup-text] {
  text-shadow: 0 0 20px currentColor;
  transition: text-shadow 0.3s ease;
}

/* ---------- 11. Input focus label float animation ---------- */
.input-field:focus {
  transform: translateY(-1px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* ---------- 12. Dots loading animation for redirect button ---------- */
@keyframes dotsAnim {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

.dots-anim {
  display: inline-block;
  width: 1.5em;
  text-align: left;
}

.dots-anim::after {
  content: '';
  animation: dotsAnim 1.5s steps(1) infinite;
}

/* ---------- 13. Smooth color transition on countdown urgency ---------- */
.countdown-timer {
  transition: color 1s ease;
}

.countdown-value {
  transition: color 1s ease;
}

/* ---------- 14. Mobile form focus scroll padding ---------- */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 100px;
  }
  
  /* Prevent layout shift when keyboard opens */
  body {
    min-height: 100dvh;
  }
}

/* ---------- 15. Glass card subtle inner glow ---------- */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(0,0%,100%,0.06), transparent);
  pointer-events: none;
  z-index: 1;
}

.glass-card {
  position: relative;
}

/* ---------- 16. Badge/label micro hover ---------- */
.ai-badge:active {
  transform: translateY(0) scale(0.97);
  transition: transform 0.1s ease;
}

/* ---------- 17. Hero CTA group breathing animation ---------- */
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 hsla(75, 100%, 50%, 0); }
  50% { box-shadow: 0 0 0 8px hsla(75, 100%, 50%, 0.08); }
}

#waitlist-form {
  animation: breathe 4s ease-in-out infinite;
  animation-iteration-count: 3;
  border-radius: 16px;
}

/* ---------- 18. Step connecting line animation on scroll ---------- */
@supports (animation-timeline: view()) {
  .step-card {
    animation: stepReveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
  
  @keyframes stepReveal {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

/* ---------- 19. Terminal window subtle float ---------- */
@keyframes terminalFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.terminal-window {
  animation: terminalFloat 6s ease-in-out infinite;
  animation-iteration-count: 3;
}

@media (prefers-reduced-motion: reduce) {
  .terminal-window { animation: none !important; }
  #waitlist-form { animation: none !important; }
  .step-card .step-number { transition: none !important; }
}

/* ---------- 20. Pricing toggle hover state ---------- */
.pricing-card {
  position: relative;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, hsla(145, 65%, 48%, 0.02) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

/* ---------- 21. enterkeyhint visual cue ---------- */
input[enterkeyhint="send"]::placeholder {
  /* Subtle arrow hint */
}

/* ---------- 22. Smooth anchor scroll offset for all sections ---------- */
#terminal, #como-funciona, #features, #cost, #por-que-diferente, #roi-comparison, #pr-bot-demo, #regulatory-urgency, #pricing, #faq, #final-cta {
  scroll-margin-top: 80px;
}

/* ---------- 23. Link underline animation ---------- */
a[href]:not(.btn-primary):not(.btn-secondary):not([class*="flex"]):not([aria-label]) {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-underline-offset 0.2s ease, color 0.2s ease;
}

a[href]:not(.btn-primary):not(.btn-secondary):not([class*="flex"]):not([aria-label]):hover {
  text-underline-offset: 5px;
}

/* ---------- 24. Gradient text for section numbers ---------- */
.text-muted\/40 {
  opacity: 0.4;
  color: var(--text-muted);
}

/* ================================================================
   YC-GRADE CONVERSION OPTIMIZATIONS — Research-Backed
   ================================================================ */

/* ---------- CTA Shimmer Animation (replaces cta-pulse when idle) ---------- */
@keyframes cta-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.btn-primary[type="submit"]:not(:hover):not(:active):not(:focus) {
  background-image: linear-gradient(
    110deg,
    #CCFF00 0%,
    #CCFF00 40%,
    #e8ff66 50%,
    #CCFF00 60%,
    #CCFF00 100%
  );
  background-size: 200% 100%;
  animation: cta-shimmer 3s ease-in-out infinite;
}

.btn-primary[type="submit"]:hover {
  animation: none;
  background: #d4ff33;
}

/* ---------- Post-Terminal CTA Glow (class-based, not inline) ---------- */
.cta-post-terminal {
  box-shadow: 0 0 24px hsla(75, 100%, 50%, 0.25),
              0 0 48px hsla(75, 100%, 50%, 0.1) !important;
  transition: box-shadow 0.6s ease !important;
}

/* ---------- Celebration Glow (after form success) ---------- */
@keyframes celebration-glow {
  0% { box-shadow: 0 0 0 0 hsla(145, 65%, 48%, 0.4); }
  70% { box-shadow: 0 0 0 20px hsla(145, 65%, 48%, 0); }
  100% { box-shadow: 0 0 0 0 hsla(145, 65%, 48%, 0); }
}

.form-success .btn-primary {
  background: var(--accent);
  animation: celebration-glow 1.5s ease-out 1;
}

/* ---------- Terminal Spark Effect ---------- */
@keyframes spark-fade {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 0; transform: scale(2); }
}

/* ---------- Pure CSS Scroll Progress (replaces JS on supported browsers) ---------- */
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    transform-origin: left;
    animation: scroll-grow linear;
    animation-timeline: scroll(root);
    width: 100% !important; /* override JS width */
  }
  
  @keyframes scroll-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* ---------- Headline Gradient (Premium - desktop only) ---------- */
@media (min-width: 641px) {
  .text-headline-glow {
    background: linear-gradient(135deg, #CCFF00 0%, #00D68F 50%, #CCFF00 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease-in-out infinite;
  }
}

@media (max-width: 640px) {
  .text-headline-glow {
    color: #CCFF00;
  }
}

/* ---------- btn-secondary :active state (Issue #54) ---------- */
.btn-secondary:active {
  transform: scale(0.97);
  background: hsla(145, 65%, 48%, 0.1);
  transition-duration: 0.1s;
}

/* ---------- FAQ trigger :active state (Issue #55) ---------- */
.faq-trigger:active {
  transform: scale(0.995);
  transition-duration: 0.1s;
}

/* ---------- Checkbox focus-visible fix (Issue #59) ---------- */
input[type="checkbox"]:focus-visible {
  outline-offset: 1px;
}

/* ---------- Mobile haptic-like CTA feedback ---------- */
@media (max-width: 767px) {
  .btn-primary:active {
    transform: scale(0.95) !important;
    transition: transform 0.08s ease !important;
  }
  
  #sticky-cta .btn-primary {
    min-height: 52px;
    font-size: 15px;
  }
}

/* ---------- Consent error state ---------- */
.consent-error {
  color: var(--critical) !important;
}

.consent-error input[type="checkbox"] {
  outline: 2px solid var(--critical);
  outline-offset: 1px;
}

/* ---------- Duplicate focus-visible cleanup ---------- */
/* Note: L129-131 has a simpler :focus-visible that is overridden by L1466-1470.
   The later rule wins via cascade, no removal needed. */

/* ---------- Reduced motion: new animations ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary[type="submit"] {
    animation: none !important;
  }
  .text-headline-glow {
    animation: none !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
  }
}

/* ================================================================
   FASE 3.3: Sticky Mobile CTA — Appears on scroll, fixed bottom
   ================================================================ */
@media (max-width: 639px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: hsla(222, 22%, 5%, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid hsl(222, 14%, 20%);
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
  }
  .mobile-sticky-cta.visible {
    transform: translateY(0);
  }
}

/* ========== FASE 7: Advanced UX 2026 ========== */

/* 7.1 Endowed Progress — Waitlist success animation */
.waitlist-success {
  animation: successReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.waitlist-position {
  background: linear-gradient(135deg, hsla(145, 65%, 48%, 0.08), hsla(145, 65%, 48%, 0.02));
  border: 1px solid hsla(145, 65%, 48%, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
}

.waitlist-position-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, hsl(145, 65%, 48%), hsl(145, 65%, 65%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* 7.2 Competitive section card hover lift */
#por-que-diferente .glass-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

#por-que-diferente .glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px hsla(145, 65%, 48%, 0.15);
}

/* 7.3 Compliance badges subtle animation */
#por-que-diferente [role="list"] span {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#por-que-diferente [role="list"] span:hover {
  border-color: hsla(145, 65%, 48%, 0.4);
  background-color: hsla(145, 65%, 48%, 0.05);
}

/* 7.4 Referral progress bar */
.referral-progress {
  height: 6px;
  border-radius: 3px;
  background: hsl(222, 14%, 15%);
  overflow: hidden;
}

.referral-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, hsl(145, 65%, 35%), hsl(145, 65%, 48%));
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 7.5 Perk unlock badges */
.perk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-family: 'Geist Mono', monospace;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.perk-badge.locked {
  opacity: 0.35;
  filter: grayscale(1);
}

.perk-badge.unlocked {
  opacity: 1;
  filter: none;
  animation: perkUnlock 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes perkUnlock {
  from { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  to { transform: scale(1); opacity: 1; }
}

/* ========== PR BOT MOCKUP ========== */
#pr-bot-demo .glass-card {
  transition: box-shadow 0.4s ease;
}
#pr-bot-demo .glass-card:hover {
  box-shadow: 0 0 60px hsla(145, 65%, 48%, 0.08);
}

/* ========== ROI COMPARISON ========== */
#roi-comparison .glass-card:first-child:hover {
  border-color: hsla(0, 85%, 60%, 0.4);
  box-shadow: 0 0 40px hsla(0, 85%, 60%, 0.06);
}

/* ========== REGULATORY URGENCY BORDER GLOW ========== */
#regulatory-urgency .glass-card {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
#regulatory-urgency .glass-card:hover {
  border-color: hsla(0, 85%, 60%, 0.35);
  box-shadow: 0 0 50px hsla(0, 85%, 60%, 0.05);
}

/* ========== CISO METRICS COUNTUP GLOW ========== */
#roi-comparison .glass-card:hover .text-3xl {
  text-shadow: 0 0 20px hsla(145, 65%, 48%, 0.4);
  transition: text-shadow 0.3s ease;
}

