:root {
  --bg: #fbfbfd;
  --bg-elev: rgba(255, 255, 255, 0.7);
  --text: #0b0b0f;
  --muted: #5c5c66;
  --stroke: rgba(15, 15, 20, 0.08);
  --brand: #0071e3; /* Apple blue */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 40px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  --glow-1: #6ea8ff;
  --glow-2: #b388ff;
  --glow-3: #6ef1c8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000104;
    --bg-elev: rgba(22, 22, 26, 0.5);
    --text: #f5f6f7;
    --muted: #a0a1a7;
    --stroke: rgba(255, 255, 255, 0.08);
    --brand: #4aa3ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 60px rgba(0, 0, 0, 0.6);
    --glow-1: #5fa2ff;
    --glow-2: #a384ff;
    --glow-3: #56e4b8;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Ubuntu, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
}
.nav-link:hover { opacity: 1; }

.header-telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--bg) 88%, white 12%);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.header-telegram:hover {
  transform: translateY(-1px);
  background: color-mix(in oklab, var(--bg) 72%, white 18%);
}
.header-telegram .tg-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.hero {
  padding: 72px 0 32px;
}

.hero-inner {
  text-align: center;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin: 0 auto 28px;
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand), color-mix(in oklab, var(--brand) 70%, black 12%));
  color: white;
  border: none;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: color-mix(in oklab, var(--bg) 60%, black 4%);
}

.icon { opacity: 0.9; }

.section { padding: 48px 0 64px; }

.section-title {
  margin: 0 0 20px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-elev);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 16px; }

.card-body { padding: 22px 22px; }

.highlight { border-color: color-mix(in oklab, var(--brand) 50%, var(--stroke)); }
.subtle { opacity: 0.98; }

.platform-icons {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 2px 0 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--bg) 88%, white 12%);
  box-shadow: var(--shadow);
}
.badge-icon { width: 22px; height: 22px; display: block; }
.badge-img { width: 22px; height: 22px; display: block; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.card-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) - 6px);
  padding: 14px;
  background: color-mix(in oklab, var(--bg) 90%, white 10%);
}
.feature-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-text { color: var(--muted); }

.meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
  color: var(--muted);
}
.meta-item { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; display: inline-block; }

.card-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.about-focus .card-body { padding: 24px; }
.about-focus-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-focus-grid { grid-template-columns: 1fr; }
}
.about-col .about-value { margin-bottom: 10px; display: inline-block; }
.focus-col .card-subtitle { margin-top: 6px; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-card {
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) - 6px);
  padding: 14px;
  background: var(--bg-elev);
}
.about-value { font-weight: 600; }
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--stroke);
  background: var(--bg-elev);
  backdrop-filter: saturate(180%) blur(16px);
}
.footer-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Aurora background */
.bg-aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.bg-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 10% 0%, color-mix(in oklab, var(--glow-1) 20%, transparent), transparent 60%),
    radial-gradient(900px 700px at 100% 10%, color-mix(in oklab, var(--glow-2) 18%, transparent), transparent 65%),
    radial-gradient(600px 500px at 70% 100%, color-mix(in oklab, var(--glow-3) 16%, transparent), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.bg-aurora .blob {
  position: absolute;
  width: 42vw;
  height: 42vw;
  min-width: 420px;
  min-height: 420px;
  filter: blur(70px);
  opacity: 0.28;
  border-radius: 50%;
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)));
  mix-blend-mode: screen;
  animation: float 18s ease-in-out infinite;
}

.bg-aurora .b1 {
  left: 18%;
  top: 12%;
  background:
    radial-gradient(40% 40% at 30% 30%, color-mix(in oklab, var(--glow-1) 70%, white 10%), transparent 70%),
    radial-gradient(60% 60% at 70% 70%, color-mix(in oklab, var(--glow-2) 22%, transparent), transparent 80%);
  animation-delay: -2s;
}

.bg-aurora .b2 {
  left: 78%;
  top: 8%;
  background:
    radial-gradient(40% 40% at 70% 40%, color-mix(in oklab, var(--glow-2) 65%, white 10%), transparent 70%),
    radial-gradient(60% 60% at 20% 80%, color-mix(in oklab, var(--glow-1) 20%, transparent), transparent 80%);
  animation-delay: -6s;
}

.bg-aurora .b3 {
  left: 60%;
  top: 70%;
  background:
    radial-gradient(40% 40% at 50% 60%, color-mix(in oklab, var(--glow-3) 65%, white 8%), transparent 70%),
    radial-gradient(60% 60% at 30% 20%, color-mix(in oklab, var(--glow-2) 16%, transparent), transparent 80%);
  animation-delay: -10s;
}

.bg-aurora .glow {
  position: absolute;
  inset: -20% -10% -10% -10%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.08)),
    radial-gradient(1000px 700px at 80% -10%, color-mix(in oklab, var(--glow-1) 14%, transparent), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, color-mix(in oklab, var(--glow-2) 12%, transparent), transparent 60%);
}

.bg-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 800px at 50% 60%, transparent 60%, rgba(0,0,0,0.06) 85%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1);
  }
  50% {
    transform: translate(calc(-52% + var(--dx, 0px)), calc(-48% + var(--dy, 0px))) scale(1.06);
  }
}

@media (max-width: 900px) {
  .bg-aurora .blob { opacity: 0.28; filter: blur(70px); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-aurora .blob { animation: none; }
}

/* Sparkles */
.sparkle {
  position: fixed;
  left: 0; top: 0;
  width: 8px; height: 8px;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px) saturate(130%);
  will-change: transform, opacity;
  z-index: 5;
}

/* Install details */
.install {
  margin-top: 12px;
}
.install summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}
.install[open] summary { opacity: 0.9; }
.steps {
  margin: 10px 0 0 20px;
  color: var(--muted);
}
.steps li { margin: 6px 0; }


/* Mini modal */
.mini-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
}
.mini-modal.is-hidden { display: none; }
.mini-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}
.mini-modal__dialog {
  position: relative;
  width: min(92vw, 820px);
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mini-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--stroke);
}
.mini-modal__title { font-weight: 700; }
.mini-modal__close {
  height: 32px; width: 32px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.mini-modal__body { padding: 10px; }
.mini-modal__video { width: 100%; height: auto; border-radius: 12px; display: block; }

