/* Modern CSS Reset & Variables */
:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-dark: #0f172a;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;

  --primary: #0f172a;
  --primary-hover: #334155;
  --primary-fg: #ffffff;

  --border: #e2e8f0;
  --border-dark: #334155;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --font-sans: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;

  --navbar-bg: rgba(255, 255, 255, 0.85);
  --code-pink: #be185d;
  --code-teal: #0f766e;
  --code-indigo: #4f46e5;
  --footer-bg: #ffffff;
}

/* Dark theme — same structure, inverted for contrast. Brand slate/navy identity is kept,
   the primary button flips from dark-on-light to light-on-dark like most dark UIs do. */
[data-theme="dark"] {
  --bg-page: #0b1220;
  --bg-surface: #121a2b;
  --bg-alt: #1a2436;
  --bg-dark: #05070d;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #f8fafc;

  --primary: #e2e8f0;
  --primary-hover: #ffffff;
  --primary-fg: #0f172a;

  --border: #243044;
  --border-dark: #334155;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.45), 0 4px 6px -4px rgb(0 0 0 / 0.45);

  --navbar-bg: rgba(11, 18, 32, 0.85);
  --code-pink: #f472b6;
  --code-teal: #2dd4bf;
  --code-indigo: #a5b4fc;
  --footer-bg: #0b1220;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Accessible focus ring, consistent in both themes */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Smooth, cheap theme-switch transition for the common themed surfaces */
.window-frame,
.window-bar,
.bento-card,
.release-panel,
.release-highlights article,
.android-card,
.info-card,
.donate-card,
.download-card,
.faq-link-card,
.android-local-panel,
.star-badge,
.btn-secondary,
code {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

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

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

.w-full {
  width: 100%;
}

/* Container */
.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: right 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

/* Right-hand controls: theme switch + mobile hamburger */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--bg-alt);
}

.theme-toggle svg {
  position: absolute;
  width: 19px;
  height: 19px;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: scale(0.5) rotate(-30deg);
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: scale(0.5) rotate(30deg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Hamburger — hidden on desktop, shown at the mobile breakpoint */
.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

.btn-android {
  background: #10b981;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-android:hover {
  background: #059669;
}

.btn-sponsor {
  background: #ea4aaa;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-sponsor:hover {
  background: #d0358e;
}


/* Page Layouts */
.page-section {
  padding: 5rem 0;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}

.bg-dark p,
.bg-dark .contact-link {
  color: #94a3b8;
}

.bg-dark h2,
.bg-dark h3 {
  color: var(--text-inverse);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-features-list svg {
  width: 18px;
  height: 18px;
  color: #10b981;
}

/* Window Frames (Fake App Window) */
.window-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.window-controls {
  display: flex;
  gap: 6px;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
}

.window-controls span:nth-child(1) {
  background: #ff5f56;
}

.window-controls span:nth-child(2) {
  background: #ffbd2e;
}

.window-controls span:nth-child(3) {
  background: #27c93f;
}

.window-title {
  margin-left: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-shot img {
  width: 100%;
  height: auto;
}

/* Release Spotlight */
.release-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.release-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: stretch;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.release-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.release-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.release-highlights article,
.android-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.release-highlights article {
  padding: 1.2rem;
}

.release-highlights strong,
.release-highlights span {
  display: block;
}

.release-highlights strong {
  margin-bottom: 0.4rem;
}

.release-highlights span {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Bento/Feature Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.bento-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.bento-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Perfectly preserves 1402x1021 screenshot ratio without cutting! */
.bento-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.37 / 1;
  object-fit: cover;
  object-position: top center;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  display: block;
}

.simple-card {
  padding: 1.5rem;
  justify-content: center;
}

.simple-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Android Companion */
.android-section {
  background:
    radial-gradient(circle at 6% 10%, rgba(16, 185, 129, 0.08), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(15, 23, 42, 0.08), transparent 34%),
    var(--bg-page);
}

.android-showcase {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr) minmax(130px, 0.42fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 3rem;
}

.phone-frame {
  width: min(100%, 230px);
  margin: 0 auto;
  padding: 0.55rem;
  border-radius: 2rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  box-shadow: var(--shadow-lg);
}

.phone-frame.slim {
  width: min(100%, 190px);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 1.45rem;
  background: #020617;
}

.android-desktop-shot img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
}

.android-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.android-card {
  padding: 1.25rem;
}

.android-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.android-card code {
  color: var(--code-teal);
  background: rgba(20, 184, 166, 0.1);
}

.android-local-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.android-local-panel p {
  color: var(--text-muted);
}

.android-local-media {
  display: grid;
  grid-template-columns: minmax(130px, 0.38fr) minmax(0, 0.62fr);
  gap: 1rem;
  align-items: center;
}

.android-local-media .window-frame img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: contain;
  object-position: center;
  background: #0f172a;
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.featured-dl {
  border: 2px solid var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dl-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Grids & Tables */
.grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  /* Prevents vertical stretching */
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background: var(--bg-alt);
  color: var(--code-pink);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-top: 2rem;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.modern-table th,
.modern-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modern-table th {
  background: var(--bg-alt);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Info & Donate Cards */
.info-card,
.donate-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.bg-dark .donate-card {
  background: #1e293b;
  border-color: var(--border-dark);
}

.bg-dark .donate-card .btn-primary {
  background: #f8fafc;
  color: #0f172a;
}

.bg-dark .donate-card .btn-primary:hover {
  background: #e2e8f0;
}

.clean-list {
  list-style: none;
  margin-top: 1rem;
}

.clean-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.clean-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.contact-link {
  display: block;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-dark);
}

.contact-link:last-child {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

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

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Scroll reveal — subtle one-time fade/rise for card grids as they enter view.
   JS adds/removes these classes; reduced-motion users see content immediately (see top of file). */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

/* Tablet step: ease multi-column grids down to 2 columns before mobile collapses them to 1 */
@media (max-width: 1080px) {

  .bento-grid,
  .download-grid,
  .android-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .hero-grid,
  .grid-layout,
  .release-panel,
  .android-local-panel {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .download-grid,
  .release-highlights,
  .android-grid,
  .android-showcase,
  .android-local-media {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }

  .nav-links.is-open {
    max-height: 30rem;
    opacity: 1;
    padding: 0.5rem 1.5rem 1.25rem;
  }

  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-links .nav-link:last-child {
    border-bottom: none;
  }

  .hero-section {
    text-align: center;
  }

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

  .hero-features-list {
    align-items: center;
  }

  .android-desktop-shot {
    order: -1;
  }

  .phone-frame,
  .phone-frame.slim {
    width: min(260px, 100%);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

}

/* Small phones: tighten section spacing and stack remaining 2-col grids */
@media (max-width: 560px) {

  .page-section {
    padding: 3rem 0;
  }

  .hero-section {
    padding: 3rem 0 2.5rem;
  }

  .release-highlights {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .brand-name {
    font-size: 1rem;
  }
}

.github-btn {
  padding-right: 0.75rem;
  /* slightly less padding on the right to fit the badge */
}

.star-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 6px;
  border: 1px solid var(--border);
}

/* ── FAQ Section (Link Cards) ── */
.faq-section {
  background: var(--bg-alt);
}

.faq-list {
  max-width: 900px;
  margin: 3rem auto 0;
}

.faq-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
  transition: border-color 0.15s;
}

.faq-link-card:hover {
  border-color: var(--primary);
}

.faq-link-card svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* ── Dedicated Guide Page (light, matching main site) ── */
.guide-page {
  background: var(--bg-page);
  color: var(--text-main);
}

.guide-hero {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.guide-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.guide-back-link:hover {
  color: var(--primary);
}

.guide-hero-content {
  max-width: 700px;
}

.guide-hero-content h1 {
  color: var(--text-main);
  margin-bottom: 1rem;
}

.guide-hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.guide-steps-section {
  padding: 4rem 0 5rem;
}

/* ── Guide Steps (Z-pattern) ── */
.guide-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.guide-step--reverse {
  direction: rtl;
}

.guide-step--reverse>* {
  direction: ltr;
}

.guide-step-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.guide-text h2 {
  color: var(--text-main);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.guide-text h3 {
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.guide-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.guide-text p:last-child {
  margin-bottom: 0;
}

.guide-text code {
  background: rgba(99, 102, 241, 0.08);
  color: var(--code-indigo);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.guide-media .window-frame {
  background: var(--bg-surface);
  border-color: var(--border);
}

.guide-media .window-bar {
  background: var(--bg-alt);
  border-bottom-color: var(--border);
}

.guide-media .window-title {
  color: var(--text-muted);
}

.guide-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Code Block ── */
.code-block-wrapper {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f172a;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.btn-copy {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  gap: 0.35rem;
  border-color: #475569;
  background: #1e293b;
  color: #e2e8f0;
}

.btn-copy:hover {
  background: #334155;
}

.code-block {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  background: #0f172a;
}

.code-block code {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: inherit;
}

/* ── Done Card ── */
.guide-done-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.guide-done-card svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-done-card h3 {
  color: #22c55e;
  margin-bottom: 0.25rem;
}

.guide-done-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Guide Page Responsive ── */
@media (max-width: 768px) {

  .guide-step,
  .guide-step--reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    direction: ltr;
  }

  .guide-media {
    order: -1;
  }

  .guide-step {
    margin-bottom: 3rem;
  }

  .guide-hero-content h1 {
    font-size: 2rem;
  }

  .faq-link-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-link-arrow {
    align-self: flex-end;
  }
}

/* ─── OmniSearch Lite Section ────────────────────────────────── */

.lite-section {
  background: var(--bg-alt);
}

.lite-media-showcase {
  margin: 2rem auto 2.5rem;
  max-width: 800px;
}

.lite-frame {
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

.lite-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.lite-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.lite-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.lite-card h3 {
  margin-bottom: 1rem;
}

.lite-card .clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lite-card .clean-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.lite-card .clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}

.lite-card-highlight {
  border-color: var(--primary);
  border-width: 2px;
}

.lite-card-highlight .clean-list li::before {
  opacity: 1;
}

.lite-media-showcase {
  margin: 2rem auto 2.5rem;
  max-width: 600px;
}

.lite-frame {
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.lite-frame img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.lite-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .lite-comparison {
    grid-template-columns: 1fr;
  }

  .lite-media-showcase {
    max-width: 100%;
  }
}