/* =====================================================
   ZORGO AI — Styles
   Theme: "Neon Noir" — deep midnight + electric cyan + coral
   ===================================================== */

:root {
  /* base palette */
  --bg:            #06080f;
  --bg-2:          #0b0f1a;
  --surface:       rgba(255,255,255,0.04);
  --surface-2:     rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text:          #e7ecf3;
  --text-dim:      #9aa3b2;
  --text-mute:     #6b7280;

  /* brand accents */
  --cyan:    #22d3ee;
  --cyan-2:  #06b6d4;
  --coral:   #fb7185;
  --violet:  #a78bfa;
  --lime:    #a3e635;

  /* gradients */
  --grad-brand: linear-gradient(135deg, #22d3ee 0%, #a78bfa 50%, #fb7185 100%);
  --grad-card:  linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  --grad-glow:  radial-gradient(60% 60% at 50% 0%, rgba(34,211,238,0.18), transparent 70%);

  /* sizing */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 20px 60px -20px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px rgba(34,211,238,0.25), 0 20px 60px -20px rgba(34,211,238,0.45);

  /* fonts */
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* light theme override */
[data-theme="light"] {
  --bg:            #f6f7fb;
  --bg-2:          #eef0f6;
  --surface:       rgba(10,15,30,0.04);
  --surface-2:     rgba(10,15,30,0.06);
  --border:        rgba(10,15,30,0.10);
  --border-strong: rgba(10,15,30,0.18);
  --text:          #0e1320;
  --text-dim:      #4a5260;
  --text-mute:     #6b7280;
  --grad-card:     linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
  --shadow:        0 20px 60px -20px rgba(20,30,60,0.25);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }

/* ---------- background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(var(--bg) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--bg) 1px, transparent 1px) 0 0 / 64px 100%,
    radial-gradient(1200px 800px at 80% -10%, rgba(34,211,238,0.07), transparent 60%),
    radial-gradient(800px 600px at 10% 10%, rgba(251,113,133,0.06), transparent 60%),
    var(--bg);
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 50%, transparent 100%);
}
[data-theme="light"] .bg-grid {
  background:
    linear-gradient(rgba(20,30,60,0.05) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(20,30,60,0.05) 1px, transparent 1px) 0 0 / 64px 100%,
    radial-gradient(1200px 800px at 80% -10%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(800px 600px at 10% 10%, rgba(251,113,133,0.08), transparent 60%),
    var(--bg);
}
.bg-orb {
  position: fixed; z-index: -1;
  width: 520px; height: 520px; border-radius: 50%;
  filter: blur(120px); opacity: 0.45; pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.bg-orb--cyan   { top: -120px; left: -120px; background: #22d3ee; }
.bg-orb--coral  { bottom: -160px; right: -160px; background: #fb7185; animation-delay: -6s; }
.bg-orb--violet { top: 40%; left: 60%; background: #a78bfa; opacity: 0.25; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px,-30px) scale(1.08); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  /* glow follows the actual brain shape, not a square wrapper */
  filter: drop-shadow(0 4px 16px rgba(34,211,238,0.35));
}
.brand__mark img { display: block; max-width: 100%; height: auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px; letter-spacing: 0.12em;
}
.brand__name--accent {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__links { display: flex; gap: 24px; margin-left: 12px; }
.nav__links a {
  color: var(--text-dim);
  font-size: 14.5px; font-weight: 500;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; line-height: 1;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--cyan); }
.btn--primary {
  border: none;
  background: var(--grad-brand);
  color: #06080f;
  box-shadow: 0 8px 30px -8px rgba(34,211,238,0.6);
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost { background: transparent; }
.btn--lg { padding: 14px 22px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 110px) clamp(16px, 4vw, 48px) 60px;
  text-align: center;
  background: var(--grad-glow);
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12.5px; color: var(--text-dim);
  margin-bottom: 24px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(34,211,238,0.18); }
  50%     { box-shadow: 0 0 0 8px rgba(34,211,238,0.0); }
}
.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05; font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  max-width: 640px; margin: 0 auto 32px;
  color: var(--text-dim); font-size: clamp(15px, 1.6vw, 17px);
}

/* search */
.search {
  position: relative;
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.15);
}
.search__icon { color: var(--text-dim); flex-shrink: 0; }
.search input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--text); font-size: 15px; padding: 14px 12px;
}
.search input::placeholder { color: var(--text-mute); }
.search__kbd {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-size: 12px;
  color: var(--text-dim);
}

.hero__stats {
  display: flex; justify-content: center; gap: clamp(20px, 6vw, 64px);
  margin-top: 40px;
}
.hero__stats > div {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hero__stats strong {
  font-family: var(--font-display); font-size: 28px;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats span { font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- categories rail ---------- */
.cats { padding: 24px clamp(16px, 4vw, 48px) 8px; }
.cats__head { margin-bottom: 18px; }
.cats__head h2 { font-size: 22px; }
.cats__head p { color: var(--text-dim); margin: 6px 0 0; font-size: 14.5px; }
.cats__rail {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13.5px; font-weight: 500;
  transition: all .18s ease;
}
.cat-chip:hover { color: var(--text); border-color: var(--cyan); transform: translateY(-1px); }
.cat-chip[aria-selected="true"] {
  background: var(--grad-brand);
  color: #06080f;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(34,211,238,0.5);
}
.cat-chip__count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  color: inherit; font-size: 11.5px; font-weight: 600;
}
.cat-chip[aria-selected="true"] .cat-chip__count { background: rgba(6,8,15,0.18); }

/* ---------- tools grid ---------- */
.tools { padding: 32px clamp(16px, 4vw, 48px) 80px; }
.tools__head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.tools__head h2 { font-size: 24px; }
.tools__meta { display: flex; align-items: center; gap: 14px; }
.tools__meta span { color: var(--text-dim); font-size: 14px; }
.select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 9px 14px; border-radius: 999px;
  font-size: 13.5px; font-family: inherit;
  outline: none; cursor: pointer;
}
.select:focus { border-color: var(--cyan); }

/* Tools grid flows with the page — no inner scroll, no scroll trap.
   Mobile/tablet: 2 columns · Desktop: 4 columns. */
.tools__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 860px) {
  .tools__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* tool card */
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--accent, var(--cyan)) 60%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.55);
}
.card:hover::before { opacity: 1; }

.card__top {
  display: flex; align-items: center; gap: 12px;
}
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: #06080f;
  background: var(--accent, var(--cyan));
  box-shadow: 0 6px 18px -6px var(--accent, rgba(34,211,238,0.5));
  flex-shrink: 0;
}
.card__title { font-size: 17px; font-weight: 600; line-height: 1.2; }
.card__cat { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

.card__badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  background: var(--grad-brand); color: #06080f;
  letter-spacing: 0.04em;
}

.card__desc { color: var(--text-dim); font-size: 14px; line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px dashed var(--border);
}
.card__pricing {
  font-size: 12.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border);
}
.card__rating { display: inline-flex; align-items: center; gap: 4px; color: var(--text-dim); font-size: 13px; }
.card__rating strong { color: var(--text); font-weight: 600; }
.card__star { color: #fbbf24; }

/* empty */
.empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-dim);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.empty__icon { font-size: 38px; margin-bottom: 8px; opacity: .5; }
.empty h3 { color: var(--text); font-size: 18px; margin-bottom: 4px; }

/* ---------- submit CTA ---------- */
.submit { padding: 0 clamp(16px, 4vw, 48px) 80px; }
.submit__card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 100% at 0% 0%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(251,113,133,0.18), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border-strong);
  flex-wrap: wrap;
}
.submit__card h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.submit__card p { color: var(--text-dim); margin: 0; max-width: 520px; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--border);
  padding: 48px clamp(16px, 4vw, 48px) 24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
}
.foot__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px; margin-bottom: 32px;
}
.foot__brand p { color: var(--text-dim); margin-top: 10px; max-width: 340px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot__cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 12px; }
.foot__cols a { display: block; color: var(--text); font-size: 14px; padding: 4px 0; }
.foot__cols a:hover { color: var(--cyan); }
.foot__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 13px; color: var(--text-dim);
}

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 16px;
  animation: modalFadeIn .25s ease;
}
.modal[hidden] { display: none; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2,4,10,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__shell {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  width: min(960px, 100%);
  max-height: 92vh;
  background: linear-gradient(180deg, #0c1120, #0a0e1a);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(34,211,238,.1);
  animation: modalPop .35s cubic-bezier(.2,.8,.2,1);
}
[data-theme="light"] .modal__shell { background: linear-gradient(180deg, #ffffff, #f4f6fb); }
@keyframes modalPop {
  from { transform: translateY(20px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.4); color: #fff;
  border: 1px solid var(--border-strong);
  transition: transform .15s, background .2s;
}
.modal__close:hover { transform: rotate(90deg); background: rgba(255,255,255,.1); }

/* visual side (left) */
.modal__visual {
  position: relative;
  padding: 28px;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 60% at 50% 30%, color-mix(in srgb, var(--accent, #22d3ee) 60%, transparent), transparent 70%),
    linear-gradient(180deg, #0d1426, #0a0e1a);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.modal__icon {
  position: relative; z-index: 2;
  width: 96px; height: 96px; border-radius: 24px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 40px;
  color: #06080f;
  background: var(--accent, var(--cyan));
  box-shadow: 0 20px 60px -15px var(--accent, rgba(34,211,238,.6));
}
.modal__rings { position: absolute; inset: 0; display: grid; place-items: center; }
.modal__rings span {
  position: absolute;
  width: 160px; height: 160px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent, #22d3ee) 30%, transparent);
  animation: ring 4s linear infinite;
}
.modal__rings span:nth-child(2) { width: 240px; height: 240px; animation-delay: -1.3s; }
.modal__rings span:nth-child(3) { width: 320px; height: 320px; animation-delay: -2.6s; }
@keyframes ring {
  0%   { transform: scale(.92); opacity: .6; }
  50%  { transform: scale(1.08); opacity: .15; }
  100% { transform: scale(.92); opacity: .6; }
}
.modal__rating {
  position: absolute; bottom: 22px; left: 22px;
  font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,.4); border: 1px solid var(--border-strong);
  color: #fbbf24;
}

/* body side (right) */
.modal__body {
  padding: 28px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

.modal__head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.chip--ghost { background: transparent; }
.chip--badge {
  background: var(--grad-brand); color: #06080f; border-color: transparent;
}

.modal__body h3 { font-size: 28px; margin-bottom: 6px; }
.modal__tagline { color: var(--text-dim); font-size: 15px; margin: 0 0 16px; }
.modal__desc { color: var(--text); font-size: 15px; line-height: 1.65; margin: 0 0 22px; }

.modal__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 18px;
}
.modal__col h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); margin-bottom: 10px; font-family: var(--font-sans); font-weight: 600;
}
.modal__col li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  color: var(--text);
}
.modal__col li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--accent, var(--cyan));
}

.modal__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tag {
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim);
}

.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

.modal__similar h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); margin-bottom: 12px; font-family: var(--font-sans); font-weight: 600;
}
.modal__similar-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.similar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.similar:hover { border-color: var(--cyan); transform: translateY(-2px); }
.similar__icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent, var(--cyan));
  color: #06080f; font-weight: 700; font-size: 13px; font-family: var(--font-display);
  flex-shrink: 0;
}
.similar__name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.similar__cat { font-size: 11px; color: var(--text-dim); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }

  /* ---- Mobile modal: make the OUTER overlay the scroll surface ----
     Bug fix: on phones, .modal__shell's max-height + overflow:hidden
     was clipping content, and the inner body's overflow-y:auto wasn't
     triggering reliably (Safari iOS edge case). Letting the .modal
     container itself scroll is bulletproof everywhere.                 */
  .modal {
    place-items: start center;          /* stick shell to top, center horizontally */
    overflow-y: auto;                   /* whole modal scrolls */
    -webkit-overflow-scrolling: touch;  /* smooth momentum scroll on iOS */
    overscroll-behavior: contain;       /* don't bounce-scroll the page behind */
    padding: 14px 12px 28px;
  }
  .modal__shell {
    grid-template-columns: 1fr;
    max-height: none;                   /* remove desktop's 92vh cap */
    overflow: visible;                  /* don't clip — parent handles scroll */
    width: 100%;
  }
  .modal__visual {
    padding: 32px 20px;
    min-height: 180px;
  }
  .modal__body {
    padding: 22px 20px 28px;
    overflow: visible;                  /* body itself doesn't scroll on mobile */
  }
  /* Close button stays pinned to the corner of the viewport while scrolling */
  .modal__close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 12px));
    right: 12px;
    z-index: 110;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .modal__rings span:nth-child(3) { display: none; }
  .modal__cols { grid-template-columns: 1fr; }
  .modal__similar-list { grid-template-columns: 1fr 1fr; }
  .foot__top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 540px) {
  .hero__stats { gap: 24px; }
  .hero__stats strong { font-size: 22px; }
  .submit__card { flex-direction: column; align-items: flex-start; }
  .modal__similar-list { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}


/* =====================================================
   ZORGO AI — Sidebar layout + new sections
   ===================================================== */

/* ---------- tools layout (sidebar + main) ---------- */
.tools__layout { display: block; }
.tools__main { min-width: 0; }  /* prevent grid blowout when content is wide */

/* sidebar shows only on wide desktop; below that the top pills handle filtering */
.tools__sidebar { display: none; }

@media (min-width: 1080px) {
  .tools__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
  }
  .tools__sidebar {
    display: block;
    position: sticky;
    top: 78px;                          /* sit just below the sticky nav */
    align-self: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px 16px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
  }
  .tools__sidebar::-webkit-scrollbar { width: 6px; }
  .tools__sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
}

.sidebar__group { margin-bottom: 18px; }
.sidebar__group:last-of-type { margin-bottom: 0; }
.sidebar__title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 8px;
  padding: 0 8px;
}
.sidebar__list { display: flex; flex-direction: column; gap: 2px; }
.sidebar__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.sidebar__btn:hover { background: var(--surface-2); color: var(--text); }
.sidebar__btn:active { transform: scale(.98); }
.sidebar__btn.is-active {
  background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(167,139,250,0.16));
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.sidebar__count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-mute);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 8px;
  min-width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar__btn.is-active .sidebar__count {
  color: var(--cyan);
  background: rgba(34,211,238,0.12);
}
.sidebar__reset {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.sidebar__reset:hover {
  color: var(--coral);
  border-color: var(--coral);
  background: rgba(251,113,133,0.05);
}

/* ---------- shared section header ---------- */
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); }
.section-head p { color: var(--text-dim); margin: 6px 0 0; font-size: 14.5px; }
.section-head--center { text-align: center; max-width: 640px; margin: 0 auto 30px; }

/* ---------- featured / editor's picks ---------- */
.featured { padding: 8px clamp(16px, 4vw, 48px) 60px; }
.featured__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.featured-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.featured-card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--accent, #22d3ee) 22%, transparent), transparent 60%);
  pointer-events: none;
}
.featured-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent, var(--cyan)) 50%, transparent);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.5);
}
.featured-card__top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.featured-card .card__title { font-size: 17px; }
.featured-card .card__desc { -webkit-line-clamp: 2; }
.featured-card .card__foot { border-top: 0; padding-top: 6px; }

/* ---------- use cases ---------- */
.usecases { padding: 0 clamp(16px, 4vw, 48px) 60px; }
.usecases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.usecase {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform .15s, border-color .2s, box-shadow .2s, color .15s;
}
.usecase:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  color: var(--text);
  box-shadow: 0 14px 28px -16px rgba(34,211,238,0.4);
}
.usecase__emoji {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* ---------- why zorgo ai ---------- */
.why { padding: 8px clamp(16px, 4vw, 48px) 70px; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.why-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.why-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.why-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent, var(--cyan)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--cyan)) 30%, transparent);
}
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { color: var(--text-dim); font-size: 14px; margin: 0; line-height: 1.65; }

/* ---------- newsletter ---------- */
.newsletter { padding: 0 clamp(16px, 4vw, 48px) 70px; }
.newsletter__card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(167,139,250,0.20), transparent 60%),
    radial-gradient(80% 100% at 0% 100%, rgba(34,211,238,0.20), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border-strong);
}
.newsletter__copy h2 { font-size: clamp(22px, 3vw, 30px); margin: 12px 0 8px; }
.newsletter__copy p { color: var(--text-dim); margin: 0; max-width: 460px; }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.newsletter__form input::placeholder { color: var(--text-mute); }
.newsletter__form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.15);
}

@media (max-width: 760px) {
  .newsletter__card { grid-template-columns: 1fr; gap: 22px; }
  .newsletter__form { flex-direction: column; }
}

/* ---------- FAQ ---------- */
.faq { padding: 8px clamp(16px, 4vw, 48px) 80px; }
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.faq__item[open] {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  transition: color .15s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--cyan); }
.faq__item summary svg {
  transition: transform .25s ease, color .15s;
  flex-shrink: 0;
  color: var(--text-dim);
}
.faq__item[open] summary svg { transform: rotate(180deg); color: var(--cyan); }
.faq__item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}


/* =====================================================
   ZORGO AI — Legal pages (privacy / terms / disclaimer)
   ===================================================== */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px clamp(16px, 4vw, 48px) 80px;
}
.legal__head {
  margin-bottom: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.legal__chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 5px 11px; border-radius: 999px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.25);
  margin-bottom: 18px;
}
.legal h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.legal__updated {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.legal h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 36px 0 14px;
  color: var(--text);
}
.legal h2 .legal__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--cyan);
  margin-right: 8px;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}
.legal p, .legal li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
}
.legal p { margin: 0 0 14px; }
.legal ul {
  padding-left: 24px;
  list-style: disc;
  margin: 0 0 14px;
}
.legal ul li { margin-bottom: 6px; }
.legal ul li::marker { color: var(--cyan); }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--coral); }
.legal__back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .15s, background .15s;
}
.legal__back:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(34,211,238,0.05);
}



/* =====================================================
   ZORGO AI — About + Contact pages
   ===================================================== */

/* shared sub-text under the page hero */
.about-page__sub {
  color: var(--text-dim);
  font-size: 16px;
  margin-top: 10px;
  line-height: 1.6;
}

/* mission card */
.mission__card {
  padding: 28px 26px;
  margin: 4px 0 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(34,211,238,0.16), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(167,139,250,0.14), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border-strong);
}
.mission__card h2 { margin: 0 0 10px; font-size: clamp(20px, 2.6vw, 26px); }
.mission__card p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); }

/* story */
.about-page__story p {
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.85;
}
.about-page__story h2,
.about-page__founder h2,
.about-page__values h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 40px 0 14px;
  color: var(--text);
}

/* founder */
.founder__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
}
.founder__avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 34px;
  color: #06080f;
  background: var(--grad-brand);
  flex-shrink: 0;
  box-shadow: 0 14px 36px -14px rgba(34,211,238,0.55);
}
.founder__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.founder__role {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
  margin: 4px 0 14px;
}
.founder__info p { color: var(--text-dim); margin: 0 0 12px; line-height: 1.7; font-size: 14.5px; }
.founder__info p:last-of-type { margin-bottom: 16px; }
.founder__socials { display: flex; gap: 8px; }
.founder__socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .2s, color .15s, transform .15s, background .15s;
}
.founder__socials a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  background: rgba(34,211,238,0.08);
}

/* values */
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.value-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.value-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.value-card__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent, var(--cyan)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--cyan)) 30%, transparent);
}
.value-card h3 { font-size: 16px; margin-bottom: 6px; }
.value-card p { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.6; }

/* stats */
.about-page__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  padding: 28px 24px;
  margin: 36px 0 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.about-stat { text-align: center; }
.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* about CTA */
.about-cta__card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 100% at 0% 0%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(251,113,133,0.18), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border-strong);
  flex-wrap: wrap;
  margin-top: 36px;
}
.about-cta__card h2 { margin: 0 0 6px; font-size: clamp(20px, 2.6vw, 26px); }
.about-cta__card p { margin: 0; color: var(--text-dim); }

@media (max-width: 640px) {
  .founder__card { grid-template-columns: 1fr; gap: 18px; }
  .founder__avatar { width: 88px; height: 88px; font-size: 28px; }
  .about-cta__card { flex-direction: column; align-items: flex-start; }
}

/* ---------- contact page ---------- */
.contact__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
@media (max-width: 860px) {
  .contact__layout { grid-template-columns: 1fr; }
}

.contact__form {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) {
  .contact__form .form-row { grid-template-columns: 1fr; }
}
.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.contact__form textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.12);
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--text-mute); }
.contact__form button { align-self: flex-start; }
.contact__note {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-dim);
}
.contact__note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

/* contact info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info-card {
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.contact-info-card h3 {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.contact-info-card p {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.7;
}
.contact-list {
  display: flex; flex-direction: column; gap: 10px;
}
.contact-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list span {
  color: var(--text-dim);
  font-size: 13px;
}
.contact-list a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}
.contact-list a:hover { color: var(--coral); }



/* =====================================================
   ZORGO AI — Real tool logos (Clearbit + Google favicons)
   ===================================================== */

/* All icon wrappers become positioning contexts holding both a logo img
   and an initials fallback layered on top of each other. */
.card__icon,
.featured-card .card__icon,
.modal__icon,
.similar__icon {
  position: relative;
  overflow: hidden;
}

/* initials shown when image is loading or failed (sits behind img) */
.tool-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #06080f;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.card__icon    .tool-initials { font-size: 18px; }
.modal__icon   .tool-initials { font-size: 40px; }
.similar__icon .tool-initials { font-size: 13px; }

/* logo image itself: white tile fitted into the colored wrapper */
.tool-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: inherit;
  display: block;
  z-index: 2;
  /* gentle fade-in once it loads */
  animation: logoFadeIn .25s ease both;
}
@keyframes logoFadeIn { from { opacity: 0; } to { opacity: 1; } }

.card__icon    .tool-logo { padding: 5px; }
.modal__icon   .tool-logo { padding: 12px; }
.similar__icon .tool-logo { padding: 3px; }

/* When both clearbit + google favicon fail, JS sets [hidden] -> initials show */
.tool-logo[hidden] { display: none; }



/* =====================================================
   Blog index page
   ===================================================== */

.blog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 120px) clamp(20px, 5vw, 56px) 80px;
  position: relative;
  z-index: 1;
}

.blog-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.blog-hero__chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(167,139,250,.15));
  border: 1px solid rgba(34,211,238,.3);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.blog-hero p {
  color: var(--text-muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 620px;
}

/* Featured post card (large) */
.blog-feature { margin-bottom: 64px; }
.feature-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.02), 0 20px 60px -30px rgba(0,0,0,.6);
}
.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 30px 70px -30px rgba(0,0,0,.7);
}
.feature-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0f1a;
}
.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.feature-card:hover .feature-card__media img { transform: scale(1.04); }
.feature-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.feature-card__body {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-card__body h2 {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.feature-card__body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.feature-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

@media (min-width: 900px) {
  .feature-card { grid-template-columns: 1.1fr 1fr; }
  .feature-card__media { aspect-ratio: auto; height: 100%; min-height: 320px; }
}

/* Posts grid */
.blog-list__head {
  margin: 0 0 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-list__head h2 {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 0;
}
.blog-list__head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Post card */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.post-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -25px rgba(0,0,0,.6);
}
.post-card--soon { opacity: .78; }
.post-card--soon:hover { transform: none; border-color: var(--border); cursor: default; }

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0f1a;
  display: block;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media--soon img { filter: saturate(.6) brightness(.85); }

.post-card__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(34,211,238,.15);
  border: 1px solid rgba(34,211,238,.4);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.post-card__chip--soft {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: var(--text-muted);
}

.post-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
}
.post-card__title {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.005em;
}
.post-card__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size .3s ease;
}
.post-card__title a:hover { background-size: 100% 1px; }
.post-card__excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* Author + meta bits */
.post-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.post-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}
.post-author__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  color: #0b0f1a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.post-author__avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 16px;
}
.post-author__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.post-author__info strong {
  font-size: 13px;
  font-weight: 600;
}
.post-author__info span {
  font-size: 12px;
  color: var(--text-muted);
}

.post-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.3);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dot-sep { color: var(--border-strong); }

/* Blog newsletter CTA */
.blog-cta { margin: 64px 0 8px; }
.blog-cta__card {
  background: linear-gradient(135deg, rgba(34,211,238,.06), rgba(167,139,250,.06));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.blog-cta__card h2 {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  margin: 10px 0 6px;
  font-size: clamp(20px, 2.4vw, 28px);
}
.blog-cta__card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
}
@media (min-width: 820px) {
  .blog-cta__card { grid-template-columns: 1fr auto; }
}

/* =====================================================
   Single post page
   ===================================================== */

.post {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 120px) clamp(20px, 5vw, 32px) 80px;
  position: relative;
  z-index: 1;
}

.post__article { display: block; }

.post__head {
  margin-bottom: 36px;
  text-align: left;
}
.post__back {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 18px;
  transition: color .2s ease;
}
.post__back:hover { color: var(--cyan); }

.post__head h1 {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.post__lede {
  color: var(--text-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  margin: 0 0 22px;
}
.post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Cover */
.post__cover,
.post__figure {
  margin: 36px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0f1a;
}
.post__cover img,
.post__figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post__cover figcaption,
.post__figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  text-align: center;
  font-style: italic;
}

/* Body typography */
.post__body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.post__body p { margin: 0 0 22px; }
.post__body h2 {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  position: relative;
  padding-left: 18px;
}
.post__body h2::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: linear-gradient(180deg, #22d3ee, #a78bfa);
  border-radius: 4px;
}
.post__body h3 {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.3;
  margin: 36px 0 12px;
  letter-spacing: -0.005em;
}
.post__body h4 {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--cyan);
  letter-spacing: .01em;
}
.post__body ul,
.post__body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.post__body li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.post__body strong { color: var(--text); font-weight: 600; }
.post__body em { color: var(--text); }
.post__body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34,211,238,.4);
  transition: border-color .2s ease;
}
.post__body a:hover { border-bottom-color: var(--cyan); }

/* Callout */
.post-callout {
  display: block;
  margin: 28px 0;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(167,139,250,.06));
  border: 1px solid rgba(34,211,238,.25);
  border-left: 4px solid var(--cyan);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}
.post-callout strong { color: var(--cyan); margin-right: 4px; }
.post-callout--tip {
  background: linear-gradient(135deg, rgba(163,230,53,.08), rgba(34,211,238,.05));
  border-color: rgba(163,230,53,.3);
  border-left-color: #a3e635;
}
.post-callout--tip strong { color: #a3e635; }

/* Author card at bottom */
.post-author-card {
  margin: 56px 0 32px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.post-author-card > div { display: flex; flex-direction: column; gap: 2px; }
.post-author-card strong {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: 17px;
}
.post-author-card span { font-size: 13px; color: var(--text-muted); }
.post-author-card p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Post nav */
.post__nav {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}



/* =====================================================
   Code blocks inside posts (for prompt snippets etc.)
   ===================================================== */
.post__body pre,
.post__body pre.post-code {
  margin: 24px 0;
  padding: 18px 22px;
  background: #0b0f1a;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: #d6dbe5;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.post__body pre::-webkit-scrollbar { height: 8px; }
.post__body pre::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

.post__body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  border: 0;
}

.post__body :not(pre) > code {
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.9em;
  color: var(--cyan);
  border: 1px solid var(--border);
}



/* =====================================================
   Featured strip — slow auto-scrolling popular tools
   ===================================================== */
.popular-strip {
  padding: 8px clamp(16px, 4vw, 48px) 36px;
  position: relative;
}
.popular-strip__head {
  text-align: center;
  margin-bottom: 22px;
}
.popular-strip__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(167,139,250,.18));
  border: 1px solid rgba(34,211,238,.4);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.popular-strip__chip svg { color: #fbbf24; }
.popular-strip__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
.popular-strip__sub {
  color: var(--text-dim);
  font-size: 13.5px;
  margin: 0;
}

/* viewport masks both edges so pills appear to fade in/out as they scroll */
.popular-strip__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.popular-strip__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: popularScroll 36s linear infinite;
  will-change: transform;
}
.popular-strip:hover .popular-strip__track,
.popular-strip:focus-within .popular-strip__track {
  animation-play-state: paused;
}
@keyframes popularScroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .popular-strip__track { animation: none; }
}

/* individual pill */
.popular-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.popular-pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent, var(--cyan)) 70%, transparent),
    color-mix(in srgb, var(--violet) 50%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .5;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: -1;
}
.popular-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--accent, var(--cyan)) 80%, transparent);
}
.popular-pill:hover::before { opacity: 1; }

.popular-pill__logo {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent, var(--cyan));
  color: #06080f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent, var(--cyan)) 80%, transparent);
}
.popular-pill__logo .tool-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}
.popular-pill__logo .tool-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  z-index: 2;
}

.popular-pill__body {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}
.popular-pill__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -.005em;
}
.popular-pill__tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
}


/* =====================================================
   YouTube section — latest long videos
   ===================================================== */
.youtube {
  padding: 8px clamp(16px, 4vw, 48px) 70px;
}
.youtube__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  min-height: 200px;
}
.youtube__cta {
  text-align: center;
  margin-top: 28px;
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.video-card:hover {
  transform: translateY(-3px);
  border-color: #ff0000;       /* YouTube red */
  box-shadow: 0 20px 50px -25px rgba(255,0,0,.4);
}
.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0f1a;
}
.video-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.video-card:hover .video-card__thumb img { transform: scale(1.04); }

.video-card__duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,0,0,.95);
  color: #fff;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 10px 30px -10px rgba(255,0,0,.6);
}
.video-card:hover .video-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.video-card__title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card__meta {
  font-size: 12.5px;
  color: var(--text-dim);
}

/* skeleton loader */
.video-card--skeleton {
  pointer-events: none;
  border-color: var(--border);
}
.video-card--skeleton::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent) 0 0 / 200% 100% no-repeat,
    var(--surface-2);
  animation: skeletonShine 1.4s infinite linear;
}
.video-card--skeleton::after {
  content: "";
  display: block;
  height: 70px;
  background: var(--surface-2);
  margin: 14px 16px 18px;
  border-radius: 8px;
}
@keyframes skeletonShine {
  to { background-position: 200% 0, 0 0; }
}

/* empty / error state */
.video-card--empty {
  grid-column: 1 / -1;
  padding: 36px 28px;
  text-align: center;
  border-style: dashed;
  background: transparent;
}
.video-card--empty p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}
.video-card--empty:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}


/* =====================================================
   Videos page (videos.html)
   ===================================================== */
.videos-page {
  padding: 28px clamp(16px, 4vw, 48px) 70px;
  max-width: 1280px;
  margin: 0 auto;
}
.videos-hero {
  text-align: center;
  padding: 28px 0 22px;
}
.videos-hero h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
}
.videos-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
}
.videos-hero a {
  color: var(--accent, #22d3ee);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.videos-hero a:hover { opacity: .85; }

.videos-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 18px;
  padding: 14px 18px;
  background: var(--surface-1, rgba(255,255,255,0.02));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 14px;
  flex-wrap: wrap;
}
.videos-toolbar__count {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
}
.videos-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.videos-toolbar__label {
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
}

.videos-grid-wrap {
  margin-top: 8px;
}
.videos-grid {
  /* Slightly denser than home 3-card grid; reuse .youtube__grid base */
  min-height: 320px;
}

.videos-cta {
  margin-top: 50px;
}
.videos-cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(20px, 4vw, 40px);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,0,0,0.06), rgba(255,255,255,0.02));
  flex-wrap: wrap;
}
.videos-cta__card h2 {
  margin: 0 0 6px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 30px);
}
.videos-cta__card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* Homepage YouTube CTA — stack the two buttons nicely */
.youtube__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .videos-toolbar { padding: 12px 14px; }
  .videos-cta__card { padding: 24px 18px; }
  .videos-cta__card .btn { width: 100%; justify-content: center; }
}
