/* ==========================================================
   BigDuck AI — Landing Page
   Dark premium theme with emerald accents
   ========================================================== */

/* Self-hosted Inter (variable font, Latin + Latin-ext).
   Saves one DNS + one TLS handshake vs Google Fonts CDN (~200ms LCP). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2-variations"),
       url("/fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF,
    U+2C60-2C7F, U+A720-A7FF;
}

/* ──────────────────────────────────────────────────────────────────────
   Blog — article layout, hub index, breadcrumbs
   ────────────────────────────────────────────────────────────────────── */
.blog-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  color: var(--text);
}
.blog-hub-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.blog-breadcrumb {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.blog-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s ease;
}
.blog-breadcrumb a:hover {
  color: var(--accent);
}
.blog-breadcrumb .sep {
  color: var(--text-muted);
  padding: 0 6px;
}
.blog-article h1 {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
  color: var(--text);
}
.blog-article .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.blog-article .meta .dot {
  margin: 0 8px;
  color: var(--text-muted);
  opacity: .6;
}
.blog-tldr {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 40px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.blog-tldr strong {
  color: var(--accent);
  font-weight: 700;
  margin-right: 4px;
}
.blog-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.blog-content h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.blog-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}
.blog-content p {
  margin: 0 0 16px;
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}
.blog-content li {
  margin-bottom: 8px;
}
.blog-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.blog-content a:hover {
  color: var(--accent-hover);
}
.blog-content strong {
  color: var(--text);
}
.blog-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 6px 0 6px 20px;
  color: var(--text-secondary);
  font-style: italic;
}
.blog-content code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-family: ui-monospace, monospace;
  font-size: 13.5px;
  color: var(--text);
}
.blog-cta {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin: 48px 0 0;
  text-align: center;
}
.blog-cta h3 {
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--text);
}
.blog-cta p {
  color: var(--text-secondary);
  margin: 0 0 18px;
  font-size: 14.5px;
}
.blog-related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.blog-related h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.blog-related-card {
  display: block;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  transition: background .15s ease, border-color .15s ease;
}
.blog-related-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}
.blog-related-card .tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* Blog hub (index) */
.blog-hub-header {
  text-align: center;
  margin-bottom: 48px;
}
.blog-hub-header h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.blog-hub-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}
.blog-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.blog-hub-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.blog-hub-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.blog-hub-card .category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.blog-hub-card h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--text);
}
.blog-hub-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 14px;
}
.blog-hub-card .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}

/* Skip-to-content link — visible only on keyboard focus (WCAG 2.4.1) */
.skip-to-content {
  position: fixed;
  left: 16px;
  top: 16px;
  padding: 12px 20px;
  background: #10b981;
  color: #09090b;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  z-index: 99999;
  text-decoration: none;
  transform: translateY(calc(-100% - 32px));
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
  transform: translateY(0);
  outline: 3px solid #fafafa;
  outline-offset: 2px;
}

:root {
  --bg: #09090b;
  --bg-secondary: #111114;
  --bg-tertiary: #18181b;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  /* --text-muted bumped from #71717a (4.0:1) → #8a8a93 (5.0:1) for WCAG AA. */
  --text-muted: #8a8a93;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-soft: rgba(16, 185, 129, 0.1);
  --accent-glow: rgba(16, 185, 129, 0.15);
  --warm: #f59e0b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;
  --max-width: 1200px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* Container */
.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg {
  flex-shrink: 0;
  display: inline;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section headers */
.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-top: 16px;
}

.section-header p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 300ms ease;
  isolation: isolate;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(9, 9, 11, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  position: relative;
  z-index: 102;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
  position: relative;
}

.menu-toggle:hover,
.menu-toggle:active {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 200ms ease;
  transform-origin: center;
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span {
    transition: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(9, 9, 11, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 101;
  padding: calc(88px + env(safe-area-inset-top)) 24px 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transform: translateY(-8px);
  transition: all 300ms ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu a.btn.btn-primary {
  margin-top: 8px;
  padding: 16px 24px;
  border-bottom: none;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: var(--radius-full);
  text-align: center;
  font-size: 1rem;
}

.mobile-menu a.btn.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.hero-content h1 {
  margin-top: 24px;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Browser Mockup */
.hero-visual {
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
  z-index: -1;
}

.browser-mockup {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

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

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.browser-dots span:first-child {
  background: #ff5f57;
}

.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
  background: #28ca42;
}

.browser-url {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-url svg {
  display: inline;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.browser-content {
  padding: 24px;
}

.mock-nav {
  height: 12px;
  width: 60%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-bottom: 32px;
}

.mock-hero {
  margin-bottom: 28px;
}

.mock-title {
  height: 20px;
  width: 75%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 12px;
}

.mock-text {
  height: 10px;
  width: 90%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 16px;
}

.mock-btn {
  height: 28px;
  width: 100px;
  background: var(--accent);
  border-radius: var(--radius-full);
  opacity: 0.7;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-soft);
  margin-bottom: 12px;
}

.mock-card-line {
  height: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-bottom: 8px;
}

.mock-card-line.short {
  width: 65%;
}

/* ==========================================================
   TRUST STRIP
   ========================================================== */
.trust-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-strip .container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.trust-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-items span {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.trust-items span:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  color: var(--text);
}

/* ==========================================================
   FEATURES
   ========================================================== */
.features {
  padding: 100px 0;
}

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

.feature-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 300ms ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================
   INFOGRAPHICS
   ========================================================== */
.infographics {
  padding: 100px 0;
}

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

.info-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 300ms ease;
}

.info-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.info-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: radial-gradient(circle at top center, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.info-glow-red {
  background: radial-gradient(circle at top center, rgba(239, 68, 68, 0.1), transparent 70%);
}

.info-glow-amber {
  background: radial-gradient(circle at top center, rgba(245, 158, 11, 0.1), transparent 70%);
}

.info-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 24px;
}

.info-tag svg {
  width: 14px;
  height: 14px;
}

.info-tag-green {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.info-tag-red {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.info-tag-amber {
  color: var(--warm);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.info-big-stat {
  position: relative;
  z-index: 1;
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.info-stat-gradient {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-stat-red {
  color: #ef4444;
}

.info-stat-label {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.info-desc {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.info-card-title {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.info-source {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.info-source span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Infographic bars */
.info-bars {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  margin-bottom: 20px;
}

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

.info-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.info-bar-val {
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
}

.info-bar-track {
  width: 100%;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.info-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-fill-green {
  background: linear-gradient(90deg, var(--accent), #34d399);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.info-fill-cyan {
  background: linear-gradient(90deg, #0891b2, #06b6d4);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.info-fill-amber {
  background: linear-gradient(90deg, #d97706, var(--warm));
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

/* Infographic compare table */
.info-compare {
  position: relative;
  z-index: 1;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  flex: 1;
  margin-bottom: 20px;
}

.info-compare th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  text-align: left;
}

.info-compare th:first-child {
  color: var(--text-muted);
}

.info-col-bad {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  text-align: center !important;
}

.info-col-good {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  text-align: center !important;
}

.info-compare td {
  padding: 8px 10px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.info-compare td:first-child {
  color: var(--text-secondary);
  font-weight: 500;
  width: 38%;
}

.info-td-bad {
  text-align: center;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.03);
  font-weight: 600;
}

.info-td-good {
  text-align: center;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.03);
  font-weight: 600;
}

.info-x {
  color: #ef4444;
}

.info-v {
  color: var(--accent);
}

.info-compare tr:last-child td {
  border-bottom: none;
}

/* CTA link */
.info-cta {
  text-align: center;
  margin-top: 36px;
}

.info-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.info-cta-link:hover {
  gap: 12px;
  color: #34d399;
}

.info-cta-link svg {
  transition: transform var(--transition);
}

.info-cta-link:hover svg {
  transform: translateX(4px);
}

/* Staggered reveals */
.info-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.info-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.info-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.info-grid .reveal:nth-child(4) { transition-delay: 300ms; }

/* ==========================================================
   PRICING
   ========================================================== */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.price-card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 300ms ease;
}

.price-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.price-card-featured {
  background: linear-gradient(
    180deg,
    rgba(16, 185, 129, 0.08),
    var(--surface)
  );
  border-color: rgba(16, 185, 129, 0.2);
}

.price-card-featured:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.price-card-custom {
  border-color: rgba(139, 92, 246, 0.25);
  background: linear-gradient(
    165deg,
    rgba(139, 92, 246, 0.06),
    var(--surface)
  );
}

.price-card-custom:hover {
  border-color: rgba(139, 92, 246, 0.45);
}

.price-custom {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 16px;
}

.price-custom-main {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.price-custom-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 12px;
}

.currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 8px;
}

.amount {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.cents {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-desc {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.plan-features {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-features svg {
  flex-shrink: 0;
  display: inline;
  color: var(--accent);
}

/* Comparison Table */
.comparison {
  margin-top: 64px;
}

.comparison-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.comparison-footnote {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
}

.comparison-footnote a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.comparison-footnote a:hover {
  text-decoration: underline;
}

.comparison-table {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.table-head {
  background: rgba(16, 185, 129, 0.06);
}

.table-head span {
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-row .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.table-row .dash {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Mobile comparison cards — hidden on desktop, shown on mobile */
.comparison-mobile {
  display: none;
}

.comparison-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.comp-card-title {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.comp-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comp-card-row:last-child {
  border-bottom: none;
}

.comp-plan {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.comp-card-row .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
}

.comp-card-row .dash {
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* ==========================================================
   HOW IT WORKS – STEPS
   ========================================================== */
.steps {
  padding: 100px 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  inset: 80px 0 auto;
  height: 520px;
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.08), transparent 38%),
    radial-gradient(circle at 78% 36%, var(--accent-glow), transparent 42%);
  pointer-events: none;
  opacity: 0.9;
}

/* --- Step panel (alternating layout) --- */
.hw-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hw-step--reverse {
  direction: rtl;
}

.hw-step--reverse > * {
  direction: ltr;
}

.hw-step-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hw-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  background:
    linear-gradient(145deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.08)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hw-step-info h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hw-step-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 40ch;
}

.hw-step-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  width: fit-content;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hw-step-highlight svg {
  flex-shrink: 0;
}

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

/* --- Phone mockup --- */
.hw-phone {
  width: 260px;
  flex-shrink: 0;
}

.hw-phone-frame {
  border-radius: 28px;
  padding: 0;
  background: linear-gradient(160deg, #1a1f2e, #0d1117);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hw-phone-notch {
  width: 100px;
  height: 24px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  background: #0d1117;
}

.hw-phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.hw-phone-statusbar-icons {
  display: flex;
  gap: 4px;
  opacity: 0.6;
}

/* --- WhatsApp UI --- */
.hw-wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hw-wa-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
}

.hw-wa-header-text {
  display: flex;
  flex-direction: column;
}

.hw-wa-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.hw-wa-status {
  font-size: 0.65rem;
  color: var(--accent);
}

.hw-wa-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  min-height: 180px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(255, 255, 255, 0.012) 24px,
      rgba(255, 255, 255, 0.012) 25px
    );
}

.hw-wa-msg {
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 500;
}

.hw-wa-msg--them {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px 12px 12px 4px;
  color: var(--text-secondary);
}

.hw-wa-msg--you {
  align-self: flex-end;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px 12px 4px 12px;
  color: var(--text);
}

.hw-wa-emoji {
  font-size: 0.78rem;
}

/* Chat message staggered animation */
.hw-wa-msg--anim1,
.hw-wa-msg--anim2,
.hw-wa-msg--anim3,
.hw-wa-msg--anim4 {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hw-step.revealed .hw-wa-msg--anim1 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.hw-step.revealed .hw-wa-msg--anim2 { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.hw-step.revealed .hw-wa-msg--anim3 { opacity: 1; transform: translateY(0); transition-delay: 1.1s; }
.hw-step.revealed .hw-wa-msg--anim4 { opacity: 1; transform: translateY(0); transition-delay: 1.6s; }

/* Preview card inside WhatsApp */
.hw-wa-preview {
  margin: 4px 12px 4px 0;
  align-self: flex-start;
  max-width: 88%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hw-wa-preview-img {
  height: 72px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.15));
  position: relative;
}

.hw-wa-preview-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: hw-shimmer 2.5s infinite linear;
}

.hw-wa-preview-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hw-wa-preview-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.hw-wa-preview-desc {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.hw-wa-preview-url {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* WhatsApp confirm / edit buttons */
.hw-wa-buttons {
  display: flex;
  gap: 8px;
  padding: 0 12px 4px 0;
  align-self: flex-start;
}

.hw-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: default;
  border: none;
  transition: transform 0.2s ease;
}

.hw-wa-btn--confirm {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent);
}

.hw-wa-btn--edit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

/* WhatsApp input bar */
.hw-wa-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.hw-wa-input-field {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.hw-wa-input-mic {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
}

/* --- Data-gathering scene (Step 2) --- */
.hw-gather-scene {
  position: relative;
  width: 280px;
  height: 280px;
}

.hw-gather-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hw-gather-doc {
  width: 130px;
  padding: 16px 14px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hw-gather-doc-line {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  animation: hw-doc-fill 2s ease-in-out infinite alternate;
}

.hw-gather-doc-line--title {
  height: 8px;
  width: 70%;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.35), rgba(6, 182, 212, 0.25));
}

.hw-gather-doc-line--short {
  width: 60%;
}

.hw-gather-doc-img {
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.1));
}

.hw-gather-doc-cta {
  height: 16px;
  width: 55%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.2));
}

@keyframes hw-doc-fill {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Orbiting sources */
.hw-gather-orbit {
  position: absolute;
  inset: 0;
  animation: hw-orbit-spin 18s linear infinite;
}

.hw-gather-source {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
  transition: box-shadow 0.3s ease;
}

.hw-gather-source svg {
  width: 20px;
  height: 20px;
}

/* Counter-rotate icons so they stay upright */
.hw-gather-source {
  animation: hw-orbit-counter 18s linear infinite;
}

.hw-gather-source--maps {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

.hw-gather-source--reviews {
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
}

.hw-gather-source--social {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.08);
}

.hw-gather-source--photos {
  top: 50%;
  left: -4px;
  transform: translateY(-50%);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
}

@keyframes hw-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hw-orbit-counter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Particles */
.hw-gather-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hw-gather-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: hw-particle 3s ease-in-out infinite;
}

.hw-gather-particles span:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.hw-gather-particles span:nth-child(2) { top: 8%; right: 25%; animation-delay: 0.4s; }
.hw-gather-particles span:nth-child(3) { bottom: 20%; right: 15%; animation-delay: 0.8s; }
.hw-gather-particles span:nth-child(4) { bottom: 10%; left: 30%; animation-delay: 1.2s; }
.hw-gather-particles span:nth-child(5) { top: 40%; left: 5%; animation-delay: 1.6s; }
.hw-gather-particles span:nth-child(6) { top: 30%; right: 8%; animation-delay: 2.0s; }
.hw-gather-particles span:nth-child(7) { bottom: 35%; left: 12%; animation-delay: 2.4s; }
.hw-gather-particles span:nth-child(8) { top: 55%; right: 18%; animation-delay: 2.8s; }

@keyframes hw-particle {
  0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
  50% { opacity: 0.7; transform: scale(1) translateY(-8px); }
}

/* --- Final browser mockup (Step 4) --- */
.hw-browser-final {
  width: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, #13161d, #0d1117);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hw-browser-final-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hw-browser-final-dots {
  display: flex;
  gap: 5px;
}

.hw-browser-final-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hw-browser-final-dots span:nth-child(1) { background: #f87171; }
.hw-browser-final-dots span:nth-child(2) { background: #fbbf24; }
.hw-browser-final-dots span:nth-child(3) { background: #34d399; }

.hw-browser-final-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-browser-final-url svg {
  flex-shrink: 0;
  color: var(--accent);
}

.hw-browser-final-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

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

@keyframes hw-live-pulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

/* Site mockup content */
.hw-browser-final-content {
  padding: 0;
}

.hw-site-hero {
  padding: 12px 14px;
}

.hw-site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hw-site-nav-logo {
  width: 50px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(6, 182, 212, 0.6));
}

.hw-site-nav-links {
  display: flex;
  gap: 8px;
}

.hw-site-nav-links span {
  width: 24px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.hw-site-hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.hw-site-h1 {
  height: 10px;
  width: 85%;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
}

.hw-site-h1--short {
  width: 55%;
}

.hw-site-subtitle {
  height: 6px;
  width: 70%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 2px;
}

.hw-site-cta-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.hw-site-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.35), rgba(37, 211, 102, 0.2));
  color: #25d366;
}

.hw-site-btn-outline {
  width: 60px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

/* Service cards */
.hw-site-cards {
  display: flex;
  gap: 6px;
  padding: 0 14px 10px;
}

.hw-site-card {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hw-site-card-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.2);
}

.hw-site-card-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}

.hw-site-card-line--short {
  width: 60%;
}

/* Map area */
.hw-site-map {
  height: 48px;
  margin: 0 14px 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-site-map-pin {
  animation: hw-pin-bounce 2s ease-in-out infinite;
}

@keyframes hw-pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Shimmer effect */
@keyframes hw-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* CTA below steps */
.workflow-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.workflow-cta-wrap .btn {
  min-width: 240px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hw-wa-msg--anim1,
  .hw-wa-msg--anim2,
  .hw-wa-msg--anim3,
  .hw-wa-msg--anim4 {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hw-gather-orbit,
  .hw-gather-source {
    animation: none;
  }

  .hw-gather-particles span {
    animation: none;
  }

  .hw-browser-final-live-dot {
    animation: none;
    opacity: 1;
  }

  .hw-site-map-pin {
    animation: none;
  }

  .hw-gather-doc-line {
    animation: none;
    opacity: 1;
  }
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover,
.faq-item.open {
  border-color: var(--border-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 300ms ease;
  display: inline;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

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

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

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================
   CTA
   ========================================================== */
.cta-section {
  padding: 60px 0 100px;
}

.cta-card {
  position: relative;
  padding: 64px;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  margin-top: 16px;
  max-width: 600px;
  margin-inline: auto;
}

.cta-card > p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin-inline: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  position: relative;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

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

.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Renders an h3 (was h4) — WCAG heading-order compliance. */
.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered delays for grid children */
.features-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.features-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.features-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.features-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.features-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.features-grid .reveal:nth-child(6) { transition-delay: 400ms; }

.pricing-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.pricing-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.pricing-grid .reveal:nth-child(4) { transition-delay: 300ms; }
.pricing-grid .reveal:nth-child(5) { transition-delay: 400ms; }

.hw-step.reveal:nth-child(1) { transition-delay: 0ms; }
.hw-step.reveal:nth-child(2) { transition-delay: 80ms; }
.hw-step.reveal:nth-child(3) { transition-delay: 160ms; }
.hw-step.reveal:nth-child(4) { transition-delay: 240ms; }

.faq-list .reveal:nth-child(1) { transition-delay: 0ms; }
.faq-list .reveal:nth-child(2) { transition-delay: 60ms; }
.faq-list .reveal:nth-child(3) { transition-delay: 120ms; }
.faq-list .reveal:nth-child(4) { transition-delay: 180ms; }
.faq-list .reveal:nth-child(5) { transition-delay: 240ms; }
.faq-list .reveal:nth-child(6) { transition-delay: 300ms; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .table-row {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }

  .hw-step {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    max-width: 400px;
  }

  .hw-step--reverse {
    direction: ltr;
  }

  .hw-step-info {
    align-items: center;
  }

  .hw-step-info p {
    max-width: none;
  }

  .hw-phone {
    width: 240px;
  }

  .hw-gather-scene {
    width: 240px;
    height: 240px;
  }

  .hw-browser-final {
    width: 100%;
    max-width: 340px;
  }

  .workflow-cta-wrap .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

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

  .hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .badge {
    max-width: 100%;
    white-space: normal;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0 16px;
  }

  .stat {
    text-align: center;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .stat-divider {
    width: 1px;
    height: 32px;
  }

  .trust-strip .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .info-big-stat {
    font-size: 3.5rem;
  }

  .comparison-desktop {
    display: none;
  }

  .comparison-mobile {
    display: block;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .price-card {
    padding: 28px;
  }

  .comparison {
    margin-top: 40px;
  }

  .modal {
    margin: 16px;
    max-height: calc(100dvh - 32px);
    padding: 28px;
  }

  .modal-header h3 {
    font-size: 1.4rem;
  }

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

@media (max-width: 480px) {
  .steps {
    padding: 64px 0 72px;
  }

  .steps::before {
    inset: 48px 0 auto;
    height: 280px;
  }

  .hw-step {
    gap: 20px;
    margin-bottom: 48px;
  }

  .hw-step-info h3 {
    font-size: 1.25rem;
  }

  .hw-step-info p {
    font-size: 0.88rem;
  }

  .hw-phone {
    width: 220px;
  }

  .hw-gather-scene {
    width: 210px;
    height: 210px;
  }

  .hw-gather-source {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .hw-gather-source svg {
    width: 16px;
    height: 16px;
  }

  .hw-gather-doc {
    width: 105px;
    padding: 12px 10px;
  }

  .hw-browser-final {
    max-width: 280px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* ==========================================================
   CONTACT MODAL
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: min(520px, 96vw);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 40px;
  border-radius: var(--radius-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 300ms ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.modal-header {
  margin-bottom: 28px;
}

.modal-header h3 {
  margin-top: 14px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.modal-header p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.form-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-group.is-hidden {
  display: none;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  font-size: 0.88rem;
  font-weight: 500;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent);
  text-align: center;
}

.form-success.visible {
  display: flex;
}

.form-success strong {
  font-size: 1.1rem;
}

.form-success span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

#formSubmit {
  margin-top: 4px;
}

#formSubmit .btn-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

#formSubmit.loading .btn-text {
  display: none;
}

#formSubmit.loading .btn-loading {
  display: inline-flex;
}

.spinner {
  animation: spin 0.8s linear infinite;
  display: inline;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
