/* ─────────────────────────────────────────────────────────────
   Athar (جامع كتب الأثر) — Modern Design System & Stylesheet
   ───────────────────────────────────────────────────────────── */

/* Local Fonts */
@font-face {
  font-family: "Cairo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(fonts/cairo-arabic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Cairo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(fonts/cairo-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}

@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/tajawal-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/tajawal-arabic-500-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/tajawal-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/tajawal-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/tajawal-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/tajawal-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/amiri-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/amiri-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

/* ─────────────────────────────────────────────────────────────
   CSS Variables & Themes
   ───────────────────────────────────────────────────────────── */
:root {
  --font-ui: "Tajawal", "Cairo Variable", system-ui, -apple-system, sans-serif;
  --font-athar: "Amiri", "Traditional Arabic", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Light Theme (Warm Paper / Scholarly Modern) */
  --bg-base: #faf8f5;
  --bg-subtle: #f3efe8;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(250, 248, 245, 0.82);

  --border-subtle: #e6ded3;
  --border-strong: #d4c8b6;

  --text-main: #231f1a;
  --text-muted: #6b6357;
  --text-faint: #9c9181;

  --brand-primary: #1b5e3b;
  --brand-primary-hover: #14492d;
  --brand-primary-fg: #ffffff;
  --brand-glow: rgba(27, 94, 59, 0.12);

  --accent-gold: #b38228;
  --accent-gold-subtle: rgba(179, 130, 40, 0.1);

  --diff-add-bg: #dcfce7;
  --diff-add-fg: #15803d;
  --diff-del-bg: #fee2e2;
  --diff-del-fg: #b91c1c;

  --shadow-sm: 0 1px 2px rgba(35, 31, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(35, 31, 26, 0.06), 0 1px 3px rgba(35, 31, 26, 0.04);
  --shadow-lg: 0 12px 32px rgba(35, 31, 26, 0.08), 0 2px 6px rgba(35, 31, 26, 0.04);
  --shadow-glow: 0 0 32px rgba(27, 94, 59, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --max-w: 1200px;
  --header-h: 70px;
  --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  /* Dark Theme (Midnight Emerald / Deep Charcoal) */
  --bg-base: #0c0f12;
  --bg-subtle: #14191f;
  --bg-surface: #192027;
  --bg-surface-elevated: #202933;
  --bg-glass: rgba(12, 15, 18, 0.85);

  --border-subtle: #26313d;
  --border-strong: #364454;

  --text-main: #f3f5f7;
  --text-muted: #9ba8b7;
  --text-faint: #677585;

  --brand-primary: #22c55e;
  --brand-primary-hover: #16a34a;
  --brand-primary-fg: #052e16;
  --brand-glow: rgba(34, 197, 94, 0.18);

  --accent-gold: #eab308;
  --accent-gold-subtle: rgba(234, 179, 8, 0.12);

  --diff-add-bg: rgba(34, 197, 94, 0.2);
  --diff-add-fg: #4ade80;
  --diff-del-bg: rgba(239, 68, 68, 0.2);
  --diff-del-fg: #f87171;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(34, 197, 94, 0.22);
}

/* ─────────────────────────────────────────────────────────────
   Global Reset & Base
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  right: 20px;
  background: var(--brand-primary);
  color: var(--brand-primary-fg);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 15px;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ─────────────────────────────────────────────────────────────
   Layout Containers & Utilities
   ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   Header & Navigation
   ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  transition: transform 0.15s ease;
}
.brand:hover {
  transform: translateY(-1px);
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand-name {
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: var(--transition-smooth);
}
.btn-icon:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}

/* Theme Toggle Icons */
.theme-toggle .icon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ─────────────────────────────────────────────────────────────
   Buttons & Action Elements
   ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--brand-primary-fg);
  box-shadow: 0 4px 14px var(--brand-glow);
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.075rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────────────────────── */
.hero {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 860px;
}
.hero-title-highlight {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero Showcase Frame */
.hero-preview {
  margin-top: 56px;
  width: 100%;
  max-width: 1060px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.preview-bar {
  height: 38px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.traffic-lights {
  display: flex;
  gap: 6px;
}
.traffic-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.preview-title {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-weight: 600;
}

.preview-screen {
  position: relative;
  background: var(--bg-surface);
  overflow: hidden;
}
.preview-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Theme Switching for Screenshots */
:root:not([data-theme="dark"]) .preview-img.dark,
:root:not([data-theme="dark"]) .theme-shot.dark {
  display: none !important;
}
:root[data-theme="dark"] .preview-img.light,
:root[data-theme="dark"] .theme-shot.light {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────
   Bento Grid: Features
   ───────────────────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--brand-primary);
}

/* ─────────────────────────────────────────────────────────────
   Interactive Live Takhrij Simulator
   ───────────────────────────────────────────────────────────── */
.demo-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 960px;
  margin: 0 auto;
}

.demo-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.demo-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}
.demo-btn.active, .demo-btn:hover {
  background: var(--brand-primary);
  color: var(--brand-primary-fg);
  border-color: var(--brand-primary);
}

.diff-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.diff-pane {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.diff-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.diff-pane-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}
.diff-match-pill {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--diff-add-bg);
  color: var(--diff-add-fg);
}

.diff-text {
  font-family: var(--font-athar);
  font-size: 1.35rem;
  line-height: 2;
  color: var(--text-main);
}

.diff-add {
  background: var(--diff-add-bg);
  color: var(--diff-add-fg);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.diff-del {
  background: var(--diff-del-bg);
  color: var(--diff-del-fg);
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: line-through;
  opacity: 0.85;
}

/* ─────────────────────────────────────────────────────────────
   App Showcase / Interactive Tour Tabs
   ───────────────────────────────────────────────────────────── */
.tour-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.tour-tab {
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}
.tour-tab:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}
.tour-tab.active {
  background: var(--text-main);
  color: var(--bg-base);
  border-color: var(--text-main);
}

.tour-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.tour-shot {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tour-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.tour-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.tour-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tour-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
}
.tour-features li svg {
  flex-shrink: 0;
  color: var(--brand-primary);
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────
   Download Hub
   ───────────────────────────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.os-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.os-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.os-card.is-detected {
  border-color: var(--brand-primary);
  box-shadow: 0 0 20px var(--brand-glow);
}

.os-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.os-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-main);
}

.os-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.os-compat {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.os-download-btn {
  width: 100%;
  margin-bottom: 12px;
}

.os-dropdown {
  position: relative;
}
.os-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.os-dropdown-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.os-dropdown-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 50;
  list-style: none;
}
.os-dropdown-menu.open {
  display: block;
}
.os-dropdown-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: background 0.15s ease;
}
.os-dropdown-item a:hover {
  background: var(--bg-subtle);
  color: var(--brand-primary);
}

/* Terminal Snippet Box */
.terminal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.terminal-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
}
.terminal-code {
  direction: ltr;
  text-align: left;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
}
.copy-btn {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.copy-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

/* ─────────────────────────────────────────────────────────────
   CTA Section
   ───────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 60px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ─────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────── */
.site-footer {
  padding: 60px 0 40px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text-main);
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ─────────────────────────────────────────────────────────────
   Responsive Breakpoints
   ───────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .tour-content {
    grid-template-columns: 1fr;
  }
  .diff-display {
    grid-template-columns: 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .hero {
    padding: 40px 0 60px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .demo-box {
    padding: 20px;
  }
  .tour-content {
    padding: 24px;
  }
}
