:root {
  --page-bg: #08060d;
  --panel: #120e19;
  --panel-soft: #171120;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(178, 117, 255, .38);
  --text: #fbf9ff;
  --muted: #aaa0b5;
  --purple: #a86cf7;
  --purple-deep: #6d2ad8;
  --blue: #55b7ff;
  --green: #4fe0ad;
}

body {
  background:
    radial-gradient(circle at 82% 4%, rgba(112, 43, 214, .22), transparent 28rem),
    radial-gradient(circle at 8% 58%, rgba(49, 116, 222, .10), transparent 30rem),
    var(--page-bg);
  color: var(--text);
}

body::before {
  opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
}

.ambient-one {
  border-color: rgba(166, 102, 243, .26);
  box-shadow: 0 0 170px rgba(108, 45, 206, .22), inset 0 0 110px rgba(108, 45, 206, .14);
}

.ambient-two {
  border-color: rgba(73, 166, 242, .18);
  box-shadow: 0 0 140px rgba(59, 118, 219, .13);
}

.site-header {
  height: 82px;
  background: rgba(8, 6, 13, .74);
  border-color: rgba(255,255,255,.075);
  backdrop-filter: blur(24px) saturate(145%);
}

.brand img { width: 154px; }

.back {
  color: #e2d9e9;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  padding: 11px 17px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.back:hover {
  transform: translateX(3px);
  border-color: rgba(168,108,247,.5);
  background: rgba(168,108,247,.1);
}

main { width: min(1220px, calc(100% - 40px)); }

.hero {
  position: relative;
  padding: 92px 16px 54px;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(720px, 72vw);
  height: 250px;
  left: 50%;
  top: 88px;
  translate: -50% 0;
  z-index: -1;
  border-radius: 50%;
  background: rgba(117, 48, 219, .18);
  filter: blur(90px);
}

.eyebrow {
  padding: 8px 13px;
  color: #d2b4f8;
  border: 1px solid rgba(168,108,247,.24);
  border-radius: 999px;
  background: rgba(168,108,247,.07);
}

.hero h1 {
  max-width: 900px;
  margin: 18px auto 14px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.3;
  letter-spacing: -1.8px;
}

.hero h1 em {
  background-image: linear-gradient(100deg, #fff 5%, #c69bf9 56%, #7c56ee 100%);
}

.hero > p {
  max-width: 770px;
  font-size: 15px;
  line-height: 2.15;
  color: #b4aabb;
}

.hero-badges span {
  padding: 8px 13px;
  border-color: rgba(168,108,247,.22);
  background: rgba(168,108,247,.065);
  color: #ded5e4;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(650px, 100%);
  margin: 32px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18,14,25,.72);
  box-shadow: 0 22px 70px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
}

.hero-stats span {
  display: grid;
  gap: 2px;
  min-height: 62px;
  place-content: center;
  border-left: 1px solid var(--line);
}

.hero-stats span:last-child { border-left: 0; }
.hero-stats b { color: #d6b8ff; font-size: 19px; }
.hero-stats small { color: #8e8497; font-size: 9px; }

.platform-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 12px 4px 18px;
}

.platform-heading span { color: var(--purple); font-size: 10px; letter-spacing: .3px; }
.platform-heading h2 { margin: 5px 0 0; font-size: clamp(20px, 2.5vw, 29px); }
.platform-heading p { max-width: 410px; margin: 0; color: #8f8598; font-size: 11px; line-height: 1.9; }

.platforms {
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(13,10,18,.74);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}

.platforms button {
  position: relative;
  height: 104px;
  border-color: transparent;
  border-radius: 19px;
  background: transparent;
  overflow: hidden;
}

.platforms button::after {
  content: "";
  position: absolute;
  right: 18%;
  left: 18%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}

.platforms button:hover {
  border-color: rgba(168,108,247,.2);
  background: rgba(255,255,255,.025);
}

.platforms button.active {
  border-color: rgba(178,117,255,.38);
  background: linear-gradient(145deg, rgba(117,48,219,.32), rgba(58,29,84,.17));
  box-shadow: 0 12px 34px rgba(74,27,135,.22), inset 0 1px rgba(255,255,255,.07);
}

.platforms button.active::after { opacity: 1; }
.platforms small { color: #92879b; }

.platforms .platform-logo,
.platforms .platform-logo.android {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  object-position: center;
}

.tutorial-card {
  position: relative;
  padding: 38px;
  border-color: rgba(255,255,255,.095);
  border-radius: 32px;
  background:
    radial-gradient(circle at 96% 0, rgba(121,57,218,.12), transparent 25rem),
    linear-gradient(145deg, rgba(24,17,33,.98), rgba(12,9,17,.98));
  box-shadow: 0 38px 120px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.045);
  overflow: hidden;
}

.tutorial-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 36px;
  left: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,126,255,.55), transparent);
}

.card-heading { padding-bottom: 27px; }
.step-label { color: #c59af8; }
.card-heading h2 { letter-spacing: -.35px; }
.card-heading p { color: #9f94a8; line-height: 1.9; }

.download,
.linux-download,
.android-download {
  padding: 14px 20px;
  border: 1px solid rgba(206,170,255,.25);
  background: linear-gradient(135deg, #7130d8, #9e62ef);
  box-shadow: 0 14px 38px rgba(92,38,174,.3), inset 0 1px rgba(255,255,255,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}

.download:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(92,38,174,.4), inset 0 1px rgba(255,255,255,.18);
}

.notice,
.notice.orange,
.notice.green {
  border-color: rgba(111,181,255,.18);
  border-right-color: var(--blue);
  background: rgba(73,148,227,.065);
  color: #b8afc1;
}

.notice b,
.notice.orange b,
.notice.green b { color: #82c7ff; }

.content-grid { gap: 30px; }

.main-shot {
  border-color: rgba(255,255,255,.12);
  border-radius: 23px;
  box-shadow: 0 26px 72px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.05);
  transition: transform .25s ease, border-color .25s ease;
}

.main-shot:hover { transform: translateY(-3px); border-color: rgba(168,108,247,.38); }

.thumbs button {
  border-color: rgba(255,255,255,.09);
  background: #0d0912;
}

.thumbs button.active {
  border-color: rgba(168,108,247,.8);
  box-shadow: 0 0 0 2px rgba(113,52,173,.24), 0 10px 28px rgba(0,0,0,.3);
}

.caption { color: #8f8597; line-height: 1.8; }

.steps { gap: 12px; }
.steps li {
  padding: 17px;
  border-color: rgba(255,255,255,.085);
  background: linear-gradient(145deg, rgba(255,255,255,.038), rgba(255,255,255,.018));
}

.steps li:hover {
  border-color: rgba(168,108,247,.38);
  background: rgba(168,108,247,.055);
}

.steps li > b {
  border-color: rgba(168,108,247,.32);
  background: rgba(127,63,219,.13);
  color: #d3adff;
}

.steps h3 { color: #f8f4fc; }
.steps p { color: #aaa0b2; }
.steps code { color: #c7a3f5; border: 1px solid rgba(168,108,247,.16); }

.phone-gallery .main-shot {
  border-radius: 30px;
  padding: 5px;
  background: linear-gradient(145deg, #251733, #08060c);
}

.console-screen,
.dns-box {
  border-color: rgba(255,255,255,.1);
  background: linear-gradient(145deg, #15101d, #0b0810);
}

.menu-row,
.menu-row.active,
.xbox-screen .menu-row.active {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
}

.ps-screen .menu-row.active {
  color: #fff;
  border-color: rgba(85,183,255,.45);
  background: rgba(85,183,255,.12);
}

.xbox-screen .menu-row.active {
  color: #fff;
  border-color: rgba(79,224,173,.42);
  background: rgba(79,224,173,.11);
}

.dns-values label {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.03);
}

.menu-row b { color: #83caff; }
.dns-box small { color: #b688f1; }
.dns-box button { background: linear-gradient(135deg, #6d2ad8, #9b5bea); }

.help-strip {
  border-color: rgba(168,108,247,.26);
  background:
    radial-gradient(circle at 85% 20%, rgba(83,165,244,.1), transparent 18rem),
    linear-gradient(135deg, #21152d, #100b16);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.help-strip > a { background: linear-gradient(135deg, #f7f2ff, #d8c2f5); }

@media (max-width: 900px) {
  .platform-heading { align-items: start; flex-direction: column; gap: 7px; }
  .platforms { border-radius: 22px; }
  .platforms .platform-logo,
  .platforms .platform-logo.android { width: 30px; height: 30px; flex-basis: 30px; }
  .tutorial-card { padding: 28px; }
}

@media (max-width: 620px) {
  .site-header { height: 68px; }
  .brand img { width: 116px; }
  main { width: min(100% - 18px, 1220px); }
  .hero { padding: 52px 7px 36px; }
  .hero h1 { font-size: clamp(29px, 9.2vw, 38px); line-height: 1.42; letter-spacing: -.8px; }
  .hero > p { font-size: 12px; line-height: 2; }
  .hero-badges { flex-wrap: wrap; }
  .hero-stats { margin-top: 24px; border-radius: 18px; }
  .hero-stats span { min-height: 56px; }
  .hero-stats b { font-size: 15px; }
  .hero-stats small { font-size: 7px; }
  .platform-heading { margin: 0 3px 14px; }
  .platform-heading h2 { font-size: 20px; line-height: 1.55; }
  .platform-heading p { font-size: 9px; }
  .platforms {
    top: 73px;
    margin-inline: -2px;
    padding: 6px;
    border-radius: 18px;
  }
  .platforms button { min-width: 102px; height: 78px; }
  .platforms .platform-logo,
  .platforms .platform-logo.android { width: 27px; height: 27px; flex-basis: 27px; }
  .tutorial-card { padding: 18px 12px 24px; border-radius: 23px; }
  .tutorial-card::before { right: 18px; left: 18px; }
  .card-heading { gap: 16px; }
  .notice { border-right-width: 2px; }
  .main-shot:hover,
  .download:hover { transform: none; }
  .steps li { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
