/* ClipWick — minimal design system
   One typeface (Plus Jakarta Sans), one accent, generous space, soft large radii.
   Light + dark themes via [data-theme]. */

:root {
  --bg: #fcfcfd;
  --surface: #ffffff;
  --surface-2: #f4f4f8;
  --ink: #0d0d14;
  --muted: #606072;
  --line: #e7e7ee;
  --accent: #6366f1;
  --accent-ink: #ffffff;
  --accent-soft: #eeedfe;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --good: #10b981;
  --bad: #ef4444;
  --accent-glow: rgba(99, 102, 241, 0.28);

  /* niche vibrant tags */
  --tag-tutorial: #10b981;
  --tag-tutorial-dim: #ecfdf5;
  --tag-comparison: #f97316;
  --tag-comparison-dim: #fff7ed;
  --tag-howto: #0284c7;
  --tag-howto-dim: #f0f9ff;

  /* legacy names used inside article markup */
  --text: var(--ink);
  --muted-2: var(--muted);
  --border: var(--line);
  --border-soft: var(--line);
  --panel: var(--surface);
  --card-bg: var(--surface);
  --pink: #ec4899;       --pink-dim: #fdf2f8;
  --violet: #8b5cf6;     --violet-dim: #f5f3ff;
  --amber: #f59e0b;      --amber-dim: #fefce8;
  --teal: #10b981;       --teal-dim: #ecfdf5;
  --pink-bright: #f43f5e;
  --violet-bright: #7c3aed;

  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 6px rgba(15, 15, 30, .04), 0 1px 2px rgba(15, 15, 30, .06);
  --shadow: 0 20px 45px -15px rgba(25, 20, 60, .18);
  --shadow-hover: 0 24px 50px -12px rgba(99, 102, 241, .32);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
[data-theme="dark"] {
  --bg: #08080d;
  --surface: #12121c;
  --surface-2: #191926;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: #20202e;
  --accent: #818cf8;
  --accent-ink: #08080d;
  --accent-soft: #1e1b38;
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #a855f7 50%, #f43f5e 100%);
  --accent-glow: rgba(129, 140, 248, 0.35);
  --good: #34d399;
  --bad: #f87171;
  --tag-tutorial: #34d399;
  --tag-tutorial-dim: #064e3b;
  --tag-comparison: #fb923c;
  --tag-comparison-dim: #431407;
  --tag-howto: #38bdf8;
  --tag-howto-dim: #0c4a6e;
  --pink: #f472b6;       --pink-dim: #500724;
  --violet: #a78bfa;     --violet-dim: #2e1065;
  --amber: #fbbf24;      --amber-dim: #451a03;
  --teal: #34d399;       --teal-dim: #064e3b;
  --shadow: 0 24px 50px -15px rgba(0, 0, 0, .85);
  --shadow-hover: 0 28px 55px -12px rgba(129, 140, 248, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* Ambient 3D Mesh Orbs in Body */
body::before {
  content: '';
  position: fixed;
  top: -140px;
  right: -80px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(168, 85, 247, 0.12) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(55px);
  z-index: -1;
  animation: meshFloat 18s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed;
  bottom: 20px;
  left: -120px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.16) 0%, rgba(6, 182, 212, 0.12) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(65px);
  z-index: -1;
  animation: meshFloat 22s ease-in-out infinite alternate-reverse;
}
[data-theme="dark"] body::before {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.32) 0%, rgba(168, 85, 247, 0.22) 45%, transparent 70%);
  filter: blur(50px);
}
[data-theme="dark"] body::after {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.24) 0%, rgba(6, 182, 212, 0.22) 50%, transparent 70%);
  filter: blur(60px);
}
@keyframes meshFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 25px) scale(1.1); }
  100% { transform: translate(25px, -35px) scale(0.96); }
}

main { flex: 1 0 auto; width: 100%; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--ink); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo .mark { width: 32px; height: 32px; border-radius: 10px; }
.tick { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-links a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--ink); background: var(--surface); }
.nav-utils { display: flex; align-items: center; gap: 6px; }
.nav-links + .nav-utils { margin-left: 0; }

.icon-btn, .nav-toggle, .mnav-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; transition: background .15s;
}
.icon-btn:hover, .nav-toggle:hover, .mnav-icon-btn:hover { background: var(--surface); }
.icon-btn svg, .nav-toggle svg, .mnav-icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: inline-flex; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Language menu (Google Translate tucked away) */
.lang-menu { position: relative; }
.lang-menu-list { display: none; position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 220px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.lang-menu.open .lang-menu-list { display: block; }
.goog-te-gadget { font-size: 0 !important; color: transparent !important; }
.goog-te-gadget > span, .goog-logo-link, .goog-te-gadget-icon { display: none !important; }
.goog-te-gadget select, select.goog-te-combo { width: 100%; margin: 0; padding: 11px 14px; font: 600 14px var(--font); color: var(--ink); background: var(--surface); border: 0; border-radius: 12px; }
.goog-te-gadget-simple { background: transparent !important; border: 0 !important; padding: 6px 4px !important; }
.goog-te-gadget-simple * { color: var(--ink) !important; font-size: 14px !important; }
iframe.goog-te-banner-frame, body > .skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ---------- Mobile drawer ---------- */
.mnav-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 8, 20, .5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mnav-overlay.open { opacity: 1; pointer-events: auto; }
.mnav { position: fixed; top: 0; right: 0; z-index: 100; width: min(100%, 400px); height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; overflow-y: auto; overscroll-behavior: contain; }
.mnav.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.mnav-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--bg); }
.mnav-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--ink); }
.mnav-logo img { border-radius: 8px; }
.mnav-search { padding: 4px 20px 12px; }
.mnav-search[hidden] { display: none; }
.mnav-search input, .mnav-nl-form input, .nl-form input { width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); outline: none; transition: border-color .15s, background .15s; }
.mnav-search input:focus, .mnav-nl-form input:focus, .nl-form input:focus { border-color: var(--accent); background: var(--bg); }
.mnav-search-results a { display: block; padding: 12px 6px; text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--line); }
.mnav-search-results a:hover { color: var(--accent); }
.mnav-search-results .none { padding: 10px 6px; color: var(--muted); font-size: .92rem; }
.mnav-body { padding: 4px 20px 40px; }
.mnav-discover { display: grid; padding: 6px 0; }
.mnav-discover a, .mnav-acc-panel > a { display: block; padding: 14px 4px; text-decoration: none; font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; }
.mnav-discover a:hover, .mnav-acc-panel > a:hover { color: var(--accent); }
.mnav-divider { height: 1px; background: var(--line); margin: 6px 0; }
.mnav-acc-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 56px; padding: 8px 4px; background: none; border: 0; cursor: pointer; font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; text-align: left; }
.mnav-chev { color: var(--muted); transition: transform .25s var(--ease); }
.mnav-acc[data-open="true"] .mnav-chev { transform: rotate(180deg); }
.mnav-acc-panel { display: none; padding: 0 0 12px; }
.mnav-acc[data-open="true"] .mnav-acc-panel { display: block; }
.mnav-acc-panel > a { font-size: 1rem; font-weight: 600; color: var(--muted); padding: 10px 4px; }
.mnav-acc-group { padding: 4px 0 12px; }
.mnav-acc-group-label { display: block; padding: 6px 4px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.mnav-acc-group a { display: block; padding: 8px 4px; font-size: .94rem; line-height: 1.45; color: var(--muted); text-decoration: none; }
.mnav-acc-group a:hover { color: var(--accent); }
.mnav-newsletter { padding: 12px 4px 4px; }
.mnav-newsletter > span { display: block; margin-bottom: 10px; font-weight: 700; }
.mnav-nl-form { display: flex; flex-wrap: wrap; gap: 8px; }
.mnav-nl-form input[type="email"] { flex: 1 1 160px; width: auto; }
.mnav-nl-form .icon-btn { background: var(--accent); color: var(--accent-ink); width: 48px; height: 48px; font-weight: 700; }
.mnav-legal .mnav-acc-trigger { font-size: .95rem; color: var(--muted); font-weight: 600; }

/* ---------- Page heroes ---------- */
.hero, .page-hero { padding-top: clamp(48px, 9vw, 112px); padding-bottom: clamp(32px, 5vw, 64px); position: relative; }
.hero::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(900px, 94vw); height: 360px;
  background: radial-gradient(ellipse at 50% 20%, var(--accent-glow) 0%, transparent 72%);
  pointer-events: none; z-index: -1; filter: blur(40px);
}
.hero h1, .page-hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; margin: 0 0 20px; max-width: 18ch; }
.hero p, .page-hero > p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; line-height: 1.6; margin: 0; }
.hero h1 { max-width: 14ch; font-size: clamp(2.8rem, 8vw, 6.2rem); letter-spacing: -.05em; line-height: .98; }

/* Centered Homepage Hero Layout & Typography */
.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-centered .pulse-badge {
  margin-bottom: 20px;
}
.hero-brand-display {
  font-size: clamp(2.5rem, 9.5vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
  margin: 0 auto 18px;
  display: inline-block;
}
.hero-brand-display .tick {
  color: var(--accent);
}
.hero-centered h1.hero-headline {
  max-width: 940px;
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 auto;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}
.hero-centered h1.hero-headline .bullet {
  color: var(--accent);
  padding: 0 4px;
  font-weight: 500;
}
.hero-centered .trust-strip {
  width: 100%;
  margin-top: 40px;
}
.page-hero .tag { margin-bottom: 20px; }
.eyebrow { display: inline-block; margin-bottom: 18px; font-size: .92rem; font-weight: 700; color: var(--accent); }
.eyebrow .line { display: none; }
.kicker { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; color: var(--accent); }

/* Category 100-word SEO Intros & Subcategory Pills */
.category-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 80ch;
  margin: 18px 0 28px;
}
.category-intro strong { color: var(--ink); }
.subcat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 32px;
}
.subcat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: all .15s ease;
}
.subcat-pill:hover, .subcat-pill.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

/* ---------- Sections ---------- */
.section { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 8px; border: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; }
.see-all { font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; padding: 10px 18px; border-radius: 999px; background: var(--surface); transition: background .15s, color .15s; }
.see-all:hover { background: var(--accent); color: var(--accent-ink); }
.coming-soon { margin-bottom: 28px; }
.coming-soon h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 6px; }
.coming-soon p { color: var(--muted); margin: 0; }

/* Tags */
.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; background: var(--accent-soft); color: var(--accent); transition: transform .15s, filter .15s; }
.tag-reviews { background: var(--pink-dim); color: var(--pink); }
.tag-technology { background: color-mix(in srgb, #2f7de8 14%, var(--bg)); color: #2f7de8; }
.tag-gaming { background: var(--teal-dim); color: var(--teal); }
.tag-tutorial { background: var(--tag-tutorial-dim); color: var(--tag-tutorial); }
.tag-comparison { background: var(--tag-comparison-dim); color: var(--tag-comparison); }
.tag-howto { background: var(--tag-howto-dim); color: var(--tag-howto); }

/* Featured */
.featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4.5vw, 56px); align-items: center; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 32px); box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s; }
.featured:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow-hover); }
.featured-media { position: relative; border-radius: calc(var(--radius-lg) - 4px); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10; display: block; border: 1px solid var(--line); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); display: block; }
.featured:hover .featured-media img, .featured-media:hover img { transform: scale(1.03); }
.featured-runtime, .card-runtime { position: absolute; right: 14px; bottom: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(15, 15, 22, .78); backdrop-filter: blur(8px); color: #fff; font-size: .76rem; font-weight: 600; z-index: 2; }
.featured-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.featured-body .tag { display: inline-flex; align-items: center; align-self: flex-start; width: fit-content; max-width: max-content; margin-bottom: 16px; }
.featured-body h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 14px; }
.featured-body h3 a { text-decoration: none; color: inherit; transition: color .2s; }
.featured-body h3 a:hover, .featured:hover .featured-body h3 a { color: var(--accent); }
.featured-body p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0 0 18px; }
.featured-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .86rem; font-weight: 500; color: var(--muted); margin-bottom: 22px; }
.featured-meta a.author-byline { color: var(--ink); text-decoration: none; font-weight: 600; }
.featured-meta a.author-byline:hover { color: var(--accent); }
.featured-action { display: flex; align-items: center; }
.btn-featured { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-featured:hover { background: color-mix(in srgb, var(--accent) 85%, #000); transform: translateX(3px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }


/* Card grid: modern 3D image cards with ambient depth */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 28px; }
.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  transform-style: preserve-3d;
}
.card:hover {
  transform: translateY(-7px) scale(1.015);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent) 12%, var(--surface)) 100%);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover .card-media {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 16px 36px -10px var(--accent-glow), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s ease;
}
.card:hover .card-media img {
  transform: scale(1.06);
  filter: brightness(1.03) contrast(1.02);
}
.card-media.has-logo img { object-fit: contain; padding: 16%; }
.card-tag, .card-tags { position: absolute; left: 14px; top: 14px; z-index: 2; }
.card-tag {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform .25s var(--ease);
}
.card:hover .card-tag {
  transform: scale(1.05);
}
.card-tags .tag {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.card-body h3, .card-body h4 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.32;
  margin: 0 0 8px;
  transition: color .2s ease;
}
.card:hover .card-body h3, .card:hover .card-body h4 {
  color: var(--accent);
}
.card-body p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.58;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot { font-size: .82rem; font-weight: 500; color: var(--muted); }


/* Guides list */
.guides { border-top: 1px solid var(--line); }
.guide-row { display: flex; align-items: center; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: padding .25s var(--ease); }
.guide-row h3 { flex: 1; margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -.025em; transition: color .15s; }
.guide-row .tag { order: 2; }
.guide-arrow { order: 3; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface); transition: background .2s, color .2s, transform .25s var(--ease); }
.guide-arrow svg { width: 18px; height: 18px; }
.guide-row:hover h3 { color: var(--accent); }
.guide-row:hover .guide-arrow { background: var(--accent); color: var(--accent-ink); transform: translateX(4px); }

/* Newsletter */
.newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 6vw, 72px); border-radius: var(--radius-lg); background: var(--surface); }
.newsletter h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 10px; max-width: 18ch; }
.newsletter p { color: var(--muted); margin: 0; max-width: 40ch; }
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 360px; max-width: 460px; padding: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); position: relative; }
.nl-form input[type="email"] { flex: 1 1 180px; width: auto; border: 0; background: transparent; min-height: 46px; }
.nl-form input[type="email"]:focus { background: transparent; }
.nl-note { flex-basis: 100%; padding: 0 14px; font-size: .8rem; color: var(--muted); }
.nl-form .nl-note, .nl-form .form-msg { display: block; }
.newsletter .nl-form { overflow: visible; }

/* Buttons */

/* Premium 3D Buttons & Shimmer */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s ease, border-color .2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
}
.btn:hover::after {
  left: 180%;
  transition: left 0.85s var(--ease);
}
.btn:hover {
  transform: translateY(-2px) scale(1.015);
}
.btn:active {
  transform: translateY(1px) scale(0.985);
}
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary, .primary-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px -2px rgba(99, 102, 241, 0.45), 0 10px 28px -4px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover, .primary-btn:hover {
  color: #ffffff;
  filter: brightness(1.06);
  box-shadow: 0 8px 24px -2px rgba(99, 102, 241, 0.6), 0 16px 36px -4px rgba(236, 72, 153, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.secondary-btn {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.secondary-btn:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 6px 18px -4px var(--accent-glow);
}

/* Gradient Text Utilities */
.gradient-text, .kicker {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}


/* Form messages & toast */
.form-msg { flex-basis: 100%; margin: 6px 14px 4px; font-size: .86rem; font-weight: 600; min-height: 1.2em; }
.form-msg:empty { display: none; }
.form-msg.success { color: var(--good); }
.form-msg.info { color: #38bdf8; }
.form-msg.error { color: var(--bad); }
.cw-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cw-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; max-width: calc(100vw - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 14px 22px; border-radius: 999px; font-size: .92rem; font-weight: 600; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); transition: opacity .25s, transform .25s var(--ease); }
.cw-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; cursor: pointer; }
.cw-toast.info { background: #0284c7; color: #fff; }
.cw-toast.error { background: var(--bad); color: #fff; }
.cw-toast.success { background: var(--good); color: #fff; }

/* ---------- About / contact / legal ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.info-card { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); position: sticky; top: 100px; }
.info-card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 12px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.info-row .k { color: var(--muted); font-weight: 500; }
.info-row .v { text-align: right; font-weight: 600; }
.info-row a { color: var(--accent); text-decoration: none; }
.info-row a:hover { text-decoration: underline; }

.form { display: grid; gap: 22px; }
.form label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 700; }
.form input, .form textarea { width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); outline: none; transition: border-color .15s, background .15s; }
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--accent); background: var(--bg); }
.form .form-msg { margin: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.cat-card { display: flex; flex-direction: column; gap: 4px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-dot { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 36px; border-radius: 50%; font-weight: 800; }
.cat-card h4 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.cat-card .n { color: var(--muted); font-size: .92rem; }

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.sitemap-col h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sitemap-col a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; font-weight: 500; }
.sitemap-col a:hover { color: var(--accent); }

.notfound { text-align: center; padding: clamp(72px, 14vw, 160px) 0; }
.notfound .big { font-size: clamp(6rem, 22vw, 13rem); font-weight: 800; letter-spacing: -.08em; line-height: .9; color: var(--accent); margin-bottom: 12px; }
.notfound h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; max-width: none; }
.notfound p { color: var(--muted); max-width: 44ch; margin: 0 auto 32px; }
.notfound .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Articles ---------- */
.updated { display: block; margin-bottom: 24px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.page-hero:has(.article-hero-img) > :not(.article-hero-img):not(.video-embed) { max-width: 740px; margin-left: auto; margin-right: auto; }
.page-hero:has(.article-hero-img) h1 { max-width: 740px; font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
.page-hero:has(.article-hero-img) .featured-meta { margin-top: 24px; }
.article-hero-img { max-width: 1000px; margin: clamp(32px, 5vw, 56px) auto 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.article-hero-img img { width: 100%; height: auto; }
.video-embed { position: relative; max-width: 1000px; margin: 24px auto 0; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.prose { max-width: 740px; }
.section > .prose { margin-left: auto; margin-right: auto; }
.prose > p, .prose li { font-size: 1.08rem; line-height: 1.8; }
.prose p { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); margin-bottom: 1.3em; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -.035em; margin: 2.2em 0 .6em; }
.prose h2:first-child, .prose .updated + h2 { margin-top: 0; }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin: 1.8em 0 .5em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2.5px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .5em; color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-size: 1.15rem; font-weight: 500; }

/* tables */
.table-wrap { overflow-x: auto; max-width: 860px; margin: 28px auto 44px; border-radius: var(--radius); background: var(--surface); padding: 8px 16px; -webkit-overflow-scrolling: touch; }
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 20px 0; }
.table-wrap table { margin: 0; min-width: 520px; }
table th { text-align: left; padding: 14px 14px; font-weight: 700; font-size: .86rem; color: var(--muted); border-bottom: 1px solid var(--line); }
table td { padding: 14px; vertical-align: top; color: var(--muted); border-bottom: 1px solid var(--line); }
table tr:last-child td { border-bottom: 0; }
td.td-strong { color: var(--ink); font-weight: 700; }
td.good { color: var(--good); font-weight: 600; }
td.warn { color: var(--amber); font-weight: 600; }

.proscons-table { width: 100%; border-collapse: separate; border-spacing: 16px 0; margin: 28px -16px 36px; table-layout: fixed; }
.proscons-table th { padding: 0 0 14px; border: 0; font-size: 1rem; }
.proscons-table th.pros-head { color: var(--good); }
.proscons-table th.cons-head { color: var(--bad); }
.proscons-table td { padding: 22px 24px; border: 0; background: var(--surface); border-radius: var(--radius); color: inherit; }
.proscons-table ul { margin: 0; padding-left: 1.1em; }
.proscons-table li { font-size: .98rem; line-height: 1.6; margin-bottom: .7em; }
.proscons-table li:last-child { margin-bottom: 0; }

/* chart */
.chart { margin: 28px 0 36px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 22px; font-size: .9rem; font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chart-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 16px; align-items: center; padding: 12px 0; }
.chart-row .label { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.chart-bars { display: grid; gap: 6px; }
.chart-bar-track { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.chart-bar-fill { display: block; height: 100%; border-radius: 99px; }
.chart-note { margin: 16px 0 0 !important; font-size: .84rem !important; line-height: 1.55 !important; color: var(--muted) !important; }

/* ---------- Footer ---------- */
.site-footer { flex-shrink: 0; margin-top: clamp(72px, 10vw, 140px); padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { max-width: 36ch; margin: 16px 0 0; color: var(--muted); font-size: .94rem; }
.footer-col h3, .footer-col h5 { font-size: .92rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 16px; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col a { display: inline-block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-utils { margin-left: auto; }
  .featured { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav { height: 64px; }
  .grid { gap: 36px; }
  .guide-row { flex-wrap: wrap; gap: 12px 14px; padding: 22px 0; }
  .guide-row h3 { flex-basis: 100%; order: 1; }
  .guide-row .tag { order: 2; margin-right: auto; }
  .newsletter { padding: 32px 24px; }
  .nl-form { max-width: none; flex-basis: 100%; border-radius: 28px; }
  .nl-form .btn { flex: 1 1 100%; }
  .lang-menu-list { position: fixed; left: 16px; right: 16px; top: 72px; }
  .mnav { width: 100%; }
  .chart { padding: 20px; }
  .chart-row { grid-template-columns: 1fr; gap: 8px; }
  .proscons-table, .proscons-table thead, .proscons-table tbody, .proscons-table tr, .proscons-table th, .proscons-table td { display: block; width: 100%; }
  .proscons-table { margin: 24px 0; border-spacing: 0; }
  .proscons-table thead { display: none; }
  .proscons-table td { margin-bottom: 14px; }
  .proscons-table td:first-child::before, .proscons-table td:last-child::before { display: block; margin-bottom: 10px; font-weight: 800; }
  .proscons-table td:first-child::before { content: "Pros"; color: var(--good); }
  .proscons-table td:last-child::before { content: "Cons"; color: var(--bad); }
  .article-hero-img, .video-embed { border-radius: 20px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.mnav-chev svg { width: 20px; height: 20px; }

/* ---------- Navigation helpers: breadcrumbs, explore pills ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-size: .88rem; font-weight: 500; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; transition: color .15s; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .45; }
.crumbs [aria-current] { color: var(--ink); max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explore { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.explore a { padding: 9px 18px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.explore a:hover { background: var(--accent-soft); color: var(--accent); }
.explore a[aria-current] { background: var(--ink); color: var(--bg); }
a.tag { text-decoration: none; }
a.tag:hover { filter: brightness(.96); }
.footer-top { grid-template-columns: 1.5fr repeat(4, 1fr); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.crumbs + .tag { margin-top: 0; }
.prose .explore.chips { margin-top: 8px; } .prose .explore.chips a { text-decoration: none; color: var(--ink); }
.page-hero:has(.article-hero-img) > .tag { margin-left: calc((100% - min(100%, 740px)) / 2); margin-right: auto; max-width: none; }

/* ---------- Engagement components: inline CTA, copy box, sortable table ---------- */
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 2em; padding: 20px 24px; border-radius: var(--radius); background: var(--accent-soft); font-size: 1rem; }
.cta-inline strong { color: var(--ink); }
.cta-inline .btn { min-height: 42px; padding: 9px 20px; margin-left: auto; }
.cta-inline small { flex-basis: 100%; color: var(--muted); font-size: .8rem; }
.copy-box {
  position: relative;
  margin: 1.8em 0;
  border-radius: var(--radius);
  background: #0d0e18 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.5), 0 0 20px -8px rgba(99, 102, 241, 0.3);
  overflow: hidden;
}
.copy-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #06b6d4);
  z-index: 2;
}
.copy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  font-size: .82rem;
  font-weight: 700;
  color: #94a3b8;
  background: #111320;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.02em;
}
.copy-head button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.copy-head button:hover {
  background: var(--accent);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}
.copy-box pre {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  font: 500 .92rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #f1f5f9 !important;
  background: transparent !important;
  white-space: pre-wrap;
  word-break: break-word;
}
.copy-box code {
  color: inherit !important;
  background: transparent !important;
  padding: 0;
  border: 0;
  font: inherit;
}
pre {
  background: #0d0e18;
  color: #f1f5f9;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
table.sortable th[data-sort] { cursor: pointer; user-select: none; }
table.sortable th[data-sort]::after { content: " \2195"; opacity: .4; font-size: .85em; margin-left: 4px; }
table.sortable th[data-sort][data-dir="asc"]::after,
table.sortable th[data-sort][aria-sort="ascending"]::after { content: " \2191"; opacity: 1; color: var(--accent); }
table.sortable th[data-sort][data-dir="desc"]::after,
table.sortable th[data-sort][aria-sort="descending"]::after { content: " \2193"; opacity: 1; color: var(--accent); }
table.sortable th[data-sort]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tldr { margin: 0 0 2em; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); }
.tldr b { color: var(--accent); }

/* ---------- Modern UI & Animation Enhancements ---------- */

/* Top Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--pink-bright) 100%);
  z-index: 999;
  pointer-events: none;
  transition: width .08s linear;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Interactive Category Filter Pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 32px;
  align-items: center;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s;
}
.filter-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  transform: translateY(-1px);
}
.filter-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.filter-pill .pill-count {
  font-size: .74rem;
  opacity: .75;
  font-weight: 600;
}

/* Trust & Methodology Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 36px 0 8px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.trust-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.trust-icon svg { width: 18px; height: 18px; }

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .15s, border-color .15s, color .15s, box-shadow .2s;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.back-to-top svg { width: 20px; height: 20px; }

/* Pulsing Live / Updated Badge */
.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(106, 71, 245, .7);
  animation: cwPulse 2s infinite;
}
@keyframes cwPulse {
  0% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(106, 71, 245, .7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(106, 71, 245, 0); }
  100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(106, 71, 245, 0); }
}

/* Step badges & Key Takeaways box for Tutorials */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-right: 8px;
  vertical-align: middle;
}
.takeaways-box {
  margin: 28px 0 36px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 4px solid var(--accent);
}
.takeaways-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.takeaways-box ul { margin: 0; padding-left: 1.2em; }
.takeaways-box li { font-size: 1rem; margin-bottom: 8px; line-height: 1.6; }
.takeaways-box li:last-child { margin-bottom: 0; }

/* Image fallback placeholder styling */
.img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent) 12%, var(--surface)) 100%);
  color: var(--ink);
  text-align: center;
}
.img-fallback-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.img-fallback-title {
  font-size: .88rem;
  font-weight: 700;
  max-width: 20ch;
  line-height: 1.3;
}

/* Category tags / brand filters for SEO */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.category-tags-label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-right: 4px;
}
.category-tags .tag {
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all .15s ease;
}
.category-tags .tag:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Subtle rendering performance optimization */
.site-footer, .newsletter {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

/* Category Filter Empty State */
.filter-empty-state {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  margin: 16px 0;
}

/* E-E-A-T Author Byline */
.author-byline {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.author-byline:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- Quick Verdict & Test Specs Component (AI Overviews & Answer Engines) --- */
.quick-verdict-box {
  margin: 28px 0 36px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.quick-verdict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.quick-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.quick-verdict-badge svg {
  width: 18px;
  height: 18px;
}
.quick-verdict-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--border);
}
.quick-verdict-summary {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 16px;
}
.quick-verdict-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.quick-verdict-spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.quick-verdict-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.quick-verdict-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

/* --- Author Profile Page Styles --- */
.author-header-card {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
@media (max-width: 768px) {
  .author-header-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
}
.author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  background: var(--surface-2);
}
.author-verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.author-verified-badge svg {
  width: 16px;
  height: 16px;
}
.author-bio-content {
  flex: 1;
}
.author-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.author-title-badge {
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.author-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.author-bio-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 720px;
}
.author-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.author-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
}
.author-social-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.author-social-btn svg {
  width: 16px;
  height: 16px;
}

.author-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.author-stat-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.author-stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 4px;
}
.author-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.benchmarks-spec-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}
.benchmarks-spec-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.25rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.spec-table-custom {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.spec-table-custom th, .spec-table-custom td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.spec-table-custom th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  width: 30%;
}
.spec-table-custom td {
  color: var(--ink);
  font-weight: 500;
}


/* ==========================================================================
   ADVANCED MOBILE & TOUCH OPTIMIZATION (320px - 768px)
   ========================================================================== */

/* Universal table and pre responsiveness: prevents horizontal screen blowout */
.prose table, table, .spec-table-custom {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px;
  border-radius: var(--radius);
}

code {
  word-break: break-word;
}

/* Touch targets and tap ergonomics (Google Mobile Friendly >= 44px) */
.nav-toggle, .icon-btn, .lang-menu-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mnav a, .mnav-acc-trigger {
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
}

.filter-pill {
  min-height: 38px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  /* Featured pick card on tablet/mobile */
  .featured {
    padding: clamp(14px, 3.5vw, 22px);
    gap: 18px;
    border-radius: var(--radius);
  }
  .featured-media {
    border-radius: calc(var(--radius) - 6px);
  }
  .featured-body h3 {
    font-size: clamp(1.3rem, 4.5vw, 1.75rem);
    line-height: 1.22;
    margin-bottom: 10px;
  }
  .featured-body p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .featured-meta {
    font-size: 0.8rem;
    gap: 8px;
    margin-bottom: 16px;
  }
  .featured-action {
    width: 100%;
  }
  .btn-featured {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  /* Quick Verdict Box on mobile */
  .quick-verdict-box {
    padding: 18px 16px;
    margin: 20px 0 28px;
    border-left-width: 4px;
    border-radius: var(--radius);
  }
  .quick-verdict-head {
    gap: 8px;
  }
  .quick-verdict-badge {
    font-size: 0.85rem;
  }
  .quick-verdict-score {
    padding: 4px 10px;
    font-size: 0.82rem;
  }
  .quick-verdict-summary {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .quick-verdict-specs {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 12px;
  }
  .quick-verdict-label {
    font-size: 0.72rem;
  }
  .quick-verdict-val {
    font-size: 0.86rem;
  }

  /* Author page mobile optimization */
  .author-header-card {
    padding: 24px 16px;
    gap: 20px;
  }
  .author-avatar {
    width: 96px;
    height: 96px;
  }
  .author-name-row h1 {
    font-size: 1.6rem;
  }
  .author-socials {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .author-social-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .author-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .benchmarks-spec-box {
    padding: 18px 16px;
  }

  /* Prose readability on mobile */
  .prose > p, .prose li {
    font-size: 1.02rem;
    line-height: 1.72;
  }
  .prose h2 {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    margin-top: 1.8em;
    margin-bottom: 0.6em;
  }
  .prose h3 {
    font-size: 1.25rem;
  }
  .article-hero-img, .video-embed {
    border-radius: 16px;
    margin-top: 20px;
  }
  .crumbs [aria-current] {
    max-width: 22ch;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  .quick-verdict-specs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .author-stats-grid {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .card-media {
    aspect-ratio: 16 / 10;
  }
  .filter-bar {
    gap: 6px;
  }
  .filter-pill {
    padding: 6px 14px;
    font-size: 0.84rem;
  }
  .page-hero h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
    letter-spacing: -.03em;
  }
  .category-intro p {
    font-size: 0.95rem;
  }
}


/* Category Filter Pills — 3D Frosted Capsule */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 36px;
  align-items: center;
}
.filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .25s;
  user-select: none;
}
.filter-pill:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px var(--accent-glow);
}
.filter-pill.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #ec4899 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 18px -2px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}
.filter-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.pill-count {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, var(--surface));
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   3D MOTION ANIMATION GRAPHICS — STUDIO SHOWCASE
   High-impact 3D multi-plane motion studio in both Light and Dark themes
   ========================================================================== */
.hero-3d-motion-container {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 34px auto 24px;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.studio-card-3d {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow: 0 26px 65px -16px rgba(99, 102, 241, 0.28), 0 0 35px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform-style: preserve-3d;
  transform: rotateX(4deg) rotateY(-2deg);
  animation: floatStudio3D 7s ease-in-out infinite alternate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
  text-align: left;
}
[data-theme="dark"] .studio-card-3d {
  background: rgba(14, 15, 25, 0.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: 0 30px 75px -18px rgba(0, 0, 0, 0.88), 0 0 40px rgba(129, 140, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.studio-glare {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.35) 0%, transparent 55%);
  pointer-events: none;
  transform: translateZ(50px);
  z-index: 5;
  mix-blend-mode: overlay;
}
[data-theme="dark"] .studio-glare {
  background: radial-gradient(circle at 45% 35%, rgba(129, 140, 248, 0.22) 0%, transparent 60%);
}

/* Studio Top Bar */
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(99, 102, 241, 0.04);
  font-size: 0.82rem;
  font-weight: 700;
}
[data-theme="dark"] .studio-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}
.studio-dots {
  display: flex;
  gap: 6px;
}
.sdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.sdot.red { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }
.sdot.yellow { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
.sdot.green { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.5); }

.studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}
.studio-pill svg {
  color: var(--accent);
}
.studio-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLive 1.6s ease-in-out infinite;
}
@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

/* Studio Stage Viewport */
.studio-stage {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  transform-style: preserve-3d;
}
.studio-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  pointer-events: none;
}
[data-theme="dark"] .studio-mesh {
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.22) 0%, transparent 60%),
    linear-gradient(rgba(129, 140, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.08) 1px, transparent 1px);
}

/* 3D AI Core */
.ai-core-3d {
  position: relative;
  width: 90px;
  height: 90px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.core-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  pointer-events: none;
}
.core-ring-outer {
  width: 110px;
  height: 110px;
  border-color: rgba(99, 102, 241, 0.55);
  animation: spinRing1 12s linear infinite;
}
.core-ring-inner {
  width: 80px;
  height: 80px;
  border-color: rgba(236, 72, 153, 0.65);
  animation: spinRing2 9s linear infinite reverse;
}
.core-center {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: pulseCore 3.5s ease-in-out infinite;
  transform: translateZ(25px);
  z-index: 2;
}
@keyframes spinRing1 {
  0% { transform: rotateX(65deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateZ(360deg); }
}
@keyframes spinRing2 {
  0% { transform: rotateY(65deg) rotateZ(360deg); }
  100% { transform: rotateY(65deg) rotateZ(0deg); }
}
@keyframes pulseCore {
  0%, 100% { transform: translateZ(25px) scale(1); filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5)); }
  50% { transform: translateZ(25px) scale(1.08); filter: drop-shadow(0 0 24px rgba(236, 72, 153, 0.7)); }
}

/* Floating Depth Chips (3D Multi-Plane Layers) */
.depth-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.24);
  box-shadow: 0 14px 28px -6px rgba(99, 102, 241, 0.25), 0 4px 10px rgba(0, 0, 0, 0.05);
  transform: translateZ(44px);
  transform-style: preserve-3d;
  animation: chipFloat 5s ease-in-out infinite alternate;
  z-index: 4;
  white-space: nowrap;
}
[data-theme="dark"] .depth-chip {
  background: #141624;
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.75), 0 0 18px rgba(129, 140, 248, 0.22);
}
.chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.chip-avatar.success {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}
.chip-avatar.star {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}
.chip-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.chip-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.chip-val {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}
.chip-model {
  top: 20px;
  left: 20px;
}
.chip-sync {
  top: 24px;
  right: 20px;
  animation-delay: -1.6s;
}
.chip-free {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateZ(48px);
  animation: chipFloatCenter 5s ease-in-out infinite alternate;
  animation-delay: -3.2s;
}
@keyframes chipFloat {
  0% { transform: translateY(0px) translateZ(42px); }
  100% { transform: translateY(-7px) translateZ(46px); }
}
@keyframes chipFloatCenter {
  0% { transform: translateX(-50%) translateY(0px) translateZ(44px); }
  100% { transform: translateX(-50%) translateY(-6px) translateZ(48px); }
}

/* Studio Video Timeline */
.studio-timeline {
  padding: 14px 20px 18px;
  background: rgba(99, 102, 241, 0.03);
  border-top: 1px solid rgba(99, 102, 241, 0.14);
  transform-style: preserve-3d;
  transform: translateZ(15px);
}
[data-theme="dark"] .studio-timeline {
  background: rgba(0, 0, 0, 0.3);
  border-top-color: rgba(255, 255, 255, 0.08);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.tl-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}
.tl-timer {
  font-family: ui-monospace, monospace;
  color: var(--accent);
  font-weight: 800;
}
.timeline-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}
.tl-track {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.tl-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}
.tl-clips {
  display: flex;
  gap: 4px;
  flex: 1;
  height: 24px;
  overflow: hidden;
  border-radius: 6px;
}
.tl-clip {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  border-radius: 4px;
}
.clip-hook { flex: 2; background: linear-gradient(90deg, #6366f1, #818cf8); }
.clip-broll { flex: 3; background: linear-gradient(90deg, #ec4899, #f43f5e); }
.clip-avatar { flex: 3; background: linear-gradient(90deg, #06b6d4, #0ea5e9); }
.clip-cta { flex: 2; background: linear-gradient(90deg, #10b981, #059669); }

.tl-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 20px;
  padding: 0 4px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.wbar {
  flex: 1;
  min-width: 2px;
  height: 14px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--pink) 100%);
  border-radius: 999px;
  transform-origin: bottom center;
  animation: eqBounce 1.4s ease-in-out infinite alternate;
}
.wbar:nth-child(2n) { animation-delay: 0.15s; }
.wbar:nth-child(3n) { animation-delay: 0.3s; }
.wbar:nth-child(4n) { animation-delay: 0.45s; }
.wbar:nth-child(5n) { animation-delay: 0.6s; }
@keyframes eqBounce {
  0% { transform: scaleY(0.2); opacity: 0.4; }
  100% { transform: scaleY(1); opacity: 1; }
}

.tl-playhead {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  pointer-events: none;
  animation: playheadSweep 8s linear infinite;
  z-index: 10;
}
.ph-marker {
  width: 10px;
  height: 8px;
  background: #ef4444;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  margin-left: -4px;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.8));
}
.ph-beam {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #ef4444 0%, rgba(239, 68, 68, 0.1) 100%);
  box-shadow: 0 0 8px #ef4444;
}
@keyframes playheadSweep {
  0% { left: 56px; }
  100% { left: calc(100% - 10px); }
}

/* 3D Float Animation for Studio Card */
@keyframes floatStudio3D {
  0% {
    transform: perspective(1200px) rotateX(4deg) rotateY(-3deg) translateY(0px);
  }
  50% {
    transform: perspective(1200px) rotateX(-2deg) rotateY(4deg) translateY(-8px);
  }
  100% {
    transform: perspective(1200px) rotateX(3deg) rotateY(-2deg) translateY(-3px);
  }
}

/* Responsive Adjustments for 3D Studio */
@media (max-width: 640px) {
  .hero-3d-motion-container {
    margin: 22px auto 14px;
  }
  .studio-topbar {
    padding: 10px 14px;
  }
  .studio-pill span {
    display: none;
  }
  .studio-stage {
    min-height: 190px;
    padding: 16px;
  }
  .depth-chip {
    padding: 6px 10px;
    gap: 6px;
  }
  .chip-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
  .chip-lbl {
    font-size: 0.7rem;
  }
  .chip-val {
    font-size: 0.62rem;
  }
  .chip-model {
    top: 10px;
    left: 10px;
  }
  .chip-sync {
    top: 12px;
    right: 10px;
  }
  .chip-free {
    bottom: 8px;
  }
  .studio-timeline {
    padding: 10px 14px 14px;
  }
  .tl-clips {
    height: 20px;
  }
  .tl-clip {
    font-size: 0.6rem;
    padding: 0 4px;
  }
}
