/* Base */
:root {
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --text: #e6e9f0;
  --muted: #9aa3b2;
  --primary: #5b8cfa;
  --primary-600: #3f74f5;
  --card: #121a36;
  --border: #1f2a52;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(91,140,250,0.15), transparent 70%),
              radial-gradient(800px 400px at -10% 20%, rgba(181,91,250,0.15), transparent 70%),
              var(--bg);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img { height: 40px; width: auto; }

.nav-toggle { display: none; }
.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a { color: var(--text); text-decoration: none; opacity: 0.9; }
.nav-list a:hover { color: white; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .06s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }

/* Hero */
.hero {
  padding: 48px 0 24px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 32px;
}
.hero h1 { font-size: clamp(28px, 4.5vw, 56px); margin: 0 0 10px 0; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 18px 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.warning {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
  font-size: 14px;
  line-height: 1.4;
}
.password-info {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(91, 140, 250, 0.15), rgba(63, 116, 245, 0.1));
  border: 1px solid rgba(91, 140, 250, 0.3);
  color: #5b8cfa;
  font-size: 14px;
}
.password-info code {
  background: rgba(91, 140, 250, 0.2);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  color: #fff;
}
.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02)); }
.section h2 { font-size: 28px; margin: 0 0 20px 0; }

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px 0; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery { grid-template-columns: repeat(3, 1fr); }
.gallery-item { display: block; }
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform .15s ease;
}
.gallery img:hover { transform: scale(1.01); }

/* Howto */
.howto { margin: 0; padding-left: 20px; }
.howto li { margin: 8px 0; }
.note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #14213d;
  border: 1px solid var(--border);
  color: #d1dcff;
}

/* Compatibility */
.compat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.compat.os { color: white; font-weight: 600; }

/* Reviews */
.reviews { position: relative; }
.review { display: none; margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.review.active { display: block; }
.review blockquote { margin: 0 0 8px 0; }
.review figcaption { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 22px 0; background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-footer p { margin: 0; color: var(--muted); }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7);
  display: grid; place-items: center;
  padding: 20px;
}
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-close {
  position: absolute; top: 10px; right: 10px;
  background: var(--card); color: white; border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 10px; cursor: pointer; font-size: 20px;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .compat-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; }
  .nav-list { display: none; position: absolute; right: 12px; top: 56px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; flex-direction: column; gap: 10px; }
  .nav-list.open { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}


