:root {
  --evergreen-deep: #0f3d2e;
  --evergreen-leaf: #2e7d5a;
  --graphite: #1f2933;
  --slate: #6b7280;
  --white: #ffffff;

  --bg: #fbfbfb;
  --tint: #f3f5f4;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--graphite);
  background: var(--bg);
  line-height: 1.5;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Topbar */
.topbar {
  background: rgba(15, 61, 46, 0.08);
  border-bottom: 1px solid rgba(15, 61, 46, 0.12);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  color: rgba(31, 41, 51, 0.9);
}
.topbar__link {
  color: var(--evergreen-deep);
  font-weight: 600;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(251, 251, 251, 0.8);
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--evergreen-deep);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.brand__name {
  font-weight: 800;
  letter-spacing: 0.06em;
}
.brand__sub {
  display: inline-block;
  margin-left: 8px;
  color: var(--evergreen-leaf);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.nav__menu a {
  color: rgba(31, 41, 51, 0.86);
  font-weight: 600;
}
.nav__menu a:hover {
  color: var(--graphite);
}

.nav__cta {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--evergreen-deep);
  color: var(--white) !important;
}

.nav__toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
}
.nav__toggleLines {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--graphite);
  position: relative;
}
.nav__toggleLines::before,
.nav__toggleLines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--graphite);
}
.nav__toggleLines::before {
  top: -7px;
}
.nav__toggleLines::after {
  top: 7px;
}

/* Hero */
.hero {
  padding: 64px 0 28px;
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(46, 125, 90, 0.25), transparent 55%),
    radial-gradient(900px 500px at 20% 0%, rgba(15, 61, 46, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(15, 61, 46, 0.06), transparent 55%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.lead {
  margin: 0 0 18px;
  font-size: 18px;
  color: rgba(31, 41, 51, 0.78);
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 41, 51, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: rgba(31, 41, 51, 0.76);
}

/* Panel (code card) */
.hero__panel {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(31, 41, 51, 0.10);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
  background: rgba(243, 245, 244, 0.7);
}
.panel__title {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(31, 41, 51, 0.75);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  display: inline-block;
}
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }

.code {
  margin: 0;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(31, 41, 51, 0.92);
  background: #ffffff;
  overflow: auto;
}
.panel__footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(31, 41, 51, 0.08);
}
.badge {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 61, 46, 0.9);
  background: rgba(46, 125, 90, 0.12);
  border: 1px solid rgba(46, 125, 90, 0.22);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Sections */
.section {
  padding: 64px 0;
}
.section--tint {
  background: var(--tint);
}
.section--dark {
  background: var(--evergreen-deep);
  color: var(--white);
}
.section__head {
  max-width: 820px;
  margin-bottom: 26px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 61, 46, 0.75);
}
.eyebrow--dark {
  color: rgba(255, 255, 255, 0.75);
}
.section__head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.02em;
}
.subhead {
  margin: 0;
  color: rgba(31, 41, 51, 0.72);
  font-size: 16px;
  max-width: 70ch;
}
.subhead--dark {
  color: rgba(255, 255, 255, 0.78);
}

/* Grids & cards */
.grid {
  display: grid;
  gap: 16px;
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card,
.service,
.endpoint,
.quote {
  background: var(--white);
  border: 1px solid rgba(31, 41, 51, 0.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.card h3,
.service h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.card p,
.service p,
.endpoint p {
  margin: 0;
  color: rgba(31, 41, 51, 0.72);
}
.service .link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  color: var(--evergreen-deep);
}

/* Endpoints */
.endpoint__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.method {
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.method--get {
  background: rgba(46, 125, 90, 0.12);
  color: rgba(15, 61, 46, 0.9);
  border: 1px solid rgba(46, 125, 90, 0.25);
}
.path {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(31, 41, 51, 0.78);
}
.endpoint__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.05);
  border: 1px solid rgba(31, 41, 51, 0.08);
  color: rgba(31, 41, 51, 0.72);
  font-weight: 700;
}

.ctaRow {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Quotes */
.quote blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(31, 41, 51, 0.85);
}
.quote figcaption {
  margin-top: 12px;
  font-weight: 800;
  font-size: 12.5px;
  color: rgba(15, 61, 46, 0.8);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.06s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--evergreen-deep);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(15, 61, 46, 0.20);
}
.btn--primary:hover {
  background: #0c3326;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(31, 41, 51, 0.12);
  color: rgba(31, 41, 51, 0.88);
}
.btn--ghost:hover {
  background: var(--white);
}
.btn--full {
  width: 100%;
  border-radius: 14px;
}

/* Contact section */
.section--dark .card,
.section--dark .service,
.section--dark .endpoint,
.section--dark .quote {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.contact {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}
.bullets {
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.8);
}
.form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px;
}
.form label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  outline: none;
  font-family: var(--font-sans);
}
.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.form__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.form__note a {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #0b2b20;
  color: rgba(255, 255, 255, 0.86);
  padding: 34px 0 22px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: start;
}
.footer__brand {
  font-weight: 900;
  letter-spacing: 0.08em;
}
.footer__brand span {
  color: rgba(46, 125, 90, 0.95);
  letter-spacing: 0.04em;
}
.footer__small {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.footer__cols h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.footer__cols a {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.78);
}
.footer__cols a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.70);
}
.footer__bottom a {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: absolute;
    right: 20px;
    top: 68px;
    width: min(320px, calc(100% - 40px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(251, 251, 251, 0.98);
    border: 1px solid rgba(31, 41, 51, 0.10);
    box-shadow: var(--shadow);
  }
  .nav__menu a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(31, 41, 51, 0.03);
  }
  .nav__menu a.nav__cta {
    background: var(--evergreen-deep);
  }
  .nav__menu.is-open {
    display: flex;
  }

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