:root {
  --ink: #101828;
  --muted: #5f6b7a;
  --line: #d8e0ea;
  --surface: #ffffff;
  --soft: #f5f8fc;
  --blue: #1976d2;
  --blue-dark: #0f4f95;
  --teal: #03a99a;
  --green: #2e9f50;
  --orange: #e98817;
  --red: #d73c34;
  --purple: #8a4cc2;
  --shadow: 0 24px 80px rgba(16, 24, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 224, 234, 0.8);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--soft);
}

.nav-links .nav-cta {
  color: #ffffff;
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: 56px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 60px 0 44px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #b9d7f4;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #eef7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(54px, 8vw, 94px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 32px rgba(25, 118, 210, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--blue-dark);
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.hero-stats strong {
  color: var(--ink);
}

.phone-stage {
  display: flex;
  justify-content: center;
  padding: 18px;
}

.phone {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 18.4;
  padding: 16px;
  border: 1px solid #1f2937;
  border-radius: 34px;
  background: #101828;
  box-shadow: var(--shadow);
}

.phone-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 6px;
  border-radius: 999px;
  background: #344054;
  transform: translateX(-50%);
}

.app-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 26px 14px 14px;
  border-radius: 24px;
  background: #f7f9fc;
  overflow: hidden;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 10px;
}

.app-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.screen-title,
.screen-subtitle,
.endpoint {
  display: block;
}

.screen-title {
  font-size: 14px;
  font-weight: 800;
}

.screen-subtitle,
.endpoint {
  color: var(--muted);
  font-size: 12px;
}

.request-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.request-card.active {
  border-color: #a8cef2;
  box-shadow: 0 10px 24px rgba(25, 118, 210, 0.12);
}

.request-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.method {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.method.get {
  background: var(--green);
}

.method.post {
  background: var(--blue);
}

.request-name {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2f7;
}

.tab {
  min-height: 30px;
  padding: 5px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.tab.active {
  color: var(--blue-dark);
  background: #ffffff;
}

.response-panel {
  flex: 1;
  min-height: 0;
  padding: 12px;
  border-radius: 8px;
  color: #d9f2e6;
  background: #172033;
  overflow: hidden;
}

.response-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #9fb0c5;
  font-size: 12px;
  font-weight: 800;
}

.status-ok {
  color: #65d886;
}

pre {
  margin: 0;
  overflow: auto;
  font: 500 13px/1.6 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-item {
  min-width: 0;
}

.strip-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.strip strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.feature-card,
.step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feature-card p,
.step p,
.curl-copy p,
.download p {
  color: var(--muted);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 32px;
  margin-bottom: 18px;
  padding: 4px 8px;
  border-radius: 7px;
  color: #ffffff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--purple);
}

.feature-card:nth-child(3) .feature-icon {
  background: var(--teal);
}

.feature-card:nth-child(4) .feature-icon {
  background: var(--orange);
}

.workflow {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  background: #eef4fb;
}

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

.step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.curl-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 28px;
  align-items: center;
}

.terminal {
  border: 1px solid #2b3444;
  border-radius: 8px;
  color: #e6edf6;
  background: #111827;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid #2b3444;
  background: #182233;
}

.terminal-header span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-header span:nth-child(1) {
  background: var(--red);
}

.terminal-header span:nth-child(2) {
  background: #f6bd3d;
}

.terminal-header span:nth-child(3) {
  background: var(--green);
}

.terminal pre {
  padding: 22px;
}

.demo-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.demo-controls {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.demo-tab {
  min-width: 96px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.demo-tab.active {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.demo-output {
  min-height: 240px;
  padding: 24px;
  color: #172033;
  background: #ffffff;
}

.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 52px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(16, 24, 40, 0.08);
}

.download-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 14px;
}

.download h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 44px);
}

.download p {
  max-width: 660px;
  margin-bottom: 0;
}

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

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

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.16);
  }

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

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

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .steps,
  .strip {
    grid-template-columns: 1fr;
  }

  .download {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero,
  .section,
  .download,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    gap: 28px;
    padding-top: 40px;
  }

  .hero-actions,
  .button,
  .demo-controls {
    width: 100%;
  }

  .button,
  .demo-tab {
    flex: 1;
  }

  .hero-stats {
    flex-direction: column;
  }

  .phone-stage {
    padding: 0;
  }

  .phone {
    width: min(100%, 330px);
  }

  .section {
    padding: 58px 0;
  }

  .workflow {
    padding-right: 12px;
    padding-left: 12px;
  }

  .demo-controls {
    overflow-x: auto;
  }

  .download {
    padding: 24px;
  }

  .footer {
    flex-direction: column;
  }
}
