/* =========================================================
   BandoBoyz — style.css
   1. Reset & tokens
   2. Themes
   3. Base / helpers
   4. Buttons
   5. Header + theme panel
   6. Hero
   7. Clients (cards, search, tags)
   8. Steps / CTA
   9. Footer
   10. Lightbox / toast
   11. Responsive
   12. Animations
   ========================================================= */

/* ---------- 1. RESET & TOKENS ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. THEMES ---------- */
:root,
[data-theme="neon"] {
  --bg: #08080f;
  --bg-soft: #0d0d1a;
  --surface: #12122262;
  --surface-solid: #121222;
  --surface-2: #1a1a30;
  --text: #f3f2fb;
  --muted: #9d9dbd;
  --accent: #a855f7;
  --accent-2: #22d3ee;
  --accent-ink: #ffffff;
  --grad: linear-gradient(100deg, #a855f7 0%, #6366f1 50%, #22d3ee 100%);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --glow: rgba(139, 92, 246, .38);
  --grid-line: rgba(255, 255, 255, .045);
}

[data-theme="ember"] {
  --bg: #0d0705;
  --bg-soft: #150b07;
  --surface: #1a0f0a70;
  --surface-solid: #1a0f0a;
  --surface-2: #24150d;
  --text: #fdf3ec;
  --muted: #c0a496;
  --accent: #f97316;
  --accent-2: #fbbf24;
  --accent-ink: #1a0b02;
  --grad: linear-gradient(100deg, #ef4444 0%, #f97316 55%, #fbbf24 100%);
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --glow: rgba(249, 115, 22, .35);
  --grid-line: rgba(255, 255, 255, .05);
}

[data-theme="ocean"] {
  --bg: #030911;
  --bg-soft: #06101c;
  --surface: #08172460;
  --surface-solid: #081724;
  --surface-2: #0d2133;
  --text: #eaf6ff;
  --muted: #8fb4cc;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --accent-ink: #02131f;
  --grad: linear-gradient(100deg, #22d3ee 0%, #38bdf8 45%, #6366f1 100%);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .17);
  --glow: rgba(56, 189, 248, .34);
  --grid-line: rgba(255, 255, 255, .045);
}

[data-theme="sakura"] {
  --bg: #10060d;
  --bg-soft: #180a13;
  --surface: #1e0d1970;
  --surface-solid: #1e0d19;
  --surface-2: #2a1322;
  --text: #fff0f7;
  --muted: #c69cb4;
  --accent: #f472b6;
  --accent-2: #c084fc;
  --accent-ink: #23081a;
  --grad: linear-gradient(100deg, #fb7185 0%, #f472b6 50%, #c084fc 100%);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .17);
  --glow: rgba(244, 114, 182, .34);
  --grid-line: rgba(255, 255, 255, .045);
}

[data-theme="forest"] {
  --bg: #050b08;
  --bg-soft: #08120d;
  --surface: #0a1a1270;
  --surface-solid: #0a1a12;
  --surface-2: #0f251a;
  --text: #ecfff4;
  --muted: #94bfa9;
  --accent: #34d399;
  --accent-2: #a3e635;
  --accent-ink: #02170e;
  --grad: linear-gradient(100deg, #2dd4bf 0%, #34d399 50%, #a3e635 100%);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .17);
  --glow: rgba(52, 211, 153, .32);
  --grid-line: rgba(255, 255, 255, .045);
}

[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-soft: #ffffff;
  --surface: #ffffff9c;
  --surface-solid: #ffffff;
  --surface-2: #f0f0f8;
  --text: #14141f;
  --muted: #5f5f77;
  --accent: #7c3aed;
  --accent-2: #db2777;
  --accent-ink: #ffffff;
  --grad: linear-gradient(100deg, #7c3aed 0%, #db2777 55%, #f59e0b 100%);
  --border: rgba(15, 15, 35, .10);
  --border-strong: rgba(15, 15, 35, .18);
  --glow: rgba(124, 58, 237, .22);
  --grid-line: rgba(15, 15, 35, .05);
  --shadow: 0 10px 30px rgba(30, 20, 70, .10);
}

[data-theme="light"] { --shadow: 0 12px 34px rgba(30, 20, 70, .10); }

/* ---------- 3. BASE ---------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .45s var(--ease), color .45s var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code {
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: .1em .45em;
  border-radius: 6px;
}

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section { padding: 84px 0; position: relative; }
.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.section-sub { color: var(--muted); margin-top: 10px; }

/* ---------- 4. BUTTONS ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  color: var(--text);
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 14px; }

.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 8px 26px var(--glow);
}
.btn-primary:hover { box-shadow: 0 12px 34px var(--glow); }

.btn-outline { background: transparent; border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-ghost.is-open .chev { transform: rotate(180deg); }

.btn-discord {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
  box-shadow: 0 8px 24px rgba(88, 101, 242, .35);
}
.btn-discord:hover { background: #4752c4; border-color: #4752c4; box-shadow: 0 12px 30px rgba(88, 101, 242, .45); }

.chev { transition: transform .25s var(--ease); }

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -.03em;
}
.brand-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; gap: 26px; margin-left: 14px; }
.nav a {
  font-size: .93rem;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .28s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* theme panel */
.theme-wrap { position: relative; }
.theme-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 268px;
  padding: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 70;
}
.theme-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.theme-panel-title {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}
.theme-panel-hint { font-size: .74rem; color: var(--muted); margin-top: 12px; }

.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }

.theme-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.theme-opt.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-opt .dots { display: flex; }
.theme-opt .dots i {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--surface-solid);
  margin-left: -5px;
  display: block;
}
.theme-opt .dots i:first-child { margin-left: 0; }
.theme-opt .check { margin-left: auto; color: var(--accent); opacity: 0; }
.theme-opt.active .check { opacity: 1; }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 35%, transparent 78%);
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .38;
}
.hero-bg::before { background: var(--accent); top: -220px; left: -120px; }
.hero-bg::after { background: var(--accent-2); bottom: -260px; right: -140px; }

.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 26px;
  backdrop-filter: blur(8px);
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.2s infinite;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  display: flex;
  gap: 46px;
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- 7. CLIENTS ---------- */
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--muted);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.search input {
  border: 0;
  background: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .93rem;
  width: 100%;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.tagbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.tag-btn {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.tag-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.tag-btn.active {
  background: var(--grad);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 6px 18px var(--glow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .38), 0 0 0 1px var(--accent);
}
[data-theme="light"] .card:hover { box-shadow: 0 22px 44px rgba(30, 20, 70, .16), 0 0 0 1px var(--accent); }

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  cursor: zoom-in;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%);
  pointer-events: none;
}

.badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  gap: 7px;
  z-index: 2;
  flex-wrap: wrap;
}
.badge {
  padding: 4px 10px;
  border-radius: 7px;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
}
.badge.featured {
  background: var(--grad);
  border-color: transparent;
  color: var(--accent-ink);
}

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { font-size: 1.22rem; }
.card-meta { font-size: .76rem; color: var(--muted); text-align: right; white-space: nowrap; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.card-desc {
  color: var(--muted);
  font-size: .93rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.4em;
}

.card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-foot .btn { padding: 10px 18px; }
.card-size { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

/* empty state */
.empty {
  text-align: center;
  padding: 64px 24px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-icon {
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}
.empty h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 460px; margin-inline: auto; }

/* ---------- 8. STEPS / CTA ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.step {
  padding: 26px 22px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: var(--accent); }
.step-num {
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
}
.step h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: .92rem; }

.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 48px 46px;
  border-radius: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
}
.cta-glow {
  position: absolute;
  width: 480px; height: 480px;
  right: -140px; top: -180px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(130px);
  opacity: .3;
  pointer-events: none;
}
.cta-body { position: relative; flex: 1; }
.cta-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.cta-body p { color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.cta-body .hero-cta { justify-content: flex-start; }
.cta-art { position: relative; width: 180px; opacity: .95; animation: float 6s ease-in-out infinite; }

/* ---------- 9. FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding-top: 54px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 12px; max-width: 300px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  font-size: .92rem;
  color: var(--muted);
  padding: 5px 0;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-links a:hover { color: var(--accent); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}

/* ---------- 10. LIGHTBOX / TOAST ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 3, 8, .88);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 40px;
  animation: fade .25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 84vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.lightbox-close:hover { background: var(--accent); transform: rotate(90deg); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 80px);
  z-index: 120;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 11. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .cta-card { padding: 36px 28px; }
  .cta-art { display: none; }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .hero { padding: 66px 0 58px; }
  .btn-text { display: none; }
  .header-actions .btn { padding: 10px 12px; }
  .chev { display: none; }
  .theme-panel { width: 244px; right: -46px; }
  .hero-stats { gap: 26px; }
  .search { min-width: 100%; }
  .section-head { align-items: stretch; }
  .grid { grid-template-columns: 1fr; }
  .card-desc { min-height: 0; }
  .footer-links { gap: 36px; }
}

/* ---------- 12. ANIMATIONS ---------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}
/* Only hide elements when the browser can reveal them again. */
.has-reveal .reveal { opacity: 0; transform: translateY(26px); }
.has-reveal .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
