:root {
  --canvas: #f3ead8;
  --canvas-soft: #faf4e8;
  --canvas-deep: #eadbbf;
  --ink: #13201e;
  --muted: #556661;
  --muted-strong: #3f504c;
  --panel: rgba(255, 250, 241, 0.72);
  --panel-solid: rgba(255, 252, 247, 0.92);
  --panel-dark: #122523;
  --line: rgba(19, 32, 30, 0.1);
  --line-strong: rgba(19, 32, 30, 0.18);
  --teal: #12756d;
  --teal-dark: #0b4d49;
  --teal-soft: rgba(18, 117, 109, 0.14);
  --orange: #e97848;
  --gold: #d7a448;
  --cream: #fff9ef;
  --shadow-xl: 0 28px 90px rgba(52, 45, 31, 0.18);
  --shadow-lg: 0 18px 46px rgba(46, 40, 29, 0.11);
  --radius-2xl: 32px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(18, 117, 109, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(233, 120, 72, 0.18), transparent 22%),
    radial-gradient(circle at 16% 72%, rgba(215, 164, 72, 0.16), transparent 28%),
    linear-gradient(180deg, #faf3e7 0%, var(--canvas) 38%, #f7efe1 100%);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.42;
}

body::before {
  width: 20rem;
  height: 20rem;
  right: -5rem;
  top: 10rem;
  background: radial-gradient(circle, rgba(18, 117, 109, 0.26), transparent 66%);
}

body::after {
  width: 24rem;
  height: 24rem;
  left: -8rem;
  bottom: 14%;
  background: radial-gradient(circle, rgba(233, 120, 72, 0.2), transparent 66%);
}

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

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

button,
select {
  font: inherit;
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
}

.page-shell {
  position: relative;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.ambient-grid {
  position: absolute;
  inset: 4rem 1rem auto;
  height: 46rem;
  border-radius: 2rem;
  background-image:
    linear-gradient(rgba(19, 32, 30, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 30, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
  pointer-events: none;
  z-index: -1;
}

.topbar,
.hero-copy,
.hero-panel,
.signal-strip,
.feature-card,
.endpoint-card,
.playground-card,
.code-card,
.footer {
  background: var(--panel);
  border: 1px solid rgba(19, 32, 30, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.topbar,
.hero-copy,
.hero-panel,
.playground-card,
.code-card,
.footer {
  border-radius: var(--radius-2xl);
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  background: rgba(255, 250, 242, 0.8);
  box-shadow: 0 18px 52px rgba(40, 33, 23, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand img,
.footer-brand img {
  width: 2.4rem;
  height: 2.4rem;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy span {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
}

.topnav a {
  position: relative;
  padding-bottom: 0.2rem;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.topnav a:hover::after {
  transform: scaleX(1);
}

.status-badge,
.hero-pill-row span,
.mini-pill,
.panel-meta span,
.status-pill,
.method,
.quick-request {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-badge {
  flex-shrink: 0;
  color: var(--teal-dark);
  background: rgba(18, 117, 109, 0.12);
  border: 1px solid rgba(18, 117, 109, 0.14);
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #15a48d, #0b4d49);
  box-shadow: 0 0 0 0 rgba(18, 117, 109, 0.36);
  animation: pulse 1.8s infinite;
}

.hero,
.section-grid,
.playground-section,
.examples-grid,
.feature-section {
  margin-bottom: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.25rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.hero-copy {
  padding: clamp(1.75rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-xl);
}

.hero-copy::before,
.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  pointer-events: none;
}

.hero-copy::before {
  right: -4rem;
  bottom: -4rem;
  background: radial-gradient(circle, rgba(215, 164, 72, 0.26), transparent 70%);
}

.hero-panel {
  padding: 1.3rem;
}

.hero-panel::before {
  right: -2rem;
  top: -2rem;
  background: radial-gradient(circle, rgba(233, 120, 72, 0.2), transparent 70%);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal-dark);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 11.5ch;
  line-height: 0.98;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.02;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.08;
}

.hero-text,
.section-heading p,
.endpoint-card p,
.note-box p,
.security-list p,
.feature-card p,
.footer p,
.signal-strip p,
.hero-checks p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 60ch;
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.45rem;
}

.hero-pill-row span,
.quick-request {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(19, 32, 30, 0.08);
  color: var(--muted-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.7rem 0 1.4rem;
}

.hero-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-checks article,
.hero-metrics article,
.note-box,
.security-list article {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(19, 32, 30, 0.08);
}

.hero-checks strong,
.security-list article strong,
.note-box strong {
  display: block;
  margin-bottom: 0.3rem;
}

.hero-panel-top,
.response-top,
.code-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
}

.panel-label,
.response-label {
  display: block;
  margin-bottom: 0.32rem;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-pill {
  color: #714a07;
  background: rgba(215, 164, 72, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.hero-metrics article span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-metrics article strong {
  font-size: 1.05rem;
}

.snippet-block,
.response-panel,
.code-card pre {
  margin: 0;
  overflow: auto;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(21, 38, 36, 0.98), rgba(13, 26, 24, 0.98)),
    linear-gradient(90deg, rgba(18, 117, 109, 0.12), transparent);
  color: #e8f5f2;
  box-shadow: inset 0 0 0 1px rgba(157, 207, 200, 0.08);
  line-height: 1.58;
}

.snippet-block {
  min-height: 24rem;
  padding: 1rem;
}

.panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.panel-meta span,
.status-pill {
  color: var(--teal-dark);
  background: rgba(18, 117, 109, 0.11);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
}

.signal-strip article {
  padding: 0.9rem 0.95rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(19, 32, 30, 0.08);
}

.signal-strip strong {
  display: block;
  margin-bottom: 0.35rem;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 1.2rem;
}

.feature-grid,
.endpoint-grid,
.code-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card {
  padding: 1.15rem;
  border-radius: var(--radius-xl);
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

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

.endpoint-card {
  padding: 1.15rem;
  border-radius: var(--radius-xl);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.endpoint-card:hover,
.feature-card:hover,
.quick-request:hover {
  transform: translateY(-2px);
}

.endpoint-card:hover {
  border-color: rgba(18, 117, 109, 0.18);
  box-shadow: 0 22px 52px rgba(33, 40, 34, 0.12);
}

.endpoint-top {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.method {
  padding-inline: 0.65rem;
  color: #744d00;
  background: rgba(215, 164, 72, 0.18);
}

.endpoint-card code,
.note-box code,
#response-path {
  color: var(--teal-dark);
  word-break: break-word;
}

.btn,
.ghost-button,
.inline-link,
.quick-request {
  cursor: pointer;
  border: 0;
  background: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn:hover,
.ghost-button:hover,
.inline-link:hover,
.quick-request:hover {
  filter: saturate(1.05);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, #169a8d 100%);
  box-shadow: 0 12px 32px rgba(18, 117, 109, 0.28);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(19, 32, 30, 0.1);
}

.inline-link,
.ghost-button {
  padding: 0;
  color: var(--teal);
  font-weight: 800;
}

.playground-section {
  position: relative;
}

.quick-request-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.quick-request {
  border: 1px solid rgba(19, 32, 30, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.quick-request.is-active,
.inline-link.is-active,
.btn-secondary.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #169a8d);
  border-color: transparent;
}

.playground-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 1rem;
  align-items: start;
}

.playground-card {
  padding: 1.25rem;
}

.controls-card form {
  margin-bottom: 1rem;
}

.controls-card label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.control-row {
  display: flex;
  gap: 0.8rem;
}

select {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(19, 32, 30, 0.12);
  border-radius: 14px;
  background: var(--panel-solid);
  color: var(--ink);
  outline: none;
}

select:focus {
  border-color: rgba(18, 117, 109, 0.45);
  box-shadow: 0 0 0 4px rgba(18, 117, 109, 0.08);
}

.security-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.response-top {
  margin-bottom: 0.8rem;
}

.response-top p {
  margin: 0.35rem 0 0;
}

.response-panel {
  min-height: 30rem;
  padding: 1rem;
}

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

.code-card {
  padding: 1rem;
}

.code-card pre {
  min-height: 11rem;
  margin-top: 0.75rem;
  padding: 1rem;
}

.footer {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.3rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

body.is-ready [data-reveal="up"] {
  animation: reveal-up 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.is-ready [data-reveal="left"] {
  animation: reveal-left 760ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.is-ready .hero-panel {
  animation-delay: 80ms;
}

body.is-ready .signal-strip,
body.is-ready .feature-card:nth-child(1),
body.is-ready .endpoint-card:nth-child(1),
body.is-ready .quick-request-rail,
body.is-ready .playground-card:nth-child(1),
body.is-ready .code-card:nth-child(1),
body.is-ready .footer {
  animation-delay: 110ms;
}

body.is-ready .feature-card:nth-child(2),
body.is-ready .endpoint-card:nth-child(2),
body.is-ready .playground-card:nth-child(2),
body.is-ready .code-card:nth-child(2) {
  animation-delay: 180ms;
}

body.is-ready .feature-card:nth-child(3),
body.is-ready .endpoint-card:nth-child(3),
body.is-ready .code-card:nth-child(3) {
  animation-delay: 250ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-left {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(18, 117, 109, 0.36);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(18, 117, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(18, 117, 109, 0);
  }
}

@media (max-width: 1100px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .playground-grid,
  .code-grid,
  .footer {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 1rem, var(--max-width));
    padding-top: 0.8rem;
  }

  .topbar {
    position: static;
    border-radius: 24px;
    padding: 1rem;
  }

  .topnav {
    display: none;
  }

  .endpoint-grid,
  .code-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.9rem, 11vw, 4.2rem);
  }
}

@media (max-width: 640px) {
  .hero-copy,
  .hero-panel,
  .playground-card,
  .footer,
  .code-card {
    border-radius: 24px;
  }

  .hero-copy,
  .hero-panel,
  .playground-card {
    padding: 1rem;
  }

  .control-row {
    flex-direction: column;
  }

  .signal-strip,
  .feature-grid,
  .endpoint-grid {
    gap: 0.85rem;
  }

  .ambient-grid {
    inset: 4rem 0.2rem auto;
  }
}
