/* ===================================================
   CSS Variables & Reset
   =================================================== */

:root {
  --bg:           #0E0E11;
  --surface:      #1C1D21;
  --surface-hover:#2C2D30;
  --surface-raised:#242428;
  --accent:       #FBB26A;
  --accent-hover: #F9A04E;
  --accent-dim:   rgba(251, 178, 106, 0.12);
  --text:         #D7D8DB;
  --muted:        #878B91;
  --error:        #EB5757;
  --border:       rgba(255, 255, 255, 0.07);
  --border-accent:rgba(251, 178, 106, 0.3);
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card:  0 2px 12px rgba(0, 0, 0, 0.3);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    6px;
  --font:         'PT Sans', system-ui, -apple-system, sans-serif;
  --header-h:     64px;
  --transition:   0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================================================
   Layout
   =================================================== */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 56px;
}

/* ===================================================
   Header
   =================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(14, 14, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.85; }

.logo__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo__text { white-space: nowrap; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 15px;
  color: var(--muted);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover { color: var(--text); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-xs);
  transition: background var(--transition);
}

.burger:hover { background: var(--surface-hover); }

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================
   Buttons
   =================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent);
  color: #1A1400;
  border: 1.5px solid transparent;
}

.btn--accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px rgba(251, 178, 106, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--full { width: 100%; }

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ===================================================
   Hero
   =================================================== */

.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(251, 178, 106, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero__description {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Network diagram */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 260px;
}

.network-diagram {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 72px;
  transition: border-color var(--transition);
}

.node svg {
  width: 28px;
  height: 28px;
}

.node span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.node--user  { color: var(--text); border-color: rgba(255,255,255,0.15); }
.node--l1    { color: #6DB8F5; border-color: rgba(109,184,245,0.25); }
.node--l1 span { color: #6DB8F5; }
.node--l2    { color: var(--accent); border-color: var(--border-accent); }
.node--l2 span { color: var(--accent); }
.node--dest  { color: var(--text); border-color: rgba(255,255,255,0.15); }

.node-line {
  width: 24px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0, var(--border) 4px,
    transparent 4px, transparent 8px
  );
  flex-shrink: 0;
}

/* ===================================================
   How It Works
   =================================================== */

.how-it-works {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(28,29,33,0.5) 50%, var(--bg) 100%);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step-card {
  flex: 1;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
}

.step-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 40px;
}

.step-connector svg {
  width: 20px;
  height: 20px;
}

.step-card__number {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.step-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.step-card__icon svg {
  width: 22px;
  height: 22px;
}

.step-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step-card__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ===================================================
   Providers / Tabs
   =================================================== */

.providers {
  background: var(--bg);
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 32px;
  max-width: 600px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}

.tab-btn:hover { color: var(--text); }

.tab-btn--active {
  background: var(--surface-hover);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.tab-badge--l1 {
  background: rgba(109, 184, 245, 0.15);
  color: #6DB8F5;
  border: 1px solid rgba(109, 184, 245, 0.3);
}

.tab-badge--l2 {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

/* Tab panels */
.tab-panel--hidden { display: none; }

.tab-panel__hint {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin-bottom: 28px;
}

.tab-panel__hint strong { color: var(--text); }

.providers-loading {
  color: var(--muted);
  font-size: 14px;
  padding: 32px;
  text-align: center;
  grid-column: 1 / -1;
}

/* Providers grid */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Provider card */
.provider-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.provider-card:hover {
  border-color: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.provider-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.provider-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.provider-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.provider-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.provider-card__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.region-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--muted);
}

.provider-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.layer-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.layer-badge--l1 {
  background: rgba(109, 184, 245, 0.1);
  color: #6DB8F5;
  border: 1px solid rgba(109, 184, 245, 0.25);
}

.layer-badge--l2 {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.provider-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xs);
  padding: 5px 12px;
  transition: background var(--transition), box-shadow var(--transition);
}

.provider-card__link:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 12px rgba(251, 178, 106, 0.15);
}

.provider-card__link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Privacy badge */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #5CB87A;
  background: rgba(92, 184, 122, 0.1);
  border: 1px solid rgba(92, 184, 122, 0.25);
  border-radius: 5px;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.privacy-badge svg {
  width: 10px;
  height: 10px;
}

/* ===================================================
   Pricing
   =================================================== */

.pricing {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(28,29,33,0.4) 50%, var(--bg) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card--featured {
  border-color: var(--border-accent);
  background: linear-gradient(145deg, var(--surface) 0%, rgba(251, 178, 106, 0.04) 100%);
  box-shadow: 0 0 40px rgba(251, 178, 106, 0.08);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1A1400;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pricing-card__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.pricing-card__amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.pricing-card__period {
  font-size: 14px;
  color: var(--muted);
}

.pricing-card--featured .pricing-card__amount { color: var(--accent); }

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.pricing-card__features .feature--disabled { color: var(--muted); }

.feature-check {
  width: 16px;
  height: 16px;
  color: #5CB87A;
  flex-shrink: 0;
}

.feature-cross {
  width: 16px;
  height: 16px;
  color: var(--error);
  flex-shrink: 0;
  opacity: 0.5;
}

/* ===================================================
   Footer
   =================================================== */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--text); }

.footer__copy {
  font-size: 13px;
  color: var(--muted);
}

/* ===================================================
   Responsive
   =================================================== */

/* Tablet: 2-column provider grid */
@media (max-width: 1024px) {
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual { order: -1; }

  .hero__description { max-width: 100%; }

  .steps {
    flex-direction: column;
    gap: 16px;
  }

  .step-connector {
    transform: rotate(90deg);
    margin: -8px auto;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Nav */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 20px;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    z-index: 99;
  }

  .nav--open {
    transform: translateY(0);
  }

  .nav__link {
    font-size: 17px;
    color: var(--text);
  }

  .burger { display: flex; }

  /* Providers */
  .providers-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    max-width: 100%;
    flex-direction: column;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero { padding: 48px 0 64px; }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn { justify-content: center; }

  /* Network diagram */
  .network-diagram {
    gap: 4px;
  }

  .node {
    min-width: 60px;
    padding: 12px 8px;
  }

  .node svg { width: 22px; height: 22px; }
  .node-line { width: 14px; }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .network-diagram { gap: 2px; }
  .node-line { width: 8px; }
  .node { min-width: 52px; padding: 10px 6px; }
  .node span { font-size: 10px; }
}
