/* ===================================================
   ByteGif — Modern Minimal Design System
   =================================================== */

/* ---------- design tokens ---------- */
:root {
  --bg: #fafafa;
  --bg-subtle: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-hover: #fcfcfd;
  --text: #09090b;
  --text-muted: #52525b;
  --text-soft: #71717a;
  --accent: #09090b;
  --accent-Contrast: #ffffff;
  --brand-blue: #0066ff;
  --brand-emerald: #10b981;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow: 0 4px 16px rgba(9, 9, 11, 0.04);
  --shadow-hover: 0 8px 24px rgba(9, 9, 11, 0.07);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --header-bg: rgba(250, 250, 250, 0.84);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --bg-subtle: #121215;
    --surface: #121215;
    --surface-2: #18181c;
    --surface-hover: #1c1c21;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-soft: #71717a;
    --accent: #f4f4f5;
    --accent-Contrast: #09090b;
    --brand-blue: #3b82f6;
    --brand-emerald: #34d399;
    --line: #27272a;
    --line-strong: #3f3f46;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(9, 9, 11, 0.82);
  }
}

:root[data-theme="dark"] {
  --bg: #09090b;
  --bg-subtle: #121215;
  --surface: #121215;
  --surface-2: #18181c;
  --surface-hover: #1c1c21;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-soft: #71717a;
  --accent: #f4f4f5;
  --accent-Contrast: #09090b;
  --brand-blue: #3b82f6;
  --brand-emerald: #34d399;
  --line: #27272a;
  --line-strong: #3f3f46;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(9, 9, 11, 0.82);
}

/* ---------- reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Hide legacy decorative ambient glows for a clean minimal canvas */
.ambient-glow {
  display: none !important;
}

h1, h2, h3, h4, .display {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}

.mono, code, pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- layout ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }
}

/* ---------- navigation ---------- */
header.site-header,
body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

header.site-header nav,
body > header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand img {
  height: 28px;
  width: 28px;
  border-radius: 7px;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

nav ul a {
  transition: color 0.15s ease;
}

nav ul a:hover,
nav ul a.active {
  color: var(--text);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--accent-Contrast);
  font-weight: 500;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  opacity: 0.88;
}

/* Theme Toggle Switch */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.menu-btn:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
}

@media (max-width: 820px) {
  nav {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 10px;
  }
  .brand {
    order: 1;
    margin-right: auto;
  }
  .nav-actions {
    order: 2;
    margin-left: auto;
  }
  .nav-cta {
    order: 2;
  }
  .theme-toggle {
    order: 3;
  }
  .menu-btn {
    display: inline-flex;
    order: 4;
  }
  nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
    padding: 16px 0 8px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    order: 5;
  }
  nav ul.active {
    display: flex;
  }
}

@media (max-width: 560px) {
  .nav-cta {
    display: none;
  }
}

/* ---------- minimal eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.eyebrow.blue .dot {
  background: var(--brand-blue);
}

/* ---------- buttons ---------- */
.btn-primary {
  background: var(--accent);
  color: var(--accent-Contrast);
  font-weight: 500;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  font-weight: 500;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--text-soft);
  transform: translateY(-1px);
}

.btn-primary svg,
.btn-ghost svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cta-group {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* ---------- sections ---------- */
section {
  padding: 80px 0;
  scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px));
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }
}

.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- homepage hero ---------- */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .hero {
    padding: 44px 0 48px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero h1 .accent,
.app-hero h1 .accent,
.downloader-hero h1 .accent,
.not-found h1 .accent {
  color: var(--text-muted);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero p.lead {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 500px;
}

/* Hero Minimal App Dock Grid */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .hero-visual {
    justify-content: center;
  }
}

.hero-visual__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.grid-slot {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.grid-slot:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.grid-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

@media (max-width: 480px) {
  .hero-visual__grid {
    padding: 16px;
    gap: 10px;
    border-radius: 16px;
  }
  .grid-slot {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }
}

/* ---------- Modern Bento App Cards ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

@media (max-width: 480px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.app-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.app-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-card__banner {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.app-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
}

.app-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.app-card__title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.app-card__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text);
  margin-top: auto;
  transition: gap 0.15s ease, color 0.15s ease;
}

.app-card:hover .app-card__link {
  gap: 9px;
  color: var(--brand-blue);
}

/* ---------- apps directory page & filters (Centered) ---------- */
.apps-page section.section-head {
  padding: 56px 0 24px;
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
}

.apps-page .section-head .wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.apps-page .apps-filter {
  padding: 0 0 36px;
  text-align: center;
}

.apps-page .apps-filter .wrap {
  display: flex;
  justify-content: center;
}

.filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.filter-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  border-radius: 7px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.apps-page .apps-section {
  padding-top: 8px;
  padding-bottom: 48px;
}

/* ---------- section CTA ---------- */
.section-cta {
  padding: 8px 0 72px;
  text-align: center;
}

.section-cta .wrap {
  display: flex;
  justify-content: center;
}

/* ---------- about section ---------- */
#about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.about-item,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.about-item .icon-mark,
.card .icon-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--surface-2) !important;
  border: 1px solid var(--line);
  color: var(--text);
}

.about-item .icon-mark svg,
.card .icon-mark svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.about-item h3,
.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.about-item p,
.card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- CTA / contact block ---------- */
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .cta {
    padding: 40px 22px;
  }
}

.cta h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text);
}

.cta p {
  color: var(--text-muted);
  margin: 12px auto 0;
  max-width: 480px;
  font-size: 15.5px;
}

.cta .hero-actions {
  justify-content: center;
}

.cta-mail {
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}

.cta-mail a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cta-mail a:hover {
  color: var(--text);
  border-color: var(--text);
}

.cta-social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.cta-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cta-social-links a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.cta-social-links svg {
  fill: currentColor;
}

/* ---------- App Landing Pages (Shared) ---------- */
.app-hero {
  padding: 64px 0 64px;
  border-bottom: 1px solid var(--line);
}

.app-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.app-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  background: var(--surface);
}

.app-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-hero h1 {
  font-size: clamp(32px, 4.8vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 16px;
}

.app-hero .lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 0 8px;
}

/* Features Grid on App Pages */
.features-section {
  padding: 72px 0;
}

.features-section .section-head {
  text-align: left;
  margin: 0 0 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-icon.green {
  background: var(--surface-2);
  color: var(--text);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* Screenshot Showcase (Horizontal Swipe across all apps) */
.app-screenshot-band {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}

.app-screenshot-band .section-head {
  text-align: left;
  margin: 0 0 32px;
}

.screenshot-scroll {
  display: flex;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}

.screenshot-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshot-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.screenshot-item--desktop {
  width: min(460px, 82vw);
}

.screenshot-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.web-player-screenshot {
  width: min(82vw, 820px);
}

/* CleanMac & desktop landscape screenshots in horizontal swipe */
.mac-cleaner-page .screenshot-item {
  width: min(82vw, 440px);
}

@media (max-width: 640px) {
  .screenshot-item {
    width: min(78vw, 240px);
  }
  .mac-cleaner-page .screenshot-item {
    width: min(86vw, 380px);
  }
}

/* Step Cards (Easy Install / Build sections) */
.steps-grid {
  margin-top: 28px;
  text-align: left;
  display: grid;
  gap: 12px;
}

.step-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}

.step-card--warn {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.25);
}

.step-card strong {
  display: block;
  font-size: 14.5px;
  color: var(--text);
}

.step-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: none;
}

.step-card pre {
  margin: 8px 0 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--text);
  overflow-x: auto;
}

/* SendChat Specifics */
.sendchat-platforms {
  margin: 20px 0 0;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-soft);
  font-size: 12.5px;
}

.sendchat-testing-note {
  max-width: 500px;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.sendchat-page .download-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  margin-right: 16px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sendchat-page .download-card a:hover,
.sendchat-page .download-source-link a:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.download-browser-note,
.download-source-link {
  margin: 24px auto 0;
  color: var(--text-muted);
  text-align: center;
  font-size: 14.5px;
  line-height: 1.6;
}

/* Awesome Downloader Specifics */
.downloader-hero {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.downloader-hero__intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.downloader-mark {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 24px;
  border-radius: 18px;
}

.downloader-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.downloader-hero__lead {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.downloader-preview {
  width: min(100%, 960px);
  margin: 48px auto 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.downloader-preview img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.preview-caption {
  margin: 10px 0 4px;
  color: var(--text-soft);
  font-size: 12.5px;
  text-align: center;
}

.downloader-note {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  text-align: center;
}

.download-details {
  display: flex;
  justify-content: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}

.download-details span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.download-details span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-emerald);
}

/* ---------- Privacy Policy & Account Pages (Centered Header & Footer) ---------- */
.policy-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.policy-container,
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.policy-header {
  text-align: center;
  padding: 16px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.policy-header .app-logo,
.content-page .page-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.policy-header h1,
.content-page h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.policy-header .last-updated,
.content-page .last-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-soft);
  margin: 0;
}

.policy-section {
  margin-bottom: 36px;
  padding: 0;
}

.policy-section h2,
.content-page h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.policy-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}

.policy-section p,
.policy-section li,
.content-page p,
.content-page li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.policy-section strong {
  color: var(--text);
  font-weight: 600;
}

.policy-section ul,
.policy-section ol,
.content-page ul {
  padding-left: 20px;
  margin: 12px 0;
}

.policy-section li {
  margin-bottom: 8px;
}

.policy-section a,
.content-page a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  decoration-color: var(--line-strong);
}

.policy-section a:hover,
.content-page a:hover {
  color: var(--brand-blue);
}

.policy-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}

/* ---------- 404 Page ---------- */
.not-found {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 64px 24px;
  text-align: center;
}

.not-found__content {
  width: min(100%, 540px);
}

.not-found__code {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(72px, 16vw, 128px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--line-strong);
  margin: 0 0 20px;
}

.not-found h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.not-found p {
  max-width: 440px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 16px;
}

.not-found .hero-actions {
  justify-content: center;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .brand {
  font-size: 15px;
}

footer .brand img {
  height: 24px;
  width: 24px;
}

footer p {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

footer .foot-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

footer .foot-links a {
  transition: color 0.15s ease;
}

footer .foot-links a:hover {
  color: var(--text);
}

footer .foot-links a svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  transition: color 0.15s ease, transform 0.15s ease;
}

footer .foot-links a:hover svg {
  color: var(--text);
  transform: translateY(-1px);
}

/* ---------- Utility ---------- */
::selection {
  background: rgba(0, 102, 255, 0.14);
}

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================================
   Articles & Long-form Content System
   =================================================== */

/* Hub / Listing Page */
.articles-page .section-head {
  padding: 48px 0 20px;
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
}

.articles-page .section-head .wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.articles-filter {
  padding: 0 0 28px;
  text-align: center;
}

.articles-filter .wrap {
  display: flex;
  justify-content: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.articles-page section.articles-list-section,
.articles-page section {
  padding: 0 0 48px;
}

@media (max-width: 720px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.article-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 6px;
}

.article-card__time {
  font-size: 12.5px;
  color: var(--text-soft);
  font-family: 'JetBrains Mono', monospace;
}

.article-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  line-height: 1.35;
  text-wrap: balance;
}

.article-card__title a {
  color: var(--text) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.article-card__title a:hover,
.article-card:hover .article-card__title a {
  color: var(--brand-blue) !important;
  text-decoration: none !important;
}

.article-card__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
  text-wrap: pretty;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
  font-size: 13px;
  color: var(--text-soft);
}

.article-card__link {
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: gap 0.15s ease, color 0.15s ease;
}

.article-card:hover .article-card__link {
  gap: 9px;
  color: var(--brand-blue);
  text-decoration: none !important;
}

/* Single Article Detail Page */
.article-detail-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 24px 44px;
}

@media (max-width: 640px) {
  .article-detail-wrap {
    padding: 24px 18px 36px;
  }
}

.article-breadcrumbs {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: auto !important;
  gap: 8px !important;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 24px;
  flex-wrap: wrap;
  width: auto !important;
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.article-breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline !important;
}

.article-breadcrumbs span {
  color: var(--line-strong);
  user-select: none;
}

.article-breadcrumbs span:last-child {
  color: var(--text-muted);
}

.article-header {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-header .article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 24px;
  text-wrap: pretty;
}

.article-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-soft);
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

/* Article Prose Body */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  overflow-wrap: break-word;
}

.article-body p {
  margin: 0 0 1.5em;
  text-wrap: pretty;
}

.article-body h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 2.4em 0 0.8em;
  line-height: 1.25;
  text-wrap: balance;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.article-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.2em;
}

.article-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 1.8em 0 0.6em;
  line-height: 1.35;
  text-wrap: balance;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.5em;
  text-wrap: pretty;
}

.article-body li strong {
  color: var(--text);
}

/* Prose text links inside articles */
.article-body p a,
.article-body li a,
.article-body blockquote a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.article-body p a:hover,
.article-body li a:hover,
.article-body blockquote a:hover {
  opacity: 0.8;
}

/* Ensure buttons inside article body maintain proper button styling without link underlines */
.article-body a.btn-primary,
.article-body .btn-primary {
  background: var(--accent) !important;
  color: var(--accent-Contrast) !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.article-body a.btn-primary:hover,
.article-body .btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: var(--accent-Contrast) !important;
  text-decoration: none !important;
}

.article-body a.btn-ghost,
.article-body .btn-ghost {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--line-strong) !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.article-body a.btn-ghost:hover,
.article-body .btn-ghost:hover {
  background: var(--surface-2) !important;
  border-color: var(--text-soft) !important;
  color: var(--text) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.article-body blockquote {
  margin: 2em 0;
  padding: 18px 24px;
  background: var(--surface-2);
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Callout Box */
.article-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-emerald);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 2.2em 0;
  box-shadow: var(--shadow-sm);
}

.article-callout.tip {
  border-left-color: var(--brand-blue);
}

.article-callout.warning {
  border-left-color: #f59e0b;
}

.article-callout__title {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

/* App Spotlight Box */
.app-spotlight {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 2.4em 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-spotlight__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.app-spotlight__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-spotlight__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px;
}

.app-spotlight__title-wrap h4 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.app-spotlight__tagline {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}

.app-spotlight__badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--brand-emerald);
}

.app-spotlight__content {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.app-spotlight__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.app-spotlight__highlights li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0 !important;
}

.app-spotlight__highlights li::before {
  content: "✓";
  color: var(--brand-emerald);
  font-weight: 700;
}

.app-spotlight__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Comparison Table */
.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 2.4em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

.article-table th {
  background: var(--surface-2);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:hover td {
  background: var(--surface-hover);
  color: var(--text);
}

.article-table .featured-row td {
  background: rgba(0, 102, 255, 0.04);
  font-weight: 500;
  color: var(--text);
}

/* Article Author Bio & Footer */
.article-footer-card {
  margin-top: 48px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

@media (max-width: 600px) {
  .article-footer-card {
    flex-direction: column;
    padding: 24px;
  }
}

.article-footer-card .bio-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.article-footer-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.article-footer-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.article-related {
  margin-top: 48px;
  padding-top: 36px;
  padding-bottom: 0 !important;
  border-top: 1px solid var(--line);
}

.article-related h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.article-related .articles-grid {
  margin-bottom: 0 !important;
  gap: 20px;
}

.article-related .article-card {
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.article-related .article-card:hover {
  border-color: var(--line-strong) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-sm) !important;
}

.article-related .article-card__title {
  margin-bottom: 10px;
}

.article-related .article-card__title a {
  color: var(--text) !important;
  text-decoration: none !important;
  font-weight: 700;
  display: inline-block;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.article-related .article-card__title a:hover,
.article-related .article-card:hover .article-card__title a {
  color: var(--brand-blue) !important;
  text-decoration: none !important;
}

.article-related .article-card__desc {
  color: var(--text-muted);
  line-height: 1.6;
}

.article-related .article-card__footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.article-related .article-card__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--line-strong) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, gap 0.15s ease !important;
}

.article-related .article-card__link:hover,
.article-related .article-card:hover .article-card__link {
  background: var(--accent) !important;
  color: var(--accent-Contrast) !important;
  border-color: var(--accent) !important;
  text-decoration: none !important;
  gap: 9px !important;
  transform: translateY(-1px);
}

/* Article Figures & Screenshots */
.article-figure {
  margin: 2.4em 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.article-figure figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--text-soft);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Inline Code & Code Blocks in Articles */
.article-body code {
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--brand-blue);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.article-body pre {
  margin: 1.8em 0;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}

.article-body pre code {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: inherit;
}

