:root {
  --bg: #030712;
  --surface: #0f172a;
  --surface-glass: rgba(15, 23, 42, 0.6);
  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.25);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, var(--cyan), var(--blue));
  --glow-cyan: rgba(6, 182, 212, 0.35);
  --glow-blue: rgba(59, 130, 246, 0.35);
  --glow-violet: rgba(139, 92, 246, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.logo-icon svg {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

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

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.45);
}

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

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-icon {
  flex-shrink: 0;
}

.pulse {
  animation: pulse-shadow 2.5s infinite;
}

@keyframes pulse-shadow {
  0% { box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35); }
  50% { box-shadow: 0 4px 32px rgba(6, 182, 212, 0.6); }
  100% { box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35); }
}

.nav-cta {
  flex-shrink: 0;
}

/* Burger */
.burger {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 100px 28px 32px;
  z-index: 1050;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu.open {
  right: 0;
}

.mobile-link {
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-cta {
  margin-top: auto;
  width: 100%;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1040;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 2s infinite;
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 360px;
  width: 100%;
  display: grid;
  place-items: center;
}

.hero-icon {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: #06b6d4;
  animation: float 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.hero-icon svg {
  width: 28px;
  height: 28px;
}

.hero-icon:nth-child(1) { top: 6%; left: 6%; }
.hero-icon:nth-child(2) { top: 4%; left: 32%; }
.hero-icon:nth-child(3) { top: 8%; left: 58%; }
.hero-icon:nth-child(4) { top: 5%; left: 82%; }
.hero-icon:nth-child(5) { top: 40%; left: 10%; }
.hero-icon:nth-child(6) { top: 44%; left: 44%; }
.hero-icon:nth-child(7) { top: 38%; left: 76%; }
.hero-icon:nth-child(8) { bottom: 10%; left: 5%; }
.hero-icon:nth-child(9) { bottom: 6%; left: 36%; }
.hero-icon:nth-child(10) { bottom: 9%; left: 74%; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

/* Sections common */
section {
  padding: 100px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 14px;
}

/* Problem */
.problem {
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%);
}

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

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-color: var(--violet);
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 18px;
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.problem-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.feature-card:nth-child(4) { grid-column: span 2; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-color: var(--cyan);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* How */
.how {
  background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.04) 50%, transparent 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-color: var(--blue);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

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

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.how-cta {
  text-align: center;
}

/* Benefits */
.benefits-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.benefit-item:hover {
  transform: translateX(6px);
  border-color: var(--violet);
}

.benefit-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.benefit-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

.benefit-media {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.benefit-icon {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  color: #06b6d4;
  animation: float 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
}

.benefit-icon:nth-child(1) { top: 10%; left: 12%; }
.benefit-icon:nth-child(2) { top: 8%; right: 15%; }
.benefit-icon:nth-child(3) { top: 42%; left: 8%; }
.benefit-icon:nth-child(4) { top: 38%; right: 10%; }
.benefit-icon:nth-child(5) { bottom: 12%; left: 18%; }
.benefit-icon:nth-child(6) { bottom: 10%; right: 20%; }

/* FAQ */
.faq {
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%);
}

.faq-narrow {
  max-width: 880px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.faq-item summary {
  padding: 22px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cyan);
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA Final */
.cta-final {
  padding: 80px 0 120px;
}

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

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-title {
  position: relative;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-text {
  position: relative;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 28px;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

.copyright {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: auto;
}

/* Mobile bottom CTA */
.mobile-bottom-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 900;
  display: none;
}

.mobile-bottom-cta .btn {
  width: 100%;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger children */
.problem-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.problem-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.problem-grid .reveal:nth-child(3) { transition-delay: 160ms; }

.features-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.features-grid .reveal:nth-child(2) { transition-delay: 70ms; }
.features-grid .reveal:nth-child(3) { transition-delay: 140ms; }
.features-grid .reveal:nth-child(4) { transition-delay: 210ms; }
.features-grid .reveal:nth-child(5) { transition-delay: 280ms; }

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

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

/* Responsive */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    order: 1;
  }
  .hero-visual {
    order: 2;
    min-height: 360px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .problem-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card:nth-child(4) { grid-column: span 2; }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits-layout {
    grid-template-columns: 1fr;
  }
  .benefit-media {
    order: 1;
    min-height: 340px;
  }
  .benefit-content {
    order: 2;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }
  .container {
    padding: 0 16px;
  }
  .nav,
  .nav-cta {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero {
    padding: calc(var(--header-h) + 48px) 0 60px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    justify-content: center;
    gap: 24px;
  }
  .problem-grid,
  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .feature-card:nth-child(4) { grid-column: span 1; }
  .feature-card,
  .problem-card,
  .step {
    width: 100%;
  }
  .benefit-item:hover {
    transform: none;
  }
  .benefit-media {
    min-height: 300px;
  }
  .benefit-icon {
    width: 48px;
    height: 48px;
  }
  .benefit-icon svg {
    width: 22px;
    height: 22px;
  }
  .hero-icon {
    width: 52px;
    height: 52px;
  }
  .hero-icon svg {
    width: 22px;
    height: 22px;
  }
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
  .copyright {
    margin-left: 0;
  }
  .mobile-bottom-cta {
    display: block;
  }
  body {
    padding-bottom: 72px;
  }
  section {
    padding: 64px 0;
  }
  .cta-card {
    padding: 40px 24px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .section-title {
    font-size: 1.45rem;
  }
  .btn-lg {
    padding: 14px 22px;
    font-size: 0.95rem;
  }
}
