
:root {
  --bg: #edf5f6;
  --bg-accent: #f8fbfb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #19353a;
  --text-soft: #51686d;
  --primary: #68a8b0;
  --primary-strong: #0f7f88;
  --primary-deep: #0b636b;
  --mint: #48dfad;
  --mint-soft: rgba(72, 223, 173, 0.16);
  --accent: #e91e63;
  --accent-soft: rgba(233, 30, 99, 0.12);
  --border: rgba(15, 127, 136, 0.14);
  --shadow: 0 22px 44px rgba(28, 73, 79, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(72, 223, 173, 0.14), transparent 26%),
    radial-gradient(circle at left top, rgba(104, 168, 176, 0.18), transparent 30%),
    linear-gradient(180deg, #f4fbfb 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-shell {
  min-height: 100vh;
  width: min(100%, calc(var(--max-width) + 48px));
  margin: 0 auto;
  padding: 20px 24px 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 24px;
  padding: 14px 18px;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 251, 0.75);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(28, 73, 79, 0.08);
}

.brand-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--mint));
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.top-nav-link, .pill-link, .tag, .status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
}

.top-nav-link {
  padding: 10px 14px;
  background: rgba(104, 168, 176, 0.1);
  color: var(--primary-deep);
  border: 1px solid rgba(15, 127, 136, 0.12);
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.top-nav-link:hover,
.top-nav-link:focus-visible,
.doc-link-card:hover,
.doc-link-card:focus-visible,
.button:hover,
.button:focus-visible,
.pill-link:hover,
.pill-link:focus-visible {
  transform: translateY(-1px);
}

.doc-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 18px;
}

.sidebar-card,
.doc-card,
.doc-link-card,
.deploy-card,
.landing-hero {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.sidebar-card,
.doc-card,
.deploy-card,
.landing-hero {
  border-radius: var(--radius-xl);
}

.sidebar-card {
  padding: 22px;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(104, 168, 176, 0.14), rgba(72, 223, 173, 0.18));
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-meta {
  margin: 18px 0 0;
  color: var(--text-soft);
}

.tag-row,
.market-links,
.hero-badges,
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag,
.status-chip {
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.tag {
  background: rgba(15, 127, 136, 0.08);
  color: var(--primary-deep);
  border: 1px solid rgba(15, 127, 136, 0.12);
}

.market-links {
  margin-top: 18px;
}

.pill-link {
  padding: 10px 14px;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  color: var(--primary-deep);
  font-weight: 700;
}

.toc-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.toc-list a {
  color: var(--text-soft);
  line-height: 1.35;
}

.toc-list a:hover,
.toc-list a:focus-visible {
  color: var(--primary-deep);
}

.doc-card {
  padding: 26px;
}

.hero-panel {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(104, 168, 176, 0.14), rgba(72, 223, 173, 0.16)),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82));
  border: 1px solid rgba(15, 127, 136, 0.12);
}

.hero-panel h1,
.sidebar-card h1,
.landing-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--text-soft);
  max-width: 70ch;
}

.status-chip {
  background: white;
  border: 1px solid rgba(15, 127, 136, 0.12);
  color: var(--primary-deep);
}

.doc-links {
  margin: 18px 0 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--mint));
  color: white;
  border: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.button.secondary {
  background: white;
  color: var(--primary-deep);
  border: 1px solid rgba(15, 127, 136, 0.14);
}

.doc-section {
  scroll-margin-top: 116px;
  padding: 26px 0;
  border-top: 1px solid rgba(15, 127, 136, 0.1);
}

.doc-section:first-of-type {
  border-top: none;
}

.doc-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -0.03em;
}

.doc-section p,
.doc-section li {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.8;
}

.doc-section ul,
.doc-section ol {
  margin: 0;
  padding-left: 22px;
}

.inline-link {
  color: var(--primary-strong);
  text-decoration: underline;
  text-decoration-color: rgba(15, 127, 136, 0.35);
  text-underline-offset: 0.18em;
}

.intro-section {
  padding-top: 20px;
}

.landing-main {
  display: grid;
  gap: 24px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  padding: 30px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.doc-link-card {
  border-radius: 24px;
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.doc-link-card h2 {
  margin: 14px 0 10px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.doc-link-card p,
.deploy-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.deploy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
}

.deploy-card h2 {
  margin: 10px 0 12px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.landing-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-preview {
  width: 280px;
  max-width: 100%;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(180deg, #0a7b84, #0d646b);
  box-shadow: 0 28px 46px rgba(12, 86, 93, 0.26);
}

.phone-topbar {
  width: 42%;
  height: 20px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.26);
}

.phone-screen {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.88));
  min-height: 420px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.preview-card {
  border-radius: 18px;
}

.preview-card-a {
  height: 92px;
  background: linear-gradient(135deg, rgba(104, 168, 176, 0.88), rgba(104, 168, 176, 0.62));
}

.preview-card-b {
  height: 70px;
  background: linear-gradient(135deg, rgba(72, 223, 173, 0.25), rgba(72, 223, 173, 0.42));
}

.preview-card-c {
  height: 132px;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.10), rgba(104, 168, 176, 0.12));
  border: 1px solid rgba(15, 127, 136, 0.12);
}

code {
  padding: 0.18em 0.38em;
  border-radius: 8px;
  background: rgba(15, 127, 136, 0.08);
  color: var(--primary-deep);
}

[data-menu].is-open {
  display: flex;
}

@media (max-width: 1024px) {
  .doc-layout,
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
    order: -1;
  }

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

@media (max-width: 720px) {
  .page-shell {
    padding: 14px 14px 34px;
  }

  .site-header {
    padding: 14px;
    border-radius: 22px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .top-nav {
    display: none;
    flex-direction: column;
  }

  .doc-card,
  .sidebar-card,
  .landing-hero,
  .deploy-card,
  .doc-link-card {
    border-radius: 22px;
  }

  .doc-card,
  .landing-hero,
  .deploy-card,
  .doc-link-card,
  .sidebar-card {
    padding: 20px;
  }

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

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