/* ────────────────────────────────────────────
   WChem Landing — Full Design System
   Dark space theme (default) with Light theme override
   Premium glassmorphism
   ──────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background: #020617;
  font-family: 'Inter', sans-serif;
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

/* ══════════════════════════════════════════
   LIGHT THEME — semantic token overrides
   Toggled by [data-theme="light"] on <html>
   ══════════════════════════════════════════ */

[data-theme="light"] {
  --lp-bg: #F4F8FF;
  --lp-bg-soft: #FFFFFF;
  --lp-bg-deep: #E2E8F0;
  --lp-text: #0F172A;
  --lp-text-soft: #475569;
  --lp-text-muted: #64748B;
  --lp-border: rgba(15, 23, 42, 0.08);
  --lp-border-strong: rgba(15, 23, 42, 0.18);
  --lp-glass: rgba(255, 255, 255, 0.65);
  --lp-glass-border: rgba(15, 23, 42, 0.08);
  --lp-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --lp-accent: #0284C7;
  --lp-accent-soft: rgba(2, 132, 199, 0.1);
  --lp-gradient: linear-gradient(135deg, #0EA5E9 0%, #6366F1 50%, #10B981 100%);
  --lp-orb-opacity: 0.22;
}

[data-theme="light"] body { background: var(--lp-bg); color: var(--lp-text); }

/* NAV */
[data-theme="light"] .card-nav { border: 1px solid var(--lp-border) !important; }
[data-theme="light"] .card-nav-cta-button { box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); }
[data-theme="light"] .theme-toggle-btn {
  background: var(--lp-accent-soft);
  border: 1px solid var(--lp-accent) !important;
  color: var(--lp-accent) !important;
}
[data-theme="light"] .theme-toggle-btn:hover { background: rgba(2, 132, 199, 0.18); }

/* HERO */
[data-theme="light"] .lp-hero-title { color: #0F172A; }
[data-theme="light"] .lp-hero-sub { color: var(--lp-text-soft); }
[data-theme="light"] .lp-hero-badge {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: var(--lp-accent);
}
[data-theme="light"] .stat-number { color: var(--lp-accent); }
[data-theme="light"] .stat-label { color: var(--lp-text-muted); }
[data-theme="light"] .stat-divider { background: var(--lp-border); }
[data-theme="light"] .orb { opacity: var(--lp-orb-opacity); }

/* BUTTONS */
[data-theme="light"] .btn-primary {
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25);
}
[data-theme="light"] .btn-ghost {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--lp-border-strong);
  color: #1E293B;
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}

/* SECTIONS */
[data-theme="light"] .section-dark  { background: #FFFFFF; }
[data-theme="light"] .section-darker { background: #F1F5F9; }
[data-theme="light"] .section-title { color: #0F172A; }
[data-theme="light"] .section-sub   { color: var(--lp-text-soft); }
[data-theme="light"] .section-badge {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: var(--lp-accent);
}

/* FEATURE / STEP CARDS */
[data-theme="light"] .feature-card,
[data-theme="light"] .step-card {
  background: #FFFFFF;
  border-color: var(--lp-border);
  box-shadow: var(--lp-shadow);
}
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .step-card:hover {
  border-color: rgba(2, 132, 199, 0.3);
  background: #F8FAFC;
  box-shadow: 0 12px 40px rgba(2, 132, 199, 0.12);
}
[data-theme="light"] .feature-card h3,
[data-theme="light"] .step-card h3 { color: #0F172A; }
[data-theme="light"] .feature-card p,
[data-theme="light"] .step-card p { color: var(--lp-text-soft); }
[data-theme="light"] .step-icon {
  background: var(--lp-accent-soft);
  border-color: rgba(2, 132, 199, 0.25);
}
[data-theme="light"] .step-number { color: rgba(2, 132, 199, 0.12); }

/* ELEMENTS */
[data-theme="light"] .element-placeholder {
  background: #FFFFFF;
  border-color: var(--lp-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* CTA + FOOTER */
[data-theme="light"] .cta-section { background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%); }
[data-theme="light"] .site-footer { background: #FFFFFF; border-top-color: var(--lp-border); }
[data-theme="light"] .footer-link { color: var(--lp-text-soft); }
[data-theme="light"] .footer-link:hover { color: var(--lp-accent); }
[data-theme="light"] .footer-copy { color: var(--lp-text-muted); }
[data-theme="light"] .logo-text { color: #0F172A; }

/* MODALS */
[data-theme="light"] .modal-box {
  background: #FFFFFF;
  border-color: var(--lp-border);
  box-shadow: 0 32px 100px rgba(15, 23, 42, 0.15);
}
[data-theme="light"] .modal-title { color: #0F172A; }
[data-theme="light"] .modal-sub   { color: var(--lp-text-soft); }
[data-theme="light"] .modal-close-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--lp-border);
  color: var(--lp-text-soft);
}
[data-theme="light"] .modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0F172A;
}
[data-theme="light"] .modal-tabs { background: rgba(15, 23, 42, 0.04); }
[data-theme="light"] .modal-tab { color: var(--lp-text-soft); }
[data-theme="light"] .modal-tab.active {
  background: rgba(2, 132, 199, 0.12);
  color: var(--lp-accent);
}
[data-theme="light"] .modal-input {
  background: #F8FAFC;
  border-color: var(--lp-border-strong);
  color: #0F172A;
}
[data-theme="light"] .modal-input::placeholder { color: #94A3B8; }
[data-theme="light"] .modal-input:focus {
  border-color: var(--lp-accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
[data-theme="light"] .btn-step {
  background: #F1F5F9;
  color: var(--lp-text-soft);
  border-color: var(--lp-border);
}
[data-theme="light"] .btn-step:hover {
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  border-color: rgba(2, 132, 199, 0.3);
}

/* Theme toggle button (shared) */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
  font-family: 'Material Symbols Outlined';
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(20deg);
}
.theme-toggle-btn .material-symbols-outlined { font-size: 18px; }
.theme-toggle-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV OVERRIDE for dark bg ─── */
.card-nav-container {
  position: fixed !important;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 900px;
  z-index: 500;
}

/* ─────────────────────── HERO ─────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 80px 80px;
  overflow: hidden;
  gap: 40px;
}

#lp-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
  animation: orb-float 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
  top: -120px; left: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #818cf8, transparent 70%);
  bottom: -80px; right: 100px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #34d399, transparent 70%);
  top: 40%; right: 20%;
  animation-delay: -5s;
  opacity: 0.2;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  color: #38bdf8;
  letter-spacing: 0.04em;
}
.lp-hero-badge .material-symbols-outlined { font-size: 15px; }

.lp-hero-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 20px;
}

.lp-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 36px;
  max-width: 520px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #020617;
  box-shadow: 0 0 30px rgba(56,189,248,0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(56,189,248,0.5);
  filter: brightness(1.08);
}
.btn-primary .material-symbols-outlined { font-size: 18px; }
.btn-xl { padding: 16px 32px; font-size: 16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  color: #f8fafc;
  transform: translateY(-2px);
}
.btn-ghost .material-symbols-outlined { font-size: 18px; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Exo 2', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ─── Hero Visual / Molecule ─── */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
}

.molecule-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ring-spin linear infinite;
}
.ring-1 {
  width: 280px; height: 280px;
  border-color: rgba(56,189,248,0.25);
  animation-duration: 12s;
}
.ring-2 {
  width: 380px; height: 380px;
  border-color: rgba(129,140,248,0.15);
  animation-duration: 20s;
  animation-direction: reverse;
}
.ring-3 {
  width: 480px; height: 480px;
  border-color: rgba(52,211,153,0.1);
  animation-duration: 30s;
}

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

.molecule-center {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  filter: drop-shadow(0 0 24px rgba(56,189,248,0.5));
}

.atom {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid;
  animation: atom-orbit linear infinite;
}
.atom span { color: inherit; }

.atom-h {
  background: rgba(96,165,250,0.15);
  border-color: rgba(96,165,250,0.5);
  color: #60a5fa;
  animation-duration: 6s;
  transform-origin: 140px 0;
}
.atom-o {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.5);
  color: #f87171;
  animation-duration: 10s;
  transform-origin: 0 140px;
  animation-direction: reverse;
}
.atom-c {
  background: rgba(156,163,175,0.15);
  border-color: rgba(156,163,175,0.5);
  color: #9ca3af;
  animation-duration: 8s;
  transform-origin: -140px 0;
}
.atom-n {
  background: rgba(129,140,248,0.15);
  border-color: rgba(129,140,248,0.5);
  color: #818cf8;
  animation-duration: 14s;
  transform-origin: 0 -140px;
}

@keyframes atom-orbit {
  from { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(12px); opacity: 1; }
}

/* ─────────────────────── SECTIONS ─────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
}
.section-dark  { background: #0a0f1e; }
.section-darker { background: #030712; }

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

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.2);
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-badge .material-symbols-outlined { font-size: 14px; }

.section-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: #64748b;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─────────────────────── FEATURES GRID ─────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56,189,248,0.04), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.feature-card:hover { 
  border-color: rgba(56,189,248,0.2);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature-icon-wrap .material-symbols-outlined {
  font-size: 24px;
  color: #fff;
}

.feature-card h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-tag {
  font-size: 11px;
  font-family: 'Roboto Mono', monospace;
  color: #38bdf8;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

/* ─────────────────────── STEPS ─────────────────────── */
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.step-card {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 36px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
}
.step-card:hover {
  border-color: rgba(56,189,248,0.2);
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
}

.step-number {
  font-family: 'Exo 2', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: rgba(56,189,248,0.08);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.05em;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-icon .material-symbols-outlined { color: #38bdf8; font-size: 24px; }

.step-card h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.7;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  padding-top: 80px;
  color: rgba(56,189,248,0.3);
}
.step-arrow .material-symbols-outlined { font-size: 28px; }

/* ─────────────────────── ELEMENTS GRID ─────────────────────── */
.elements-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.element-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', sans-serif;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}
.element-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--el-color, rgba(56,189,248,0.1));
  opacity: 0.15;
  border-radius: 14px;
  transition: opacity 0.2s;
}
.element-placeholder:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--el-color, rgba(56,189,248,0.5));
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.element-placeholder:hover::before { opacity: 0.3; }

/* ─────────────────────── CTA SECTION ─────────────────────── */
.cta-section {
  background: #020617;
  padding: 120px 0;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(56,189,248,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { text-align: center; }

/* ─────────────────────── FOOTER ─────────────────────── */
.site-footer {
  background: #030712;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-link {
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: #38bdf8; }
.footer-copy {
  font-size: 13px;
  color: #334155;
}

/* ─────────────────────── MODALS ─────────────────────── */
.modal-box {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 32px 36px;
  width: min(440px, 95vw);
  box-shadow: 0 32px 100px rgba(0,0,0,0.7);
  position: relative;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #f8fafc;
}
.modal-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}
.modal-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.2s;
}
.modal-close-btn:hover { background: rgba(255,255,255,0.12); color: #f8fafc; }
.modal-close-btn .material-symbols-outlined { font-size: 18px; }

.modal-tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}
.modal-tab {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  background: transparent;
  color: #64748b;
  transition: all 0.2s;
}
.modal-tab.active {
  background: rgba(56,189,248,0.12);
  color: #38bdf8;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #f8fafc;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.modal-input::placeholder { color: #475569; }
.modal-input:focus { border-color: rgba(56,189,248,0.4); background: rgba(56,189,248,0.04); }

.btn-step {
  padding: 7px 14px;
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.2s;
}
.btn-step:hover { background: rgba(56,189,248,0.1); color: #38bdf8; border-color: rgba(56,189,248,0.2); }

/* ─────────────────────── REVEAL ANIMATION ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease calc(var(--delay, 0s)), transform 0.7s ease calc(var(--delay, 0s));
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────── RESPONSIVE ─────────────────────── */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 100px 32px 60px;
    text-align: center;
    gap: 0;
  }
  .hero-content { order: 1; }
  .hero-visual { display: none; }
  .lp-hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .scroll-indicator { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; padding-top: 0; }
  .section-container { padding: 0 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  .features-grid { gap: 14px; }
  .card-nav-container { width: 94%; top: 12px; }
  .hero-section { padding: 116px 20px 48px; }
  .lp-hero-title { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .lp-hero-sub { font-size: 15px; line-height: 1.65; }
  .lp-hero-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 18px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 15px;
  }
  .hero-stats { gap: 14px; }
  .stat-number { font-size: 24px; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .section-container { padding: 0 18px; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2rem); }
  .section-sub { font-size: 14.5px; }
  .feature-card { padding: 22px 18px; }
  .feature-card h3 { font-size: 17px; }
  .step-card { padding: 26px 20px; }
  .cta-section { padding: 72px 0; }
  .cta-content .btn-primary,
  .cta-content .btn-ghost { flex: 1 1 100%; justify-content: center; }
  .footer-inner { padding: 0 24px; gap: 16px; }
  .footer-links { gap: 18px; flex-wrap: wrap; }
  .modal-box { padding: 24px 20px; border-radius: 18px; }
  .modal-title { font-size: 18px; }
  .elements-grid { gap: 9px; }
  .element-placeholder { width: 60px; height: 60px; font-size: 17px; }
}
