:root {
  --ink: #101317;
  --muted: #66717d;
  --line: #dce3e8;
  --paper: #f7faf9;
  --white: #ffffff;
  --graphite: #151a1f;
  --teal: #00a99d;
  --teal-dark: #007d74;
  --amber: #ffb545;
  --green: #61c77b;
  --steel: #e8eef2;
  --shadow: 0 24px 70px rgba(18, 28, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: fixed;
  inset: 16px 20px auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(18, 23, 27, 0.76);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.footer-links,
.hero-actions,
.tabs,
.billing-toggle {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #071514;
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  justify-content: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--teal);
}

.header-action {
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.section-dark {
  color: var(--white);
  background: var(--graphite);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 138px 24px 58px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 14, 17, 0.96) 0%, rgba(10, 14, 17, 0.76) 38%, rgba(10, 14, 17, 0.2) 78%),
    linear-gradient(0deg, rgba(10, 14, 17, 0.94) 0%, rgba(10, 14, 17, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.final-cta h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 10vw, 128px);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.2vw, 23px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
}

.button-primary {
  background: var(--teal);
  color: #031311;
}

.button-primary:hover {
  background: #20c4b7;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.hero-command {
  display: flex;
  width: min(710px, 100%);
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 8, 10, 0.58);
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.hero-command code,
.generated-url code,
.library-card code {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.icon-button,
.tab-button,
.billing-toggle button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.icon-button {
  min-width: 72px;
  min-height: 38px;
  border-radius: 8px;
  background: var(--amber);
  color: #1a1202;
  font-weight: 850;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics div {
  padding: 14px;
  border-left: 2px solid var(--teal);
  background: rgba(255, 255, 255, 0.07);
}

.hero-metrics strong {
  display: block;
  font-size: 24px;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro-grid,
.split-section,
.security-section,
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 44px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.final-cta h2 {
  max-width: 820px;
  font-size: clamp(36px, 5vw, 66px);
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.quick-panel,
.network-board,
.price-card,
.library-card,
.feature-matrix article,
.security-grid div,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(20, 29, 35, 0.06);
}

.quick-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  font-weight: 850;
}

.status-dot {
  color: var(--teal-dark);
  font-size: 13px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  font: inherit;
}

.generated-url {
  padding: 14px;
  border-radius: 8px;
  background: #10171a;
  color: #d8f7f2;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.library-search {
  margin-bottom: 18px;
}

.library-grid,
.pricing-grid,
.feature-matrix,
.security-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.library-card,
.feature-matrix article,
.price-card {
  padding: 24px;
}

.library-card h3,
.feature-matrix h3,
.price-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.library-card p,
.feature-matrix p,
.price-card p,
.price-card li,
details p {
  color: var(--muted);
}

.package-tag,
.feature-icon {
  display: inline-grid;
  min-width: 46px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #e4f7f4;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.library-card code {
  display: block;
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  background: #f0f5f5;
}

.network-board {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(0, 169, 157, 0.1) 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(0, 169, 157, 0.1) 40px);
}

.map-core,
.map-node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.map-core {
  inset: 50% auto auto 50%;
  width: 164px;
  height: 74px;
  transform: translate(-50%, -50%);
  background: var(--graphite);
  color: var(--white);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.map-node {
  width: 86px;
  height: 70px;
  border: 1px solid rgba(0, 169, 157, 0.24);
  background: var(--white);
}

.map-node span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.map-node strong {
  color: var(--teal-dark);
}

.node-a { left: 12%; top: 18%; }
.node-b { right: 16%; top: 20%; }
.node-c { right: 10%; bottom: 16%; }
.node-d { left: 14%; bottom: 18%; }

.map-line {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--amber), transparent);
}

.line-a {
  transform: rotate(24deg);
}

.line-b {
  transform: rotate(-22deg);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.feature-list div,
.security-grid div {
  display: grid;
  gap: 4px;
}

.feature-list span,
.security-grid span {
  color: var(--muted);
}

.code-section {
  width: 100%;
  max-width: none;
  padding: 92px max(20px, calc((100vw - 1180px) / 2));
  background: #101317;
  color: var(--white);
}

.code-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.tabs {
  gap: 8px;
  margin-bottom: 14px;
}

.tab-button,
.billing-toggle button {
  min-height: 40px;
  border-radius: 8px;
  padding: 8px 14px;
  background: #e8eeee;
  color: var(--ink);
  font-weight: 850;
}

.tab-button.is-active,
.billing-toggle button.is-active {
  background: var(--teal);
  color: #041716;
}

.code-panel {
  display: none;
  min-height: 236px;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 26px;
  background: #050708;
  color: #d8f7f2;
  font-size: 15px;
}

.code-panel.is-active {
  display: block;
}

.feature-matrix {
  grid-template-columns: repeat(4, 1fr);
}

.security-section {
  width: 100%;
  max-width: none;
  padding: 92px max(20px, calc((100vw - 1180px) / 2));
  background: var(--white);
}

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

.security-grid div {
  padding: 22px;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.comparison-table [role="row"] {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  min-height: 58px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.comparison-table [role="row"]:last-child {
  border-bottom: 0;
}

.comparison-table span,
.comparison-table strong {
  padding: 16px;
}

.table-head {
  background: #11181b;
  color: var(--white);
  font-weight: 900;
}

.billing-toggle {
  gap: 8px;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.price-card.highlighted {
  border-color: rgba(0, 169, 157, 0.55);
  box-shadow: var(--shadow);
}

.price {
  font-size: 44px;
  line-height: 1;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.price-card .button-secondary {
  border-color: var(--line);
  color: var(--ink);
}

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

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.final-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 40px;
  padding: 44px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(0, 169, 157, 0.22), transparent 42%),
    var(--graphite);
}

.final-cta h2 {
  max-width: 800px;
  font-size: clamp(34px, 4.8vw, 58px);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-links {
  justify-content: center;
  gap: 18px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero-metrics,
  .intro-grid,
  .split-section,
  .security-section,
  .final-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .library-grid,
  .pricing-grid,
  .feature-matrix,
  .security-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer,
  .footer-links {
    justify-items: start;
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    inset: 10px 10px auto;
    width: calc(100% - 20px);
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 820px;
    padding: 110px 20px 44px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-command {
    align-items: stretch;
    flex-direction: column;
  }

  .icon-button {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 68px 0;
  }

  .trust-strip,
  .library-grid,
  .pricing-grid,
  .feature-matrix,
  .security-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip span {
    min-height: 54px;
  }

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

  .comparison-table [role="row"] {
    min-width: 640px;
  }

  .network-board {
    min-height: 360px;
  }

  .map-core {
    width: 140px;
  }

  .map-node {
    width: 72px;
    height: 62px;
  }

  .final-cta {
    width: calc(100% - 28px);
    padding: 28px;
  }
}
