/* ===========================================================
   Blade Launcher — Premium Modern Design System
   Dual Theme: Obsidian Dark (Default) & Milk Light
   Crafted with Clash Display, Satoshi & JetBrains Mono
=========================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@500,600,700&f[]=satoshi@400,500,600,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- CSS Variables / Theme Tokens ---------- */
:root {
  /* Dark Mode Defaults (Obsidian & Flame) */
  --bg: #0C0A09;
  --bg-subtle: #141210;
  --bg-card: rgba(24, 21, 18, 0.72);
  --bg-card-hover: rgba(32, 28, 24, 0.88);
  --bg-card-solid: #191613;
  --bg-glass: rgba(12, 10, 9, 0.78);
  
  --ink: #F7F1E4;
  --ink-pure: #FFFFFF;
  --muted: #A39785;
  --muted-soft: #6A6154;
  --line: rgba(230, 220, 196, 0.12);
  --line-strong: rgba(230, 220, 196, 0.22);
  --line-highlight: rgba(255, 107, 0, 0.45);

  --flame: #FF6B00;
  --flame-hover: #FF8533;
  --flame-deep: #E05300;
  --flame-glow: rgba(255, 107, 0, 0.28);
  --flame-wash: rgba(255, 107, 0, 0.12);
  --flame-gradient: linear-gradient(135deg, #FF7A1A 0%, #FF5500 50%, #D43800 100%);
  --accent-glow: radial-gradient(circle, rgba(255, 107, 0, 0.18) 0%, rgba(255, 107, 0, 0) 70%);

  --tag-added: #4ADE80;
  --tag-added-bg: rgba(74, 222, 128, 0.12);
  --tag-fixed: #38BDF8;
  --tag-fixed-bg: rgba(56, 189, 248, 0.12);
  --tag-changed: #FB923C;
  --tag-changed-bg: rgba(251, 146, 60, 0.12);
  --tag-removed: #F87171;
  --tag-removed-bg: rgba(248, 113, 113, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
  --shadow-flame: 0 16px 40px -12px rgba(255, 107, 0, 0.35);

  --display: 'Clash Display', 'Satoshi', -apple-system, sans-serif;
  --body: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --max: 1180px;
}

/* Light Theme (Milk & Flame) */
[data-theme="light"] {
  --bg: #F7F1E4;
  --bg-subtle: #EDE4D0;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-card-solid: #FFFFFF;
  --bg-glass: rgba(247, 241, 228, 0.86);

  --ink: #1C1814;
  --ink-pure: #0A0806;
  --muted: #6E6455;
  --muted-soft: #A39988;
  --line: rgba(27, 23, 18, 0.11);
  --line-strong: rgba(27, 23, 18, 0.22);
  --line-highlight: rgba(255, 107, 0, 0.6);

  --flame: #FF6B00;
  --flame-hover: #E65A00;
  --flame-deep: #C24E00;
  --flame-glow: rgba(255, 107, 0, 0.2);
  --flame-wash: rgba(255, 107, 0, 0.08);
  --flame-gradient: linear-gradient(135deg, #FF6B00 0%, #E65100 100%);
  --accent-glow: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, rgba(255, 107, 0, 0) 70%);

  --tag-added: #2F6B3A;
  --tag-added-bg: #E3EEE0;
  --tag-fixed: #1D5C74;
  --tag-fixed-bg: #E1EAEC;
  --tag-changed: #C24E00;
  --tag-changed-bg: #FBE8D8;
  --tag-removed: #8B2E2E;
  --tag-removed-bg: #F2E1DF;

  --shadow-sm: 0 2px 8px rgba(27, 23, 18, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(27, 23, 18, 0.08);
  --shadow-lg: 0 24px 64px -16px rgba(27, 23, 18, 0.12);
  --shadow-flame: 0 16px 36px -10px rgba(255, 107, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
[data-theme="light"] {
  color-scheme: light;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle background noise texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 107, 0, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-pure);
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
  color: var(--muted);
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

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

.mono {
  font-family: var(--mono);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--flame);
  color: #FFFFFF;
}

/* ---------- Top Navbar ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink-pure);
}

.brand .logo-icon {
  position: relative;
  width: 28px;
  height: 28px;
  background: var(--ink-pure);
  border-radius: 6px;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 35% 100%, 0 100%);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand .logo-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--flame-gradient);
  clip-path: polygon(48% 0, 100% 0, 100% 35%, 35% 100%, 15% 100%);
}

.brand:hover .logo-icon {
  transform: rotate(-8deg) scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--ink-pure);
}

.nav-links a.active {
  color: var(--flame);
  font-weight: 600;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

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

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--flame);
  color: var(--flame);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="light"] .theme-toggle .sun-icon { display: block; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

.github-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s ease;
}

.github-badge:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  color: var(--ink-pure);
  transform: translateY(-1px);
}

.github-badge svg {
  width: 16px;
  height: 16px;
}

.github-stars {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--flame);
  background: var(--flame-wash);
  padding: 1px 7px;
  border-radius: 999px;
}

.btn-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

/* ---------- Button Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--flame-gradient);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-flame);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px -10px rgba(255, 107, 0, 0.55);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--ink-pure);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--flame);
  color: var(--flame);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

/* Shiny hover sweep on buttons */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn:hover::before {
  left: 140%;
}

/* ---------- Typography & Badges ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flame);
  background: var(--flame-wash);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 107, 0, 0.2);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 10px var(--flame);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

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

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--ink-pure);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Cards & Containers ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.card:hover {
  border-color: var(--line-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Top highlight border line on cards */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

/* ===========================================================
   HERO SECTION
=========================================================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

/* Ambient Radial Glow */
.hero-ambient-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.18) 0%, rgba(255, 107, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-title {
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-pure);
  margin-bottom: 22px;
  line-height: 1.02;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #FF9944 0%, #FF5500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-pills {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-pill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-pill-item svg {
  color: var(--flame);
}

/* ---------- Interactive Device Frame ---------- */
.hero-device {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.device {
  width: 310px;
  background: #110E0C;
  border-radius: 40px;
  padding: 14px;
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.8),
              0 0 50px -10px var(--flame-glow);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  user-select: none;
}

.device:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
  box-shadow: 0 45px 90px -20px rgba(0, 0, 0, 0.9),
              0 0 65px -5px var(--flame-glow);
}

.device-notch {
  width: 80px;
  height: 6px;
  background: #25201C;
  border-radius: 4px;
  margin: 0 auto 10px;
}

.device-screen {
  background: #181512;
  border-radius: 28px;
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.d-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.d-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
}

.d-fps {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ADE80;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.d-account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #231E19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.d-avatar-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF7A1A, #C24E00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.d-account-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.d-account-name {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.d-account-type {
  font-size: 11.5px;
  color: #A39785;
}

.d-info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.d-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #A39785;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.d-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: #FF9944;
  background: rgba(255, 107, 0, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

.d-launch-btn {
  background: var(--flame-gradient);
  color: #FFFFFF;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(255, 107, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.d-launch-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 32px -4px rgba(255, 107, 0, 0.7);
}

/* ===========================================================
   METRICS STRIP SECTION
=========================================================== */
.strip {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-subtle);
  transition: background 0.3s ease;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

.strip-num {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 700;
  color: var(--flame);
  line-height: 1;
  margin-bottom: 8px;
  display: inline-block;
}

.strip-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* ===========================================================
   FEATURES GRID SECTION
=========================================================== */
.features-section {
  padding: 110px 0;
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.f-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--flame-wash);
  color: var(--flame);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.f-icon-box svg {
  width: 24px;
  height: 24px;
}

.f-mark {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--flame);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--ink-pure);
}

.feature p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===========================================================
   INTERACTIVE RUNTIME MATCHER SECTION
=========================================================== */
.matcher-section {
  padding: 96px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.matcher-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.matcher-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-ver-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mc-ver-btn:hover {
  border-color: var(--flame);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.mc-ver-btn.active {
  border-color: var(--flame);
  background: var(--flame-wash);
  color: var(--flame);
  box-shadow: 0 0 20px -5px var(--flame-glow);
}

.mc-ver-btn .ver-label {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
}

.matcher-display {
  background: var(--bg-card-solid);
  border: 1.5px solid var(--line-highlight);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.matcher-display h4 {
  font-size: 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.matcher-detail-item {
  margin-bottom: 20px;
}

.matcher-detail-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.matcher-detail-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-pure);
}

.matcher-reason {
  font-size: 14.5px;
  color: var(--muted);
  background: var(--bg-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--flame);
  margin-top: 20px;
}

/* ===========================================================
   COMPARISON TABLE SECTION
=========================================================== */
.compare-section {
  padding: 110px 0;
}

/* Scroll Hint Badge for Tables on Touch Devices */
.table-scroll-hint {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--flame);
  background: var(--flame-wash);
  border: 1px solid rgba(255, 107, 0, 0.28);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  width: fit-content;
  user-select: none;
}

@media (max-width: 768px) {
  .table-scroll-hint {
    display: inline-flex;
  }
}

.compare-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-md);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--flame) var(--bg-subtle);
}

.compare-table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.compare-table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: 3px;
}
.compare-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--flame);
  border-radius: 3px;
}

.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  white-space: normal;
}

.compare-table th {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-pure);
  background: var(--bg-subtle);
  letter-spacing: 0.02em;
}

.compare-table th:first-child,
.compare-table td:first-child {
  min-width: 220px;
}

.compare-table th.highlight-col,
.compare-table td.highlight-col {
  min-width: 190px;
  background: var(--flame-wash);
  color: var(--ink-pure);
  font-weight: 600;
  border-left: 1px solid rgba(255, 107, 0, 0.2);
  border-right: 1px solid rgba(255, 107, 0, 0.2);
}

.compare-table th:last-child,
.compare-table td:last-child {
  min-width: 180px;
}

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

.check-icon {
  color: #4ADE80;
  font-weight: bold;
}
.cross-icon {
  color: var(--muted-soft);
}

/* ===========================================================
   DOWNLOAD CTA SECTION
=========================================================== */
.download-section {
  padding: 100px 0;
}

.download-box {
  background: linear-gradient(135deg, #1C1814 0%, #0F0D0B 100%);
  border: 1.5px solid rgba(255, 107, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px -20px var(--flame-glow);
}

.download-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.download-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.download-box h2 {
  font-size: clamp(32px, 4vw, 44px);
  color: #FFFFFF;
  margin-bottom: 16px;
}

.download-box p {
  color: #C9C0B3;
  font-size: 17px;
  line-height: 1.6;
}

.download-card-inner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(16px);
}

.download-badge-ver {
  display: inline-block;
  background: var(--flame-gradient);
  color: #FFFFFF;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.download-specs {
  font-size: 13.5px;
  color: #A39785;
  margin-top: 14px;
}

/* ===========================================================
   FOOTER
=========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 48px;
  background: var(--bg-subtle);
  transition: background 0.3s ease;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--ink-pure);
}

.footer-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flame);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--ink-pure);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted-soft);
}

/* ===========================================================
   DOCS & CHANGELOG PAGES
=========================================================== */
.docs-hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-subtle);
}

.docs-title {
  font-size: clamp(36px, 5vw, 54px);
  color: var(--ink-pure);
  margin-bottom: 12px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  padding-top: 56px;
}

.docs-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flame);
  margin-bottom: 12px;
}

.docs-toc a {
  font-size: 14.5px;
  color: var(--muted);
  padding: 8px 0 8px 14px;
  border-left: 2px solid transparent;
  transition: all 0.18s ease;
}

.docs-toc a:hover {
  color: var(--ink-pure);
  border-left-color: var(--line-strong);
}

.docs-toc a.active {
  color: var(--flame);
  font-weight: 600;
  border-left-color: var(--flame);
}

.doc-block {
  margin-bottom: 72px;
  scroll-margin-top: 100px;
}

.doc-block h2 {
  font-size: 28px;
  color: var(--ink-pure);
  margin-bottom: 18px;
}

.doc-block p {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 16px;
}

.doc-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 24px 0;
  background: var(--bg-card);
}

.dt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 14px 20px;
  font-size: 15px;
  border-top: 1px solid var(--line);
}

.dt-row:first-child {
  border-top: none;
}

.dt-head {
  background: var(--bg-subtle);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}

/* Changelog styling */
.changelog-layout {
  padding: 48px 0 100px;
  max-width: 860px;
}

.cl-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.cl-entry:first-child {
  border-top: none;
}

.cl-side {
  position: sticky;
  top: 96px;
  align-self: start;
}

.cl-version {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-pure);
  margin-bottom: 4px;
}

.cl-date {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.cl-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cl-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cl-item p {
  font-size: 15.5px;
  color: var(--ink);
  margin: 0;
  padding-top: 2px;
}

.tag {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.tag-added { background: var(--tag-added-bg); color: var(--tag-added); }
.tag-fixed { background: var(--tag-fixed-bg); color: var(--tag-fixed); }
.tag-changed { background: var(--tag-changed-bg); color: var(--tag-changed); }
.tag-removed { background: var(--tag-removed-bg); color: var(--tag-removed); }

/* ---------- Real Device Screenshot Mockup in Hero ---------- */
.device-phone {
  width: 100%;
  max-width: 290px;
  background: #110E0C;
  border-radius: 42px;
  padding: 10px;
  border: 1.5px solid rgba(255, 107, 0, 0.35);
  box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.85),
              0 0 50px -10px var(--flame-glow);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  user-select: none;
  margin: 0 auto;
}

.device-phone:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 45px 90px -20px rgba(0, 0, 0, 0.9),
              0 0 65px -5px var(--flame-glow);
}

.device-phone-notch {
  width: 60px;
  height: 5px;
  background: #25201C;
  border-radius: 4px;
  margin: 4px auto 8px;
}

.device-phone-screen {
  border-radius: 32px;
  overflow: hidden;
  background: #000000;
  position: relative;
  aspect-ratio: 9 / 20;
  display: flex;
}

.device-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-verified-tag {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 10, 9, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: #F7F1E4;
  font-size: 11px;
  font-family: var(--mono);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  max-width: 90%;
}

.device-verified-dot {
  width: 7px;
  height: 7px;
  background: #4ADE80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ADE80;
}

/* ---------- App Screenshot Showcase Section ---------- */
.screenshots-section {
  padding: 90px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 0, 0.03) 50%, transparent 100%);
  position: relative;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.screenshot-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-highlight);
  box-shadow: var(--shadow-md);
}

.screenshot-frame {
  border-radius: 20px;
  overflow: hidden;
  background: #0C0A09;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 9 / 20;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.screenshot-card:hover .screenshot-frame img {
  transform: scale(1.02);
}

.screenshot-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.screenshot-badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--flame);
  background: var(--flame-wash);
  padding: 3px 9px;
  border-radius: 999px;
  width: fit-content;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.screenshot-meta h3 {
  font-size: 18px;
  margin: 0;
  color: var(--ink-pure);
}

.screenshot-meta p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Hardware Specs Table ---------- */
.specs-section {
  padding: 70px 0;
}

.specs-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--flame) var(--bg-subtle);
}

.specs-table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.specs-table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: 3px;
}
.specs-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--flame);
  border-radius: 3px;
}

.specs-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th, .specs-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.specs-table th {
  background: rgba(255, 107, 0, 0.06);
  font-family: var(--display);
  font-size: 14px;
  color: var(--ink-pure);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.specs-table td:first-child {
  font-weight: 600;
  color: var(--ink-pure);
}

.specs-table td {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- FAQ Accordion ---------- */
.faq-section {
  padding: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all 0.25s ease;
}

.faq-card[open] {
  border-color: var(--line-highlight);
  background: var(--bg-card-hover);
}

.faq-question {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-pure);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  color: var(--flame);
  transition: transform 0.2s ease;
  font-weight: 400;
  margin-left: 14px;
}

.faq-card[open] .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* ===========================================================
   ANIMATIONS & RESPONSIVE DESIGN
=========================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-pills {
    justify-content: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .matcher-container {
    grid-template-columns: 1fr;
  }
  .download-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 32px 0 40px;
  }
  .hero-title {
    font-size: clamp(30px, 8.5vw, 42px);
    margin-bottom: 14px;
    letter-spacing: -0.03em;
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .hero-pills {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .strip {
    padding: 24px 0;
  }
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .strip-num {
    font-size: 32px;
  }
  .strip-label {
    font-size: 11.5px;
  }
  .section-header {
    margin-bottom: 28px;
  }
  .section-title {
    font-size: 24px;
  }
  .section-subtitle {
    font-size: 14px;
  }
  .screenshots-section,
  .features-section,
  .matcher-section,
  .specs-section,
  .compare-section,
  .faq-section,
  .download-section {
    padding: 44px 0;
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  .screenshot-card {
    padding: 14px;
  }
  .screenshot-frame {
    max-width: 240px;
    margin: 0 auto 12px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature.card {
    padding: 20px 18px;
  }
  .mc-ver-btn {
    padding: 12px 14px;
    font-size: 13.5px;
  }
  .matcher-display {
    padding: 20px 16px;
  }
  .matcher-display h4 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .matcher-detail-item {
    margin-bottom: 12px;
  }
  .matcher-detail-val {
    font-size: 13.5px;
  }
  .matcher-reason {
    font-size: 13px;
    padding: 12px 14px;
  }
  .faq-card {
    padding: 16px 18px;
  }
  .faq-question {
    font-size: 15px;
  }
  .faq-answer {
    font-size: 13.5px;
  }
  .download-box {
    padding: 26px 16px;
  }
  .download-card-inner {
    padding: 20px 14px;
  }
  .download-card-inner .btn {
    font-size: 14px;
    padding: 12px 16px;
  }
  .cl-entry {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cl-side {
    position: static;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .btn-toggle {
    display: block;
  }
  .nav-actions .github-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .device-phone {
    max-width: 250px;
    padding: 8px;
    border-radius: 34px;
  }
  .device-phone-screen {
    border-radius: 24px;
  }
  .device-verified-tag {
    font-size: 10px;
    padding: 4px 8px;
    bottom: 10px;
  }
}
