/*
 * Mtine website. The launcher's Liquid Glass look (deep violet background, soft
 * aurora, translucent blurred surfaces, accent #7c3aed → #a855f7), kept quiet:
 * glass only where it holds something, type does the rest. No external fonts.
 */
:root {
  --bg-0: #0a0812;
  --bg-1: #130f22;
  --bg-2: #1a1033;
  --text: #ece9f6;
  --text-dim: rgba(236, 233, 246, 0.68);
  --text-faint: rgba(236, 233, 246, 0.42);
  --line: rgba(255, 255, 255, 0.09);

  --accent-from: #7c3aed;
  --accent-to: #a855f7;
  --accent-from-rgb: 124, 59, 237;
  --accent-to-rgb: 168, 85, 247;
  --accent-text: #c4b5fd;

  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%),
    rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.11);
  --ok: #34d399;
  --err: #fb7185;

  --max: 1040px;
  --gutter: 24px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-2) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-text);
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.muted {
  color: var(--text-dim);
  margin: 0;
}

/* Two soft blobs, slower and dimmer than in the launcher. */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.3;
}
.aurora__blob--a {
  width: 46vw;
  height: 46vw;
  top: -16vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(var(--accent-to-rgb), 0.9), transparent 70%);
  animation: drift 40s ease-in-out infinite;
}
.aurora__blob--b {
  width: 40vw;
  height: 40vw;
  bottom: -18vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(var(--accent-from-rgb), 0.9), transparent 70%);
  animation: drift 52s ease-in-out -20s infinite;
}
@keyframes drift {
  50% {
    transform: translate(4vw, 5vh);
  }
}

/* Liquid Glass surface. */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible,
.tab:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}
.btn--primary:hover {
  background: linear-gradient(135deg, #8b4cf1, #b16ef9);
}
.btn--glass {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Top bar ───────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(10, 8, 18, 0.85), rgba(10, 8, 18, 0));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}
.brand img {
  border-radius: 8px;
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--accent-text);
  letter-spacing: 0.02em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(64px, 11vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 750;
}
.lead {
  margin: 22px 0 28px;
  max-width: 520px;
  font-size: 18px;
  color: var(--text-dim);
}
.hero__art img {
  display: block;
  width: 260px;
  height: 260px;
  border-radius: 56px;
  transform: rotate(-4deg);
  box-shadow: 0 40px 80px -40px rgba(var(--accent-from-rgb), 0.7);
}
.hero__art {
  margin: 0;
}

.ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 520px;
  padding: 16px 16px 16px 20px;
}
.ip__text {
  display: grid;
  gap: 2px;
}
.ip__label {
  font-size: 13px;
  color: var(--text-faint);
}
.ip__addr {
  padding: 0;
  background: none;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.ip__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.7);
}
.dot.is-online {
  background: var(--ok);
}
.dot.is-offline {
  background: var(--err);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.section__title {
  margin: 0 0 20px;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.start__list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.start__list li {
  counter-increment: step;
  display: grid;
  gap: 4px;
}
.start__list li::before {
  content: counter(step);
  font-size: 40px;
  font-weight: 750;
  line-height: 1;
  color: var(--accent-text);
  margin-bottom: 8px;
}
.start__list span {
  color: var(--text-dim);
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}
.split .muted {
  font-size: 15.5px;
}
.mods {
  margin: 0;
  padding: 6px 22px;
}
.mods div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mods div:last-child {
  border-bottom: 0;
}
.mods dt {
  font-weight: 600;
}
.mods dd {
  margin: 0;
  color: var(--text-dim);
}

/* News: a plain dated list. */
.news {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.news li:last-child {
  border-bottom: 0;
}
.news__date {
  font-size: 14px;
  color: var(--text-faint);
  padding-top: 2px;
}
.news h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.news p {
  margin: 0;
  color: var(--text-dim);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Install ───────────────────────────────────────────────────────────────── */
.install {
  padding: 8px 24px 24px;
}
.tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative;
  padding: 14px 0 12px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-faint);
  cursor: pointer;
}
.tab:hover {
  color: var(--text-dim);
}
.tab[aria-selected='true'] {
  color: var(--text);
}
.tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
}
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.panel[hidden] {
  display: none;
}
.panel__main {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 15px;
  display: grid;
  gap: 10px;
}

/* ── Support ───────────────────────────────────────────────────────────────── */
.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.support p {
  margin: 0;
  font-size: 18px;
  max-width: 560px;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-faint);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  background: rgba(20, 15, 34, 0.94);
  border: 1px solid var(--glass-border);
  z-index: 20;
}

/* «Not published yet» download page. */
.notice {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
}
.notice__card {
  max-width: 520px;
  padding: 32px;
  display: grid;
  gap: 14px;
  justify-items: start;
}
.notice__card img {
  border-radius: 14px;
}
.notice__card h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ── Smaller screens ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .hero__art {
    display: none;
  }
  .split,
  .panel {
    grid-template-columns: 1fr;
  }
  .start__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .start__list li {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
  }
  .start__list li::before {
    grid-row: span 2;
    font-size: 32px;
  }
}
@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
  .nav {
    gap: 14px;
    font-size: 14px;
  }
  .nav a[href='#mods'],
  .nav a[data-news-link] {
    display: none;
  }
  .ip {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn,
  .choice .btn,
  .panel__main > .btn {
    flex: 1;
  }
  .mods div,
  .news li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .support {
    flex-direction: column;
    align-items: stretch;
  }
  .footer {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .aurora__blob {
    animation: none;
  }
}
