/* ==========================================================================
   WP Atölye — Theme Studio
   Design system & component styles
   Brand: modern digital workshop · Professional, clean, developer-trusted
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ink-950: #10131a;
  --ink-800: #242938;
  --ink-600: #4a5160;
  --ink-500: #5c6373;
  --ink-400: #8a8275;

  --paper-50: #fffaf2;
  --paper-100: #f8f1e7;
  --paper-200: #f4ead9;

  --workshop-500: #e1772f;
  --workshop-600: #c95f20;
  --blueprint-600: #2463eb;
  --mint-500: #16a97a;
  --amber-400: #e9b949;

  --line: rgba(16, 19, 26, 0.09);
  --line-soft: rgba(16, 19, 26, 0.07);

  --radius-card: 1.25rem;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-soft: 0 24px 60px rgb(16 19 26 / 0.10);
  --shadow-card: 0 4px 18px rgb(16 19 26 / 0.04);
  --shadow-cta: 0 16px 34px rgb(225 119 47 / 0.30);

  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 8vw, 112px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-950);
  background: var(--paper-50);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--workshop-500); color: #fff; }

:focus-visible {
  outline: 3px solid var(--blueprint-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink-950);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ----- Layout helpers ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.section--paper { background: var(--paper-100); border-top: 1px solid var(--line-soft); }
.section--dark { background: var(--ink-950); color: #fff; }
.section--white { background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blueprint-600);
  letter-spacing: 0.04em;
  display: inline-block;
}
.eyebrow--orange { color: var(--workshop-600); }
.eyebrow--white { color: var(--workshop-500); }

.section-head { max-width: 640px; }
.section-head h2,
.h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}
.section-head p,
.lead {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-600);
  text-wrap: pretty;
}
.section--dark .lead,
.section--dark .section-head p { color: #a8adba; }
.text-center { text-align: center; }
.muted { color: var(--ink-600); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { color: #fff; background: var(--workshop-500); box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--workshop-600); transform: translateY(-1px); }
.btn--dark { color: #fff; background: var(--ink-950); }
.btn--dark:hover { background: var(--ink-800); }
.btn--ghost { color: var(--ink-950); background: #fff; border-color: rgba(16,19,26,0.12); }
.btn--ghost:hover { border-color: rgba(16,19,26,0.28); }
.btn--soft { color: var(--ink-950); background: var(--paper-100); }
.btn--soft:hover { background: var(--paper-200); }
.btn--lg { font-size: 16px; padding: 15px 26px; font-weight: 700; }
.btn--block { display: flex; width: 100%; }
.btn--on-dark { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); }
.btn--on-dark:hover { background: rgba(255,255,255,0.18); }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink-950);
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink-950);
  display: grid; place-items: center;
  flex: none;
}
.brand__mark span {
  width: 15px; height: 15px;
  border: 2.5px solid var(--workshop-500);
  border-radius: 4px;
  transform: rotate(45deg);
  display: block;
}
.brand__mark--light { background: #fff; }
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--workshop-600);
  background: var(--paper-100);
  padding: 3px 6px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink-800);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav a:hover { background: var(--paper-100); }
.nav a[aria-current="page"] { color: var(--workshop-600); background: var(--paper-100); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .link-login {
  text-decoration: none;
  color: var(--ink-950);
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.18s var(--ease);
}
.header-actions .link-login:hover { background: var(--paper-100); }

.menu-toggle {
  display: none;
  background: var(--ink-950);
  border: none;
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 10px;
  place-items: center;
  cursor: pointer;
}

/* ----- Mobile off-canvas ----- */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(16,19,26,0.5);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(86vw, 340px);
  background: var(--paper-50);
  box-shadow: -24px 0 60px rgba(16,19,26,0.18);
  padding: 20px 22px;
  transform: translateX(105%);
  transition: transform 0.32s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer__head span { font-weight: 800; font-size: 17px; }
.drawer__close {
  background: var(--paper-100); border: none;
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-950);
}
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a {
  text-decoration: none; color: var(--ink-950);
  font-size: 17px; font-weight: 600;
  padding: 14px 12px; border-radius: 10px;
  border-bottom: 1px solid rgba(16,19,26,0.06);
}
.drawer__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(225,119,47,0.10), transparent 60%),
    radial-gradient(700px 380px at 8% 12%, rgba(36,99,235,0.06), transparent 55%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px,7vw,92px) var(--pad-x) clamp(36px,5vw,64px);
  display: flex; flex-wrap: wrap;
  gap: clamp(36px,5vw,64px);
  align-items: center;
}
.hero__col { flex: 1 1 380px; min-width: 300px; }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px,5.4vw,62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--workshop-500); }
.hero p {
  margin-top: 22px;
  font-size: clamp(16px,1.5vw,19px);
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 540px;
  text-wrap: pretty;
}
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 18px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px; color: var(--ink-500);
}
.hero__meta .sep { color: rgba(16,19,26,0.2); }

/* ----- Pill / badge ----- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--workshop-600);
  background: var(--paper-100);
  border: 1px solid rgba(201,95,32,0.18);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint-500);
  box-shadow: 0 0 0 4px rgba(22,169,122,0.18);
}
.badge {
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-800);
  background: var(--paper-100);
  padding: 5px 10px;
  border-radius: 7px;
}
.tag-mono {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-400);
  background: var(--paper-100);
  padding: 4px 9px; border-radius: 7px;
}

/* ----- Browser mockup ----- */
.browser {
  background: #fff;
  border: 1px solid rgba(16,19,26,0.1);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16,19,26,0.14);
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
}
.browser__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(16,19,26,0.08);
  background: var(--paper-100);
}
.browser__dots { display: flex; gap: 7px; flex: none; }
.browser__dots span { width: 11px; height: 11px; border-radius: 50%; }
.browser__url {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid rgba(16,19,26,0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--ink-500);
  min-width: 0;
}
.browser__url span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewport-toggle {
  display: flex; gap: 4px;
  background: #fff;
  border: 1px solid rgba(16,19,26,0.08);
  border-radius: 9px; padding: 3px;
  flex: none;
}
.viewport-toggle button {
  width: 32px; height: 28px;
  display: grid; place-items: center;
  border-radius: 7px; border: none;
  cursor: pointer; color: var(--ink-400);
  background: transparent;
  transition: all 0.18s var(--ease);
}
.viewport-toggle button[aria-pressed="true"] { background: var(--ink-950); color: #fff; }
.browser__stage {
  background: repeating-linear-gradient(45deg, var(--paper-100), var(--paper-100) 12px, var(--paper-200) 12px, var(--paper-200) 24px);
  padding: clamp(14px,2vw,26px);
  display: flex; justify-content: center;
}
.browser__frame { width: 100%; transition: max-width 0.4s var(--ease); }
.browser__caption { text-align: center; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); }

/* ----- Image placeholder (shot) ----- */
.shot {
  width: 100%;
  aspect-ratio: 16/10;
  background:
    linear-gradient(135deg, rgba(225,119,47,0.08), rgba(36,99,235,0.06)),
    var(--paper-100);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.shot::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16,19,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,19,26,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.shot span { position: relative; z-index: 1; }
.shot--flat { aspect-ratio: auto; }

/* ----- Trust strip ----- */
.trust-strip {
  display: flex; flex-wrap: wrap;
  gap: 14px 30px;
  align-items: center; justify-content: center;
  padding-top: 22px; padding-bottom: 22px;
}
.trust-strip__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-800);
}
.trust-strip__item svg { width: 16px; height: 16px; color: var(--mint-500); }

/* ----- Filter pills ----- */
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(16,19,26,0.14);
  background: #fff;
  color: var(--ink-800);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.filter-pill:hover { border-color: rgba(16,19,26,0.3); }
.filter-pill[aria-selected="true"] { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }

/* ----- Card grids ----- */
.grid { display: grid; gap: 24px; }
.grid--themes { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.grid--quality { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ----- Theme card ----- */
.theme-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.theme-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(16,19,26,0.12); }
.theme-card__media { position: relative; background: var(--paper-100); border-bottom: 1px solid var(--line-soft); }
.theme-card__status {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600; color: #fff;
  padding: 5px 9px; border-radius: 999px;
}
.theme-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.theme-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.theme-card__cat { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em; }
.theme-card__ver { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-400); }
.theme-card h3 { margin-top: 9px; font-size: 21px; font-weight: 800; }
.theme-card__desc { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-600); flex: 1; }
.theme-card__badges { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.theme-card__actions { margin-top: 18px; display: flex; gap: 9px; }
.theme-card__actions .btn { flex: 1; padding: 11px; font-size: 14px; }

/* ----- Category card ----- */
.cat-card {
  text-decoration: none; color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16,19,26,0.10); }
.cat-card__top { display: flex; align-items: center; justify-content: space-between; }
.cat-card__num { font-family: var(--font-mono); font-size: 28px; font-weight: 600; line-height: 1; }
.cat-card h3 { margin-top: 18px; font-size: 19px; font-weight: 800; }
.cat-card p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-600); }

/* ----- Quality cards (dark) ----- */
.q-card {
  background: #171b24;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 22px;
}
.q-card__num {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(225,119,47,0.14);
  display: grid; place-items: center;
  color: var(--workshop-500);
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
}
.q-card h3 { margin-top: 16px; font-size: 16.5px; font-weight: 700; }
.q-card p { margin-top: 7px; font-size: 14px; line-height: 1.55; color: #9aa0ad; }

.chip-ok {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: var(--mint-500);
  border: 1px solid rgba(22,169,122,0.4);
  background: rgba(22,169,122,0.1);
  padding: 9px 14px; border-radius: 999px;
}
.chip-ok svg { width: 15px; height: 15px; }

/* ----- FAQ accordion ----- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 22px;
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: inherit;
  font-size: 16.5px; font-weight: 700; color: var(--ink-950);
}
.faq__icon {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--paper-100); color: var(--ink-950);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.faq__icon svg { width: 17px; height: 17px; }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--workshop-500); color: #fff; transform: rotate(45deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--ink-600); }

/* ----- CTA band ----- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--workshop-500);
  border-radius: 28px;
  padding: clamp(40px,6vw,72px) clamp(28px,5vw,64px);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% -20%, rgba(255,255,255,0.18), transparent 60%);
}
.cta-band__inner { position: relative; }
.cta-band h2 { font-size: clamp(28px,3.6vw,44px); line-height: 1.05; font-weight: 800; color: #fff; text-wrap: balance; }
.cta-band p { margin: 16px auto 0; max-width: 520px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.92); }
.cta-band__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .btn--white { background: #fff; color: var(--ink-950); }
.cta-band .btn--white:hover { transform: translateY(-1px); }
.cta-band .btn--outline { background: rgba(16,19,26,0.22); color: #fff; border-color: rgba(255,255,255,0.45); }
.cta-band .btn--outline:hover { background: rgba(16,19,26,0.34); }

/* ----- Footer ----- */
.site-footer { background: var(--ink-950); color: #fff; }
.site-footer__top {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(48px,6vw,80px) var(--pad-x) 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
}
.site-footer__brand { max-width: 340px; }
.site-footer__brand .brand { color: #fff; }
.site-footer__brand p { margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: #9aa0ad; }
.site-footer h4 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600; color: #6b7280;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.footer-links a {
  text-decoration: none; color: #c7cad2; font-size: 14.5px;
  position: relative;
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.footer-links a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 0; height: 1.5px; background: var(--workshop-500);
  transform: translateY(-50%); opacity: 0;
  transition: width 0.2s var(--ease), opacity 0.2s var(--ease);
}
.footer-links a:hover { color: #fff; padding-left: 16px; }
.footer-links a:hover::before { width: 10px; opacity: 1; }

/* Footer responsive */
@media (max-width: 920px) {
  .site-footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; max-width: 460px; }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.site-footer__bottom .container {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
  font-size: 13px; color: #6b7280;
}
.site-footer__bottom .mono { font-family: var(--font-mono); font-size: 12px; }

/* ----- Page header (interior pages) ----- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.page-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 380px at 80% -20%, rgba(225,119,47,0.09), transparent 60%);
}
.page-hero__inner { position: relative; max-width: var(--container); margin: 0 auto; padding: clamp(44px,6vw,80px) var(--pad-x) clamp(36px,4vw,56px); }
.page-hero h1 { margin-top: 14px; font-size: clamp(32px,4.4vw,52px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; max-width: 760px; }
.page-hero p { margin-top: 18px; font-size: clamp(16px,1.4vw,18.5px); line-height: 1.6; color: var(--ink-600); max-width: 620px; }

/* ----- Breadcrumb ----- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-family: var(--font-mono); color: var(--ink-400); }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--workshop-600); }
.breadcrumb .sep { color: rgba(16,19,26,0.25); }

/* ----- Generic panel / card ----- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 34px);
}
.panel--paper { background: var(--paper-100); }

/* ----- Feature list ----- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; font-size: 15px; line-height: 1.55; color: var(--ink-800); }
.feature-list svg { width: 20px; height: 20px; flex: none; color: var(--mint-500); margin-top: 1px; }

/* ----- Spec table ----- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; vertical-align: top; }
.spec-table th { width: 38%; font-weight: 600; color: var(--ink-800); }
.spec-table td { color: var(--ink-600); font-family: var(--font-mono); font-size: 13.5px; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ----- Detail layout ----- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.sticky-side { position: sticky; top: 96px; }

/* ----- Stats ----- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; }
.stat__num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat__label { margin-top: 8px; font-size: 13.5px; color: var(--ink-500); }
.section--dark .stat__label { color: #9aa0ad; }

/* ----- Auth ----- */
.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 64px) var(--pad-x); }
.auth__form { width: 100%; max-width: 400px; }
.auth__aside { background: var(--ink-950); color: #fff; position: relative; overflow: hidden; }
.auth__aside-inner { position: relative; padding: clamp(40px, 5vw, 72px); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.auth__aside::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 380px at 80% 0%, rgba(225,119,47,0.18), transparent 60%);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-800); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(16,19,26,0.16);
  border-radius: 10px;
  background: #fff; color: var(--ink-950);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--workshop-500);
  box-shadow: 0 0 0 3px rgba(225,119,47,0.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__hint { margin-top: 7px; font-size: 12.5px; color: var(--ink-500); }
.checkrow { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-600); line-height: 1.5; }
.checkrow input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--workshop-500); flex: none; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-400); font-size: 13px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* ----- Dashboard ----- */
.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.dash-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
  text-decoration: none; color: var(--ink-800);
  font-size: 14.5px; font-weight: 600;
  padding: 11px 14px; border-radius: 10px;
  display: flex; align-items: center; gap: 11px;
  transition: background 0.18s var(--ease);
}
.dash-nav a svg { width: 18px; height: 18px; color: var(--ink-400); }
.dash-nav a:hover { background: var(--paper-100); }
.dash-nav a.is-active { background: var(--ink-950); color: #fff; }
.dash-nav a.is-active svg { color: var(--workshop-500); }

.dl-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.dl-row__icon { width: 48px; height: 48px; border-radius: 11px; background: var(--paper-100); display: grid; place-items: center; flex: none; }
.dl-row__icon svg { width: 22px; height: 22px; color: var(--workshop-600); }
.dl-row__body { flex: 1; min-width: 160px; }
.dl-row__body h4 { font-size: 16px; font-weight: 700; }
.dl-row__body p { margin-top: 4px; font-size: 13px; color: var(--ink-500); font-family: var(--font-mono); }

/* ----- Docs layout ----- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: 96px; }
.toc h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); margin-bottom: 12px; }
.toc a { display: block; text-decoration: none; color: var(--ink-600); font-size: 14px; padding: 7px 12px; border-radius: 8px; border-left: 2px solid transparent; transition: all 0.18s var(--ease); }
.toc a:hover { background: var(--paper-100); color: var(--ink-950); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 48px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 32px; }
.prose p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--ink-800); }
.prose ul, .prose ol { margin-top: 14px; padding-left: 22px; color: var(--ink-800); line-height: 1.7; }
.prose li { margin-top: 6px; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--paper-100); padding: 2px 6px; border-radius: 5px; color: var(--workshop-600); }
.prose pre { margin-top: 18px; background: var(--ink-950); color: #e6e8ee; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose a { color: var(--blueprint-600); }
.callout { margin-top: 20px; display: flex; gap: 12px; padding: 16px 18px; background: rgba(36,99,235,0.06); border: 1px solid rgba(36,99,235,0.16); border-radius: 12px; font-size: 14.5px; color: var(--ink-800); line-height: 1.6; }
.callout svg { width: 20px; height: 20px; flex: none; color: var(--blueprint-600); margin-top: 1px; }

/* ----- Changelog ----- */
.release { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.release__ver { font-family: var(--font-mono); }
.release__ver strong { font-size: 20px; font-weight: 700; }
.release__date { margin-top: 6px; font-size: 13px; color: var(--ink-400); }
.release__tag { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
.release ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.release li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink-800); }
.release li .lbl { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; flex: none; height: fit-content; margin-top: 2px; }
.lbl--add { background: rgba(22,169,122,0.14); color: var(--mint-500); }
.lbl--fix { background: rgba(36,99,235,0.12); color: var(--blueprint-600); }
.lbl--imp { background: rgba(225,119,47,0.14); color: var(--workshop-600); }

/* ----- Ad slot (clearly separated, never styled as a card CTA) ----- */
.ad-slot {
  border: 1px dashed rgba(16,19,26,0.18);
  border-radius: 12px;
  background: rgba(16,19,26,0.015);
  padding: 22px;
  text-align: center;
  min-height: 120px;
  display: grid; place-items: center;
}
.ad-slot__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); }

/* ----- Misc ----- */
.divider-line { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.stack-gap { display: grid; gap: 16px; }
.flex-between { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }

/* ----- Hero meta chips (interior pages) ----- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-800);
  background: #fff; border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
}
.meta-chip svg { width: 15px; height: 15px; color: var(--workshop-500); }

/* ----- Compare (studio vs file dump) ----- */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.compare__card {
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  background: #fff;
}
.compare__card--bad { background: var(--paper-100); border-style: dashed; }
.compare__card--good { border-color: rgba(22,169,122,0.4); box-shadow: 0 18px 44px rgba(22,169,122,0.10); }
.compare__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.compare__tag--bad { color: var(--ink-500); background: rgba(16,19,26,0.06); }
.compare__tag--good { color: var(--mint-500); background: rgba(22,169,122,0.12); }
.compare__card h3 { font-size: 20px; font-weight: 800; }
.compare__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 13px; }
.compare__list li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.5; color: var(--ink-800); }
.compare__list li svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.compare__list--bad svg { color: #c9533f; }
.compare__list--good svg { color: var(--mint-500); }

/* ----- Timeline ----- */
.timeline { position: relative; margin-top: 44px; display: grid; gap: 4px; }
.timeline__item { position: relative; padding: 0 0 30px 40px; }
.timeline__item::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: -6px;
  width: 2px; background: var(--line);
}
.timeline__item:last-child::before { display: none; }
.timeline__item::after {
  content: ""; position: absolute; left: 3px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--workshop-500); box-shadow: 0 0 0 4px rgba(225,119,47,0.16);
}
.timeline__item--done::after { background: var(--mint-500); box-shadow: 0 0 0 4px rgba(22,169,122,0.16); }
.timeline__item--next::after { background: #fff; border: 2px solid var(--ink-400); box-shadow: none; }
.timeline__date { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--workshop-600); }
.timeline__item h3 { margin-top: 6px; font-size: 18px; font-weight: 700; }
.timeline__item p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--ink-600); }

/* ----- Tech stack cards ----- */
.tech-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.tech-card__icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--paper-100); color: var(--workshop-600);
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
}
.tech-card__icon svg { width: 22px; height: 22px; }
.tech-card h3 { margin-top: 15px; font-size: 16.5px; font-weight: 700; }
.tech-card p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--ink-600); }

/* ----- Team cards ----- */
.team-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 24px; text-align: center;
}
.team-card__avatar {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #fff;
  letter-spacing: -0.02em;
}
.team-card h3 { margin-top: 14px; font-size: 16.5px; font-weight: 700; }
.team-card__role { margin-top: 3px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-400); }
.team-card p { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-600); }

/* ----- Animations ----- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .sticky-side, .toc, .dash-nav { position: static; }
  .docs { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav, .header-actions { display: none; }
  .menu-toggle { display: grid; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .release { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .theme-card__actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero__cta .btn, .cta-band__actions .btn { width: auto; }
  .filter-row .filter-pill { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
