@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #22c55e;
  --primary-faint: #f0fdf4;

  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --bg4: #e2e8f0;

  --border: #e2e8f0;
  --border-hover: #cbd5e1;

  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --text4: #cbd5e1;

  --green: #16a34a;
  --green-dark: #15803d;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --yellow: #ca8a04;
  --yellow-bg: #fefce8;
  --yellow-border: #fde68a;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Fira Code', 'SF Mono', 'Courier New', monospace;

  --r: 10px;
  --r-sm: 6px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.10), 0 4px 16px rgba(0,0,0,.06);
  --shadow-primary: 0 0 0 3px rgba(22,163,74,.15);

  --t: .15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font); }
code, pre { font-family: var(--mono); }
img { max-width: 100%; display: block; }

/* ── Navbar (floating pill) ── */
.navbar { position: sticky; top: 16px; z-index: 100; display: flex; justify-content: center; padding: 0 32px; }
.nav-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  height: 64px; padding: 0 28px;
  display: flex; align-items: center;
  width: 100%; max-width: 1200px;
}
.nav-inner { display: flex; align-items: center; height: 100%; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -.02em; flex-shrink: 0; }
.nav-logo:hover { text-decoration: none; color: var(--text); }
.nav-logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-logo-icon svg { width: 17px; height: 17px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text2); padding: 7px 16px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--bg3); text-decoration: none; }
.nav-ctas { display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: 14px; font-weight: 500; color: var(--text2); padding: 8px 16px; border-radius: 8px; transition: color .15s, background .15s; background: none; border: none; }
.nav-login:hover { color: var(--text); background: var(--bg3); text-decoration: none; }
.nav-cta { background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 22px; border-radius: 10px; border: none; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 2px 8px rgba(22,163,74,.3); white-space: nowrap; }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(22,163,74,.4); text-decoration: none; color: #fff; }

/* ── Header (for inner pages) ── */
header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200; height: 60px;
}
.header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; height: 100%; padding: 0 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -.02em; text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--text); }
.logo-icon { width: 28px; height: 28px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 2px 8px rgba(22,163,74,.3); flex-shrink: 0; }
nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
nav a, nav button { color: var(--text2); padding: 7px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; transition: all var(--t); background: none; border: none; cursor: pointer; font-family: var(--font); text-decoration: none; white-space: nowrap; }
nav a:hover, nav button:hover { color: var(--text); background: var(--bg3); text-decoration: none; }
.btn-primary-nav { background: var(--primary) !important; color: #fff !important; border-radius: var(--r-sm) !important; padding: 7px 18px !important; font-weight: 700 !important; border: none !important; box-shadow: 0 1px 4px rgba(22,163,74,.25) !important; }
.btn-primary-nav:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; border: none; transition: all var(--t); cursor: pointer; font-family: var(--font); white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 4px rgba(22,163,74,.2), 0 4px 16px rgba(22,163,74,.12); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,163,74,.3); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-faint); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--r); }
.btn-full { width: 100%; }

/* ── Cards ── */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); }
.card-elevated { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-md); }

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
label { font-size: 13px; font-weight: 600; color: var(--text2); }
input, select, textarea { background: var(--bg); border: 1.5px solid var(--border); color: var(--text); padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; font-family: var(--font); outline: none; width: 100%; transition: all var(--t); appearance: none; -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: var(--shadow-primary); }
input::placeholder, textarea::placeholder { color: var(--text4); }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-gray { background: var(--bg3); color: var(--text2); }
.badge-get { background: #dbeafe; color: #1d4ed8; font-family: var(--mono); }
.badge-post { background: var(--yellow-bg); color: var(--yellow); font-family: var(--mono); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 500; }
.tag-req { background: var(--red-bg); color: var(--red); }
.tag-opt { background: var(--bg3); color: var(--text2); }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--text2); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px; background: var(--bg2); border-bottom: 2px solid var(--border); }
td { padding: 11px 16px; border-bottom: 1px solid var(--bg3); color: var(--text2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg2); }
td code { background: var(--bg3); padding: 2px 7px; border-radius: 4px; font-size: 12px; color: var(--primary); }

/* ── Callouts ── */
.callout { border-radius: var(--r); padding: 16px 20px; margin: 16px 0; font-size: 13.5px; line-height: 1.75; }
.callout-info { background: var(--primary-faint); border: 1px solid var(--green-border); color: #166534; }
.callout-warn { background: var(--yellow-bg); border: 1px solid var(--yellow-border); color: #92400e; }
.callout-success { background: var(--green-bg); border: 1px solid var(--green-border); color: #166534; }
.callout-error { background: var(--red-bg); border: 1px solid var(--red-border); color: #991b1b; }

/* ── Code blocks ── */
.code-block { background: #0f172a; border-radius: var(--r); padding: 18px 22px; margin: 12px 0; overflow-x: auto; position: relative; }
.code-block pre { color: #e2e8f0; font-size: 12.5px; line-height: 1.75; white-space: pre; font-family: var(--mono); }
.copy-btn { position: absolute; top: 10px; right: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #94a3b8; padding: 4px 12px; border-radius: 5px; font-size: 11px; font-family: var(--mono); cursor: pointer; transition: all var(--t); }
.copy-btn:hover { color: #fff; background: rgba(255,255,255,.15); }

/* ── Alert ── */
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; margin-bottom: 16px; display: none; align-items: center; gap: 8px; }
.alert.show { display: flex; }
.alert-success { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
.alert-error { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red); }

/* ── Footer ── */
footer { background: #0f172a; color: #94a3b8; padding: 56px 32px 28px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: #f8fafc; margin-bottom: 14px; text-decoration: none; }
.footer-logo:hover { text-decoration: none; color: #fff; }
.footer-logo-icon { width: 28px; height: 28px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo-icon svg { width: 14px; height: 14px; color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.7; color: #64748b; max-width: 260px; }
.footer-col h4 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #64748b; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13.5px; color: #94a3b8; transition: color var(--t); }
.footer-col ul li a:hover { color: #f8fafc; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #475569; }
.footer-bottom a { color: #475569; }
.footer-bottom a:hover { color: #94a3b8; text-decoration: none; }

/* ── Utility ── */
.section-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); margin-bottom: 10px; }
.text-center { text-align: center; }
.text-muted { color: var(--text3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .navbar { padding: 0 16px; top: 8px; }
  .nav-links { display: none; }
  .header-inner { padding: 0 20px; }
  footer { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
