/* =========================================================
   The First Timer — Core Stylesheet
   Design: Premium minimal, blue + purple gradients,
   glassmorphism, soft shadows, rounded corners.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12));

  /* Neutrals (light) */
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-elev: #ffffff;
  --border: #eaecf2;
  --text: #0f172a;
  --text-soft: #475569;
  --text-mut: #94a3b8;

  /* UI */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow: 0 8px 30px rgba(16,24,40,.08);
  --shadow-lg: 0 24px 60px rgba(16,24,40,.14);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --header-h: 74px;
  --maxw: 1200px;
  --ease: cubic-bezier(.16,.84,.44,1);

  --font-head: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', 'Poppins', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-alt: #0f1524;
  --bg-elev: #141a2b;
  --border: #232b40;
  --text: #eaf0ff;
  --text-soft: #aab4cf;
  --text-mut: #6b7690;
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18));
  --shadow: 0 8px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .3s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
::selection { background: rgba(124,58,237,.22); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--text); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple-600);
  background: var(--grad-soft);
  padding: 7px 16px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
[data-theme="dark"] .eyebrow { color: var(--purple-500); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-head p { color: var(--text-soft); font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(76,58,190,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(76,58,190,.42); }
.btn-ghost {
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--purple-500); color: var(--purple-600); }
[data-theme="dark"] .btn-ghost:hover { color: var(--purple-500); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* ripple */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.5); animation: ripple .6s linear; pointer-events: none; }
[data-theme="dark"] .btn-ghost .ripple { background: rgba(255,255,255,.18); }
@keyframes ripple { to { transform: scale(3.4); opacity: 0; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(76,58,190,.35);
  flex: none;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo span b { color: var(--purple-600); }
[data-theme="dark"] .logo span b { color: var(--purple-500); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 500; font-size: .95rem; color: var(--text-soft);
  padding: 9px 15px; border-radius: 12px; position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-alt); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: var(--text-soft); border: 1px solid var(--border); background: var(--bg-elev);
  transition: color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--purple-600); border-color: var(--purple-500); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }
.hamburger { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 1100; visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility .3s;
}
.drawer.open { visibility: visible; opacity: 1; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8,10,20,.5); backdrop-filter: blur(4px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(84vw, 340px);
  background: var(--bg-elev); box-shadow: var(--shadow-lg); padding: 26px 22px;
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel .drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-panel a { padding: 13px 14px; border-radius: 12px; font-weight: 500; color: var(--text-soft); font-family: var(--font-head); }
.drawer-panel a:hover { background: var(--bg-alt); color: var(--text); }
.drawer-panel .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 70px) 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero-blob.b1 { width: 440px; height: 440px; background: radial-gradient(circle, #3b82f6, transparent 70%); top: -120px; left: -80px; }
.hero-blob.b2 { width: 420px; height: 420px; background: radial-gradient(circle, #8b5cf6, transparent 70%); top: 40px; right: -120px; }
.hero-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 46px 46px; opacity: .35; mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%); -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%); }

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: 22px; }
.hero .lead { font-size: 1.18rem; color: var(--text-soft); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 46px; }
.hero-stats .stat b { font-family: var(--font-head); font-size: 2rem; display: block; }
.hero-stats .stat span { color: var(--text-mut); font-size: .9rem; }

/* Hero illustration = floating tiles of first-time scenarios */
.hero-art { position: relative; height: 460px; }
.tile {
  position: absolute; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 20px; padding: 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; font-family: var(--font-head);
  font-weight: 600; font-size: .92rem; white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.tile .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.tile .ic svg { width: 22px; height: 22px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--purple-500) 40%, var(--border)); }

/* feature card */
.feature { padding: 28px 26px; }
.feature .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); color: var(--purple-600); display: grid; place-items: center; margin-bottom: 18px; }
[data-theme="dark"] .feature .ic { color: var(--purple-500); }
.feature .ic svg { width: 25px; height: 25px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: .95rem; }

/* category card */
.cat-card { padding: 22px 20px; display: flex; align-items: center; gap: 14px; }
.cat-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.cat-card .ic svg { width: 22px; height: 22px; }
.cat-card b { font-family: var(--font-head); font-size: .98rem; display: block; }
.cat-card span { color: var(--text-mut); font-size: .82rem; }

/* blog card */
.post-card { display: flex; flex-direction: column; }
.post-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post-thumb img, .post-thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img, .post-card:hover .post-thumb .ph { transform: scale(1.06); }
.post-badge { position: absolute; top: 14px; left: 14px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: .74rem; padding: 6px 12px; border-radius: var(--radius-pill); }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--text-mut); flex-wrap: wrap; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-mut); }
.post-body h3 { font-size: 1.16rem; line-height: 1.35; }
.post-body h3 a:hover { color: var(--purple-600); }
[data-theme="dark"] .post-body h3 a:hover { color: var(--purple-500); }
.post-body p { color: var(--text-soft); font-size: .93rem; flex: 1; }
.post-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.author-mini { display: flex; align-items: center; gap: 9px; }
.author-mini .av { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .78rem; }
.author-mini small { font-size: .82rem; color: var(--text-soft); }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--purple-600); transition: gap .2s; }
[data-theme="dark"] .read-more { color: var(--purple-500); }
.read-more:hover { gap: 11px; }
.read-more svg { width: 15px; height: 15px; }

/* thumbnail gradient placeholder */
.ph { display: grid; place-items: center; }
.ph svg { width: 64px; height: 64px; color: rgba(255,255,255,.9); }

/* trending list item */
.trend { display: flex; gap: 18px; padding: 18px; align-items: center; }
.trend .num { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--purple-500); opacity: .5; flex: none; width: 40px; }
.trend .t-body b { font-family: var(--font-head); font-size: 1.02rem; display: block; margin-bottom: 4px; }
.trend .t-body span { font-size: .82rem; color: var(--text-mut); }
.trend:hover b { color: var(--purple-600); }
[data-theme="dark"] .trend:hover b { color: var(--purple-500); }

/* checklist card */
.check-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.check-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.check-card h3 { font-size: 1.08rem; }
.check-card ul { display: flex; flex-direction: column; gap: 8px; }
.check-card li { display: flex; gap: 10px; font-size: .9rem; color: var(--text-soft); }
.check-card li svg { width: 17px; height: 17px; color: var(--blue-500); flex: none; margin-top: 3px; }
.check-card .btn { margin-top: auto; }

/* testimonial */
.tm-card { padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; gap: 3px; color: #f59e0b; }
.stars svg { width: 17px; height: 17px; }
.tm-card p { color: var(--text-soft); font-size: .98rem; line-height: 1.7; }
.tm-user { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tm-user .av { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 600; }
.tm-user b { font-family: var(--font-head); font-size: .95rem; display: block; }
.tm-user span { font-size: .82rem; color: var(--text-mut); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.acc-item { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc-item.open { border-color: color-mix(in srgb, var(--purple-500) 45%, var(--border)); box-shadow: var(--shadow); }
.acc-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.acc-q .chev { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .3s; }
.acc-item.open .acc-q .chev { transform: rotate(180deg); background: var(--grad); color: #fff; }
.acc-q .chev svg { width: 17px; height: 17px; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-a-inner { padding: 0 24px 22px; color: var(--text-soft); }

/* ---------- Newsletter CTA ---------- */
.newsletter { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--grad); color: #fff; padding: 70px 40px; text-align: center; }
.newsletter::before, .newsletter::after { content: ""; position: absolute; border-radius: 50%; filter: blur(30px); opacity: .35; }
.newsletter::before { width: 260px; height: 260px; background: #fff; top: -100px; left: -60px; }
.newsletter::after { width: 300px; height: 300px; background: #a78bfa; bottom: -140px; right: -60px; opacity: .5; }
.newsletter h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; position: relative; }
.newsletter p { color: rgba(255,255,255,.9); max-width: 520px; margin: 0 auto 30px; position: relative; }
.nl-form { position: relative; display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.nl-form input { flex: 1; min-width: 220px; padding: 15px 20px; border-radius: var(--radius-pill); border: none; background: rgba(255,255,255,.95); color: #0f172a; outline: none; }
.nl-form .btn { background: #0f172a; color: #fff; }
.nl-form .btn:hover { background: #1e293b; }
.nl-note { color: rgba(255,255,255,.75); font-size: .82rem; margin-top: 14px; position: relative; }
.nl-success { position: relative; display: none; flex-direction: column; align-items: center; gap: 12px; }
.nl-success.show { display: flex; animation: pop .5s var(--ease); }
.nl-success .check-circle { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.nl-success .check-circle svg { width: 34px; height: 34px; color: #fff; }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .9rem; }
.field input, .field textarea, .field select {
  padding: 13px 16px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { margin-bottom: 16px; }
.footer p.desc { color: var(--text-soft); font-size: .93rem; max-width: 300px; margin-bottom: 20px; }
.footer h4 { font-family: var(--font-head); font-size: .95rem; margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--text-soft); font-size: .9rem; transition: color .2s, padding-left .2s; }
.footer ul a:hover { color: var(--purple-600); padding-left: 4px; }
[data-theme="dark"] .footer ul a:hover { color: var(--purple-500); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-elev); display: grid; place-items: center; color: var(--text-soft); transition: transform .2s, color .2s, border-color .2s; }
.socials a:hover { transform: translateY(-3px); color: #fff; background: var(--grad); border-color: transparent; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-mut); font-size: .85rem; }
.footer-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--text-mut); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--purple-600); }
.breadcrumb svg { width: 14px; height: 14px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: calc(var(--header-h) + 60px) 0 60px; background: var(--grad-soft); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin: 14px 0 12px; }
.page-hero p { color: var(--text-soft); max-width: 620px; font-size: 1.05rem; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 1200; display: none; padding-top: 12vh; justify-content: center; }
.search-overlay.open { display: flex; }
.search-overlay .sb-backdrop { position: absolute; inset: 0; background: rgba(8,10,20,.55); backdrop-filter: blur(6px); }
.search-box { position: relative; width: min(92vw, 640px); height: fit-content; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .3s var(--ease); }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.search-input-wrap svg { width: 20px; height: 20px; color: var(--text-mut); }
.search-input-wrap input { flex: 1; border: none; background: none; outline: none; font-size: 1.1rem; color: var(--text); }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-results a { display: flex; gap: 14px; padding: 13px 14px; border-radius: 12px; transition: background .2s; align-items: center; }
.search-results a:hover, .search-results a.active { background: var(--bg-alt); }
.search-results .r-cat { font-size: .74rem; color: var(--purple-600); font-family: var(--font-head); font-weight: 600; }
[data-theme="dark"] .search-results .r-cat { color: var(--purple-500); }
.search-results .r-title { font-family: var(--font-head); font-weight: 500; font-size: .98rem; }
.search-empty { padding: 30px; text-align: center; color: var(--text-mut); }
.search-chips { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.chip { padding: 6px 13px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: .8rem; color: var(--text-soft); cursor: pointer; transition: all .2s; }
.chip:hover, .chip.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Article ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 1300; }
.article-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; }
.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.7rem; margin: 38px 0 14px; }
.article-body h3 { font-size: 1.28rem; margin: 28px 0 10px; }
.article-body p { color: var(--text-soft); margin-bottom: 18px; }
.article-body ul.dot, .article-body ol { margin: 0 0 20px 4px; display: flex; flex-direction: column; gap: 10px; }
.article-body ul.dot li { display: flex; gap: 11px; color: var(--text-soft); }
.article-body ul.dot li svg { width: 18px; height: 18px; color: var(--purple-500); flex: none; margin-top: 4px; }
.article-body ol { list-style: decimal; padding-left: 22px; color: var(--text-soft); }
.article-body blockquote { border-left: 4px solid var(--purple-500); padding: 6px 20px; margin: 24px 0; color: var(--text); font-style: italic; background: var(--grad-soft); border-radius: 0 12px 12px 0; }
.article-body img { border-radius: var(--radius); margin: 24px 0; }
.callout { background: var(--grad-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; display: flex; gap: 14px; }
.callout svg { width: 22px; height: 22px; color: var(--purple-600); flex: none; }
[data-theme="dark"] .callout svg { color: var(--purple-500); }

.article-hero-img { aspect-ratio: 16/8; border-radius: var(--radius-lg); overflow: hidden; margin: 24px 0 32px; }
.article-meta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-mut); font-size: .9rem; }
.share-float { position: fixed; left: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 900; }
.share-float button { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-soft); box-shadow: var(--shadow-sm); transition: all .2s; }
.share-float button:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-2px); }
.share-float svg { width: 18px; height: 18px; }

.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.toc { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.toc h4 { font-family: var(--font-head); font-size: .95rem; margin-bottom: 14px; }
.toc a { display: block; padding: 7px 12px; border-radius: 9px; font-size: .88rem; color: var(--text-soft); border-left: 2px solid transparent; transition: all .2s; }
.toc a:hover, .toc a.active { color: var(--purple-600); background: var(--bg-alt); border-left-color: var(--purple-500); }
[data-theme="dark"] .toc a:hover, [data-theme="dark"] .toc a.active { color: var(--purple-500); }

.author-box { display: flex; gap: 18px; align-items: center; padding: 26px; background: var(--bg-alt); border-radius: var(--radius); margin: 40px 0; }
.author-box .av { width: 66px; height: 66px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; flex: none; }
.author-box b { font-family: var(--font-head); }
.author-box p { color: var(--text-soft); font-size: .9rem; margin: 4px 0 0; }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0; }
.pn-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); transition: all .2s; }
.pn-card:hover { border-color: var(--purple-500); }
.pn-card span { font-size: .8rem; color: var(--text-mut); }
.pn-card b { display: block; font-family: var(--font-head); margin-top: 6px; }

/* ---------- Sidebar (blog) ---------- */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.widget h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 16px; }
.widget .side-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.widget .side-post:last-child { border: none; }
.widget .side-post .sp-thumb { width: 62px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; }
.widget .side-post b { font-size: .88rem; font-family: var(--font-head); font-weight: 500; line-height: 1.35; display: block; }
.widget .side-post span { font-size: .76rem; color: var(--text-mut); }
.widget .side-post:hover b { color: var(--purple-600); }
[data-theme="dark"] .widget .side-post:hover b { color: var(--purple-500); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 13px; border-radius: var(--radius-pill); background: var(--bg-alt); font-size: .8rem; color: var(--text-soft); transition: all .2s; }
.tag:hover { background: var(--grad); color: #fff; }
.cat-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text-soft); font-size: .9rem; }
.cat-list li:last-child { border: none; }
.cat-list li:hover { color: var(--purple-600); }
.cat-list .count { background: var(--bg-alt); border-radius: var(--radius-pill); padding: 1px 10px; font-size: .78rem; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.select-wrap select { padding: 11px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev); display: grid; place-items: center; font-family: var(--font-head); font-size: .9rem; color: var(--text-soft); transition: all .2s; }
.pagination a:hover { border-color: var(--purple-500); color: var(--purple-600); }
.pagination .cur { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 900; opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Cookie consent ---------- */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 1150; max-width: 380px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; transform: translateY(160%); transition: transform .5s var(--ease); }
.cookie.show { transform: translateY(0); }
.cookie p { font-size: .88rem; color: var(--text-soft); margin-bottom: 14px; }
.cookie .row { display: flex; gap: 10px; }
.cookie .btn { padding: 10px 20px; font-size: .88rem; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader-ring { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--purple-500); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* skeleton */
.skeleton { background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 50%, var(--bg-alt) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* bookmark toggle */
.bookmark-btn.active { color: var(--purple-600); }
[data-theme="dark"] .bookmark-btn.active { color: var(--purple-500); }

/* map placeholder */
.map-ph { aspect-ratio: 16/8; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--grad-soft); position: relative; display: grid; place-items: center; }
.map-ph .pin { width: 54px; height: 54px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); animation: floaty 3s ease-in-out infinite; }
.map-ph .pin svg { width: 26px; height: 26px; }

/* contact info items */
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.ci-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-item .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-soft); color: var(--purple-600); display: grid; place-items: center; flex: none; }
[data-theme="dark"] .ci-item .ic { color: var(--purple-500); }
.ci-item .ic svg { width: 21px; height: 21px; }
.ci-item b { font-family: var(--font-head); font-size: .95rem; }
.ci-item span { color: var(--text-soft); font-size: .92rem; display: block; }

/* legal pages */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--text-soft); margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; }

/* team */
.team-card { padding: 26px; text-align: center; }
.team-card .av { width: 90px; height: 90px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; margin: 0 auto 16px; }
.team-card b { font-family: var(--font-head); font-size: 1.05rem; }
.team-card span { color: var(--purple-600); font-size: .86rem; display: block; margin-bottom: 8px; }
[data-theme="dark"] .team-card span { color: var(--purple-500); }
.team-card p { color: var(--text-soft); font-size: .88rem; }

/* value cards */
.value-card { padding: 26px; }
.value-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { color: var(--text-soft); font-size: .93rem; }

/* misc utilities */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack-lg{display:flex;flex-direction:column;gap:20px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.pill-row{display:flex;gap:10px;flex-wrap:wrap}
.badge-soft{background:var(--grad-soft);color:var(--purple-600);padding:5px 14px;border-radius:var(--radius-pill);font-size:.82rem;font-family:var(--font-head);font-weight:600}
[data-theme="dark"] .badge-soft{color:var(--purple-500)}

/* ---------- Newsletter popup ---------- */
.nl-popup { position: fixed; inset: 0; z-index: 1250; display: none; place-items: center; }
.nl-popup.show { display: grid; }
.nl-popup-backdrop { position: absolute; inset: 0; background: rgba(8,10,20,.55); backdrop-filter: blur(6px); }
.nl-popup-card { position: relative; width: min(92vw, 440px); background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px 34px; text-align: center; animation: pop .35s var(--ease); }
.nl-popup-close { position: absolute; top: 14px; right: 14px; }
.nl-popup .ic-lg { width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.nl-popup h3 { font-size: 1.4rem; margin-bottom: 10px; }
.nl-popup p { color: var(--text-soft); font-size: .95rem; margin-bottom: 22px; }
.nl-popup form { display: flex; flex-direction: column; gap: 12px; }
.nl-popup input { padding: 14px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--bg); color: var(--text); outline: none; }
.nl-popup input:focus { border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
.nl-popup .btn { width: 100%; }
