:root {
  --bg: #0d0b14;
  --panel: #17141f;
  --panel-2: #1f1b2b;
  --line: #2a2538;
  --text: #ece9f5;
  --muted: #a39db5;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #2a1d4d 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(13,11,20,.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); letter-spacing: .2px; }
.brand span { color: var(--accent-2); }
.brand:hover { text-decoration: none; }
nav a { color: var(--muted); margin-left: 22px; font-size: .95rem; }
nav a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 80px 20px 48px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 14px; max-width: 16ch; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 0; }

.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-weight: 600; margin: 0 0 16px; }

.product { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.product-head { display: flex; gap: 20px; align-items: flex-start; }
.app-icon { border-radius: 16px; background: var(--panel-2); flex: none; }
.product h3 { margin: 0 0 6px; font-size: 1.7rem; }
.ver { font-size: .85rem; font-weight: 500; color: var(--accent-2); background: #2a2044; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.tagline { margin: 0 0 12px; color: var(--muted); max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .8rem; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-weight: 600; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #7c4def; }
.btn small { font-weight: 400; opacity: .8; }

.shot { all: unset; cursor: zoom-in; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.shot:hover, .shot:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.shot img { display: block; width: 100%; height: auto; }
.hero-shot { margin: 0 0 28px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 28px; }
.features div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.features h4 { margin: 0 0 4px; font-size: 1rem; }
.features p { margin: 0; color: var(--muted); font-size: .93rem; }

.gallery-title { margin: 0 0 12px; font-size: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery .shot img { aspect-ratio: 16/10; object-fit: cover; object-position: top left; }
.note { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }

.howto { margin-top: 22px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.howto summary { cursor: pointer; font-weight: 600; }
.howto ol { margin: 10px 0 4px; padding-left: 22px; color: var(--muted); }
.howto b { color: var(--text); }
code { background: #0f0d17; padding: 1px 6px; border-radius: 6px; font-size: .9em; }

.nav-support { color: #ffdd00 !important; }
.support { margin-top: 48px; }
.support-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, #241a3d, var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.support-box h2 { margin: 0 0 6px; font-size: 1.4rem; }
.support-box p { margin: 0; color: var(--muted); max-width: 56ch; }
.btn.coffee { background: #ffdd00; border-color: #ffdd00; color: #1a1406; }
.btn.coffee:hover { background: #ffe94d; }

.more { text-align: center; color: var(--muted); margin: 32px 0 0; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .9rem; padding: 48px 20px 40px; }

dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); padding: 16px; max-width: min(1100px, 94vw); }
dialog::backdrop { background: rgba(5,4,10,.85); }
dialog img { display: block; max-width: 100%; max-height: 80vh; border-radius: 8px; }
dialog .cap { margin: 10px 0 0; color: var(--muted); }
dialog .close { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: var(--text); font-size: 1.8rem; cursor: pointer; }

.brand, nav a, .btn small { white-space: nowrap; }
@media (max-width: 600px) {
  nav { display: flex; }
  nav a { margin-left: 14px; font-size: .9rem; }
  nav a[href="#products"] { display: none; }
  .brand { font-size: 1.05rem; }
  .btn.primary { flex-wrap: wrap; }
  .product { padding: 20px; }
  .product-head { flex-direction: column; }
  .hero { padding-top: 48px; }
}
