* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root { --banner-h: 0px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #0a0a1a;
  color: #d0d0e0;
  line-height: 1.7;
  font-size: 16px;
}

a { color: #e94560; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Emulator banner ───────────────────────────── */
.emulator-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  min-height: 44px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #150a20 0%, #2a0f33 28%, #170a26 55%, #2a0f33 80%, #150a20 100%);
  background-size: 220% 100%;
  animation: bannerShimmer 8s linear infinite, bannerDrop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.1) both;
  border-bottom: 1px solid rgba(233,69,96,0.35);
  box-shadow: 0 2px 26px rgba(233,69,96,0.14);
  overflow: hidden;
}
.emulator-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  background-size: 200% 100%;
  animation: bannerSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}
.emulator-banner::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #e94560, #ff6b7a, #e94560, transparent);
  background-size: 200% 100%;
  animation: bannerShimmer 3s linear infinite;
  opacity: 0.9;
}
@keyframes bannerShimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
@keyframes bannerSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes bannerDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.banner-inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 46px 8px 16px;
}
.banner-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: #ff6b7a;
  animation: phonePulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 7px rgba(233,69,96,0.65));
}
@keyframes phonePulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.12); }
}
.banner-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  text-align: center;
}
.banner-text strong {
  color: #fff;
  font-weight: 700;
}
.banner-links {
  white-space: nowrap;
}
.banner-links a {
  color: #ff8f9d;
  font-weight: 600;
  border-bottom: 1px dashed rgba(233,69,96,0.55);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.banner-links a:hover {
  color: #ff5f75;
  border-bottom-color: #ff5f75;
  text-decoration: none;
}
.banner-sep {
  margin: 0 4px;
  color: rgba(255,255,255,0.25);
}
.banner-close {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  border-radius: 50%;
  font-size: 0.78rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.25s;
}
.banner-close:hover {
  background: rgba(233,69,96,0.22);
  color: #fff;
  transform: translateY(-50%) rotate(90deg);
}
body.banner-hidden .emulator-banner { display: none; }

/* ── Nav ─────────────────────────────────────── */
nav {
  position: fixed; top: var(--banner-h, 0px); left: 0; right: 0; z-index: 100;
  background: rgba(10,10,26,0.88);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 20px;
  height: 56px;
  display: flex; align-items: center; gap: 16px;
}
nav .nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: #eaeaea;
  flex-shrink: 0;
}
nav .nav-brand img { height: 90px; width: auto; }
nav .nav-brand span { color: #e94560; }
.nav-links { display: flex; align-items: center; gap: 4px; }
nav a.nav-link {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
nav a.nav-link:hover { color: #eaeaea; background: rgba(255,255,255,0.04); text-decoration: none; }
.nav-spacer { flex: 1; }
.nav-download {
  background: linear-gradient(135deg, #e94560, #ff6b7a);
  color: #fff !important;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}
.nav-download:hover { text-decoration: none !important; opacity: 0.9; }
.nav-github {
  color: rgba(255,255,255,0.4) !important;
  display: flex; align-items: center;
  padding: 6px 8px;
  margin-left: 4px;
  transition: color 0.15s;
}
.nav-github:hover { color: #eaeaea !important; text-decoration: none !important; }
.nav-toggle { display: none; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.4rem; cursor: pointer; padding: 4px 8px; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(80px + var(--banner-h, 0px)) 24px 60px 274px;
  background: radial-gradient(ellipse at 50% 40%, rgba(233,69,96,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(100,100,255,0.05) 0%, transparent 50%),
              linear-gradient(180deg, #0a0a1a 0%, #10102a 100%);
}
.hero h1, .hero .tagline, .hero .desc, #typewriter, .hero-actions {
  max-width: 960px;
  width: 100%;
}
.hero-logo {
  width: 160px; height: 160px;
  background: linear-gradient(135deg, #e94560, #ff6b7a);
  border-radius: 36px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(233,69,96,0.25), 0 8px 32px rgba(0,0,0,0.4);
  margin-bottom: 28px;
}
.hero-logo img { height: 90px; width: auto; filter: brightness(0) invert(1); }
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #eaeaea;
  margin-bottom: 8px;
}
.hero .tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero .desc {
  max-width: 720px;
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.7;
  min-height: 4.5em;
}
#typewriter {
  font-family: inherit;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.55);
  display: block;
  min-height: 2em;
  white-space: normal;
  word-break: break-word;
}
#typewriter::after {
  content: '|';
  opacity: 1;
  animation: blink 0.7s infinite;
  margin-left: 2px;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── Hero Slideshow ──────────────────────────── */
.hero-slideshow {
  position: relative;
  max-width: 720px;
  margin: 2.5rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.hero-slideshow .slide {
  display: block;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  position: absolute;
  top: 0; left: 0;
}
.hero-slideshow .slide.active {
  position: relative;
  opacity: 1;
}
.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slide-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.slide-dots span.active { background: #e94560; }

/* ── Testimonials ────────────────────────────── */
.testimonial {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid #e94560;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border-radius: 0 10px 10px 0;
}
.testimonial p { font-style: italic; margin: 0; }
.testimonial cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ── FAQ Accordion ───────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}
.faq-q:hover { color: #e94560; }
.faq-arrow {
  font-size: 1.2rem;
  color: #e94560;
  transition: transform 0.3s;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 0 1rem;
}

/* ── Pricing Grid ────────────────────────────── */
.pricing-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.pricing-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  min-width: 280px;
  flex: 1;
  max-width: 380px;
  position: relative;
  backdrop-filter: blur(10px);
}
.pricing-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e94560, #ff6b7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0 1.5rem;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-card li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-card li::before {
  content: "✓";
  color: #e94560;
  font-weight: 700;
}
.pricing-pro {
  border-color: rgba(233,69,96,0.3);
  background: linear-gradient(145deg, rgba(233,69,96,0.08), rgba(233,69,96,0.02));
  box-shadow: 0 0 30px rgba(233,69,96,0.08);
}
.pricing-pro::after {
  content: "Pro";
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e94560;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #e94560, #ff6b7a);
  color: #fff;
  padding: 12px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); text-decoration: none; }

/* ── Container ────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Section ──────────────────────────────────── */
section { padding: 80px 0; scroll-margin-top: calc(72px + var(--banner-h, 0px)); }
section:nth-child(even) {
  background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.02) 100%);
}
section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #eaeaea;
  margin-bottom: 6px;
  position: relative;
  padding-bottom: 10px;
}
section h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, #e94560, #ff6b7a);
  border-radius: 2px;
}
section.section-center h2::after,
#download h2::after { left: 50%; transform: translateX(-50%); }
section .section-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 36px;
}
section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e0e0f0;
  margin: 32px 0 10px;
}
section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #cccce0;
  margin: 24px 0 8px;
}
section p { margin-bottom: 12px; color: rgba(255,255,255,0.65); line-height: 1.75; }
section ul, section ol { margin: 8px 0 20px 24px; color: rgba(255,255,255,0.65); }
section li { margin-bottom: 6px; }
.section-center { text-align: center; }
.section-center h2::after { left: 50%; transform: translateX(-50%); }

/* ── Badge ─────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.badge-experimental {
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

/* ── Cards ────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.feature-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px 28px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(233,69,96,0.2);
  background: rgba(233,69,96,0.03);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233,69,96,0.06);
}
.feature-card .fc-icon {
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
}
.feature-card .fc-icon svg {
  width: 40px; height: 40px;
}
.feature-card h4 {
  margin: 0 0 8px;
  color: #e0e0f0;
  font-size: 1rem;
}

/* ── Download Cards ───────────────────────────── */
.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(233,69,96,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.dl-sub {
  font-size: 0.82rem !important;
  color: rgba(255,255,255,0.35) !important;
  margin-bottom: 10px !important;
  line-height: 1.5;
}
.dl-note {
  font-size: 0.75rem !important;
  color: rgba(255,165,0,0.5) !important;
  margin-bottom: 12px !important;
}
.dl-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}
.dl-btn {
  font-size: 0.78rem !important;
  padding: 7px 12px !important;
}
.dl-btn-wide {
  font-size: 0.85rem !important;
  padding: 8px 20px !important;
  margin-top: auto;
}
.download-card .badge {
  vertical-align: middle;
  margin-left: 6px;
}
.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ── Code ─────────────────────────────────────── */
pre {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid rgba(233,69,96,0.25);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #c0c0d0;
  margin: 12px 0 24px;
  transition: border-color 0.15s;
}
pre:hover { border-left-color: rgba(233,69,96,0.5); }
code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85em;
  background: rgba(233,69,96,0.08);
  padding: 2px 7px;
  border-radius: 4px;
  color: #e94560;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ── Tables ───────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 12px 0 24px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  text-align: left;
  padding: 12px 16px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}
td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.6);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
td:first-child { font-weight: 500; color: #e0e0f0; }

/* ── Steps ────────────────────────────────────── */
.steps { counter-reset: step; margin: 20px 0; }
.step {
  counter-increment: step;
  display: flex; gap: 18px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.15s;
}
.step:hover { background: rgba(255,255,255,0.015); }
.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: linear-gradient(135deg, rgba(233,69,96,0.2), rgba(233,69,96,0.1));
  border: 1px solid rgba(233,69,96,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e94560;
}
.step-body { padding-top: 5px; }
.step-body strong { color: #e0e0f0; }

/* ── Prereqs OS tabs ──────────────────────────── */
.os-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.os-tab {
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.3);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.os-tab:hover { color: rgba(255,255,255,0.5); }
.os-tab.active {
  background: rgba(233,69,96,0.12);
  border-color: rgba(233,69,96,0.25);
  color: #e94560;
}
.os-content { display: none; }
.os-content.active { display: block; }

/* ── Callout ──────────────────────────────────── */
.callout {
  background: rgba(233,69,96,0.05);
  border-left: 3px solid #e94560;
  padding: 16px 22px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: background 0.15s;
}
.callout:hover { background: rgba(233,69,96,0.07); }
.callout strong { color: #e0e0f0; }

/* ── Sidebar ──────────────────────────────────── */
.sidebar {
  position: fixed; top: calc(56px + var(--banner-h, 0px)); left: 0; bottom: 0; z-index: 90;
  width: 250px;
  background: rgba(8,8,20,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255,255,255,0.04);
  overflow-y: auto;
  padding: 12px 0 24px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat { display: flex; flex-direction: column; }
.cat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.cat-header:hover { color: rgba(255,255,255,0.4); }
.cat-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  color: rgba(255,255,255,0.15);
}
.cat-header.collapsed .cat-arrow { transform: rotate(-90deg); }
.cat-links {
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  max-height: 600px;
  opacity: 1;
}
.cat-links.collapsed {
  max-height: 0;
  opacity: 0;
}
.cat-links a {
  padding: 6px 20px 6px 32px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cat-links a:hover {
  color: #eaeaea;
  background: rgba(233,69,96,0.04);
  border-left-color: rgba(233,69,96,0.2);
  text-decoration: none;
}
.cat-links a.active {
  color: #e94560;
  border-left-color: #e94560;
  background: rgba(233,69,96,0.06);
}
.sidebar-download {
  display: block;
  margin: 8px 16px 12px;
  padding: 10px;
  background: linear-gradient(135deg, #e94560, #ff6b7a);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.15s;
}
.sidebar-download:hover { opacity: 0.9; text-decoration: none; }

/* ── Doc Content ──────────────────────────────── */
.doc-content {
  margin-left: 250px;
  min-height: 100vh;
}

/* ── Screenshots ──────────────────────────────── */
.screenshot {
  display: block;
  max-width: 100%;
  width: 720px;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

/* ── Fade-In on Scroll ────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-d1 { transition-delay: 0.1s; }
.fade-in-d2 { transition-delay: 0.2s; }
.fade-in-d3 { transition-delay: 0.3s; }

/* ── Sidebar Active Link ──────────────────────── */
.sidebar-link-active {
  color: #e94560 !important;
  border-left-color: #e94560 !important;
  background: rgba(233,69,96,0.06) !important;
}

/* ── Footer ───────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.2);
  margin-left: 250px;
}

/* ── Wide Screens ─────────────────────────────── */
@media (min-width: 1400px) {
  .hero h1 { font-size: 4rem; letter-spacing: 6px; }
  .hero-logo { width: 200px; height: 200px; border-radius: 44px; }
  .hero-logo img { height: 110px; }
  .hero .tagline { font-size: 1.15rem; }
  #typewriter { font-size: 1.5rem; }
  .container { max-width: 1040px; }
}

/* ── Responsive ───────────────────────────────── */
@media (min-width: 1200px) {
  .feature-grid.download-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .feature-grid.download-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .container-narrow { padding: 0 20px; }
  section h2 { font-size: 1.35rem; }
  .hero .desc { font-size: 0.95rem; }
  #typewriter { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 1024px) {
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    opacity: 0;
  }
  .sidebar.open {
    transform: translateX(0);
    opacity: 1;
  }
  .sidebar-overlay {
    position: fixed; inset: 0; z-index: 89;
    background: rgba(0,0,0,0.5);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .sidebar-overlay.visible {
    opacity: 1; pointer-events: auto;
  }
  .doc-content { margin-left: 0; }
  footer { margin-left: 0; }
  .hero { padding: calc(60px + var(--banner-h, 0px)) 20px 40px; }
  .nav-toggle { display: block; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: calc(60px + var(--banner-h, 0px)) 20px 40px; }
  .banner-inner { padding: 8px 38px 8px 12px; gap: 8px; }
  .banner-text { font-size: 0.78rem; }
  .banner-links { white-space: normal; }
  section { padding: 48px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr !important; }
  .steps { margin: 8px 0; }
  .step { gap: 12px; padding: 8px 12px; }
  th, td { padding: 8px 10px; font-size: 0.8rem; }
  pre { font-size: 0.78rem; padding: 14px 16px; }
  .hero-logo { width: 120px; height: 120px; }
  .hero-logo img { height: 68px; }
  section .section-sub { margin-bottom: 28px; }

  .nav-links {
    display: none;
    position: fixed; top: calc(56px + var(--banner-h, 0px)); left: 0; right: 0;
    background: rgba(10,10,26,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-spacer { display: none; }
  .nav-links a.nav-link { padding: 10px 12px; font-size: 0.95rem; }
  .nav-links .nav-download { text-align: center; margin-top: 4px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; letter-spacing: 2px; }
  .banner-icon { display: none; }
  .banner-sep { margin: 0 2px; }
  .hero .tagline { font-size: 0.8rem; letter-spacing: 2px; }
  .hero .desc { font-size: 0.88rem; }
  .container { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }
  section { padding: 32px 0; }
  section .section-sub { margin-bottom: 20px; font-size: 0.82rem; }
  .fc-icon svg { width: 36px; height: 36px; }
  .feature-card { padding: 16px 18px; }
  th, td { padding: 4px 6px; font-size: 0.75rem; }
  pre { font-size: 0.72rem; padding: 10px 12px; }
  .hero-logo { width: 100px; height: 100px; border-radius: 24px; }
  .hero-logo img { height: 56px; }
  .hero-slideshow { margin-top: 1.5rem; border-radius: 8px; }
  .slide-dots { bottom: 8px; gap: 6px; }
  .slide-dots span { width: 8px; height: 8px; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  .callout { font-size: 0.82rem; padding: 10px 14px; }
  .sidebar { width: 240px; }
}
