html {
  scroll-behavior: smooth;
}

:root {
  --bg-0: #13161b;
  --bg-1: #1c222b;
  --bg-2: #232a35;
  --bg-3: #2c3645;
  --bg-hero: linear-gradient(135deg, #0d1220 0%, #151a26 50%, #13161b 100%);

  --blue: #0f8fff;
  --blue-hover: #2b9cff;
  --blue-dark: #0477db;
  --blue-bg: rgba(15, 143, 255, .08);
  --blue-border: rgba(15, 143, 255, .25);

  --green: #3cc76a;
  --green-bg: rgba(60, 199, 106, .08);
  --green-border: rgba(60, 199, 106, .25);

  --text-0: #fff;
  --text-1: rgba(255, 255, 255, .85);
  --text-2: rgba(255, 255, 255, .55);
  --text-3: rgba(255, 255, 255, .35);

  --border: #2c3645;
  --border-hover: #3c485c;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", monospace;
}

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

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══════════ HEADER ═══════════ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 48px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(19, 22, 27, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav>a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 4px;
  transition: color .12s;
}

.site-nav>a:hover {
  color: var(--text-0);
}

.nav-faq {
  position: relative;
}

button.nav-faq-label {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: none;
  padding: 4px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color .12s;
}

button.nav-faq-label:hover,
.nav-faq.is-open button.nav-faq-label {
  color: var(--text-0);
}

.nav-faq-chevron {
  font-size: 14px;
  opacity: .5;
  transition: transform .2s;
}

.nav-faq.is-open .nav-faq-chevron {
  transform: rotate(-180deg);
}

.nav-faq-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 240px;
  padding: 4px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all .12s;
  z-index: 1100;
}

.nav-faq.is-open .nav-faq-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-faq-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--text-1);
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  transition: color .12s, background .12s;
}

.nav-faq-menu a:hover {
  color: var(--blue-hover);
  background: var(--blue-bg);
}

/* ═══════════ HERO ═══════════ */
.hero {
  background: var(--bg-hero);
  position: relative;
  width: 100%;
  padding: 56px 0 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  min-height: 380px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Window Frame ── */
.scene-window {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -42%);
  width: 78%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d1117;
  box-shadow: 0 16px 50px rgba(0,0,0,.5), 0 0 30px rgba(15,143,255,.06);
  animation: windowEntry .7s ease both;
  z-index: 2;
}
@keyframes windowEntry {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.scene-window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}
.sw-dot { width: 10px; height: 10px; border-radius: 50%; }
.sw-dot--red   { background: #ff5f57; }
.sw-dot--yellow { background: #febc2e; }
.sw-dot--green { background: #28c840; }
.sw-title {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
}
.sw-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 10px;
  color: var(--green);
  font-family: var(--mono);
}
.sw-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: antennaPulse 2s ease-in-out infinite;
}

/* ── Q-style Animated Hero Scene ── */
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 400px;
  margin: 0 auto;
  overflow: hidden;
}

/* background glow orbs */
.scene-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
}
.scene-glow--1 {
  width: 200px; height: 200px;
  background: #6c47d6;
  top: 20%; left: 10%;
  animation: glowDrift1 6s ease-in-out infinite alternate;
}
.scene-glow--2 {
  width: 160px; height: 160px;
  background: #3b82f6;
  bottom: 15%; right: 10%;
  animation: glowDrift2 7s ease-in-out infinite alternate;
}

/* mascot */
.scene-mascot {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: mascotFloat 3s ease-in-out infinite;
}
.mascot-body {
  width: 56px; height: 56px;
  background: linear-gradient(145deg, #6c47d6, #3b82f6);
  border-radius: 16px;
  position: relative;
  box-shadow: 0 8px 30px rgba(108,71,214,.4);
}
.mascot-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}
.mascot-eye {
  width: 10px; height: 12px;
  background: #fff;
  border-radius: 50%;
  position: relative;
  animation: blink 3.5s ease-in-out infinite;
}
.mascot-eye::after {
  content: '';
  position: absolute;
  width: 5px; height: 5px;
  background: #1a1a2e;
  border-radius: 50%;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
}
.mascot-mouth {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 7px;
  border-bottom: 2.5px solid #fff;
  border-radius: 0 0 8px 8px;
}
.mascot-antenna {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 14px;
  background: rgba(255,255,255,.4);
}
.mascot-antenna span {
  position: absolute;
  top: -5px; left: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: antennaPulse 2s ease-in-out infinite;
}
.mascot-shadow {
  width: 50px; height: 8px;
  background: rgba(0,0,0,.25);
  border-radius: 50%;
  margin: 10px auto 0;
  animation: shadowPulse 3s ease-in-out infinite;
}

/* floating feature bubbles */
.scene-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  opacity: 0;
  z-index: 4;
}
.scene-bubble i { font-size: 16px; color: var(--blue); }

.scene-bubble--1 {
  top: 22%; left: 2%;
  animation: bubbleIn .5s ease .4s forwards, bubbleFloat 4s ease-in-out 1s infinite;
}
.scene-bubble--2 {
  top: 18%; right: 2%;
  animation: bubbleIn .5s ease .7s forwards, bubbleFloat 4.5s ease-in-out 1.2s infinite;
}
.scene-bubble--3 {
  bottom: 10%; left: 4%;
  animation: bubbleIn .5s ease 1s forwards, bubbleFloat 5s ease-in-out 1.5s infinite;
}
.scene-bubble--4 {
  bottom: 6%; right: 4%;
  animation: bubbleIn .5s ease 1.3s forwards, bubbleFloat 3.8s ease-in-out 1.8s infinite;
}

/* window interior */
.sw-body {
  display: flex;
  height: calc(100% - 36px);
}
.sw-sidebar {
  width: 36px;
  border-right: 1px solid var(--border);
  padding: 5px 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.sw-session {
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 0;
  border-radius: 3px;
  color: var(--text-3);
  opacity: 0;
  animation: fadeIn .3s ease forwards;
}
.sw-session:nth-child(1) { animation-delay: .5s; }
.sw-session:nth-child(2) { animation-delay: .6s; }
.sw-session:nth-child(3) { animation-delay: .7s; }
.sw-session:nth-child(4) { animation-delay: .8s; }
.sw-session:nth-child(5) { animation-delay: .9s; }
.sw-session--active {
  background: var(--blue);
  color: #fff;
}
.sw-chat {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sw-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.1);
}
.sw-msg { border-radius: 6px; padding: 6px 8px; }
.sw-msg--user {
  background: linear-gradient(135deg, #6c47d6, #3b82f6);
  align-self: flex-end;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  animation: msgSlideRight .4s ease .7s forwards;
}
.sw-msg--user .sw-bar { background: rgba(255,255,255,.3); }
.sw-msg--ai {
  display: flex;
  gap: 5px;
  align-self: flex-start;
  max-width: 85%;
  opacity: 0;
  animation: msgSlideLeft .4s ease 1.1s forwards;
}
.sw-ai-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c47d6, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: #fff;
}
.sw-ai-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.sw-typing-dots {
  display: flex;
  gap: 3px;
  padding: 2px 0;
  opacity: 0;
  animation: fadeIn .3s ease 1.5s forwards;
}
.sw-typing-dots span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.sw-typing-dots span:nth-child(2) { animation-delay: .15s; }
.sw-typing-dots span:nth-child(3) { animation-delay: .3s; }

.sw-filetree {
  width: 70px;
  border-left: 1px solid var(--border);
  padding: 6px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.sw-ft-row {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: fadeIn .3s ease forwards;
}
.sw-ft-row:nth-child(1) { animation-delay: .8s; }
.sw-ft-row:nth-child(2) { animation-delay: .95s; }
.sw-ft-row:nth-child(3) { animation-delay: 1.1s; }
.sw-ft-row i {
  font-size: 10px;
  color: var(--blue);
  flex-shrink: 0;
}
.sw-ft-row .sw-bar { flex: 1; }

@keyframes msgSlideRight {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes msgSlideLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* sparkle particles */
.scene-sparkle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
  z-index: 6;
  opacity: 0;
  animation: sparkle 3s ease-in-out infinite;
}
.scene-sparkle--1 { top: 15%; left: 25%; animation-delay: 0s; }
.scene-sparkle--2 { top: 45%; right: 18%; animation-delay: .8s; }
.scene-sparkle--3 { bottom: 20%; left: 35%; animation-delay: 1.6s; }
.scene-sparkle--4 { top: 22%; right: 30%; animation-delay: 2.2s; }

/* ── Keyframes ── */
@keyframes mascotFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}
@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: .25; }
  50% { transform: scaleX(.7); opacity: .15; }
}
@keyframes blink {
  0%, 42%, 46%, 100% { transform: scaleY(1); }
  44% { transform: scaleY(.1); }
}
@keyframes antennaPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--green); }
  50% { opacity: .5; box-shadow: 0 0 4px var(--green); }
}
@keyframes glowDrift1 {
  from { transform: translate(0, 0); }
  to { transform: translate(20px, -15px); }
}
@keyframes glowDrift2 {
  from { transform: translate(0, 0); }
  to { transform: translate(-15px, 10px); }
}
@keyframes bubbleIn {
  from { opacity: 0; transform: scale(.7) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 4px;
}

.hero-badge i {
  font-size: 12px;
  color: #f85149;
}

.glitch-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-0);
}

.glitch-title::before,
.glitch-title::after {
  display: none;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero p {
  font-size: 14px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero p strong {
  color: var(--text-0);
  font-weight: 600;
}

/* gradient feature pill */
.hero-gradient-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-0);
  background: linear-gradient(90deg, #1a56db, #6c47d6, #8246c4);
  border-radius: 6px;
}

/* download */
.download-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity .4s ease;
}
.download-group.is-ready {
  opacity: 1;
}

.btn-cyber {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  overflow: hidden;
}

.btn-cyber::before {
  display: none;
}

.btn-cyber.primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.btn-cyber:hover {
  background: var(--bg-2);
  border-color: var(--border-hover);
  color: var(--text-0);
}

.btn-cyber.primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.os-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--blue-bg);
  border-left: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
  color: var(--blue-hover);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-bottom-left-radius: 4px;
  z-index: 10;
}

.btn-cyber.primary .os-badge {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .85);
}

/* ═══════════ FEATURE BAR ═══════════ */
.feature-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  width: 100%;
}

.feature-bar-inner {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.feature-bar-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}

.feature-bar-item:last-child {
  border-right: none;
}

.feature-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-bar-icon i {
  font-size: 20px;
  color: var(--blue);
}

.feature-bar-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 2px;
}

.feature-bar-text p {
  font-size: 12px;
  color: var(--text-2);
  margin: 0;
}

/* ═══════════ HERO HIGHLIGHTS ═══════════ */
.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  padding: 28px 48px !important;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.hero-highlight-row--core {
  width: 100%;
  justify-content: flex-start;
}

.hero-highlight-row--extra {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  justify-content: flex-start;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .12s, color .12s, background .12s;
}

.hero-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-1);
  background: var(--bg-2);
}

.hero-tag i {
  font-size: 15px;
  color: var(--blue);
}

.hero-tag--core {
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  color: var(--text-0);
  background: var(--blue-bg);
  border-color: var(--blue-border);
}

.hero-tag--core:hover {
  background: rgba(15, 143, 255, .15);
}

.hero-tag--core i {
  font-size: 17px;
  color: var(--blue-hover);
}

.hero-tag.hero-tag--core.hero-tag--accent-blue {
  background: var(--green-bg);
  border-color: var(--green-border);
}

.hero-tag.hero-tag--core.hero-tag--accent-blue:hover {
  background: rgba(60, 199, 106, .15);
}

.hero-tag.hero-tag--core.hero-tag--accent-blue i {
  color: var(--green);
}

/* ═══════════ FEATURES ═══════════ */
.features-section {
  padding: 56px 24px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

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

.section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-0);
}

.features-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  padding: 20px 18px;
  border-radius: 8px;
  transition: border-color .15s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.feature-card:hover {
  border-color: var(--border-hover);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 24px;
  color: var(--blue);
  margin-bottom: 10px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-0);
}

.feature-card p {
  color: var(--text-2);
  line-height: 1.55;
  font-size: 12px;
}

/* ═══════════ GALLERY ═══════════ */
.gallery-section {
  padding: 48px 0;
  background: var(--bg-0);
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.gallery-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.gallery-container {
  width: 100%;
  overflow-x: auto;
  padding: 8px 4px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  width: max-content;
}

.gallery-item {
  position: relative;
  flex: 0 0 380px;
  aspect-ratio: 16 / 10;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 143, 255, .06);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .15s;
}

.gallery-overlay i {
  font-size: 32px;
  color: var(--blue-hover);
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  z-index: 10;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all .12s;
}

.nav-btn:hover {
  background: var(--bg-2);
  border-color: var(--border-hover);
  color: var(--text-0);
}

.prev-btn {
  left: 4px;
}

.next-btn {
  right: 4px;
}

/* ═══════════ FAQ ═══════════ */
.faq-section {
  padding: 48px 0 64px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.faq-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.faq-section-header {
  text-align: center;
  margin-bottom: 32px;
  max-width: none;
}

.faq-section-lead {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.faq-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.faq-item {
  scroll-margin-top: 64px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 18px;
  transition: border-color .12s;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 10px;
  line-height: 1.4;
}

.faq-item-body {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.faq-item-body p {
  margin-bottom: 8px;
}

.faq-item-body p:last-child {
  margin-bottom: 0;
}

.faq-block-title {
  font-weight: 600;
  color: var(--text-0);
  font-size: 13px;
  margin: 14px 0 6px;
  line-height: 1.45;
}

.faq-item-body .faq-block-title:first-child {
  margin-top: 0;
}

.faq-code {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-0);
  overflow-x: auto;
  margin: 8px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.faq-steps {
  margin: 8px 0 8px 1em;
  padding: 0;
}

.faq-steps li {
  margin-bottom: 5px;
}

.faq-steps li:last-child {
  margin-bottom: 0;
}

.faq-em {
  color: var(--text-0);
}

.faq-inline-code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--blue-hover);
}

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .2s;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  border: 1px solid var(--border);
  transform: scale(.95);
  transition: transform .2s;
}

.lightbox.active img {
  transform: scale(1);
}

.close-lightbox {
  position: absolute;
  top: 14px;
  right: 20px;
  color: var(--text-3);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color .1s, background .1s;
}

.close-lightbox:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, .06);
}

/* ═══════════ FOOTER ═══════════ */
footer {
  text-align: center;
  padding: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  background: var(--bg-0);
}

/* ═══════════ macOS MODAL ═══════════ */
.mac-dl-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, .60);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s;
}

.mac-dl-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mac-dl-modal {
  width: min(460px, 100%);
  max-height: min(90vh, 560px);
  overflow: auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  position: relative;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.mac-dl-modal h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 10px;
}

.mac-dl-modal p {
  margin-bottom: 10px;
}

.mac-dl-modal .mac-dl-hint-title {
  font-weight: 600;
  color: var(--text-0);
  margin: 4px 0;
  font-size: 12px;
}

.mac-dl-modal .mac-dl-path {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-hover);
  word-break: break-all;
  margin-bottom: 6px;
}

.mac-dl-modal pre.mac-dl-cmd {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-0);
  overflow-x: auto;
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.mac-dl-modal .mac-dl-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: flex-end;
}

.mac-dl-modal button.mac-dl-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-0);
  color: var(--text-1);
  transition: background .12s, border-color .12s;
}

.mac-dl-modal button.mac-dl-btn:hover {
  background: var(--bg-2);
  border-color: var(--border-hover);
}

.mac-dl-modal button.mac-dl-btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.mac-dl-modal button.mac-dl-btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.mac-dl-modal .mac-dl-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .1s, background .1s;
}

.mac-dl-modal .mac-dl-close:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, .06);
}

.mac-dl-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate3d(-50%, 8px, 0);
  z-index: 1100;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-0);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s, transform .12s, visibility .12s;
  pointer-events: none;
  max-width: min(340px, calc(100vw - 32px));
  text-align: center;
}

.mac-dl-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: 6px 12px;
    flex-direction: column;
    gap: 4px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav>a {
    font-size: 12px;
    padding: 4px 8px;
  }

  button.nav-faq-label {
    font-size: 12px;
    padding: 4px 8px;
  }

  .nav-faq-menu {
    right: auto;
    left: 50%;
    transform: translate(-50%, -4px);
  }

  .nav-faq.is-open .nav-faq-menu {
    transform: translate(-50%, 0);
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .hero-left {
    align-items: center;
    text-align: center;
  }

  .hero-right {
    display: none;
  }

  .glitch-title {
    font-size: 24px;
  }

  .hero-sub {
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
  }

  .hero p {
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
  }

  .hero-badge {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .hero-gradient-pill {
    font-size: 12px;
    padding: 6px 14px;
  }

  .feature-bar-inner {
    flex-direction: column;
    padding: 0 16px;
  }

  .feature-bar-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }

  .feature-bar-item:last-child {
    border-bottom: none;
  }

  .hero-tag {
    font-size: 12px;
    padding: 6px 12px;
  }

  .hero-tag--core {
    font-size: 12px;
    padding: 8px 14px;
  }

  .hero-highlights {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .download-group {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .btn-cyber {
    justify-content: center;
    width: 100%;
    font-size: 13px;
    padding: 10px 16px;
  }

  .gallery-section {
    padding: 32px 0 24px;
  }

  .gallery-wrapper {
    padding: 0;
  }

  .gallery-container {
    padding: 4px;
  }

  .gallery-item {
    flex: 0 0 240px;
  }

  .nav-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .features-section {
    padding: 32px 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .faq-section {
    padding: 32px 0 40px;
  }

  .faq-wrapper {
    padding: 0 16px;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .faq-item:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .faq-item {
    padding: 14px 12px;
    scroll-margin-top: 56px;
  }

  .faq-item-title {
    font-size: 13px;
  }

  .lightbox img {
    max-width: 96%;
  }

  .close-lightbox {
    top: 8px;
    right: 8px;
    font-size: 24px;
  }
}