:root {
  --bg: #0d0c0b;
  --bg2: #141210;
  --card: #1a1714;
  --card-hover: #211e1a;
  --border: #2e2924;
  --border-soft: #25211c;
  --brown: #9a7348;
  --brown-light: #b8956a;
  --brown-dim: #6b4f32;
  --text: #e8e2d9;
  --muted: #9a9288;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}
.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 12, 11, 0.92);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}
.nav { display: flex; gap: 2px; }
.nav-btn {
  background: none;
  border: none;
  color: var(--muted);
  font: 500 0.85rem var(--font);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nav-btn:hover { color: var(--text); background: var(--card); }
.nav-btn.active {
  color: var(--brown-light);
  background: rgba(154, 115, 72, 0.12);
}
.header-cta { display: none; }
@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brown-light);
  border-radius: 1px;
}
@media (max-width: 800px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg2);
    padding: 10px;
    border-bottom: 1px solid var(--border);
  }
  .burger { display: flex; }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9px;
  font: 600 0.9rem var(--font);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn .icon { width: 16px; height: 16px; flex-shrink: 0; }
.btn-gold { background: var(--brown); color: #1a140e; }
.btn-gold:hover { background: var(--brown-light); }
.btn-outline {
  background: transparent;
  color: var(--brown-light);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--brown-dim);
  background: rgba(154, 115, 72, 0.08);
}
.btn-sm { padding: 7px 12px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.tab { display: none; }
.tab.active { display: block; }
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 40px;
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-desc { margin-left: auto; margin-right: auto; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--brown-light);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brown);
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.hero-desc {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 420px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual { display: flex; justify-content: center; }
.hero-logo-wrap {
  width: min(480px, 92vw);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.hero-logo-wrap img {
  width: 100%;
  display: block;
}
.section { padding: 40px 0 56px; }
.section-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.gallery-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 16px;
  flex: 1;
}
.gallery::-webkit-scrollbar { display: none; }
.gal-card {
  flex: 0 0 min(260px, 72vw);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.gal-card:hover {
  border-color: var(--brown-dim);
  transform: translateY(-2px);
}
.gal-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #111;
}
.gal-card .gal-cap {
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.gallery-empty {
  width: 100%;
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.gallery-nav {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--brown-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav:hover { background: var(--card-hover); }
.gallery-nav svg { width: 18px; height: 18px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(960px, 94vw);
  max-height: 88vh;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: contain;
  cursor: default;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { background: var(--card-hover); }
.updates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.update-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.update-card:hover { border-color: var(--brown-dim); }
.update-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(154, 115, 72, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-light);
}
.update-icon svg { width: 18px; height: 18px; }
.update-card h3 {
  font-size: 0.92rem;
  margin-bottom: 3px;
  font-weight: 600;
}
.update-card p {
  font-size: 0.82rem;
  color: var(--muted);
}
.search-wrap {
  position: relative;
  margin-bottom: 18px;
  max-width: 360px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}
#featSearch {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font: 0.9rem var(--font);
  outline: none;
}
#featSearch:focus { border-color: var(--brown-dim); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 4px;
}
.feat-item {
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.8rem;
  color: var(--muted);
}
.feat-item:hover {
  border-color: var(--border);
  color: var(--text);
}
.author-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 700px) {
  .author-section { grid-template-columns: 1fr; }
}
.author-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.author-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.author-role {
  color: var(--brown-light);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.author-bio {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.author-links { display: flex; flex-direction: column; gap: 8px; }
.about-rat h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--brown-light);
}
.about-rat h3:not(:first-child) { margin-top: 20px; }
.about-rat p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.check-list { list-style: none; margin-top: 6px; }
.check-list li {
  position: relative;
  padding: 5px 0 5px 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a7348' stroke-width='2.5'%3E%3Cpath d='M5 13l4 4L19 7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) {
  .pro-grid { grid-template-columns: 1fr; }
}
.pro-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}
.pro-card.featured { border-color: var(--brown-dim); }
.pro-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--brown);
  color: #1a140e;
  font-size: 0.7rem;
  font-weight: 600;
}
.pro-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pro-desc {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.pro-card .check-list { margin-bottom: 20px; }
.pro-card p {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .download-cards { grid-template-columns: 1fr; }
}
.dl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.dl-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 10px;
  background: rgba(154, 115, 72, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-light);
}
.dl-icon svg { width: 22px; height: 22px; }
.dl-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.dl-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.dl-note {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
}
.dl-note code {
  background: var(--card);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.72rem;
}
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}
.footer p { color: var(--muted); font-size: 0.8rem; }
.footer-links { display: flex; gap: 14px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--brown-light); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(154, 115, 72, 0.35);
  border-radius: 3px;
}

.detect-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.detect-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brown-light);
  line-height: 1;
  white-space: nowrap;
}
.detect-num span {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}
.detect-card p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 520px;
  margin: 0;
}
.req-grid, .tunnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.req-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.req-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--brown-light);
}
.muted-p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.muted-p code {
  background: var(--bg2);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.demo-box { max-width: 720px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-n {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(154, 115, 72, 0.15);
  color: var(--brown-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.step h3 { font-size: 0.95rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.calc-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-box label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.calc-box input {
  width: 100px;
  padding: 8px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: 0.9rem var(--font);
}
.calc-result {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown-light);
  margin: 4px 0 0;
}
.table-wrap { overflow-x: auto; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.cmp-table th, .cmp-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cmp-table th {
  color: var(--muted);
  font-weight: 500;
  background: var(--card);
}
.cmp-table td.yes { color: var(--brown-light); }
.cmp-table td.no { color: #6a6560; }
.bug-box, .tg-embed-wrap {
  margin-top: 24px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bug-box h3, .tg-embed-wrap h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--brown-light);
}
.pro-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown-light);
  margin: 8px 0 10px;
}

/* —— polish —— */
body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(154, 115, 72, 0.07), transparent),
    var(--bg);
}

.header {
  background: rgba(13, 12, 11, 0.85);
}

.logo:hover { color: var(--brown-light); }

.nav-btn.active {
  box-shadow: inset 0 -2px 0 var(--brown);
  border-radius: 8px 8px 0 0;
}

.btn-gold {
  background: linear-gradient(180deg, #b8956a 0%, #9a7348 100%);
  color: #1a140e;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 4px 16px rgba(0,0,0,0.25);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #c4a574 0%, #a67c52 100%);
}

.btn-outline:hover {
  box-shadow: 0 0 0 1px var(--brown-dim);
}

.hero h1 {
  background: linear-gradient(135deg, #f0ebe3 40%, #b8956a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-logo-wrap {
  width: min(520px, 94vw);
  border-radius: 18px;
  border: 1px solid rgba(154, 115, 72, 0.25);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 24px 48px rgba(0,0,0,0.5),
    0 0 60px rgba(154, 115, 72, 0.08);
}

.gal-card {
  flex: 0 0 min(280px, 75vw);
  border-radius: 14px;
  border: 1px solid rgba(154, 115, 72, 0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.gal-card:hover {
  border-color: rgba(154, 115, 72, 0.4);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 24px rgba(154, 115, 72, 0.1);
}
.gal-card img {
  aspect-ratio: 16 / 10;
}
.gal-cap { display: none !important; }

.update-card, .req-card, .step, .pro-card, .dl-card, .detect-card, .calc-box, .author-card, .bug-box, .tg-embed-wrap {
  border-color: rgba(154, 115, 72, 0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.update-card:hover, .req-card:hover, .step:hover {
  border-color: rgba(154, 115, 72, 0.3);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

.section-title {
  letter-spacing: -0.03em;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--brown), transparent);
  border-radius: 1px;
}

.step-n {
  background: linear-gradient(145deg, rgba(184,149,106,0.25), rgba(154,115,72,0.1));
}

.detect-num {
  text-shadow: 0 0 40px rgba(154, 115, 72, 0.35);
}

.cmp-table th:first-child,
.cmp-table td:first-child { font-weight: 500; color: var(--text); }
.cmp-table tr:hover td { background: rgba(154, 115, 72, 0.04); }

.footer {
  background: rgba(0,0,0,0.25);
}

.lightbox img {
  border: 1px solid rgba(154, 115, 72, 0.3);
}
.gallery-empty:empty, .gallery-empty[style*="display: none"] { display: none !important; }
