/* ─── Reset & Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── CSS Custom Properties ───────────────────────────────────────── */
:root {
  --primary:      #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light:#dbeafe;
  --dark:         #0f172a;
  --dark-2:       #1e293b;
  --dark-3:       #334155;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-400:     #94a3b8;
  --gray-600:     #475569;
  --text:         #1e293b;
  --text-light:   #64748b;
  --white:        #ffffff;
  --code-bg:      #1e293b;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow:       0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --transition:   all .2s ease;
  --container:    1200px;
}

/* ─── Typography ──────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--text-light); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; }
li { color: var(--text-light); margin-bottom: .4rem; }
strong { color: var(--text); font-weight: 600; }

/* ─── Layout ──────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section-sm { padding: 3rem 0; }
.section-dark {
  background: var(--dark);
}
.section-gray {
  background: var(--gray-100);
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header p { font-size: 1.125rem; margin-top: .75rem; }
.section-header .label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

/* ─── Navigation ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 6px;
  transition: var(--transition);
  text-decoration: none;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a.active { color: #fff; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,.8);
  padding: .65rem 0;
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.35rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.25);
}
.btn-outline:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
  text-decoration: none;
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.btn-sm { padding: .45rem 1rem; font-size: .825rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 0%, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-label {
  display: inline-block;
  background: rgba(37,99,235,.18);
  color: #93c5fd;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(147,197,253,.2);
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: #60a5fa; }
.hero p { color: rgba(255,255,255,.65); font-size: 1.125rem; margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-code {
  background: #0a1628;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37,99,235,.15);
}
.hero-code-header {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-code-dots { display: flex; gap: 6px; }
.hero-code-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.hero-code-dots span:nth-child(1) { background: #ef4444; }
.hero-code-dots span:nth-child(2) { background: #f59e0b; }
.hero-code-dots span:nth-child(3) { background: #22c55e; }
.hero-code-title {
  color: rgba(255,255,255,.4);
  font-size: .78rem;
  font-family: monospace;
  margin-left: .5rem;
}
.hero-code pre {
  padding: 1.5rem;
  font-size: .85rem;
  line-height: 1.7;
  overflow-x: auto;
}
.hero-code code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

/* ─── Syntax Colors ───────────────────────────────────────────────── */
.tok-key    { color: #7dd3fc; }
.tok-str    { color: #86efac; }
.tok-val    { color: #fb923c; }
.tok-bool   { color: #a78bfa; }
.tok-null   { color: #94a3b8; }
.tok-url    { color: #fbbf24; }
.tok-param  { color: #38bdf8; }
.tok-comment{ color: #64748b; font-style: italic; }
.tok-method { color: #f472b6; font-weight: bold; }
.tok-php    { color: #93c5fd; }
.tok-var    { color: #fde68a; }
.tok-func   { color: #a5f3fc; }
.tok-kw     { color: #c084fc; }

/* ─── Trust Bar ───────────────────────────────────────────────────── */
.trust-bar {
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 500;
}
.trust-icon { font-size: 1.1rem; }

/* ─── Feature Cards ───────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}
.card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--dark); }
.card p { font-size: .9rem; color: var(--text-light); margin: 0; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ─── Code Blocks ─────────────────────────────────────────────────── */
.code-block {
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid rgba(255,255,255,.06);
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.code-lang {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.copy-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  padding: .25rem .65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.copy-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.copy-btn.copied { color: #86efac; border-color: #86efac; }
.code-block pre {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: .85rem;
  line-height: 1.75;
}
.code-block code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

/* ─── Tabs ────────────────────────────────────────────────────────── */
.tabs { margin: 1.5rem 0; }
.tab-list {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 0;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.tab-btn {
  padding: .55rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tabs .code-block { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; border-top: none; }

/* ─── Accordion / FAQ ─────────────────────────────────────────────── */
.accordion { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background .15s;
}
.accordion-btn:hover { background: var(--gray-100); }
.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  transition: transform .2s, background .15s;
  color: var(--gray-600);
}
.accordion-btn.open .accordion-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.accordion-body {
  display: none;
  padding: 0 1.4rem 1.2rem;
}
.accordion-body.open { display: block; }
.accordion-body p { color: var(--text-light); font-size: .9rem; margin: 0; }

/* ─── Table ───────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead { background: var(--gray-100); }
th { padding: .8rem 1rem; text-align: left; font-weight: 700; color: var(--dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--gray-200); }
td { padding: .8rem 1rem; border-bottom: 1px solid var(--gray-200); color: var(--text-light); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-100); }
td .check { color: #22c55e; font-weight: 700; }
td .cross  { color: #94a3b8; }

/* ─── Steps ───────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.step::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.step:last-child::after { display: none; }
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  counter-increment: step;
  position: relative;
  z-index: 1;
}
.step-content h3 { font-size: 1rem; margin-bottom: .35rem; padding-top: .5rem; }
.step-content p  { font-size: .9rem; margin: 0; }

/* ─── Pricing Cards ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-name { font-size: 1rem; font-weight: 700; color: var(--text-light); margin-bottom: .5rem; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: .25rem; }
.pricing-price sup { font-size: 1rem; font-weight: 600; vertical-align: top; margin-top: .5rem; }
.pricing-period { color: var(--text-light); font-size: .875rem; margin-bottom: 1.5rem; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 2rem; }
.pricing-features li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: .65rem;
}
.pricing-features li::before { content: '✓'; color: #22c55e; font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ─── Response Box ────────────────────────────────────────────────── */
.response-box {
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .85rem;
  line-height: 1.8;
  border: 1px solid rgba(255,255,255,.06);
}
.response-valid   { color: #22c55e; font-weight: 700; }
.response-invalid { color: #f87171; font-weight: 700; }

/* ─── Breadcrumb ──────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-light);
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--gray-400); }

/* ─── Doc Layout ──────────────────────────────────────────────────── */
.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}
.doc-sidebar {
  position: sticky;
  top: 80px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.doc-sidebar h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: .6rem; margin-top: 1.1rem; }
.doc-sidebar h4:first-child { margin-top: 0; }
.doc-sidebar a {
  display: block;
  font-size: .875rem;
  color: var(--text-light);
  padding: .3rem .5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.doc-sidebar a:hover { color: var(--primary); background: var(--gray-200); }
.doc-sidebar a.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }
.doc-content h1 { margin-bottom: .75rem; }
.doc-content h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; padding-top: 2.5rem; border-top: 1px solid var(--gray-200); }
.doc-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.5rem; }
.doc-content h3 { margin: 1.75rem 0 .75rem; font-size: 1.1rem; }
.doc-content p { color: var(--text-light); }
.doc-content ul, .doc-content ol { margin-bottom: 1rem; }
.doc-content li { color: var(--text-light); font-size: .9375rem; }

/* ─── Alert / Callout ─────────────────────────────────────────────── */
.callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.callout p { margin: 0; }
.callout-info  { background: #eff6ff; border-color: #3b82f6; }
.callout-info p { color: #1d4ed8; }
.callout-warn  { background: #fffbeb; border-color: #f59e0b; }
.callout-warn p { color: #92400e; }
.callout-success { background: #f0fdf4; border-color: #22c55e; }
.callout-success p { color: #166534; }

/* ─── Inline Code ─────────────────────────────────────────────────── */
code {
  background: var(--gray-100);
  color: #dc2626;
  padding: .1em .35em;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .875em;
}
.code-block code { background: none; color: inherit; padding: 0; border-radius: 0; font-size: inherit; }
.hero-code code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* ─── Comparison Table ────────────────────────────────────────────── */
.compare-table th { text-align: center; }
.compare-table th:first-child { text-align: left; }
.compare-table td { text-align: center; }
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--text); }

/* ─── CTA Band ────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-band-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: rgba(255,255,255,.45); font-size: .85rem; margin-top: .75rem; }
.footer-col h4 { color: rgba(255,255,255,.4); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: .85rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .875rem; text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .8rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.35); font-size: .8rem; text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }
.footer .nav-logo { text-decoration: none; }

/* ─── Page Intro ──────────────────────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 4rem 0 3.5rem;
}
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.6); font-size: 1.1rem; max-width: 600px; }
.page-hero-sm { padding: 2.5rem 0 2rem; }

/* ─── Demo Widget ─────────────────────────────────────────────────── */
.demo-widget {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 700px;
  margin: 2rem auto 0;
}
.demo-widget label { color: rgba(255,255,255,.6); font-size: .82rem; font-weight: 600; display: block; margin-bottom: .5rem; }
.demo-input-row { display: flex; gap: .75rem; }
.demo-widget input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  color: #fff;
  font-family: monospace;
  font-size: .85rem;
  outline: none;
}
.demo-widget input:focus { border-color: var(--primary); }
.demo-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  font-family: monospace;
  font-size: .85rem;
  line-height: 1.7;
  display: none;
}
.demo-result.valid   { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2); color: #86efac; }
.demo-result.invalid { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.2); color: #fca5a5; }

/* ─── Badge ───────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-gray   { background: var(--gray-200); color: var(--gray-600); }

/* ─── Blog ────────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-img { background: var(--gray-100); height: 160px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.blog-card-body { padding: 1.25rem; }
.blog-card-body .badge { margin-bottom: .75rem; }
.blog-card-body h3 { font-size: 1rem; margin-bottom: .5rem; }
.blog-card-body p { font-size: .85rem; }
.blog-card-body a { font-weight: 600; font-size: .85rem; }

/* ─── Changelog ───────────────────────────────────────────────────── */
.changelog-item { padding: 2rem 0; border-bottom: 1px solid var(--gray-200); }
.changelog-item:last-child { border-bottom: none; }
.changelog-version { font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.changelog-date { color: var(--text-light); font-size: .85rem; margin-left: .75rem; }
.changelog-list { list-style: none; padding: 0; margin-top: 1rem; }
.changelog-list li {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .9rem; color: var(--text-light); margin-bottom: .5rem;
}
.changelog-tag {
  display: inline-block;
  padding: .1rem .5rem;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
  margin-top: .1rem;
}
.tag-new  { background: #dcfce7; color: #166534; }
.tag-fix  { background: #fef3c7; color: #92400e; }
.tag-chg  { background: #ede9fe; color: #5b21b6; }

/* ─── Contact Form ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .doc-layout { grid-template-columns: 200px 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-code  { display: none; }
  .hero { padding: 3.5rem 0; }
  .trust-bar-inner { gap: 1.5rem; justify-content: flex-start; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .demo-input-row { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band-actions { flex-direction: column; align-items: center; }
}
