:root {
  --primary: #6C3CE1;
  --primary-dark: #5228C0;
  --accent: #00D4AA;
  --bg-dark: #0B0F1A;
  --bg-light: #121827;
  --text: #E7ECF8;
  --text-light: #9AA6C3;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 64px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px rgba(37, 99, 235, 0.35), 0 10px 36px rgba(37, 99, 235, 0.25);
  --transition: 220ms ease-out;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a, button, input, textarea { min-height: 44px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* NAV */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11, 15, 26, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.55rem; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: rgba(231, 236, 248, 0.84); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  min-height: 36px;
  padding: 4px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04); color: var(--text-light);
  cursor: pointer; font-weight: 600;
}
.lang-btn.active { background: var(--accent); color: #042f2e; border-color: var(--accent); }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 44px; border: 0; background: transparent; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; display: block; }
.mobile-menu { display: none; padding: 8px 24px 20px; background: rgba(11, 15, 26, 0.95); border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-menu.open { display: block; }
.mobile-menu a { color: var(--white); text-decoration: none; display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; font-weight: 600; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  padding: 0 18px;
}
.btn-sm { font-size: 0.9rem; min-height: 44px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-primary { color: var(--white); background: linear-gradient(90deg, var(--primary), #3b82f6); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { color: var(--white); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.02); }
.btn-outline:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }

.shimmer-btn {
  position: relative; isolation: isolate; overflow: hidden;
}
.shimmer-btn::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.45) 50%, transparent 75%);
  transform: translateX(-120%);
  animation: shimmer 3.2s linear infinite;
  z-index: -1;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 96px;
  background: radial-gradient(circle at 20% 10%, rgba(37,99,235,0.15), transparent 45%), var(--bg-dark);
  overflow: hidden;
}
.hero-grid-mask, .grid-mask::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
  opacity: 0.24;
  pointer-events: none;
}
.grid-mask { position: relative; }

.aurora { position: absolute; inset: -20% -10%; pointer-events: none; filter: blur(34px); }
.blob {
  position: absolute; border-radius: 999px; opacity: 0.34;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.6), rgba(37, 99, 235, 0.06) 65%, transparent);
  animation: drift 16s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; top: 0; left: 8%; }
.blob-2 { width: 360px; height: 360px; top: 20%; right: 7%; background: radial-gradient(circle, rgba(6, 182, 212, 0.5), rgba(6,182,212,0.04) 65%, transparent); animation-delay: -4s; }
.blob-3 { width: 500px; height: 500px; bottom: -10%; left: 35%; animation-delay: -8s; }

.hero-spotlight {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.16), rgba(37,99,235,0.06) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  left: 50%; top: 40%; pointer-events: none; z-index: 1;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.hero-headline { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -1px; font-weight: 800; margin-bottom: 18px; }
.shimmer-text {
  background: linear-gradient(120deg, #fff 20%, #93c5fd 35%, #fff 50%, #67e8f9 62%, #fff 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer-text 5s linear infinite;
}
.hero-sub { color: rgba(231, 236, 248, 0.86); margin-bottom: 28px; max-width: 58ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.demo-phone {
  margin-top: 18px; border: 1px solid rgba(0,212,170,0.34);
  background: rgba(0,212,170,0.09); color: #9af5df;
  border-radius: var(--radius-sm); padding: 10px 14px; display: inline-flex;
}
.demo-phone a { color: inherit; text-decoration: none; }

.phone-mockup {
  border-radius: 28px; padding: 14px; max-width: 325px; margin: 0 auto;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-lg);
}
.phone-screen { border-radius: 20px; min-height: 314px; padding: 20px 14px; background: linear-gradient(180deg, rgba(18,24,39,0.95), rgba(11,15,26,0.95)); display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { font-size: 0.9rem; line-height: 1.45; padding: 11px 14px; border-radius: 14px; max-width: 88%; animation: fadeInUp 260ms ease-out both; }
.chat-bubble.bot { align-self: start; background: rgba(37,99,235,0.85); color: #fff; border-bottom-left-radius: 4px; }
.chat-bubble.user { align-self: end; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.95); border-bottom-right-radius: 4px; }
.chat-bubble:nth-child(2) { animation-delay: .22s; }
.chat-bubble:nth-child(3) { animation-delay: .42s; }
.typing-indicator { display: flex; gap: 5px; padding: 6px 10px; }
.typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); animation: typingDot 1.3s infinite; }
.typing-indicator span:nth-child(2){ animation-delay: .2s; }
.typing-indicator span:nth-child(3){ animation-delay: .4s; }

/* Sections */
.section { padding: 84px 0; position: relative; }
.section-dark { background: var(--bg-dark); }
.section-header { text-align: center; margin-bottom: 48px; position: relative; z-index: 2; }
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.2; color: var(--white); margin-bottom: 10px; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; }
.section-header-light .section-subtitle { color: var(--text-light); }

.stats-bar { background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 30px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-item { text-align: center; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: #f6f3ff; }
.stat-label { color: var(--text-light); font-size: 0.9rem; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 2; }
.feature-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(37,99,235,0.7), rgba(6,182,212,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.18); box-shadow: 0 20px 54px rgba(37,99,235,0.18); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 12px 30px rgba(37,99,235,0.3); }
.feature-icon svg { width: 22px; height: 22px; stroke: var(--white); fill: none; stroke-width: 2; }
.feature-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.feature-card p { color: var(--text-light); }

/* How it works with animated beam */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 2; }
/* beam removed */
.step {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.step-number { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 12px 36px rgba(37,99,235,0.3); }
.step h3 { color: var(--white); margin-bottom: 7px; }
.step p { color: var(--text-light); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 2; }
.pricing-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 28px; }
.pricing-card.highlighted { border-color: rgba(37,99,235,0.6); box-shadow: 0 16px 48px rgba(37,99,235,0.2); transform: translateY(-4px); }
.pricing-card h3 { color: var(--white); }
.pricing-desc { color: var(--text-light); font-size: 0.93rem; margin: 4px 0 12px; }
.pricing-price { color: #fff; font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.pricing-price .currency { font-size: 1.4rem; }
.pricing-price .price-custom { font-size: 1.8rem; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pricing-price .period { font-size: 1rem; color: var(--text-light); font-weight: 500; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.pricing-features li { color: var(--text-light); padding-left: 20px; position: relative; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }
.setup-note { color: var(--text-light); text-align: center; margin-top: 16px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question { width: 100%; border: 0; background: transparent; color: var(--white); padding: 16px 18px; text-align: left; font: inherit; font-weight: 600; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.faq-chevron { width: 20px; height: 20px; transition: transform var(--transition); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 260ms ease-out; }
.faq-item.open .faq-answer { max-height: 320px; }
.faq-answer-inner { color: var(--text-light); padding: 0 18px 16px; }

/* Contact floating labels */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { position: relative; }
.contact-form input, .contact-form textarea {
  width: 100%; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04); color: var(--white);
  padding: 18px 14px 10px; font: inherit;
}
.form-field label {
  position: absolute; left: 14px; top: 12px; color: var(--text-light);
  font-size: 0.95rem; pointer-events: none; transition: transform 180ms ease-out, color 180ms ease-out, font-size 180ms ease-out;
}
.form-field.active label,
.form-field input:focus + label,
.form-field textarea:focus + label {
  transform: translateY(-10px);
  font-size: 0.78rem;
  color: var(--accent);
}
.field-error { display: block; margin-top: 6px; color: #ff9aa2; font-size: 0.82rem; min-height: 18px; }

/* Footer */
.footer { padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.1); background: #0a0d17; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-inner p, .footer-links a { color: rgba(231,236,248,0.6); font-size: 0.88rem; text-decoration: none; }
.footer-links { display: flex; gap: 18px; }

/* Reveal — only applied to individual items, not section wrappers */
.reveal-item { opacity: 0; transform: translateY(18px); transition: opacity 380ms ease-out, transform 380ms ease-out; }
.reveal-item.in-view { opacity: 1; transform: translateY(0); }

/* Keyframes */
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -24px, 0) scale(1.08); }
}
@keyframes shimmer { from { transform: translateX(-120%); } to { transform: translateX(130%); } }
@keyframes shimmer-text { from { background-position: 200% 50%; } to { background-position: -20% 50%; } }
@keyframes beam {
  0% { left: 12%; opacity: .2; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 88%; opacity: .2; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typingDot { 0%,60%,100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px);} }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .features-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, #navCta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 68px 0; }
  .stats-inner, .features-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .btn-lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-item { opacity: 1; transform: none; }
}