/* DP1 Launcher · Site · Liquid-glass, red accent, Greenvale mood */

:root {
  --bg-0:        #07080b;
  --bg-1:        #0c0e13;
  --bg-2:        #11141a;
  --glass-2:     rgba(22, 24, 30, 0.72);
  --border-1:    rgba(255,255,255,0.06);
  --border-2:    rgba(255,255,255,0.10);
  --border-3:    rgba(255,255,255,0.18);
  --text:        #e8e9ec;
  --text-2:      rgba(255,255,255,0.78);
  --text-dim:    rgba(255,255,255,0.50);
  --text-faint:  rgba(255,255,255,0.28);
  --red:         #c4192b;
  --red-hi:      #e0243a;
  --red-glow:    rgba(196,25,43,0.45);
  --red-soft:    rgba(196,25,43,0.14);
  --ok:          #6cd99a;
  --r-m:         14px;
  --r-l:         18px;
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast:      0.16s var(--ease);
  --t-med:       0.26s var(--ease);
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:   'Consolas', 'Fira Code', monospace;
  --font-display:'Cinzel', 'Trajan Pro', 'Segoe UI', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { background: transparent; min-height: 100vh; position: relative; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.92);
  padding: 1px 6px;
  border-radius: 4px;
}
em { color: var(--red-hi); font-style: normal; }
strong { color: #fff; }

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-image {
  position: absolute; inset: 0;
  background: url('bg.jpg') center 35% / cover no-repeat #07080b;
  filter: brightness(0.55) saturate(0.92);
}
/* All page content sits above the fixed background */
.topbar, .hero, .section, .footer { position: relative; z-index: 1; }
.bg-rain {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(105deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: screen; opacity: 0.45;
}
.bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.22) 95%),
    linear-gradient(180deg, rgba(7,8,11,0.18) 0%, rgba(7,8,11,0.45) 100%);
}
.bg-vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 180px 40px rgba(0,0,0,0.55);
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 26px;
  background: linear-gradient(180deg, rgba(10,11,14,0.92), rgba(7,8,11,0.68));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-1);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(196,25,43,0.30), rgba(60,18,22,0.7));
  border: 1px solid rgba(196,25,43,0.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 14px rgba(196,25,43,0.18);
  object-fit: contain; padding: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.18em; color: #fff; }
.brand-sub { font-size: 9.5px; letter-spacing: 0.32em; color: var(--red-hi); }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav a {
  padding: 8px 14px; font-size: 12px; letter-spacing: 0.16em;
  font-weight: 600; color: var(--text-2); text-transform: uppercase;
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  color: var(--text-2);
  border: 1px solid var(--border-1);
  transition: all var(--t-fast);
}
.topbar-icon svg { width: 18px; height: 18px; }
.topbar-icon:hover {
  color: #fff;
  background: var(--red-soft);
  border-color: rgba(196,25,43,0.35);
  transform: translateY(-1px);
}

.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  padding: 6px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--border-1); border-radius: 7px;
  transition: all var(--t-fast);
}
.lang-btn:hover { color: #fff; border-color: var(--border-3); }
.lang-btn.active {
  color: #fff; background: var(--red-soft);
  border-color: rgba(196,25,43,0.35);
  box-shadow: 0 0 12px var(--red-glow);
}

.glass-card {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--r-l);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 50%, rgba(255,255,255,0.03) 100%),
    var(--glass-2);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--border-2);
  border-top-color: rgba(255,255,255,0.14);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.50),
    0 4px 12px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.30);
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
}
.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196,25,43,0.30);
  box-shadow:
    0 24px 56px rgba(0,0,0,0.55),
    0 0 32px rgba(196,25,43,0.12),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.hero { padding: 80px 24px 90px; display: flex; justify-content: center; text-align: center; }
.hero-inner { max-width: 880px; }
.badge {
  display: inline-block; font-size: 10px; letter-spacing: 0.32em;
  color: var(--red-hi);
  padding: 6px 14px; border: 1px solid rgba(196,25,43,0.35);
  border-radius: 999px; background: var(--red-soft);
  box-shadow: 0 0 18px rgba(196,25,43,0.20);
  margin-bottom: 22px; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: 0.10em; line-height: 0.95;
  color: #f7f3ec;
  text-shadow: 0 4px 24px rgba(0,0,0,0.85), 0 0 60px rgba(196,25,43,0.10);
  margin-bottom: 14px;
}
.hero-line { display: block; font-size: clamp(48px, 9vw, 110px); }
.hero-line:first-child { letter-spacing: 0.18em; }
.hero-sub {
  font-size: 11px; letter-spacing: 0.42em;
  color: var(--red-hi); text-transform: uppercase;
  text-shadow: 0 0 12px var(--red-glow);
  margin-bottom: 28px;
}
.hero-tagline {
  font-size: 15px; color: var(--text-2);
  max-width: 620px; margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }

.btn-launch {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 28px 0 22px;
  border-radius: var(--r-m);
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.20), transparent 60%),
    linear-gradient(180deg, #d6273e 0%, #a4111f 100%);
  border: 1px solid rgba(255, 90, 100, 0.55);
  color: #fff; font-weight: 800; letter-spacing: 0.18em; font-size: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.30),
    0 10px 32px rgba(196,25,43,0.50),
    0 0 0 1px rgba(196,25,43,0.20),
    0 0 40px rgba(196,25,43,0.30);
  transition: transform var(--t-fast), box-shadow var(--t-med);
  overflow: hidden; text-decoration: none;
}
.btn-launch::before {
  content: '';
  position: absolute; top: -50%; left: -120%;
  width: 60%; height: 200%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.25) 45%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0.25) 55%,
    transparent 70%);
  transform: skewX(-18deg);
  pointer-events: none; z-index: 2;
  transition: left 0.75s cubic-bezier(0.45, 0.05, 0.40, 0.95);
}
.btn-launch:hover::before { left: 130%; }
.btn-launch:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -2px 0 rgba(0,0,0,0.30),
    0 14px 40px rgba(196,25,43,0.65),
    0 0 60px rgba(196,25,43,0.40);
}
.btn-launch-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.30), transparent 50%);
  pointer-events: none; z-index: 1;
}
.btn-launch-icon {
  position: relative; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), inset 0 -1px 0 rgba(0,0,0,0.40);
}
.btn-launch-icon svg { width: 16px; height: 16px; }
.btn-launch-label, .btn-launch-meta { position: relative; z-index: 3; }
.btn-launch-label { font-family: var(--font-display); }
.btn-launch-meta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; opacity: 0.75; font-weight: 600;
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-2);
  transition: all var(--t-fast);
  text-decoration: none;
}
.btn-secondary svg { width: 18px; height: 18px; }
.btn-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--border-3);
  transform: translateY(-1px);
}

.hero-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(108,217,154,0.45); }
.hero-sep { color: var(--text-faint); }

.section { padding: 70px 24px; max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 38px; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: inline-block;
  font-size: 10.5px; letter-spacing: 0.32em;
  color: var(--red-hi); text-transform: uppercase;
  margin-bottom: 10px; font-weight: 700;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 600;
  color: #fff; letter-spacing: 0.02em; line-height: 1.2;
}
.section-lead { margin-top: 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.65; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.feature h3 {
  font-size: 16px; font-weight: 700; color: #fff;
  margin: 10px 0 6px; letter-spacing: 0.02em;
}
.feature p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), transparent 65%),
    var(--red-soft);
  border: 1px solid rgba(196,25,43,0.35);
  color: var(--red-hi);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 18px rgba(196,25,43,0.12);
}
.feature-icon svg { width: 22px; height: 22px; }

.credit { position: relative; padding-top: 30px; }
.credit-tag {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.10em; color: var(--red-hi);
  padding: 3px 8px; border-radius: 999px;
  background: var(--red-soft);
  border: 1px solid rgba(196,25,43,0.30);
}
.credit h3 {
  font-family: var(--font-display);
  font-size: 22px; color: #fff;
  margin-bottom: 2px; letter-spacing: 0.04em;
}
.credit-by { font-size: 12px; color: var(--red-hi); letter-spacing: 0.04em; margin-bottom: 10px; }
.credit p:last-child { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 36px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 32px 24px 22px; }
.step-num {
  position: absolute; top: -16px; left: 22px;
  width: 36px; height: 36px;
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, var(--red-hi), var(--red));
  border: 1px solid rgba(255,100,110,0.55);
  box-shadow: 0 0 18px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.30);
}
.step h3 { font-size: 16px; color: #fff; margin-bottom: 6px; letter-spacing: 0.02em; }
.step p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.install-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

.about-card { max-width: 760px; margin: 0 auto; text-align: center; padding: 32px 30px 28px; }
.about-card p { font-size: 14.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.about-card p:last-of-type { margin-bottom: 22px; }
.about-thanks { font-style: italic; color: var(--text-dim) !important; font-size: 13px !important; }
.hl-ua { color: #ffd93d; font-weight: 600; }

.about-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.about-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  transition: all var(--t-fast);
}
.about-link svg { width: 16px; height: 16px; }
.about-link:hover {
  color: #fff;
  border-color: rgba(196,25,43,0.40);
  background: var(--red-soft);
  transform: translateY(-1px);
}

.footer {
  padding: 36px 24px 50px; text-align: center;
  border-top: 1px solid var(--border-1);
  background: rgba(7,8,11,0.45);
  backdrop-filter: blur(8px);
}
.footer p { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.footer a { color: var(--red-hi); text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer {
  font-size: 11px !important; color: var(--text-faint) !important;
  font-style: italic; max-width: 640px; margin: 0 auto;
}

/* ── Scroll-to-top floating button ───────────────────────────── */
.scroll-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 60;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.20), transparent 65%),
    linear-gradient(180deg, var(--red-hi), var(--red));
  border: 1px solid rgba(255,100,110,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 8px 22px rgba(196,25,43,0.40),
    0 0 28px rgba(196,25,43,0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity var(--t-med), transform var(--t-med), box-shadow var(--t-med), visibility var(--t-med);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.scroll-top:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 12px 30px rgba(196,25,43,0.55),
    0 0 40px rgba(196,25,43,0.35);
}
.scroll-top:active { transform: translateY(-1px) scale(1.02); }
.scroll-top svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .scroll-top svg { width: 18px; height: 18px; }
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
button:focus:not(:focus-visible) { outline: none; }

/* Hide the center nav as soon as the topbar can't comfortably fit it
   (brand + 4 links + GitHub + EN/UK ≈ 860px minimum). */
@media (max-width: 900px) {
  .nav { display: none; }
}

/* ── Mobile (≤760px) — drop expensive effects, simplify layout ─── */
@media (max-width: 760px) {
  .topbar {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .brand-logo { width: 32px; height: 32px; }
  .brand-title { font-size: 15px; }
  .brand-sub { font-size: 8px; }

  /* Compress topbar-right */
  .topbar-right { gap: 6px; }
  .topbar-icon { width: 30px; height: 30px; }
  .lang-btn { padding: 5px 8px; font-size: 10px; }

  .hero { padding: 40px 16px 50px; }
  .hero-line { font-size: clamp(38px, 13vw, 64px); }
  .hero-tagline { font-size: 13.5px; padding: 0 4px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-launch { width: 100%; justify-content: center; height: 58px; padding: 0 18px; font-size: 14px; }
  .hero-meta { flex-wrap: wrap; justify-content: center; padding: 0 8px; }

  .section { padding: 50px 16px; }
  .section-title { font-size: clamp(22px, 6vw, 30px); }

  .feature, .credit, .step, .about-card { padding: 18px 18px; }

  /* DROP heavy effects on mobile — biggest perf win:
     backdrop-filter is GPU-killer on phones, hover transforms are useless
     on touch, glow-shadows multiply expensive paint work. */
  .bg-image { filter: brightness(0.50) saturate(0.9); }       /* skip blur (the blur source is full-screen) */
  .bg-rain { display: none; }

  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7,8,11,0.92); }
  .footer { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(20, 22, 28, 0.82);
    box-shadow: 0 10px 22px rgba(0,0,0,0.55);
    transition: none;
  }
  .glass-card::before { display: none; }
  .glass-card:hover { transform: none; box-shadow: 0 10px 22px rgba(0,0,0,0.55); }

  .btn-launch { box-shadow: 0 8px 22px rgba(196,25,43,0.40); transition: none; }
  .btn-launch::before { display: none; }   /* sheen sweep — not needed on touch */
  .btn-launch:hover, .btn-launch:hover::before { transform: none; box-shadow: 0 8px 22px rgba(196,25,43,0.40); }

  .scroll-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  .scroll-top svg { width: 18px; height: 18px; }

  /* Stack steps + 1-col grids early */
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .footer p { font-size: 12px; }
  .footer-disclaimer { font-size: 10.5px !important; padding: 0 8px; }
}

/* ── Tiny phones (≤420px) — last polish ──────────────────── */
@media (max-width: 420px) {
  .hero-line:first-child { letter-spacing: 0.08em; }
  .badge { font-size: 9px; letter-spacing: 0.22em; padding: 5px 10px; }
  .btn-launch-label { font-size: 13px; }
  .btn-launch-meta { font-size: 10px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn-launch::before { display: none; }
}
