/* ─────────────────────────────────────────────
   CIAM Platform – Shared Stylesheet
───────────────────────────────────────────── */
:root {
  --color-bg:        #0b0f1a;
  --color-surface:   #111827;
  --color-surface2:  #1a2234;
  --color-border:    #1e2d45;
  --color-accent:    #6366f1;
  --color-accent-lt: #818cf8;
  --color-accent-dk: #4f46e5;
  --color-green:     #10b981;
  --color-yellow:    #f59e0b;
  --color-red:       #ef4444;
  --color-text:      #f1f5f9;
  --color-muted:     #94a3b8;
  --color-faint:     #334155;
  --radius:          10px;
  --nav-h:           68px;
  --font-sans:       'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); line-height: 1.6; font-size: 16px; }
a { color: var(--color-accent-lt); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
.text-muted  { color: var(--color-muted); }
.text-accent { color: var(--color-accent-lt); }
.text-green  { color: var(--color-green); }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-lt); background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.3); padding: .25rem .7rem; border-radius: 999px; margin-bottom: 1rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.btn { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-sans); font-weight: 600; font-size: .95rem; padding: .65rem 1.4rem; border-radius: var(--radius); cursor: pointer; border: none; transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 24px rgba(99,102,241,.4); }
.btn-outline { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-accent-lt); color: var(--color-accent-lt); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--color-muted); }

nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; background: rgba(11,15,26,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--color-border); }
.nav-inner { display: flex; align-items: center; gap: 2rem; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: #fff !important; flex-shrink: 0; }
.nav-logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: .25rem; flex: 1; }
.nav-links a { color: var(--color-muted); font-size: .92rem; font-weight: 500; padding: .4rem .75rem; border-radius: 8px; transition: all .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--color-text); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-actions .btn { font-size: .88rem; padding: .5rem 1.1rem; }

.hero { padding: 110px 0 80px; text-align: center; background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99,102,241,.18) 0%, transparent 70%); }
.hero h1 span { color: var(--color-accent-lt); }
.hero p.subtitle { font-size: 1.2rem; color: var(--color-muted); max-width: 620px; margin: 1.5rem auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.hero-badge { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--color-muted); }
.hero-badge svg { color: var(--color-green); }

.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(99,102,241,.45); transform: translateY(-2px); }
.card-icon { width: 44px; height: 44px; background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.25); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.25rem; }
.card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.card p  { color: var(--color-muted); font-size: .92rem; line-height: 1.55; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

pre, .code-block { background: #0d1117; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; overflow-x: auto; font-family: var(--font-mono); font-size: .85rem; line-height: 1.65; color: #e2e8f0; }
.code-header { display: flex; align-items: center; justify-content: space-between; background: #0d1117; border: 1px solid var(--color-border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; padding: .65rem 1.25rem; font-size: .8rem; color: var(--color-muted); }
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.token-keyword  { color: #c084fc; }
.token-string   { color: #86efac; }
.token-comment  { color: #64748b; font-style: italic; }
.token-number   { color: #fdba74; }
.token-fn       { color: #7dd3fc; }
.token-url      { color: #6ee7b7; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { color: var(--color-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

.pricing-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; }
.pricing-card.featured { border-color: var(--color-accent); background: linear-gradient(145deg, var(--color-surface2), var(--color-surface)); position: relative; }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--color-accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .9rem; border-radius: 999px; }
.price-amount { font-size: 2.75rem; font-weight: 800; letter-spacing: -.04em; }
.price-period { font-size: .9rem; color: var(--color-muted); }
.price-desc   { color: var(--color-muted); font-size: .9rem; margin: .5rem 0 1.75rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.75rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--color-muted); }
.feature-list li svg { color: var(--color-green); flex-shrink: 0; margin-top: 3px; }
.feature-list li.dim { color: var(--color-faint); }
.feature-list li.dim svg { color: var(--color-faint); }

table.compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.compare th, table.compare td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--color-border); text-align: left; }
table.compare th { color: var(--color-muted); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; background: var(--color-surface); }
table.compare tr:hover td { background: rgba(255,255,255,.02); }
.check  { color: var(--color-green); font-weight: 700; font-size: 1.1rem; }
.cross  { color: var(--color-faint);  font-weight: 700; font-size: 1.1rem; }

.callout { background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.1)); border: 1px solid rgba(99,102,241,.3); border-radius: var(--radius); padding: 3rem 2.5rem; text-align: center; }
.callout h2 { margin-bottom: .75rem; }
.callout p  { color: var(--color-muted); max-width: 520px; margin: 0 auto 2rem; }

.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--color-accent-lt); }
.stat-label { font-size: .9rem; color: var(--color-muted); margin-top: .25rem; }

.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; background: var(--color-surface2); border: 1px solid var(--color-border); padding: .3rem .8rem; border-radius: 999px; color: var(--color-muted); }

footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--color-muted); font-size: .9rem; margin-top: .75rem; max-width: 280px; }
.footer-col h5 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul li a { color: var(--color-muted); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--color-text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--color-border); font-size: .85rem; color: var(--color-muted); }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; }

.method { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 5px; font-family: var(--font-mono); }
.get    { background: rgba(99,102,241,.15); color: var(--color-accent-lt); }
.post   { background: rgba(16,185,129,.15); color: var(--color-green); }
.put    { background: rgba(245,158,11,.15);  color: var(--color-yellow); }
.delete { background: rgba(239,68,68,.15);   color: var(--color-red); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 72px 0 48px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-outline { display: none; }
}
