:root {
  --green: #32d074;
  --green-dark: #15803d;
  --ink: #172033;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #e6eaf0;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --blue: #2563eb;
  --cyan: #0891b2;
  --amber: #f59e0b;
  --rose: #e11d48;
  --shadow: 0 20px 60px rgba(21, 31, 52, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f8fafc;
  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;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(230, 234, 240, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--ink);
}

.brand.compact {
  margin-bottom: 10px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ecfdf3;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: var(--green);
}

.brand-mark circle {
  fill: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--green-dark);
}

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

.ghost-button,
.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.ghost-button {
  color: var(--ink);
  background: #fff;
}

.solid-button {
  border-color: var(--green);
  color: #063a1c;
  background: var(--green);
}

.solid-button:hover {
  border-color: #24bd64;
  background: #24bd64;
}

.large {
  min-height: 48px;
  padding-inline: 18px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 72px);
  padding: 72px 0 64px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.25rem, 8vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
}

.lead {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 34px 0 0;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-metrics dt {
  font-size: 1.45rem;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.browser-frame,
.code-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-frame {
  transform: rotate(1deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-bar span:nth-child(1) {
  background: var(--rose);
}

.browser-bar span:nth-child(2) {
  background: var(--amber);
}

.browser-bar span:nth-child(3) {
  background: var(--green);
}

.browser-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 74px 1fr;
  min-height: 420px;
  background: var(--surface-alt);
}

.dashboard-preview aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  background: #172033;
}

.dashboard-preview aside span {
  width: 38px;
  height: 7px;
  border-radius: 99px;
  background: #42526c;
}

.dashboard-preview aside .active-line {
  width: 42px;
  background: var(--green);
}

.mini-logo {
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--green);
}

.dashboard-main {
  padding: 22px;
}

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

.stat-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat-grid span,
.payload-box span,
.result-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.32rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.map-card,
.bar-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.map-card {
  display: grid;
  place-items: center;
}

.map-card svg {
  width: 82%;
  max-height: 230px;
}

.map-card path:first-child {
  fill: #dbeafe;
  stroke: var(--blue);
  stroke-width: 2;
}

.map-card path:nth-child(2) {
  fill: #dcfce7;
  stroke: var(--green-dark);
  stroke-width: 2;
}

.map-card circle {
  fill: var(--amber);
  opacity: 0.85;
}

.bar-card {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 22px;
}

.bar-card span {
  flex: 1;
  min-height: 34px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

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

.section-heading p,
.demo-grid p,
.feature-grid p,
.endpoint-card p {
  color: var(--muted);
}

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

.endpoint-card,
.feature-grid article,
.price-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.method {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #064e3b;
  background: #d1fae5;
  font-size: 0.78rem;
  font-weight: 850;
}

.code-panel {
  position: relative;
  margin-bottom: 80px;
  background: #101828;
}

.code-tabs {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #d0d5dd;
  background: transparent;
}

.tab-button.active {
  color: #052e16;
  border-color: var(--green);
  background: var(--green);
}

.copy-button {
  position: absolute;
  top: 15px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #d0d5dd;
  background: rgba(255, 255, 255, 0.04);
}

.copy-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.copy-button.copied {
  color: #052e16;
  border-color: var(--green);
  background: var(--green);
}

pre {
  margin: 0;
  overflow: auto;
}

code {
  font-family: "Cascadia Code", Consolas, Monaco, monospace;
}

.code-panel pre {
  min-height: 265px;
  padding: 20px;
  color: #e5edf8;
  font-size: 0.9rem;
}

.demo-band {
  padding: 76px 0;
  background: #eef6ff;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1.15fr);
  gap: 34px;
  align-items: start;
}

.search-form {
  margin-top: 24px;
}

.search-form label {
  display: block;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.search-form input {
  width: 100%;
  min-height: 46px;
  margin-bottom: 0;
  padding: 10px 13px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.search-row .solid-button {
  min-width: 112px;
  min-height: 46px;
  padding-inline: 18px;
}

.result-panel {
  padding: 18px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.result-header strong {
  color: var(--green-dark);
}

.demo-json {
  min-height: 250px;
  max-height: 420px;
  padding: 14px;
  border-radius: 8px;
  color: #e5edf8;
  background: #101828;
  font-size: 0.86rem;
  white-space: pre;
}

.payload-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #101828;
}

.payload-box span {
  color: #98a2b3;
}

.payload-box pre {
  margin-top: 10px;
  color: #e5edf8;
  font-size: 0.86rem;
}

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

.pricing-grid {
  margin-bottom: 76px;
}

.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 390px;
}

.price-card.featured {
  border-color: rgba(50, 208, 116, 0.72);
  box-shadow: var(--shadow);
}

.plan-name {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
}

.plan-copy {
  color: var(--muted);
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}

.price-card li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.price-card .ghost-button,
.price-card .solid-button {
  width: 100%;
}

.feature-grid {
  margin-bottom: 80px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  padding: 42px 32px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

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

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.site-footer h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-page {
  max-width: 880px;
  padding: 70px 0;
}

.legal-page h1 {
  margin-bottom: 6px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.legal-date {
  color: var(--muted);
}

.legal-page section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.legal-page section:last-child {
  border-bottom: 0;
}

.legal-page h2 {
  font-size: 1.3rem;
}

.legal-page p {
  color: var(--ink-soft);
}

@media (max-width: 940px) {
  .site-header {
    padding: 0 20px;
  }

  .main-nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 700px;
  }

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

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

}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions a {
    flex: 1;
  }

  .section-shell {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    padding-top: 46px;
  }

  .hero-metrics,
  .stat-grid,
  .chart-row,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dashboard-preview aside {
    display: none;
  }

  .browser-frame {
    transform: none;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row .solid-button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }
}
