@import url("https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap");

:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ef;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --soft-2: #eef5fb;
  --blue: #0b4f8a;
  --blue-2: #1167ae;
  --cyan: #18a4c8;
  --green: #16a56a;
  --orange: #f59e0b;
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 226, 239, 0.85);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand img {
  width: 126px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #344054;
  font-size: 15px;
}

.nav-links a,
.dropdown-toggle {
  border: 0;
  background: transparent;
  padding: 10px 11px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-links a:hover,
.dropdown-toggle:hover,
.nav-links a.active {
  background: var(--soft-2);
  color: var(--blue);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 248px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: grid;
}

.dropdown-menu a {
  display: block;
  padding: 11px 12px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--blue-2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 56px;
  background:
    radial-gradient(circle at 85% 10%, rgba(24, 164, 200, 0.16), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 79, 138, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 138, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 50px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.lead {
  max-width: 760px;
  color: #344054;
  font-size: clamp(19px, 2vw, 23px);
}

.copy {
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: var(--blue-2);
}

.button.secondary {
  background: #fff;
  color: var(--blue);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--blue);
}

.hero-panel {
  position: relative;
  min-height: 530px;
  border: 1px solid rgba(11, 79, 138, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 79, 138, 0.08), rgba(24, 164, 200, 0.06));
}

.dashboard {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dash-logo {
  width: 92px;
}

.status-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #067647;
  background: #ecfdf3;
  font-size: 13px;
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric,
.workflow-card,
.code-card,
.panel-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric {
  padding: 14px;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
}

.metric span,
.workflow-card span,
.panel-block span {
  color: var(--muted);
  font-size: 13px;
}

.workflow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.workflow-card,
.panel-block {
  padding: 16px;
}

.progress {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-2);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.code-card {
  padding: 18px;
  background: #101828;
  color: #d1e9ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  overflow: hidden;
}

.code-card span {
  color: #7dd3fc;
}

.section {
  padding: 78px 0;
}

.section.soft {
  background: var(--soft);
}

.pricing-section {
  padding-top: 22px;
}

.section.dark {
  background: #111827;
  color: #fff;
}

.section.dark .copy,
.section.dark .section-kicker {
  color: #cbd5e1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 32px;
}

.section-head p {
  max-width: 580px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  min-height: 100%;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card:hover {
  border-color: rgba(11, 79, 138, 0.38);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--soft-2);
  color: var(--blue);
  font-weight: 700;
}

.card-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 46px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature-list li::before {
  content: "";
  width: 10px;
  min-width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.module-grid span {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #344054;
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.timeline-step {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.timeline-step:last-child {
  border-right: 0;
}

.timeline-step b {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 14px;
}

.page-hero {
  padding: 78px 0 48px;
  background:
    radial-gradient(circle at 78% 14%, rgba(22, 165, 106, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbff, #fff);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
}

.compact-hero {
  padding: 24px 0 14px;
}

.compact-hero h1 {
  max-width: 720px;
  margin-bottom: 8px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.04;
}

.compact-hero .lead {
  max-width: 760px;
  font-size: 17px;
}

.compact-hero .hero-actions {
  margin-top: 16px;
}

.compact-hero-grid {
  display: grid;
  gap: 0;
}

.summary-panel {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-panel .panel-block + .panel-block {
  margin-top: 12px;
}

.api-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.api-shell > * {
  min-width: 0;
}

.api-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 7px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.api-sidebar a {
  padding: 9px 10px;
  border-radius: var(--radius);
  color: #344054;
}

.api-sidebar a:hover {
  background: var(--soft-2);
  color: var(--blue);
}

.api-content {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.api-catalog {
  display: grid;
  gap: 16px;
}

.api-product {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.api-product-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.api-product-head h3 {
  margin-bottom: 0;
  font-size: 28px;
}

.api-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.api-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.api-features li {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: #344054;
}

.api-features code {
  color: var(--blue);
  font-weight: 700;
}

.api-block {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.pricing-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 18px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.pricing-card.featured {
  border-color: rgba(11, 79, 138, 0.48);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}

.pricing-top {
  min-height: 142px;
}

.popular-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.plan-badge {
  width: max-content;
  margin-bottom: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.price {
  color: var(--ink);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.credits {
  display: block;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--blue);
}

.plan-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #344054;
}

.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan-features li::before {
  content: "";
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--green), #22c55e);
}

.pricing-footer {
  margin-top: auto;
}

.pricing-card .button {
  width: 100%;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.account-grid.single {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}

.form-panel,
.dashboard-card {
  min-width: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}

.stack-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

.stack-form input:focus {
  outline: 2px solid rgba(17, 103, 174, 0.18);
  border-color: var(--blue);
}

.notice {
  margin: 14px 0;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.notice.success {
  background: #ecfdf3;
  color: #067647;
  border-color: #abefc6;
}

.notice.error {
  background: #fff1f0;
  color: #b42318;
  border-color: #fecdca;
}

.payment-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

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

.dashboard-card {
  display: grid;
  gap: 12px;
}

.credit-purchase {
  display: grid;
  gap: 9px;
}

.credit-purchase .button {
  width: 100%;
  min-height: 58px;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.credit-purchase .button span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.secret-field {
  display: grid;
  gap: 7px;
}

.secret-field label {
  color: #344054;
  font-weight: 700;
}

.secret-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.secret-row input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: 13px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.icon-button {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--blue);
}

pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #101828;
  color: #d1e9ff;
  font-size: 13px;
}

.logos-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.logo-tile {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #475467;
  font-weight: 700;
  text-align: center;
}

.contact-band {
  padding: 42px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 79, 138, 0.95), rgba(17, 103, 174, 0.92)),
    var(--blue);
  color: #fff;
}

.contact-band p {
  color: #d1e9ff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
}

.site-footer {
  padding: 42px 0;
  background: #0b1220;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 26px;
}

.footer-grid img {
  width: 112px;
  filter: brightness(0) invert(1);
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 4px;
  }

  .nav-cta {
    display: none;
  }

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

  .cards,
  .pricing-grid,
  .pricing-grid.three-columns,
  .module-grid,
  .timeline,
  .logos-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .api-shell,
  .account-grid,
  .dashboard-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .api-sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .api-features {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero,
  .page-hero,
  .section {
    padding: 52px 0;
  }

  .brand img {
    width: 104px;
  }

  .hero-panel {
    min-height: auto;
  }

  .metrics,
  .workflow,
  .cards,
  .pricing-grid,
  .pricing-grid.three-columns,
  .module-grid,
  .timeline,
  .logos-row,
  .contact-grid,
  .dashboard-grid,
  .api-sidebar {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .timeline-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-step:last-child {
    border-bottom: 0;
  }

  .contact-band {
    padding: 26px;
  }

  .api-product-head {
    display: block;
  }

  .api-product-head .button {
    width: 100%;
    margin-top: 14px;
  }

  .api-card-actions {
    display: grid;
    margin-top: 14px;
  }
}
