:root {
  --bg: #f7f9f8;
  --surface: #ffffff;
  --surface-2: #edf3f1;
  --ink: #152120;
  --muted: #596967;
  --line: #d8e2df;
  --accent: #16746b;
  --accent-2: #9fd8c7;
  --deep: #20383a;
  --shadow: 0 24px 60px rgba(19, 36, 38, 0.11);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

svg {
  display: block;
}

.page-shell {
  min-height: 100vh;
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(var(--max), calc(100% - 32px));
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 12px 14px;
  background: rgba(247, 249, 248, 0.82);
  border: 1px solid rgba(216, 226, 223, 0.86);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.brand,
.desktop-nav,
.hero-actions,
.status-dot,
.connection-panel > div {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--deep);
  border-radius: 8px;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.desktop-nav {
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a,
.header-cta {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid var(--deep);
  border-radius: 8px;
  color: var(--surface);
  background: var(--deep);
  font-size: 14px;
  font-weight: 700;
}

.header-cta:hover,
.button.primary:hover {
  background: #102425;
  border-color: #102425;
}

.section-pad {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 64px;
  padding-top: 66px;
}

.hero-copy h1,
.section-heading h2,
.network-copy h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(44px, 6.2vw, 82px);
  font-weight: 800;
}

.hero-copy p,
.section-heading p,
.network-copy p {
  color: var(--muted);
  font-size: 18px;
}

.hero-copy p {
  max-width: 620px;
  margin: 26px 0 0;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--surface);
  background: var(--accent);
  border-color: var(--accent);
}

.button.secondary {
  color: var(--deep);
  background: var(--surface);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 44px 0 0;
}

.hero-stats div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.hero-stats dt {
  color: var(--deep);
  font-size: 28px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.network-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 16%, rgba(159, 216, 199, 0.28), transparent 30%),
    linear-gradient(145deg, #ffffff, #edf3f1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 33, 32, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 33, 32, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 76%);
}

.route-map {
  position: relative;
  width: min(100%, 620px);
  height: auto;
}

.map-contour {
  fill: rgba(255, 255, 255, 0.62);
  stroke: rgba(32, 56, 58, 0.12);
  stroke-width: 1.5;
}

.route {
  fill: none;
  stroke: url(#lineGradient);
  stroke-dasharray: 9 13;
  stroke-linecap: round;
  stroke-width: 2.4;
  animation: routeFlow 7s linear infinite;
}

.route-b {
  animation-duration: 9s;
  opacity: 0.72;
}

.route-c {
  animation-duration: 11s;
  opacity: 0.56;
}

.node circle {
  fill: var(--surface);
  stroke: rgba(32, 56, 58, 0.16);
  stroke-width: 1.2;
}

.node path {
  fill: none;
  stroke: var(--deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.node.shield circle {
  fill: var(--deep);
}

.node.shield path {
  stroke: var(--surface);
}

.node.small path {
  stroke-width: 1.8;
}

.connection-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  min-width: 238px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 226, 223, 0.92);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(19, 36, 38, 0.12);
}

.connection-panel > div {
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.connection-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.connection-panel small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(22, 116, 107, 0.42);
  animation: pulse 2.6s ease-out infinite;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading.compact {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.network-copy h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
}

.section-heading p,
.network-copy p {
  margin: 16px 0 0;
  max-width: 680px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-item,
.price-card {
  background: var(--surface);
  padding: 30px;
}

.icon-frame {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: var(--surface-2);
  border-radius: 8px;
}

.icon-frame svg {
  width: 25px;
  height: 25px;
}

.icon-frame path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature-item h3,
.price-card h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.feature-item p,
.price-card p,
.faq p {
  color: var(--muted);
}

.feature-item p,
.price-card p {
  margin: 0;
}

.network {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
}

.node-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-head,
.node-row {
  display: grid;
  grid-template-columns: 1fr 98px 140px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}

.table-head {
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.node-row {
  border-top: 1px solid var(--line);
  color: var(--deep);
  font-size: 15px;
  font-weight: 700;
}

meter {
  width: 100%;
  height: 8px;
}

meter::-webkit-meter-bar {
  background: #e6eeeb;
  border: 0;
  border-radius: 999px;
}

meter::-webkit-meter-optimum-value {
  background: var(--accent);
  border-radius: 999px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-card.featured {
  border-color: rgba(22, 116, 107, 0.38);
  box-shadow: var(--shadow);
}

.price {
  margin: 16px 0 10px !important;
  color: var(--ink) !important;
  font-size: 34px;
  font-weight: 800;
}

.price-card .button {
  width: 100%;
  margin-top: 26px;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

summary {
  cursor: pointer;
  color: var(--deep);
  font-size: 18px;
  font-weight: 800;
}

summary::marker {
  color: var(--accent);
}

details p {
  margin: 12px 0 0;
  max-width: 660px;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 22px;
}

.support-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--deep);
  border-radius: 8px;
  color: var(--surface);
  background: var(--deep);
  font-size: 14px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.support-link:hover {
  background: #102425;
  border-color: #102425;
  transform: translateY(-1px);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

.legal-links a {
  color: var(--muted);
  font-weight: 650;
  transition: color 180ms ease;
}

.legal-links a:hover {
  color: var(--ink);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes routeFlow {
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(22, 116, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 116, 107, 0);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero,
  .network {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 38px;
    padding-top: 58px;
  }

  .network-visual {
    min-height: 460px;
  }

  .feature-row,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .section-pad,
  .site-footer {
    width: calc(100vw - 44px);
    max-width: calc(100vw - 44px);
  }

  .site-header {
    margin-top: 10px;
    padding: 10px;
  }

  .brand span:last-child {
    display: inline;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-cta {
    max-width: 118px;
    padding: 9px 10px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .section-pad {
    padding: 64px 0;
  }

  .hero-copy h1 {
    max-width: calc(100vw - 44px);
    font-size: 30px;
    line-height: 1.12;
  }

  .hero-copy p,
  .section-heading p,
  .network-copy p {
    max-width: calc(100vw - 44px);
    font-size: 15px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions {
    align-items: stretch;
    width: calc(100vw - 44px);
    max-width: calc(100vw - 44px);
  }

  .hero-actions .button {
    width: calc(100vw - 44px);
    max-width: calc(100vw - 44px);
  }

  .network-visual {
    width: 100%;
    min-height: 400px;
  }

  .connection-panel {
    right: 12px;
    bottom: 12px;
    min-width: min(246px, calc(100% - 24px));
  }

  .table-head,
  .node-row {
    grid-template-columns: 1fr 70px;
  }

  .table-head span:last-child,
  .node-row meter {
    display: none;
  }

  .feature-item,
  .price-card {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .legal-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
