/* UbDesigner Studio — Marketing CSS (FIX49 — UI/UX Pro Max).
   Dark-first, gradient violet→bleu, content-first, immersive.
   Inspiration : ubmaker.com, Linear, Vercel. */

:root {
  /* Surfaces */
  --bg:        #0a0c14;
  --bg-2:      #0f121d;
  --bg-3:      #141828;
  --panel:     #161b2c;
  --panel-2:   #1d2338;
  --panel-3:   #252b42;
  --border:    rgba(255,255,255,0.06);
  --border-2:  rgba(255,255,255,0.1);

  /* Text */
  --text:      #e9edf7;
  --muted:     #8a93b1;
  --muted-2:   #6b7390;

  /* Brand */
  --accent:    #6c8cff;
  --accent-2:  #c45dff;
  --accent-3:  #ff7a00;
  --grad:      linear-gradient(135deg, #6c8cff 0%, #c45dff 100%);
  --grad-warm: linear-gradient(135deg, #ff7a00 0%, #c45dff 100%);
  --grad-cool: linear-gradient(135deg, #06b6d4 0%, #6c8cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(108,140,255,0.08) 0%, rgba(196,93,255,0.08) 100%);

  /* Semantic */
  --ok:   #4ade80;
  --warn: #f59e0b;
  --err:  #ef4444;
  --info: #38bdf8;

  /* Radius & layout */
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-w:     1180px;
  --max-w-text: 720px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
img, svg { display: block; max-width: 100%; }
a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s var(--ease-out);
}
a:hover { color: var(--accent-2); }
code, pre {
  font-family: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
}
::selection { background: rgba(108,140,255,0.3); color: white; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-tight { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ───────────────────────────────────────────── */
header.site {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,12,20,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand .logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(108,140,255,0.3);
}
nav.main {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav.main a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
nav.main a:hover { color: var(--text); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: all .15s var(--ease-out);
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 16px rgba(108,140,255,0.25);
}
.btn-primary:hover { filter: brightness(1.1); color: white; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(108,140,255,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--panel-2); color: var(--text); border-color: var(--border-2); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { background: var(--panel); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -100px 0 0 0;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(108,140,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 500px 300px at 70% 30%, rgba(196,93,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(108,140,255,0.08);
  border: 1px solid rgba(108,140,255,0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeUp .6s var(--ease-out);
}
.hero-tag .dot { width: 6px; height: 6px; background: var(--ok); border-radius: 50%; box-shadow: 0 0 8px var(--ok); }
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  animation: fadeUp .7s var(--ease-out) .05s both;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero p.lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 36px;
  animation: fadeUp .8s var(--ease-out) .1s both;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  animation: fadeUp .9s var(--ease-out) .15s both;
}
.hero-note {
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 50px;
}
.hero-stats {
  display: flex;
  gap: 50px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  animation: fadeUp 1s var(--ease-out) .25s both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 30px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.hero-stat .label { color: var(--muted); font-size: 12px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Sections ───────────────────────────────────────── */
section { padding: 80px 0; position: relative; }
section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
section.dark {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.section-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(108,140,255,0.1);
  border: 1px solid rgba(108,140,255,0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
h2.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
p.section-sub {
  color: var(--muted);
  max-width: 620px;
  font-size: 16px;
  line-height: 1.6;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head.left { text-align: left; }
.section-head p.section-sub { margin-left: auto; margin-right: auto; }
.section-head.left p.section-sub { margin-left: 0; }

/* ─── Pilier Cards (Features) ──────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pillar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  pointer-events: none;
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(108,140,255,0.3);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.pillar:hover::before { opacity: 1; }
.pillar > * { position: relative; }
.pillar .ico {
  width: 44px; height: 44px;
  background: var(--grad-soft);
  border: 1px solid rgba(108,140,255,0.2);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.pillar .ico svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.pillar p { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ─── Features Grid (riche, 2 colonnes) ────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .2s var(--ease-out);
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.feature .ico {
  display: inline-flex;
  width: 40px; height: 40px;
  background: var(--grad);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(108,140,255,0.3);
}
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 14px; }

/* ─── Workflow Steps (How it works) ─────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  position: relative;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}
.step .num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(108,140,255,0.4);
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13px; }

/* ─── Showcase / Visual Cards ───────────────────────── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.showcase {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s var(--ease-out);
}
.showcase:hover {
  transform: translateY(-3px);
  border-color: rgba(108,140,255,0.3);
}
.showcase .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--panel-2), var(--panel-3));
  position: relative;
  overflow: hidden;
}
.showcase .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.showcase .body { padding: 18px; }
.showcase h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.showcase p { color: var(--muted); font-size: 13px; }

/* ─── Testimonials ───────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.testimonial {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial .quote {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 18px;
}
.testimonial .quote::before { content: '"'; font-size: 36px; line-height: 0; color: var(--accent); vertical-align: -12px; margin-right: 4px; }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}
.testimonial .author .name { font-weight: 600; font-size: 14px; }
.testimonial .author .role { font-size: 12px; color: var(--muted); }

/* ─── Pricing ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all .25s var(--ease-out);
}
.plan:hover { border-color: var(--border-2); transform: translateY(-2px); }
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(108,140,255,0.2);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(108,140,255,0.05) 100%);
  transform: scale(1.02);
}
.plan h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.plan .price { font-size: 44px; font-weight: 800; line-height: 1; margin: 14px 0 4px; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan .desc { color: var(--muted); font-size: 13px; margin-bottom: 24px; min-height: 38px; }
.plan ul { list-style: none; margin-bottom: 24px; }
.plan ul li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.plan ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 16px;
  background: var(--accent);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
}
.plan ul li.muted { color: var(--muted); }
.plan ul li.muted::before { background: var(--muted-2); mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><line x1="5" y1="12" x2="19" y2="12" stroke="currentColor" stroke-width="3"/></svg>') center / contain no-repeat; }
.plan .btn { width: 100%; }

/* Toggle billing */
.billing-toggle {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  gap: 0;
  margin: 20px auto 30px;
}
.billing-toggle button {
  padding: 8px 18px;
  background: transparent;
  border: none;
  color: var(--muted);
  border-radius: 100px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all .15s var(--ease-out);
}
.billing-toggle button.active {
  background: var(--grad);
  color: white;
  box-shadow: 0 2px 8px rgba(108,140,255,0.3);
}
.billing-toggle .save-tag {
  font-size: 10px;
  margin-left: 6px;
  background: var(--ok);
  color: #052e16;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
}
.toggle-row { text-align: center; }

/* Compare table */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  background: var(--panel-2);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.compare thead th.plan-col { color: var(--accent); }
.compare thead th.plan-col.featured { background: var(--grad-soft); color: var(--accent-2); }
.compare tbody tr:hover { background: var(--panel-2); }
.compare td.center { text-align: center; }
.compare .check { color: var(--ok); }
.compare .cross { color: var(--muted-2); }
.compare .num { font-weight: 600; color: var(--text); }

/* ─── FAQ ──────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item:hover { border-color: var(--border-2); }
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--muted);
  font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item .answer {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── CTA Section ──────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% 0%, rgba(108,140,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-block > * { position: relative; }
.cta-block h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-block p { color: var(--muted); margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-block .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Logos bar ───────────────────────────────────── */
.logos-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
  opacity: 0.5;
}
.logos-bar .logo-item {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

/* ─── Docs sidebar ────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding-top: 32px;
}
.docs-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
}
.docs-sidebar h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 18px 0 8px;
  padding-left: 12px;
}
.docs-sidebar a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all .12s;
}
.docs-sidebar a:hover { color: var(--text); background: var(--panel); }
.docs-sidebar a.active { color: var(--accent); border-left-color: var(--accent); background: var(--grad-soft); }
.docs-content { min-width: 0; }

/* Docs prose enrichi */
.prose { max-width: 760px; }
.prose h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.prose .meta { color: var(--muted); font-size: 13px; margin-bottom: 36px; }
.prose h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; color: var(--text); }
.prose ul, .prose ol { margin: 14px 0 14px 24px; }
.prose li { margin-bottom: 6px; }
.prose code { background: var(--panel); padding: 2px 6px; border-radius: 4px; color: var(--accent); font-size: 12.5px; border: 1px solid var(--border); }
.prose pre {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}
.prose pre code { background: transparent; padding: 0; border: 0; color: var(--text); font-size: 13px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose .callout {
  background: var(--grad-soft);
  border: 1px solid rgba(108,140,255,0.2);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  color: var(--text);
}
.prose kbd {
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border-2);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
}

/* ─── Gallery grid ─────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s var(--ease-out);
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,140,255,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.gallery-card .thumb {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--panel-2), var(--panel-3));
  position: relative;
  overflow: hidden;
}
.gallery-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card .placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 40px;
}
.gallery-card .meta { padding: 14px 16px; }
.gallery-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.gallery-card .author { font-size: 12px; color: var(--muted); }
.gallery-card .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.gallery-card .tag { font-size: 10px; padding: 2px 8px; background: var(--panel-2); border-radius: 8px; color: var(--muted); }
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.gallery-filter {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.gallery-filter:hover { color: var(--text); border-color: var(--border-2); }
.gallery-filter.active { background: var(--grad); color: white; border-color: transparent; }

/* ─── Footer ───────────────────────────────────────── */
footer.site {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 100px;
  background: var(--bg-2);
}
footer.site .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
footer.site .col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}
footer.site .col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 13px;
}
footer.site .col a:hover { color: var(--text); }
footer.site .brand-col { padding-right: 20px; }
footer.site .brand-col p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.5;
}
footer.site .copy {
  color: var(--muted-2);
  font-size: 12px;
  padding-top: 32px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ─── Mobile ───────────────────────────────────────── */
@media (max-width: 900px) {
  footer.site .container { grid-template-columns: 1fr 1fr; }
  footer.site .brand-col { grid-column: 1 / -1; padding-right: 0; }
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-sidebar { position: relative; top: 0; max-height: none; }
  .plan.featured { transform: none; }
}
@media (max-width: 720px) {
  nav.main { gap: 14px; }
  nav.main .hide-mobile { display: none; }
  .hero { padding: 50px 0 40px; }
  section { padding: 50px 0; }
  .hero-stats { gap: 28px; padding-top: 24px; }
  .cta-block { padding: 40px 24px; }
  footer.site .container { grid-template-columns: 1fr; }
  .compare { font-size: 12px; }
  .compare th, .compare td { padding: 10px 8px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
