:root {
  --bg: #02070b;
  --panel: rgba(7, 18, 26, 0.92);
  --line: rgba(32, 217, 255, 0.34);
  --green: #49f07b;
  --cyan: #20d9ff;
  --text: #f0fbff;
  --muted: #9eb4bd;
  --soft-line: rgba(32, 217, 255, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #000;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.frame {
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 30px;
  background:
    radial-gradient(circle at 52% 20%, rgba(32, 217, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #02070b, #031019 66%, #02070b);
}

.page {
  overflow: hidden;
  border: 1px solid rgba(32, 217, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 10, 15, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(32, 217, 255, 0.18);
}
.brand { display: flex; align-items: center; min-width: 64px; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 14px 34px; color: #d6e8ed; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--green); }
.outline-btn {
  flex: 0 0 auto;
  padding: 13px 22px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: #ecfff3;
  font-weight: 800;
  font-size: 13px;
}
.outline-btn:hover,
.outline-btn:focus-visible,
.green-btn:hover,
.green-btn:focus-visible,
.mini-link:hover,
.mini-link:focus-visible {
  border-color: rgba(73, 240, 123, 0.95);
  outline: none;
  box-shadow: 0 0 0 2px rgba(73, 240, 123, 0.14);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.02fr) minmax(280px, 1fr) minmax(260px, 320px);
  gap: 20px;
  padding: 24px 30px 10px;
}
.hero-copy { min-width: 0; }
h1 {
  margin: 0 0 18px;
  max-width: 12ch;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 span { color: var(--green); }
p { margin: 0; color: var(--muted); line-height: 1.52; }
.network { width: 100%; height: 260px; object-fit: cover; }
.api-visual { width: 100%; height: auto; align-self: center; }

.feature-strip,
.cost-strip,
.card,
.cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(10, 25, 35, 0.92), rgba(5, 14, 21, 0.92));
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 30px 14px;
}
.feature-strip div {
  min-height: 76px;
  padding: 16px;
  border-right: 1px solid rgba(32, 217, 255, 0.14);
  color: #dceff5;
  font-size: 13px;
}
.feature-strip div:last-child { border-right: 0; }
.feature-strip strong,
.cost-strip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
}
.feature-strip span,
.cost-strip span { color: #dceff5; }

.cost-strip {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr 1.15fr;
  align-items: stretch;
  gap: 14px;
  margin: 0 30px 14px;
  padding: 14px;
  color: #dff6fb;
  font-size: 13px;
}
.cost-cell {
  display: flex;
  min-width: 0;
  max-width: 100%;
  min-height: 84px;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid rgba(32, 217, 255, 0.12);
  border-radius: 7px;
  background: rgba(2, 11, 17, 0.42);
}
.cost-cell small {
  display: block;
  margin-top: 4px;
  color: rgba(220, 239, 245, 0.66);
  font-size: 11px;
  line-height: 1.2;
}
.legacy-price,
.cost-strip .price,
.cost-strip .savings strong {
  display: block;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.legacy-price {
  margin-top: 2px;
  color: #dceff5;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1;
}
.cost-strip .price {
  color: var(--green);
  font-size: clamp(32px, 3vw, 42px);
  line-height: 0.92;
  text-shadow: 0 0 28px rgba(73, 240, 123, 0.34);
}
.gonka-cost {
  border-color: rgba(73, 240, 123, 0.28);
  background: linear-gradient(180deg, rgba(13, 39, 30, 0.62), rgba(2, 11, 17, 0.46));
}
.savings {
  border-color: rgba(73, 240, 123, 0.22);
}
.cost-strip .savings-line {
  display: flex;
  align-items: baseline;
  gap: 0.16em;
  max-width: 100%;
  margin-bottom: 2px;
  color: #ecfff3;
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.savings-prefix {
  color: #ecfff3;
}
.cost-strip .savings-number {
  color: var(--green);
  font-size: clamp(31px, 2.55vw, 38px);
  line-height: 0.92;
  text-shadow: 0 0 24px rgba(73, 240, 123, 0.28);
}
.savings-rest {
  display: block;
  max-width: 100%;
  color: #ecfff3;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: normal;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  gap: 18px;
  padding: 0 30px 14px;
}
.card {
  min-height: 250px;
  padding: 18px;
}
.card h2,
.cta h2 {
  margin: 0;
  color: var(--cyan);
  line-height: 1.1;
}
.card h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.num {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: white;
  background: linear-gradient(135deg, #34a3ff, var(--green));
}
.mini-network {
  width: 170px;
  height: auto;
  float: left;
  margin: 2px 20px 10px 0;
}
.link-list { display: grid; gap: 8px; }
.mini-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(32, 217, 255, 0.18);
  border-radius: 6px;
  color: #dff6fb;
  font-size: 12px;
}
.mini-link:hover { border-color: rgba(73, 240, 123, 0.72); }
.mini-link small { display: none; }
.link-text strong { font: inherit; font-weight: 600; }
.link-arrow {
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  padding: 2px 7px;
}
.empty-state { font-size: 13px; }

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr 300px;
  align-items: center;
  gap: 22px;
  min-height: 92px;
  margin: 0 30px 18px;
  overflow: hidden;
  padding: 0 36px;
}
.corner {
  position: absolute;
  top: 0;
  width: 230px;
  height: 92px;
  object-fit: cover;
  opacity: 0.9;
}
.corner.left { left: 0; }
.corner.right { right: 0; }
.cta-content {
  position: relative;
  z-index: 1;
  display: contents;
}
.rocket {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 30px;
}
.cta h2 { font-size: 24px; }
.cta p { position: relative; z-index: 1; font-size: 13px; }
.green-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  color: #041009;
  background: linear-gradient(135deg, var(--green), #20d9ff);
  font-size: 18px;
  font-weight: 900;
}

footer {
  padding: 16px 30px 22px;
  border-top: 1px solid rgba(32, 217, 255, 0.12);
  color: #7f9199;
  font-size: 12px;
}

@media (min-width: 1181px) {
  .frame {
    min-height: 100vh;
    padding: clamp(22px, 2.4vw, 34px) 28px;
  }
  .site-header {
    min-height: 68px;
    padding: 0 26px;
  }
  .brand { min-width: 160px; }
  .brand-logo { width: 58px; height: 58px; }
  .nav { gap: clamp(18px, 2.5vw, 36px); font-size: 13px; }
  .hero {
    grid-template-columns: minmax(330px, 0.96fr) minmax(320px, 1.04fr) minmax(260px, 0.78fr);
    align-items: center;
    gap: clamp(16px, 1.8vw, 24px);
    padding: clamp(20px, 2.1vw, 28px) 30px 12px;
  }
  h1 {
    max-width: 12.5ch;
    font-size: clamp(40px, 4.15vw, 58px);
  }
  .hero-copy p { max-width: 560px; font-size: clamp(14px, 1.24vw, 17px); }
  .network { height: clamp(230px, 21vw, 286px); }
  .api-visual { max-height: 286px; object-fit: contain; }
  .feature-strip div { min-height: 70px; padding: 14px 16px; }
  .cost-cell { min-height: 76px; }
  .card { min-height: 220px; }
  .cta { min-height: 84px; }
}

@media (max-width: 1180px) {
  .frame { padding: 18px 14px; }
  .site-header { flex-wrap: wrap; padding: 18px 18px 14px; }
  .brand { min-width: 0; }
  .brand-logo { width: 58px; height: 58px; }
  .nav {
    order: 3;
    width: 100%;
    gap: 12px 18px;
    white-space: normal;
    line-height: 1.25;
  }
  .outline-btn { margin-left: auto; }
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 22px 24px 12px;
  }
  h1 {
    max-width: 13ch;
    font-size: clamp(36px, 6vw, 52px);
    overflow-wrap: normal;
  }
  .network { grid-column: span 2; height: auto; max-height: 280px; object-fit: contain; }
  .api-visual { grid-column: span 2; max-height: 230px; object-fit: contain; }
  .cards { grid-template-columns: 1fr; }
  .cost-strip { grid-template-columns: 1fr 1fr; }
  .cost-cell { min-height: 78px; }
  .cta { grid-template-columns: 86px 1fr; padding: 18px; }
  .green-btn { grid-column: span 2; }
}

@media (max-width: 760px) {
  html,
  body { overflow-x: hidden; }
  .frame {
    width: 100%;
    min-height: 100vh;
    padding: 0;
  }
  .page {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }
  .brand-logo { width: 58px; height: 58px; }
  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 14px;
    white-space: normal;
    font-size: 12px;
  }
  .outline-btn {
    width: 100%;
    min-height: 42px;
    margin-left: 0;
    padding: 11px 14px;
  }
  .hero,
  .feature-strip,
  .cost-strip { grid-template-columns: 1fr; }
  .hero {
    gap: 16px;
    padding: 20px 18px 12px;
  }
  .hero-copy {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(28px, 7.55vw, 36px);
    line-height: 1.03;
    letter-spacing: -0.05em;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .hero-copy p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.5;
  }
  .network {
    grid-column: auto;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .api-visual {
    grid-column: auto;
    width: 100%;
    max-height: none;
    object-fit: contain;
  }
  .feature-strip,
  .cost-strip,
  .cards,
  .cta {
    margin-left: 18px;
    margin-right: 18px;
  }
  .feature-strip div {
    min-height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(32, 217, 255, 0.14);
  }
  .feature-strip div:last-child { border-bottom: 0; }
  .cost-strip { gap: 10px; padding: 12px; }
  .cost-cell { min-height: 72px; }
  .cards {
    padding-right: 0;
    padding-left: 0;
  }
  .card {
    min-height: auto;
    padding: 16px;
  }
  .card h2 {
    align-items: flex-start;
    font-size: 18px;
  }
  .mini-network {
    float: none;
    width: 100%;
    max-height: 130px;
    margin: 0 0 12px;
    object-fit: contain;
  }
  .mini-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
  }
  .link-arrow { align-self: flex-start; }
  .cta {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
  }
  .corner {
    width: 180px;
    opacity: 0.54;
  }
  .cta-content { display: grid; gap: 12px; }
  .rocket {
    width: 54px;
    height: 54px;
  }
  .cta h2 { font-size: 21px; }
  .green-btn {
    grid-column: auto;
    min-height: 48px;
    font-size: 16px;
  }
  footer { padding: 14px 18px 20px; }
}

@media (max-width: 390px) {
  .nav { gap: 9px 12px; }
  h1 { font-size: clamp(26px, 7.15vw, 31px); letter-spacing: -0.055em; }
  .hero,
  .site-header { padding-right: 16px; padding-left: 16px; }
  .feature-strip,
  .cost-strip,
  .cards,
  .cta { margin-right: 16px; margin-left: 16px; }
}
