/* Шрифты локально (OFL 1.1, см. licenses/). Variable, ось wght. */
@font-face { font-family: 'Geologica'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/geologica-cyrillic.a7dc739e.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Geologica'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/geologica-latin.b14f1ede.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/assets/fonts/jetbrains-mono-cyrillic.d274604c.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/assets/fonts/jetbrains-mono-latin.18be4527.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #0d0f12;
  --bg2: #111418;
  --bg3: #181c22;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #e8eaed;
  --text2: #8b9099;
  --text3: #565c66;
  --accent: #3b82f6;
  --accent2: #1d4ed8;
  --accent-dim: rgba(59,130,246,0.12);
  --accent-glow: rgba(59,130,246,0.25);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.1);
  --radius: 6px;
  --radius2: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── GRID OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; font-weight: 500; }

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

section { padding: 100px 0; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,15,18,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent2) !important; color: #fff !important; }

/* ─── HERO ─── */
#hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  color: #93c5fd;
  margin-bottom: 32px;
  font-family: 'JetBrains Mono', monospace;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

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

.hero-title {
  max-width: 720px;
  margin-bottom: 24px;
  color: #f1f3f5;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text2);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--border2);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item {}
.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text3);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── FEATURES ─── */
#features { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--text);
}

.section-sub {
  font-size: 1rem;
  color: var(--text2);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  overflow: hidden;
}

.feature-card {
  background: var(--bg2);
  padding: 40px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg3); }

.feature-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 1.1rem;
}

.feature-title {
  margin-bottom: 10px;
  color: var(--text);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── NETWORK MAP ─── */
#network { }

.network-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.network-map-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.network-map-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.map-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.map-title-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text3);
  margin-left: 4px;
}

.network-svg-wrap {
  position: relative;
  z-index: 1;
}

.network-info {
  padding-top: 16px;
}

.network-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.network-section-title {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.network-section-sub {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 32px;
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.node-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  animation: pulse 2.5s infinite;
}

.node-status.planned {
  background: var(--text3);
  box-shadow: none;
  animation: none;
}

.node-details { flex: 1; }
.node-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 3px;
}
.node-host {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text3);
}

.node-badge {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 400;
}
.badge-live {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.2);
}
.badge-soon {
  background: rgba(255,255,255,0.04);
  color: var(--text3);
  border: 1px solid var(--border);
}

/* ─── PRICING ─── */
#pricing { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.pricing-card:hover { border-color: var(--border2); transform: translateY(-2px); }

.pricing-card.featured {
  border-color: rgba(59,130,246,0.4);
  background: linear-gradient(160deg, rgba(59,130,246,0.05) 0%, var(--bg) 60%);
}

.featured-tag {
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  padding: 3px 14px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 10px;
}

.plan-price-wrap {
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price-note {
  font-size: 0.8rem;
  color: var(--text3);
  margin-top: 6px;
  font-weight: 300;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 300;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0 24px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text2);
  font-weight: 300;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-btn {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--border2);
  color: var(--text2);
}
.plan-btn:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }

.pricing-card.featured .plan-btn {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.pricing-card.featured .plan-btn:hover { background: var(--accent2); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text3);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 24px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text3);
  font-family: 'JetBrains Mono', monospace;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.78rem;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text2); }

/* ─── SCROLL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── NAV: активный пункт ─── */
.nav-links a[aria-current="page"] { color: var(--text); }

/* ─── ССЫЛКИ В ТЕКСТЕ ─── */
.feature-desc a, .network-section-sub a { color: var(--accent); text-decoration: none; }
.feature-desc a:hover, .network-section-sub a:hover { text-decoration: underline; }

/* ─── POP LIST (вместо карты) ─── */
.pop-table { width: 100%; border-collapse: collapse; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.pop-table th { text-align: left; font-weight: 400; color: var(--text3); padding: 0 14px 10px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pop-table td { padding: 7px 14px; border-top: 1px solid var(--border); color: var(--text2); }
.pop-table td.code { color: var(--text); }
.pop-table tr.group td { color: var(--text3); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 14px; }
.pop-ok { color: var(--green); }
.pop-ok::before { content: '●'; margin-right: 8px; font-size: 0.6rem; vertical-align: 2px; }

/* ─── ВНУТРЕННИЕ СТРАНИЦЫ ─── */
.page-header { padding: 140px 0 56px; border-bottom: 1px solid var(--border); }
.page-header .section-sub { margin-bottom: 0; max-width: 620px; }
.page-body { padding: 72px 0 100px; }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin: 48px 0 14px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; color: var(--text); }
.prose p, .prose li { color: var(--text2); font-weight: 300; font-size: 0.95rem; line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; color: var(--text); background: var(--bg3); padding: 1px 6px; border-radius: 4px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text2); font-weight: 300; font-size: 0.875rem; line-height: 1.65; }
.card a { color: var(--accent); text-decoration: none; font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* ─── STATUS ─── */
.status-banner { display: flex; align-items: center; gap: 14px; padding: 22px 26px; border: 1px solid rgba(34,197,94,0.25); background: var(--green-dim); border-radius: var(--radius2); margin-bottom: 40px; }
.status-banner .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); flex-shrink: 0; }
.status-banner strong { font-weight: 500; }
.status-list { border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; margin-bottom: 40px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg2); }
.status-row:first-child { border-top: 0; }
.status-row .name { font-size: 0.925rem; }
.status-row .meta { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text3); margin-right: 20px; }
.status-row .state { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--green); }
.status-h { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 14px; }

@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .page-header { padding: 110px 0 40px; }
  .status-row .meta { display: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .network-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
