:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-secondary: #3f3f46;
  --muted: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #0f766e;
  --accent-strong: #0c5c56;
  --accent-soft: #f0fdfa;
  --accent-text: #0f766e;
  --danger: #dc2626;
  --warning: #b45309;
  --success: #15803d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-md: 0 12px 32px rgba(9, 9, 11, 0.08);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
}

:not(pre) > code {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15em 0.4em;
  font-size: 0.88em;
  color: var(--text);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------------------------------------------------------------- header */

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav-links a:not(.button) {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:not(.button):hover,
.nav-links a[aria-current="page"]:not(.button) {
  color: var(--text);
}

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: none;
}

@media (max-width: 640px) {
  .site-header .nav {
    min-height: 60px;
    gap: 0.5rem;
  }

  .site-header .brand {
    font-size: 0.92rem;
    gap: 0.4rem;
  }

  .site-header .brand-mark {
    width: 22px;
    height: 22px;
  }

  .site-header .nav-links {
    gap: 0.75rem;
  }

  .site-header .nav-links a:not(.button) {
    font-size: 0.85rem;
  }

  .site-header .nav-links .button {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }

  /* When the header nav also carries a CTA button, the plain text link no
     longer fits next to it without wrapping onto its own line; it's
     already reachable from the footer, so drop it at this width. */
  .site-header .nav-links:has(.button) a:not(.button) {
    display: none;
  }
}

/* ----------------------------------------------------------------- type */

h1,
h2,
h3 {
  margin: 0 0 0.9rem;
  line-height: 1.14;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.lead,
.section-copy,
.muted {
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  max-width: 46ch;
}

/* -------------------------------------------------------------- eyebrow */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title-wrap {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-title-wrap h2 {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------- layout */

.hero,
.section {
  padding: 5.5rem 0;
}

.section-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(15, 118, 110, 0.14) 0%, rgba(15, 118, 110, 0) 68%);
  pointer-events: none;
}

.hero-grid,
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  position: relative;
  gap: 3rem;
}

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

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

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.bento .card-lg {
  grid-column: span 2;
}

.hero-actions,
.stack {
  display: flex;
  gap: 1rem;
}

.hero-actions {
  flex-wrap: wrap;
  align-items: center;
}

.stack {
  flex-direction: column;
}

/* ---------------------------------------------------------------- cards */

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: 1.6rem;
}

.panel {
  padding: 2.25rem;
}

.card h3 {
  margin-bottom: 0.6rem;
}

/* ------------------------------------------------------------- browser mockup */

.browser-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.browser-frame .browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.browser-frame .browser-dots {
  display: flex;
  gap: 0.35rem;
}

.browser-frame .browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.browser-frame .browser-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  margin-left: 0.5rem;
}

.browser-frame img {
  display: block;
  width: 100%;
}

.browser-frame figcaption {
  padding: 1rem 1.1rem 1.2rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.browser-frame figcaption strong {
  color: var(--text);
}

/* ---------------------------------------------------------------- lists */

.stat-list,
.feature-list,
.device-list,
.api-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stat-list li,
.feature-list li,
.device-list li,
.api-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.stat-list li:last-child,
.feature-list li:last-child,
.device-list li:last-child,
.api-list li:last-child {
  border-bottom: 0;
}

.stat-list li,
.feature-list li {
  position: relative;
  padding-left: 1.7rem;
}

.stat-list li::before,
.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.feature-list li strong {
  color: var(--text);
}

/* ------------------------------------------------------------- buttons */

.button,
button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--text);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: #262626;
}

.button-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.button-secondary:hover {
  background: var(--bg-subtle);
}

/* -------------------------------------------------------------- code */

.code-block,
pre {
  margin: 0;
  overflow: auto;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.65;
}

pre code {
  color: #99f6e4;
}

/* ------------------------------------------------------------- pricing */

.price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

/* --------------------------------------------------------------- forms */

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

input::placeholder {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tag-success {
  color: #14532d;
  background: #dcfce7;
}

.tag-warning {
  color: #78350f;
  background: #fef3c7;
}

.tag-danger {
  color: #7f1d1d;
  background: #fee2e2;
}

.message {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 0.92rem;
}

.message.error {
  border-color: rgba(220, 38, 38, 0.3);
  background: #fef2f2;
  color: #7f1d1d;
}

.message.success {
  border-color: rgba(15, 118, 110, 0.3);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* ---------------------------------------------------------- provider row */

.step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.6rem;
}

.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.provider-row span {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* -------------------------------------------------------------- footer */

.site-footer {
  padding: 3.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.6);
  background: #0a0a0a;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-top .brand {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-top p {
  max-width: 32ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.9rem;
}

.footer-col a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
  color: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer-grid .nav-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-grid .nav-links a:hover {
  color: #fff;
}

/* ------------------------------------------------------------- cta banner */

.cta-banner {
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem;
}

.cta-banner .eyebrow {
  color: #5eead4;
  justify-content: center;
}

.cta-banner .eyebrow::before {
  background: #5eead4;
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner .button-primary {
  background: #fff;
  color: #0a0a0a;
}

.cta-banner .button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cta-banner .button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------- os tabs */

.os-tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.os-tab-list {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.os-tab-button {
  flex: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.os-tab-button:hover {
  color: var(--text);
  transform: none;
}

.os-tab-button[aria-selected="true"] {
  color: var(--text);
  background: var(--surface);
  border-bottom-color: var(--accent);
}

.os-tab-panel {
  padding: 1.75rem;
}

.os-tab-panel[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .bento,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .bento .card-lg {
    grid-column: span 1;
  }
}
