/* ─────────────────────────────────────────────
   CatVerse Lab design system
   Used by: home, about, CatVerse, Cathena, blog, 404 (layout in lib/site.js)
───────────────────────────────────────────── */

:root {
  --bg: #fffaf2;
  --bg-2: #f7eddd;
  --bg-3: #f0e2cb;
  --surface: #ffffff;
  --ink: #2a1c0e;
  --ink-2: #6b5038;
  --ink-3: #977b5f;
  --line: rgba(92, 61, 30, 0.12);
  --line-2: rgba(92, 61, 30, 0.2);
  --brand: #ec5b4c;
  --brand-ink: #c9452f;
  --brand-soft: #fde4dc;
  --sage: #5f8f6a;
  --sage-soft: #e1eedf;
  --honey: #f2a93b;
  --honey-soft: #fdeccc;
  --cathena: #1e6645;
  --cathena-2: #3a9669;
  --cathena-soft: #dcefe4;
  --viseff-1: #40e3ff;
  --viseff-2: #ff36a3;
  --viseff-bg: #0c0c19;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgba(60, 35, 10, 0.06), 0 2px 8px rgba(60, 35, 10, 0.05);
  --shadow: 0 2px 6px rgba(60, 35, 10, 0.05), 0 12px 32px rgba(60, 35, 10, 0.09);
  --shadow-lg: 0 8px 20px rgba(60, 35, 10, 0.08), 0 32px 70px rgba(60, 35, 10, 0.16);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --font-display: 'Nunito', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110b;
    --bg-2: #1f170f;
    --bg-3: #2a1f15;
    --surface: #251c13;
    --ink: #f8efe2;
    --ink-2: #d4c0a7;
    --ink-3: #a38c73;
    --line: rgba(255, 236, 210, 0.1);
    --line-2: rgba(255, 236, 210, 0.18);
    --brand: #ff7a68;
    --brand-ink: #ff9585;
    --brand-soft: #3a1f19;
    --sage: #8cc19a;
    --sage-soft: #1f2e22;
    --honey-soft: #3a2a12;
    --cathena-soft: #142b20;
    --on-brand: #1b0f08;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.3), 0 32px 70px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.wrap--narrow { width: min(780px, 100%); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ── */
.h1, .h2, .h3, h1, h2, h3 { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); }
.h1, .section-head .h2, .cta-band .h2 { text-wrap: balance; }
.h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.hl { color: var(--brand); }
.hl-under { background: linear-gradient(transparent 62%, var(--honey-soft) 62%); padding: 0 .08em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); line-height: 1.7; max-width: 38em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 .98rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn--ghost { border: 1.5px solid var(--line-2); color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 16px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .68rem; opacity: .75; letter-spacing: .02em; }
.store b { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.store + .store { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2); }
.store--sm { min-height: 48px; padding: 6px 16px 6px 12px; border-radius: 14px; }
.store--sm b { font-size: .95rem; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(60, 35, 10, 0.05); }
.nav-in { height: 68px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand span { font: 900 1.2rem/1 var(--font-display); letter-spacing: -.02em; }
.brand em { font-style: normal; color: var(--brand); }
.nav-links { display: none; gap: 4px; margin-right: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav-cta { display: none; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 24px; height: 24px; }
.nav-menu summary:hover { background: var(--bg-2); }
.nav-sheet {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; display: grid; animation: pop .25s var(--ease);
}
.nav-sheet a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.nav-sheet a:hover { background: var(--bg-2); }
.nav-sheet img { width: 28px; height: 28px; border-radius: 8px; }
.nav-sheet small { margin-left: auto; font-weight: 400; color: var(--ink-3); font-size: .8rem; }
.nav-sheet hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-menu { display: none; }
}
@media (min-width: 480px) and (max-width: 899px) { .nav-cta { display: inline-flex; } }

/* ── Sections ── */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--bg-2); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }

/* ── Hero ── */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: clip; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--honey) 22%, transparent), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: auto auto -30% -15%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero .lead { margin: 22px 0 32px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--ink-3); font-size: .9rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--sage); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .85rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.pill b { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 600; }
a.pill:hover { border-color: var(--line-2); }

/* Visual: photo card with floating chips */
.visual { position: relative; width: min(500px, 100%); margin: 0 auto; }
.visual-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--bg-3); transform: rotate(1.5deg); }
.visual-photo img { width: 100%; height: 100%; object-fit: cover; }
.float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow); font-size: .82rem; color: var(--ink-2); line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.float b { display: block; color: var(--ink); font-size: .92rem; }
.float img { width: 40px; height: 40px; border-radius: 11px; }
.float .emoji { font-size: 1.6rem; line-height: 1; }
.float--tl { top: 8%; left: -6%; }
.float--br { bottom: 9%; right: -5%; animation-delay: -3s; }
.float--bl { bottom: -4%; left: 6%; animation-delay: -1.5s; }
@media (max-width: 560px) { .float--tl { left: 0; } .float--br { right: 0; } }

/* ── Cards & grids ── */
.grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
a.card { text-decoration: none; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .h3 { margin: 16px 0 8px; }
.card p { color: var(--ink-2); font-size: .95rem; }
.icon-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--brand-soft); }
.icon-badge svg { width: 26px; height: 26px; color: var(--brand-ink); }
.icon-badge--sage { background: var(--sage-soft); } .icon-badge--sage svg { color: var(--sage); }
.icon-badge--honey { background: var(--honey-soft); } .icon-badge--honey svg { color: #b9741a; }
.icon-badge--green { background: var(--cathena-soft); } .icon-badge--green svg { color: var(--cathena-2); }

/* Media card: image on top */
.media-card { padding: 0; overflow: hidden; }
.media-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.media-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media-card:hover .media img { transform: scale(1.05); }
.media-card .body { padding: 22px 24px 26px; }
.media-card .h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }

/* ── Product showcase rows (home) ── */
.showcase { display: grid; gap: clamp(24px, 4vw, 40px); }
.product {
  position: relative; display: grid; gap: 32px; align-items: center; overflow: hidden;
  border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr .9fr; } .product--flip .product-visual { order: -1; } }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.product-head small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.product-head .h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.product .lead { font-size: 1.05rem; margin-bottom: 20px; }
.checks { list-style: none; display: grid; gap: 10px; margin: 0 0 28px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .97rem; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); }
.product-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 300px; }
.product-visual .shot { width: min(380px, 100%); border-radius: 22px; box-shadow: var(--shadow-lg); }
.product--catverse { background: linear-gradient(160deg, var(--surface) 40%, var(--brand-soft)); }
.product--cathena { background: linear-gradient(160deg, var(--surface) 40%, var(--cathena-soft)); }
.product--cathena .checks svg { background: var(--cathena-soft); color: var(--cathena-2); }
.product--viseff { background: radial-gradient(120% 120% at 100% 0%, #2a1840 0%, var(--viseff-bg) 55%); color: #fff; border-color: rgba(255,255,255,.08); }
.product--viseff .h2, .product--viseff .product-head small { color: #fff; }
.product--viseff .lead, .product--viseff .checks li { color: rgba(255,255,255,.75); }
.product--viseff .checks svg { background: rgba(64,227,255,.15); color: var(--viseff-1); }
.product--viseff .store { background: #fff; color: #0c0c19; }
.product--viseff .store + .store { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.product--viseff .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.grad-text { background: linear-gradient(90deg, var(--viseff-1), var(--viseff-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phones { display: flex; gap: 14px; justify-content: center; align-items: flex-end; width: min(440px, 100%); }
.phones img { width: 46%; border-radius: 26px; border: 6px solid #111; box-shadow: var(--shadow-lg); background: #111; }
.phones img:first-child { transform: translateY(-18px) rotate(-3deg); }
.phones img:last-child { transform: rotate(3deg); }
.fx-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(420px, 100%); }
.fx-mosaic img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.fx-mosaic img:nth-child(2), .fx-mosaic img:nth-child(5) { transform: translateY(16px); }

.spirun-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.spirun-card .h3 { margin: 8px 0 4px; }
.tag--sage { background: var(--sage-soft); color: var(--sage); }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 24px 22px; }
.stat b { display: block; font: 900 clamp(1.8rem, 3.4vw, 2.4rem)/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }
.stat span { color: var(--ink-2); font-size: .9rem; }

/* ── Steps ── */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 24px; left: 28px; font: 900 2.4rem/1 var(--font-display); color: var(--brand); opacity: .9;
}

/* ── Horizontal scroller ── */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 22px; margin: 0 -16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
@media (min-width: 640px) { .scroller { padding: 4px 28px 22px; margin: 0 -28px; } }
.scroller > * { scroll-snap-align: start; }
.shot-card { margin: 0; }
.shot-card img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-3); }
.shot-card figcaption { margin-top: 12px; font-weight: 600; font-size: .95rem; text-align: center; }

/* ── Video (click to load) ── */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.yt--short { aspect-ratio: 9 / 16; width: min(300px, 100%); margin: 0 auto; border-radius: 26px; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; opacity: .92; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s var(--ease); }
.yt:hover .yt-play { transform: scale(1.08); }
.yt-play svg { width: 30px; height: 30px; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Split ── */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--dark { background: #241709; color: #f8efe2; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); }
.split--dark .h2 { color: #fff; }
.split--dark .lead { color: rgba(248,239,226,.75); }
.split--dark .eyebrow { color: var(--honey); }

/* ── Callout / CTA band ── */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--r-lg); padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px);
  background: linear-gradient(135deg, #ec5b4c, #f2a93b); color: #fff;
}
.cta-band::after { content: '🐾'; position: absolute; right: 4%; bottom: -10%; font-size: 10rem; opacity: .12; transform: rotate(-18deg); pointer-events: none; }
.cta-band .h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.9); margin: 16px auto 32px; }
.cta-band .stores, .cta-band .btn-row { justify-content: center; }
.cta-band .store { background: #fff; color: #2a1c0e; }
.cta-band .store + .store { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }

.promo { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; text-decoration: none; border-radius: var(--r); padding: 24px 28px; color: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.promo div { flex: 1 1 220px; }
.promo small { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.promo b { display: block; font: 900 1.4rem/1.2 var(--font-display); margin: 4px 0; }
.promo p { opacity: .82; font-size: .93rem; }
.promo > svg { width: 26px; height: 26px; opacity: .7; transition: transform .3s var(--ease); }
.promo:hover > svg { transform: translateX(5px); }
.promo--cathena { background: linear-gradient(135deg, var(--cathena), var(--cathena-2)); }
.promo--viseff { background: radial-gradient(120% 140% at 100% 0%, #3a1a55, var(--viseff-bg) 60%); }
.promo--catverse { background: linear-gradient(135deg, #c9452f, #ec5b4c 60%, #f2a93b); }
.promo--challenge { background: linear-gradient(135deg, #5c3d1e, #8a5a2b); }

/* ── FAQ ── */
.faq .h2 { margin-bottom: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq-a { padding: 0 22px 22px; color: var(--ink-2); }
.faq-a a { color: var(--brand-ink); }

/* ── Breadcrumbs ── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); text-decoration: underline; }

/* ── Blog ── */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head .lead { margin-top: 16px; }
.posts { display: grid; gap: 24px; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .posts { grid-template-columns: repeat(3, 1fr); } .posts--feature > :first-child { grid-column: span 2; } }
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .media { aspect-ratio: 16 / 9; }
.post-card .body { display: flex; flex-direction: column; flex: 1; }
.post-card .h3 { font-size: 1.22rem; margin: 10px 0 8px; }
.post-card p { flex: 1; }
.post-card .more { margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 6px; }
.post-card .more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.post-card:hover .more svg { transform: translateX(4px); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .85rem; color: var(--ink-3); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.article-head { padding: clamp(32px, 5vw, 64px) 0 28px; }
.article-head .h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 18px 0 18px; }
.article-cover { width: min(1080px, calc(100% - 32px)); margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; background: var(--bg-3); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.1rem; line-height: 1.8; color: var(--ink); padding: clamp(36px, 5vw, 64px) 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.7em; font-weight: 800; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose img { width: 100%; border-radius: var(--r); margin: 1.6em 0 .4em; box-shadow: var(--shadow); }
.prose blockquote { border-left: 4px solid var(--brand); padding: 4px 0 4px 20px; font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.article-apps { display: grid; gap: 16px; margin: 8px 0 clamp(48px, 6vw, 80px); }

/* ── Footer ── */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer-in { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin: 14px 0 20px; color: var(--ink-2); font-size: .93rem; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font: 700 .78rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: var(--brand-ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-3); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: transform .25s var(--ease), color .2s, border-color .2s; }
.socials a:hover { transform: translateY(-2px); color: var(--brand); border-color: var(--line-2); }
.socials svg { width: 19px; height: 19px; }

/* ── Social list (community) ── */
.social-list { display: grid; gap: 12px; }
.social-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .25s var(--ease), border-color .2s; }
.social-list a:hover { transform: translateX(4px); border-color: var(--line-2); }
.social-list .ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.social-list .ico svg { width: 20px; height: 20px; }
.social-list b { display: block; }
.social-list span { color: var(--ink-3); font-size: .87rem; }
.social-list .go { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); }

/* ── Facts table (about) ── */
.facts { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .95rem; }
.facts th, .facts td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 30%; font-weight: 600; color: var(--ink); background: var(--bg-2); }
.facts td { color: var(--ink-2); }
.facts a { color: var(--brand-ink); }

/* ── 404 ── */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font: 900 clamp(5rem, 18vw, 10rem)/1 var(--font-display); color: var(--brand); letter-spacing: -.04em; }

/* ── Motion ── */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s var(--ease) both; }
.rise-2 { animation: rise .9s .12s var(--ease) both; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
