:root {
  --bg-primary: #0b0e14;
  --bg-secondary: #11141e;
  --bg-card: #181c28;
  --bg-card-hover: #1f2433;
  --text-primary: #f0f0f5;
  --text-secondary: #8890a8;
  --text-muted: #5c6478;
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --accent-gradient: linear-gradient(135deg, #2563eb, #60a5fa);
  --blue-dark: rgba(37, 99, 235, 0.1);
  --emerald-bg: rgba(16, 185, 129, 0.1);
  --violet-bg: rgba(139, 92, 246, 0.1);
  --amber-bg: rgba(245, 158, 11, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1100px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

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

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

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

/* Hero */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__content {
  max-width: 520px;
}

.hero__badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

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

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

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.hero__stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Chat mockup */
.hero__visual {
  display: flex;
  justify-content: center;
}

.chat-mockup {
  width: 340px;
  background: #151a28;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.chat-mockup__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.chat-mockup__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 4px;
}

.chat-mockup__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-mockup__msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 85%;
  animation: msgIn 0.3s ease-out backwards;
}

.chat-mockup__msg:nth-child(1) { animation-delay: 0.2s; }
.chat-mockup__msg:nth-child(2) { animation-delay: 0.6s; }
.chat-mockup__msg:nth-child(3) { animation-delay: 1.0s; }
.chat-mockup__msg:nth-child(4) { animation-delay: 1.4s; }

.chat-mockup__msg--user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-mockup__msg--bot {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-mockup__msg--done {
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.chat-mockup__link {
  color: var(--accent);
  font-weight: 500;
}

.chat-mockup__typing {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  animation: msgIn 0.3s ease-out 1.8s backwards;
}

.chat-mockup__dot-typing {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.chat-mockup__dot-typing:nth-child(2) { animation-delay: 0.15s; }
.chat-mockup__dot-typing:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.section__title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section__desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* How it works */
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how__card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.how__card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}

.how__step {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.how__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.how__desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

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

.feature__card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.feature__card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.feature__card--wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  border-color: rgba(37, 99, 235, 0.1);
  padding: 36px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__card--wide:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.04));
}

.feature__stat {
  text-align: center;
}

.feature__stat-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.feature__stat-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.feature__icon {
  margin-bottom: 16px;
  color: var(--accent);
}

.feature__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature__desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Use cases */
.uc__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.uc__card {
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.uc__card--cpa { background: var(--blue-dark); border-color: rgba(37, 99, 235, 0.15); }
.uc__card--info { background: var(--emerald-bg); border-color: rgba(16, 185, 129, 0.15); }
.uc__card--agency { background: var(--violet-bg); border-color: rgba(139, 92, 246, 0.15); }
.uc__card--small { background: var(--amber-bg); border-color: rgba(245, 158, 11, 0.15); }

.uc__card:hover {
  transform: translateY(-3px);
}

.uc__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.uc__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Pricing */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing__card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.pricing__card:hover {
  border-color: rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
}

.pricing__card--featured {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), var(--bg-card));
  z-index: 1;
}

.pricing__card--featured:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  z-index: 2;
}

.pricing__bonus {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing__tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing__price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing__period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing__features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing__features li {
  padding: 8px 0 8px 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
}

.pricing__features li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing__card .btn {
  width: 100%;
  justify-content: center;
}

/* FAQ */
.faq__list {
  max-width: 680px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq__question:hover {
  color: var(--accent);
}

.faq__arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq__question[aria-expanded="true"] .faq__arrow {
  transform: rotate(180deg);
}

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq__answer p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  padding-bottom: 20px;
}

.faq__answer--open {
  max-height: 600px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 0;
}

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

.footer__logo {
  font-weight: 700;
  font-size: 1rem;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 4px;
}

.footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer__copy {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .chat-mockup__msg {
    animation: none;
    opacity: 1;
  }
  .chat-mockup__typing {
    animation: none;
  }
  .chat-mockup__dot-typing {
    animation: none;
  }
  .faq__arrow {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__content {
    max-width: 100%;
    text-align: center;
  }
  .hero__subtitle {
    max-width: 100%;
    margin: 0 auto 32px;
  }
  .hero__stats {
    justify-content: center;
  }
  .hero__visual {
    display: none;
  }
  .how__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature__card--wide { grid-column: 1 / -1; }
  .uc__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .hero__stats { gap: 24px; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 0 60px; }
  .section { padding: 60px 0; }
  .features__grid { grid-template-columns: 1fr; }
  .uc__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 16px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
