:root {
  --bg: #0c0918;
  --bg-2: #120d24;
  --panel: rgba(34, 27, 58, 0.55);
  --panel-solid: #1c1631;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ece9f7;
  --muted: #a39cbe;
  --violet: #7c3aed;
  --violet-2: #a78bfa;
  --teal: #5eead4;
  --pink: #f472b6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.bg-image {
  position: fixed; inset: 0; z-index: -3;
  background: url("../img/bg.jpg") center / cover no-repeat;
  opacity: 0.2;
}
.bg-image::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(94, 234, 212, 0.10), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(244, 114, 182, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(12, 9, 24, 0.2), var(--bg) 85%);
}
#sky { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 1.5rem; font-size: 1.05rem; margin-top: 1.2rem; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #9d4edd 55%, var(--pink));
  box-shadow: 0 0 40px -8px rgba(124, 58, 237, 0.9);
}
.btn-primary:hover { box-shadow: 0 0 60px -6px rgba(124, 58, 237, 1); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(94, 234, 212, 0.5); }

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  max-width: var(--max); margin: 0 auto;
  padding: 1rem 1.25rem;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  max-width: none;
  background: rgba(12, 9, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-left: max(1.25rem, calc((100vw - var(--max)) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100vw - var(--max)) / 2 + 1.25rem));
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand b { color: var(--teal); font-weight: 800; margin-left: 2px; }
.brand-moon { width: 26px; height: 26px; fill: var(--violet-2); filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.8)); }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s; }

.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 5rem 1.25rem 6rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center;
  min-height: min(calc(100vh - 70px), 860px);
}
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgba(94, 234, 212, 0.08); border: 1px solid rgba(94, 234, 212, 0.25);
  color: var(--teal); font-size: 0.8rem; font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; margin: 1.2rem 0 1.2rem; }
.grad {
  background: linear-gradient(100deg, var(--teal), var(--violet-2) 50%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.hero-cta { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b { font-size: 1.25rem; }
.hero-facts span { color: var(--muted); font-size: 0.85rem; }

.hero-video {
  position: relative;
  border-radius: 22px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.45), rgba(124, 58, 237, 0.45) 50%, rgba(244, 114, 182, 0.45));
  box-shadow: var(--shadow), 0 0 90px -20px rgba(124, 58, 237, 0.8);
}
.hero-video video {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 17px; background: #0c0918;
}
.hero-video-tag {
  position: absolute; left: 20px; top: 20px;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(12, 9, 24, 0.7); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem; font-weight: 600;
}

.section { max-width: var(--max); margin: 0 auto; padding: 6rem 1.25rem; }
.section-narrow { max-width: 820px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin: 0.6rem 0 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { padding: 1.8rem; transition: transform .25s ease, border-color .25s ease; }
.feature:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.4); }
.feature h3 { font-size: 1.15rem; margin: 1.1rem 0 0.5rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }
.feature-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(244, 114, 182, 0.2));
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.feature-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.clickgui { display: grid; grid-template-columns: 200px 1fr; border-radius: 20px; overflow: hidden; min-height: 460px; box-shadow: var(--shadow); }
.gui-side { padding: 1rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: rgba(0,0,0,0.15); }
.gui-tab {
  display: flex; align-items: center; justify-content: space-between;
  text-align: left; padding: 0.65rem 0.85rem; border-radius: 10px;
  background: none; border: 1px solid transparent; color: var(--muted);
  font: inherit; font-weight: 600; cursor: pointer; transition: all .15s;
}
.gui-tab small { font-weight: 500; font-size: 0.75rem; opacity: 0.7; }
.gui-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.gui-tab.active { color: #fff; background: rgba(124, 58, 237, 0.25); border-color: rgba(167, 139, 250, 0.35); }
.gui-main { display: flex; flex-direction: column; padding: 1rem 1.2rem 1.2rem; min-width: 0; }
.gui-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.gui-top input {
  flex: 1; min-width: 0; padding: 0.65rem 0.9rem; border-radius: 10px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--line); color: var(--text); font: inherit;
  outline: none; transition: border-color .15s;
}
.gui-top input:focus { border-color: rgba(94, 234, 212, 0.5); }
.gui-count { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.gui-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; align-content: start; flex: 1; }
.mod {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0.7rem 0.85rem; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  color: var(--muted); font: inherit; font-size: 0.92rem; font-weight: 500; text-align: left;
  cursor: pointer; transition: all .15s;
}
.mod:hover { color: var(--text); border-color: var(--line-strong); }
.mod .sw { width: 28px; height: 16px; border-radius: 99px; background: rgba(255,255,255,0.12); position: relative; flex: none; transition: background .2s; }
.mod .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #cfcbe0; transition: transform .2s, background .2s; }
.mod.on { color: #fff; border-color: rgba(244, 114, 182, 0.45); background: rgba(244, 114, 182, 0.09); }
.mod.on .sw { background: var(--pink); }
.mod.on .sw::after { transform: translateX(12px); background: #fff; }
.gui-empty { color: var(--muted); padding: 2rem 0; grid-column: 1 / -1; text-align: center; }
.gui-detail { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 10px; background: rgba(0,0,0,0.2); border: 1px solid var(--line); font-size: 0.92rem; min-height: 3.2rem; }
.gui-detail b { color: var(--teal); }

.showcase { display: grid; grid-template-columns: 0.8fr 1fr; gap: 4rem; align-items: center; }
.showcase-img { position: relative; }
.showcase-img img { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(94, 234, 212, 0.35); max-height: 620px; margin: 0 auto; object-fit: cover; }
.showcase-copy h2 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin: 0.6rem 0 1rem; }
.showcase-copy p { color: var(--muted); margin-bottom: 1.4rem; }
.showcase-copy .btn { margin-top: 1.6rem; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.checks li { display: flex; gap: 0.6rem; align-items: center; color: #d6d2e8; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(94, 234, 212, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.video-card { border-radius: var(--radius); overflow: hidden; padding: 6px; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; background: #000; }

.download {
  border-radius: 22px; padding: 2.2rem;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem;
  box-shadow: 0 0 90px -30px rgba(124, 58, 237, 0.9);
  border-color: rgba(167, 139, 250, 0.35);
}
.dl-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); color: var(--text);
}
.badge svg { width: 14px; height: 14px; fill: currentColor; }
.badge-free { background: rgba(94, 234, 212, 0.12); border-color: rgba(94, 234, 212, 0.4); color: var(--teal); }
.badge-fabric { background: rgba(219, 196, 153, 0.12); border-color: rgba(219, 196, 153, 0.4); color: #e7d3a8; }
.dl-file {
  padding: 1rem 1.2rem; border-radius: 14px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.dl-name { font: 500 0.95rem "JetBrains Mono", monospace; word-break: break-all; }
.dl-meta { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.btn.disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.dl-status { color: var(--pink); font-size: 0.88rem; margin-top: 0.7rem; min-height: 1.3em; }
.dl-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.3rem; align-content: center; }
.dl-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 0.9rem; }
.dl-steps li::before {
  content: counter(step); grid-row: span 2;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; color: var(--teal);
  background: rgba(94, 234, 212, 0.1); border: 1px solid rgba(94, 234, 212, 0.3);
}
.dl-steps b { font-size: 1rem; }
.dl-steps span { color: var(--muted); font-size: 0.9rem; }
.dl-steps a { color: var(--teal); }
.dl-steps a:hover { text-decoration: underline; }
code, kbd { font: 500 0.82rem "JetBrains Mono", monospace; background: rgba(255, 255, 255, 0.08); padding: 0.1rem 0.4rem; border-radius: 5px; color: var(--text); }
.faq { display: grid; gap: 0.7rem; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.2rem; transition: border-color .2s; }
.faq details[open] { border-color: rgba(167, 139, 250, 0.4); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; }

.footer {
  max-width: var(--max); margin: 0 auto; padding: 3rem 1.25rem 3.5rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.footer nav { display: flex; gap: 1.4rem; }
.footer nav a { color: var(--muted); font-size: 0.92rem; }
.footer nav a:hover { color: var(--text); }
.footer .small { width: 100%; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; min-height: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 2.5rem; }
  .download { grid-template-columns: 1fr; }
  .showcase-img img { max-height: 520px; }
}
@media (max-width: 760px) {
  .nav { gap: 1rem; }
  .nav .nav-cta { margin-left: auto; }
  .nav-burger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: rgba(12, 9, 24, 0.96); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links a { padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); }
  .nav.open .nav-links { max-height: 320px; }
  .nav.open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .section { padding: 4.5rem 1rem; }
  .hero { padding-left: 1rem; padding-right: 1rem; }
  .feature-grid, .media-grid { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; padding: 1.4rem; gap: 2rem; }
  .dl-file { flex-direction: column; align-items: stretch; }
  .clickgui { grid-template-columns: 1fr; }
  .gui-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .gui-tab { flex: none; gap: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
}
