/* ==========================================================
   AssetBoard — Promote Your Digital Asset Free
   Plain CSS. Theme tokens live in :root and [data-theme="dark"].
   ========================================================== */

:root {
  --bg: #f7f4ee;
  --bg-alt: #efeae0;
  --surface: #ffffff;
  --surface-2: #fbf9f5;
  --ink: #15171c;
  --ink-soft: #4a4f5c;
  --ink-mute: #7a7f8c;
  --line: #e4ddd0;
  --primary: #ff5a1f;
  --primary-ink: #ffffff;
  --primary-soft: #ffe6dc;
  --teal: #0fa596;
  --teal-soft: #d6f3ef;
  --sun: #ffc23d;
  --danger: #e5484d;
  --success: #16a34a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(21, 23, 28, 0.06), 0 2px 8px rgba(21, 23, 28, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(21, 23, 28, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(21, 23, 28, 0.28);
  --glow: 0 18px 40px -14px rgba(255, 90, 31, 0.55);
  --grad-hero: radial-gradient(1200px 600px at 10% -10%, #ffd9c7 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #c9f1ea 0%, transparent 55%);
  --grad-primary: linear-gradient(135deg, #ff5a1f 0%, #ff8a3d 100%);
  --grad-text: linear-gradient(100deg, #ff5a1f 0%, #ff8a3d 40%, #0fa596 100%);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --header-h: 72px;
  --container: 1200px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d0f13;
  --bg-alt: #12151b;
  --surface: #171a21;
  --surface-2: #1c2029;
  --ink: #f1efe9;
  --ink-soft: #c2c4cc;
  --ink-mute: #8b8f9b;
  --line: #2a2f3a;
  --primary: #ff6a33;
  --primary-soft: #3a1f15;
  --teal: #2cc9b8;
  --teal-soft: #11312e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --grad-hero: radial-gradient(1200px 600px at 10% -10%, rgba(255, 106, 51, 0.22) 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(44, 201, 184, 0.18) 0%, transparent 55%);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad-primary); color: var(--primary-ink); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(255, 90, 31, 0.7); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none !important; letter-spacing: -0.03em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-primary); color: #fff; box-shadow: var(--glow);
  transform: rotate(-6deg); transition: transform 0.3s;
}
.brand:hover .brand-mark { transform: rotate(6deg) scale(1.05); }
.brand span em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);
  font-weight: 600; font-size: 15px; text-decoration: none; position: relative; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle {
  width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  transition: transform 0.3s, border-color 0.2s;
}
.theme-toggle:hover { transform: rotate(20deg); border-color: var(--ink); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.3s, background 0.3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  }
  .nav-links a { padding: 12px 16px; font-size: 16px; }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: var(--grad-hero); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; animation: blob 18s ease-in-out infinite; }
.hero-blob.b1 { width: 380px; height: 380px; background: #ff8a3d; top: -120px; left: -80px; }
.hero-blob.b2 { width: 320px; height: 320px; background: #2cc9b8; bottom: -140px; right: 10%; animation-delay: -6s; }
.hero-blob.b3 { width: 220px; height: 220px; background: #ffc23d; top: 30%; right: -60px; animation-delay: -12s; }
[data-theme="dark"] .hero-blob { opacity: 0.25; }
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.92); }
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 999px; background: var(--teal-soft); display: grid; place-items: center; }
.eyebrow .dot::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--teal); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15, 165, 150, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(15, 165, 150, 0); } }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; margin: 22px 0 18px; letter-spacing: -0.04em; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 560px; }
.typed-wrap { color: var(--ink); font-weight: 700; }
.typed { color: var(--primary); border-right: 3px solid var(--primary); padding-right: 3px; animation: caret 0.8s step-end infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-quick { margin-top: 28px; display: flex; gap: 10px; background: var(--surface); padding: 8px; border-radius: 999px; border: 1.5px solid var(--line); box-shadow: var(--shadow-md); max-width: 560px; }
.hero-quick input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; outline: none; font-size: 16px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 14px; color: var(--ink-mute); font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--teal); }

/* hero visual */
.hero-visual { position: relative; height: 480px; }
.orbit { position: absolute; inset: 50% auto auto 50%; border: 1.5px dashed var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit.o1 { width: 300px; height: 300px; animation: spin 30s linear infinite; }
.orbit.o2 { width: 440px; height: 440px; animation: spin 46s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.orbit .chip {
  position: absolute; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); font-size: 24px;
}
.orbit.o1 .chip { animation: counter 30s linear infinite; }
.orbit.o2 .chip { animation: counter 46s linear infinite reverse; }
@keyframes counter { to { transform: rotate(-360deg); } }
.orbit .chip:nth-child(1) { top: -26px; left: calc(50% - 26px); }
.orbit .chip:nth-child(2) { bottom: -26px; left: calc(50% - 26px); }
.orbit .chip:nth-child(3) { left: -26px; top: calc(50% - 26px); }
.orbit .chip:nth-child(4) { right: -26px; top: calc(50% - 26px); }
.hero-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 270px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 14px)); } }
.hero-card .banner { height: 110px; border-radius: 14px; background: var(--grad-primary); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; position: relative; overflow: hidden; }
.hero-card .banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%); transform: translateX(-100%); animation: sweep 3.2s ease-in-out infinite; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.hero-card h4 { margin: 14px 0 4px; font-size: 17px; }
.hero-card p { font-size: 13px; color: var(--ink-mute); margin: 0 0 12px; line-height: 1.5; }
.hero-card .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.float-badge {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--shadow-md); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px;
  animation: float2 5s ease-in-out infinite;
}
.float-badge b { color: var(--success); }
.float-badge.f1 { top: 40px; right: 0; }
.float-badge.f2 { bottom: 50px; left: 0; animation-delay: -2.5s; }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; transform: scale(0.85); }
}
@media (max-width: 520px) {
  .hero-quick { flex-direction: column; border-radius: 20px; }
  .hero-quick input { padding: 12px; }
  .hero-visual { height: 340px; transform: scale(0.72); margin: -30px -40px; }
}

/* ---------- Stats strip ---------- */
.stats { margin-top: -40px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-size: 14px; color: var(--ink-mute); font-weight: 600; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: 18px; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Tool ---------- */
.tool-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.tool-card { padding: 30px; }
.tool-card h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.step-num { width: 30px; height: 30px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); display: inline-grid; place-items: center; font-size: 14px; font-weight: 800; font-family: var(--font-body); }
.fetch-row { display: flex; gap: 10px; margin-bottom: 8px; }
.fetch-row .input { flex: 1; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--surface-2); outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-size: 15px;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 13px; color: var(--ink-mute); }
.counter { float: right; font-size: 12px; color: var(--ink-mute); font-weight: 600; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.status { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; display: none; }
.status.show { display: block; animation: pop 0.3s ease; }
.status.ok { background: var(--teal-soft); color: var(--teal); }
.status.err { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.status.info { background: var(--primary-soft); color: var(--primary); }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff; border-radius: 50%; animation: spin2 0.7s linear infinite; display: none; }
.loading .spinner { display: inline-block; }
@keyframes spin2 { to { transform: rotate(360deg); } }

.side-stack { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.preview-card { padding: 22px; }
.preview-card h3 { font-size: 18px; }
.ad-preview { border: 1px dashed var(--line); border-radius: 14px; padding: 14px; background: var(--surface-2); }
.ad-preview .pv-banner { height: 140px; border-radius: 10px; background: var(--grad-primary); background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; overflow: hidden; }
.ad-preview .pv-title { font-weight: 800; margin: 12px 0 4px; font-family: var(--font-display); font-size: 18px; word-break: break-word; }
.ad-preview .pv-url { font-size: 12px; color: var(--teal); word-break: break-all; }
.ad-preview .pv-desc { font-size: 14px; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.55; word-break: break-word; }
.seo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.seo-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seo-list li b { font-weight: 800; }
.seo-list .good b { color: var(--success); }
.seo-list .warn b { color: #d97706; }
.seo-list .bad b { color: var(--danger); }
.share-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.share-grid a { font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; color: #fff; text-decoration: none; transition: transform 0.2s; }
.share-grid a:hover { transform: translateY(-2px); }
.code-box { position: relative; }
.code-box textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; min-height: 90px; }
.copy-btn { position: absolute; top: 8px; right: 8px; }
@media (max-width: 960px) {
  .tool-wrap { grid-template-columns: 1fr; }
  .side-stack { position: static; }
}
@media (max-width: 520px) {
  .tool-card { padding: 20px; }
  .fetch-row { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Ad board ---------- */
.board-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ad {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; animation: cardIn 0.5s ease both;
}
.ad:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ad-banner { height: 150px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 26px; text-align: center; padding: 10px; position: relative; background-size: cover; background-position: center; }
.ad-banner .tag { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.55); color: #fff; font-family: var(--font-body); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; }
.ad-banner .gem { position: absolute; top: 12px; right: 12px; background: var(--sun); color: #3b2a00; font-family: var(--font-body); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.ad-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.ad-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin: 0 0 6px; color: var(--ink); word-break: break-word; }
.ad-title a { color: inherit; }
.ad-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 14px; flex: 1; word-break: break-word; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-mute); font-weight: 700; margin-bottom: 14px; }
.ad-actions { display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.ad-actions button { flex: 1; border: 0; background: var(--surface-2); padding: 8px 6px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.ad-actions button:hover { transform: translateY(-1px); }
.ad-actions .like:hover, .ad-actions .like.on { background: #ffe4e6; color: #e11d48; }
.ad-actions .report:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.ad-actions .promote:hover { background: var(--teal-soft); color: var(--teal); }
.board-empty { grid-column: 1 / -1; text-align: center; padding: 48px; color: var(--ink-mute); border: 2px dashed var(--line); border-radius: var(--radius); }
.board-more { text-align: center; margin-top: 32px; }
@media (max-width: 960px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .board-grid { grid-template-columns: 1fr; } }

/* ---------- Steps / features ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 30px; position: relative; overflow: hidden; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 18px; top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 72px; color: var(--line); line-height: 1; }
.step .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; background: var(--primary-soft); }
.step h3 { font-size: 21px; position: relative; }
.step p { color: var(--ink-soft); margin: 0; position: relative; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 26px; transition: transform 0.3s, box-shadow 0.3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--teal-soft); margin-bottom: 14px; }
.feature h3 { font-size: 19px; }
.feature p { font-size: 15px; color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .steps, .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps, .features { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; font-size: 14px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.toc h4 { font-size: 15px; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.toc a { color: var(--ink-soft); font-weight: 600; }
.toc a:hover, .toc a.active { color: var(--primary); }
.article { max-width: 780px; }
.article .article-title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.article .byline { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--ink-mute); font-weight: 600; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.8em; padding-top: 0.2em; }
.article h3 { font-size: clamp(21px, 2.2vw, 25px); margin-top: 1.5em; }
.article h4 { font-size: 19px; margin-top: 1.3em; color: var(--ink); }
.article p, .article li { color: var(--ink-soft); }
.article strong { color: var(--ink); }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.2em; }
.article li { margin-bottom: 6px; }
.callout { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 18px 22px; border-radius: 0 14px 14px 0; margin: 1.5em 0; }
.callout p { margin: 0; color: var(--ink); }
.callout.teal { border-color: var(--teal); background: var(--teal-soft); }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); font-family: var(--font-display); }
tr:last-child td { border-bottom: 0; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}

/* ---------- Testimonials ---------- */
.testi { position: relative; }
.testi-viewport { overflow: hidden; padding: 10px 4px 30px; }
.testi-track { display: flex; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.testi-slide { flex: 0 0 calc(100% / 3); padding: 0 11px; }
.testi-card {
  height: 100%; padding: 28px; position: relative; transition: transform 0.5s, box-shadow 0.5s, opacity 0.5s;
  opacity: 0.6; transform: scale(0.94);
}
.testi-slide.is-active .testi-card { opacity: 1; transform: scale(1); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.testi-card .quote-mark { position: absolute; top: 10px; right: 20px; font-family: Georgia, serif; font-size: 90px; line-height: 1; color: var(--primary-soft); }
.stars { color: var(--sun); letter-spacing: 3px; font-size: 18px; margin-bottom: 12px; }
.testi-card p { color: var(--ink-soft); position: relative; font-size: 16px; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-display); }
.testi-person b { display: block; font-size: 15px; }
.testi-person span { font-size: 13px; color: var(--ink-mute); }
.testi-controls { display: flex; justify-content: center; align-items: center; gap: 16px; }
.testi-btn { width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: all 0.2s; }
.testi-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; transition: width 0.3s, background 0.3s; padding: 0; }
.dots button.active { width: 30px; background: var(--primary); }
@media (max-width: 960px) { .testi-slide { flex-basis: 50%; } }
@media (max-width: 640px) { .testi-slide { flex-basis: 100%; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.faq-icon { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background 0.3s; }
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--primary); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); opacity: 0; transform: translateY(-8px); transition: opacity 0.35s 0.05s, transform 0.35s 0.05s; }
.faq-item.open .faq-a-inner { opacity: 1; transform: none; }
.faq-a-inner p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta-box { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 40px; text-align: center; background: var(--ink); color: var(--bg); }
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.5; }
.cta-box::before { width: 300px; height: 300px; background: var(--primary); top: -120px; left: -60px; animation: blob 14s infinite; }
.cta-box::after { width: 260px; height: 260px; background: var(--teal); bottom: -120px; right: -40px; animation: blob 16s infinite reverse; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.cta-box p { opacity: 0.8; max-width: 560px; margin: 0 auto 26px; font-size: 18px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 56px; background: var(--grad-hero); text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.page-hero p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; font-size: 18px; }
.crumbs { font-size: 14px; color: var(--ink-mute); margin-bottom: 14px; font-weight: 600; }
.crumbs a { color: var(--ink-soft); }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.3em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 22px; }
.updated { display: inline-block; font-size: 14px; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0; }
.value { padding: 26px; }
.value .ico { font-size: 28px; margin-bottom: 10px; }
.value h3 { font-size: 19px; margin-top: 0; }
.value p { font-size: 15px; margin: 0; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: start; }
.contact-info { padding: 28px; display: grid; gap: 20px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); font-size: 20px; }
.contact-info b { display: block; }
.contact-info span { color: var(--ink-soft); font-size: 15px; }
.contact-form { padding: 30px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-about p { color: var(--ink-soft); font-size: 15px; margin-top: 14px; max-width: 340px; }
.site-footer h4 { font-size: 16px; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--ink-soft); font-size: 15px; font-weight: 600; transition: color 0.2s, padding 0.2s; }
.footer-links a:hover { color: var(--primary); padding-left: 4px; text-decoration: none; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social {
  --brand: var(--ink);
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.social::before {
  content: ""; position: absolute; inset: 0; background: var(--brand); z-index: -1;
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.social svg { width: 20px; height: 20px; fill: currentColor; transition: transform 0.35s; }
.social:hover { transform: translateY(-5px) rotate(-6deg); color: #fff; border-color: transparent; box-shadow: 0 12px 24px -8px var(--brand-shadow, rgba(0,0,0,0.4)); text-decoration: none; }
.social:hover::before { transform: translateY(0); }
.social:hover svg { transform: scale(1.12); }
.social.facebook { --brand: #1877f2; --brand-shadow: rgba(24, 119, 242, 0.6); }
.social.x { --brand: #000000; --brand-shadow: rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .social.x:hover { box-shadow: 0 0 0 1px #fff, 0 12px 24px -8px rgba(255,255,255,0.25); }
.social.instagram { --brand: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); --brand-shadow: rgba(214, 36, 159, 0.6); }
.social.linkedin { --brand: #0a66c2; --brand-shadow: rgba(10, 102, 194, 0.6); }
.social.youtube { --brand: #ff0000; --brand-shadow: rgba(255, 0, 0, 0.55); }
.social.pinterest { --brand: #e60023; --brand-shadow: rgba(230, 0, 35, 0.55); }
.social.tiktok { --brand: #010101; --brand-shadow: rgba(37, 244, 238, 0.6); }
.social.tiktok:hover svg { filter: drop-shadow(-2px -1px 0 #25f4ee) drop-shadow(2px 1px 0 #fe2c55); }
.social.whatsapp { --brand: #25d366; --brand-shadow: rgba(37, 211, 102, 0.6); }
.social.telegram { --brand: #26a5e4; --brand-shadow: rgba(38, 165, 228, 0.6); }
.social.reddit { --brand: #ff4500; --brand-shadow: rgba(255, 69, 0, 0.6); }
.footer-news { display: flex; gap: 8px; margin-top: 8px; }
.footer-news .input { padding: 11px 14px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-mute); }
.footer-bottom a { color: var(--ink-soft); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-news { flex-direction: column; } }

/* ---------- Misc ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: var(--grad-primary); color: #fff; box-shadow: var(--glow); cursor: pointer; display: grid; place-items: center;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.3s, transform 0.3s; z-index: 40;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s; z-index: 100; box-shadow: var(--shadow-lg); max-width: calc(100% - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
