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

:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #0d0d1a;
  --bg-card: #12122200;
  --bg-card-solid: #141425;
  --bg-card-hover: #1a1a30;
  --border: #1e1e35;
  --border-light: #2a2a45;
  --text-primary: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #606080;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --purple: #8b5cf6;
  --green: #22c55e;
  --gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

section {
  scroll-margin-top: var(--header-h);
}

/* === Container === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.938rem;
  padding: 0.625rem 1.25rem;
}

.btn--sm {
  font-size: 0.813rem;
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
}

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

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

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

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.header__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.header__link:hover,
.header__link.active {
  color: var(--text-primary);
}

.header__cta {
  flex-shrink: 0;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

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

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

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

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 70%);
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #b0b0c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-light);
}

.hero__stat-label {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* === Sections === */
.section {
  padding: var(--section-py) 0;
}

.section--alt {
  background: var(--bg-secondary);
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.063rem;
  max-width: 520px;
  margin: 0 auto 3rem;
}

/* === Cards === */
.card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.2s;
}

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

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  font-size: 1.063rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* === Advantages Grid === */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* === Steps (How it works) === */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.step {
  text-align: center;
  max-width: 260px;
  padding: 0 1.5rem;
}

.step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.step__title {
  font-size: 1.063rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.step__line {
  flex-shrink: 0;
  width: 80px;
  height: 2px;
  background: var(--border-light);
  margin-top: 28px;
}

/* === Pricing === */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.pricing-card {
  position: relative;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}

.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, var(--bg-card-solid) 50%);
  box-shadow: 0 0 30px var(--accent-glow);
}

.pricing-card--featured:hover {
  border-color: var(--accent-light);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: 1.5rem;
}

.pricing-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 800;
}

.pricing-card__price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card__features {
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-card__feature {
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card__feature:last-child {
  border-bottom: none;
}

.pricing-card__feature::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
}

.pricing-card__feature--yes::before {
  background: rgba(34, 197, 94, 0.15);
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.pricing-card__feature--no {
  color: var(--text-muted);
}

.pricing-card__feature--no::before {
  background: rgba(96, 96, 128, 0.1);
  box-shadow: inset 0 0 0 1.5px var(--text-muted);
}

.pricing-card__btn {
  width: 100%;
}

/* Regional pricing */
.pricing__regional {
  max-width: 600px;
  margin: 0 auto;
}

.pricing__regional-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.25rem;
}

.pricing__regional-title span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.875rem;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td:last-child {
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent-light);
}

/* === Geography === */
.geo {
  text-align: center;
}

.geo__map {
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.geo__svg {
  width: 100%;
  height: auto;
}

.geo__outline {
  opacity: 0.6;
}

.geo__dot {
  fill: var(--accent);
}

.geo__dot--global {
  fill: var(--purple);
  opacity: 0.7;
}

.geo__dot--pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; r: 6; }
  50% { opacity: 0.6; r: 9; }
}

.geo__label {
  fill: var(--text-secondary);
  font-size: 11px;
  text-anchor: middle;
}

.geo__stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.geo__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.geo__stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.geo__stat-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* === Integrations === */
.integrations__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.integration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.2s;
}

.integration:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.integration__icon {
  width: 48px;
  height: 48px;
}

.integration__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.integration__status {
  font-size: 0.688rem;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.integration__status--soon {
  color: var(--text-muted);
}

/* === Audience === */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* === FAQ === */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__item[open] .faq__question {
  color: var(--accent-light);
}

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

.faq__item[open] .faq__answer {
  max-height: 200px;
}

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

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

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__heading {
  font-size: 0.813rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

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

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

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer__bottom p {
  font-size: 0.813rem;
  color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

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

  .header__nav .header__link {
    font-size: 1.25rem;
  }

  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .advantages__grid,
  .audience__grid {
    grid-template-columns: 1fr;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step__line {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .integrations__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero__stats {
    gap: 2rem;
  }

  .geo__stats {
    gap: 2rem;
  }
}
