:root {
  color-scheme: dark;
  --bg: #050817;
  --bg-soft: #0a1022;
  --surface: rgba(16, 23, 43, 0.78);
  --surface-solid: #11182b;
  --surface-hover: #17213a;
  --text: #f7f8ff;
  --muted: #a7afc5;
  --dim: #78819a;
  --line: rgba(166, 178, 218, 0.16);
  --violet: #a64cff;
  --violet-2: #7d5cff;
  --cyan: #39c9f5;
  --pink: #f04da2;
  --gold: #f6c767;
  --success: #4dd7a1;
  --warning: #f6c767;
  --danger: #ff6d86;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 24%, rgba(104, 65, 215, 0.1), transparent 30rem),
    radial-gradient(circle at 84% 58%, rgba(32, 160, 203, 0.07), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(57, 201, 245, 0.86);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  color: #050817;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--line);
  background: rgba(5, 8, 23, 0.88);
  backdrop-filter: blur(18px);
}
.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.brand-mode { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a {
  color: #b9c1d4;
  font-size: 14px;
  font-weight: 650;
  transition: color .2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: white; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(14, 20, 38, .75);
  cursor: pointer;
}
.menu-button svg { width: 22px; height: 22px; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: white;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: 0 12px 34px rgba(143, 73, 255, .26);
}
.button-primary:hover { box-shadow: 0 16px 40px rgba(143, 73, 255, .4); }
.button-ghost { border-color: var(--line); background: rgba(14, 21, 40, .52); }
.button-ghost:hover { border-color: rgba(166, 178, 218, .36); background: rgba(23, 33, 58, .78); }
.button[aria-disabled="true"] { opacity: .62; cursor: not-allowed; }
.button[aria-disabled="true"]:hover { transform: none; }
.button svg { width: 18px; height: 18px; }

.recovery-bar {
  position: relative;
  z-index: 5;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(246, 199, 103, .25);
  background: rgba(246, 199, 103, .08);
  color: #f7deb0;
  text-align: center;
  font-size: 13px;
}
.recovery-bar strong { color: var(--warning); }

.hero {
  position: relative;
  min-height: 900px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #080c1a;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url('/public/hero-world.webp') center 47% / cover no-repeat;
  transform: scale(1.025);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 7, 18, .48) 0%, rgba(4, 7, 18, .22) 30%, rgba(5, 8, 23, .7) 76%, var(--bg) 100%),
    radial-gradient(circle at 50% 45%, transparent 0 12rem, rgba(3, 6, 16, .34) 38rem);
}
.hero-inner {
  width: min(calc(100% - 32px), 900px);
  margin-top: 68px;
  padding: 54px 0 120px;
  text-align: center;
}
.hero-emblem {
  width: clamp(150px, 17vw, 235px);
  margin: 0 auto -8px;
  filter: drop-shadow(0 18px 34px rgba(103, 57, 195, .48));
}
.eyebrows { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 16px; }
.eyebrow {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(8, 12, 25, .45);
  color: #d7dced;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(58px, 8.8vw, 116px);
  line-height: .9;
  letter-spacing: -.07em;
  text-shadow: 0 10px 40px rgba(0,0,0,.58);
}
.gradient-text {
  background: linear-gradient(95deg, var(--pink), #c85cf3 40%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-kicker { margin: 20px 0 0; font-size: clamp(22px, 3vw, 34px); font-weight: 820; }
.hero-copy { max-width: 650px; margin: 20px auto 0; color: #d7dbe8; font-size: clamp(16px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-note { margin: 16px 0 0; color: #8d95a9; font-size: 12px; }

.section { padding: 104px 0; }
.section-tight { padding: 76px 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(166, 76, 255, .22);
  border-radius: 999px;
  background: rgba(166, 76, 255, .08);
  color: #c89cff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.section-label.cyan { border-color: rgba(57, 201, 245, .22); background: rgba(57, 201, 245, .08); color: #79dcfa; }
.section-label.pink { border-color: rgba(240, 77, 162, .22); background: rgba(240, 77, 162, .08); color: #f48fc4; }
.section-heading { max-width: 760px; margin: 18px auto 0; text-align: center; }
.section-heading h2,
.page-title {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.section-heading p { margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.center { text-align: center; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 27, 49, .78), rgba(9, 14, 29, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.feature-card { min-height: 220px; padding: 28px; }
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 76, 255, .24);
  border-radius: 14px;
  background: rgba(166, 76, 255, .1);
  color: #c99dff;
  font-size: 22px;
}
.feature-card h3 { margin: 24px 0 8px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; margin-top: 54px; }
.step-list { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(166,76,255,.32), rgba(57,201,245,.18));
  color: #d6b5ff;
  font-weight: 900;
}
.step h3 { margin: 1px 0 5px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.launcher-window {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 22px;
  border: 1px solid rgba(166, 76, 255, .28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 75% 18%, rgba(166,76,255,.24), transparent 15rem),
    linear-gradient(145deg, #151126, #090c18 68%);
  box-shadow: 0 28px 80px rgba(0,0,0,.44), 0 0 58px rgba(130, 68, 224, .12);
}
.launcher-top { display: flex; align-items: center; gap: 7px; padding-bottom: 18px; }
.launcher-dot { width: 9px; height: 9px; border-radius: 50%; background: #3e4352; }
.launcher-side { width: 25%; min-height: 300px; float: left; border-radius: 12px; background: rgba(0,0,0,.2); padding: 14px; }
.launcher-line { height: 7px; margin: 10px 0; border-radius: 999px; background: rgba(255,255,255,.09); }
.launcher-main { margin-left: 28%; min-height: 300px; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.035); }
.launcher-sun { width: 98px; height: 98px; margin: 22px auto; border-radius: 50%; background: radial-gradient(circle, #ffc56f, #95489d 55%, transparent 58%); filter: blur(.2px); }
.launcher-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4,7,15,.55); }
.launcher-card strong { display: block; font-size: 14px; }
.launcher-card span { color: var(--success); font-size: 11px; }
.launcher-play { padding: 9px 15px; border-radius: 9px; background: linear-gradient(135deg, var(--pink), var(--violet)); font-size: 12px; font-weight: 850; }

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 42px; }
.gallery-card { position: relative; min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; }
.gallery-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .6s ease; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(3,6,15,.92)); }
.gallery-caption { position: absolute; inset: auto 24px 22px; z-index: 2; }
.gallery-caption strong { display: block; font-size: 20px; }
.gallery-caption span { color: #c2c8d7; font-size: 13px; }

.server-card { max-width: 740px; margin: 42px auto 0; padding: 30px; }
.server-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(246, 199, 103, .1); color: #f6d38e; font-size: 12px; font-weight: 760; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 14px var(--warning); }
.server-card h3 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.server-card > p { margin: 0; color: var(--muted); }
.server-address { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.18); }
.server-address code { min-width: 0; overflow-wrap: anywhere; color: #d9baff; font-size: 14px; }
.copy-button { margin-left: auto; flex: 0 0 auto; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.04); cursor: pointer; }

.page-hero { padding: 164px 0 74px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% -20%, rgba(166, 76, 255, .22), transparent 40rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; color: var(--dim); font-size: 13px; }
.breadcrumbs a { color: #c3cadb; }
.page-lead { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 54px; align-items: start; }
.prose { max-width: 800px; }
.prose h2 { margin: 48px 0 16px; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.03em; }
.prose h3 { margin: 30px 0 10px; font-size: 21px; }
.prose p, .prose li { color: #bcc4d7; }
.prose li + li { margin-top: 9px; }
.prose a { color: #c79dff; text-decoration: underline; text-underline-offset: 3px; }
.toc { position: sticky; top: 106px; padding: 20px; }
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; }
.toc a:hover { color: white; }
.notice { padding: 20px; border: 1px solid rgba(246, 199, 103, .25); border-radius: 15px; background: rgba(246, 199, 103, .07); color: #ead9b9; }
.notice strong { color: var(--warning); }

.rule-list { display: grid; gap: 14px; margin-top: 32px; }
.rule { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px; }
.rule b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(166,76,255,.12); color: #c79dff; }
.rule h3 { margin: 1px 0 5px; }
.rule p { margin: 0; color: var(--muted); }

.faq { display: grid; gap: 10px; margin-top: 30px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(14,21,40,.58); }
.faq summary { padding: 18px 20px; cursor: pointer; font-weight: 760; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.shop-card { padding: 26px; }
.shop-card.is-featured { border-color: rgba(166,76,255,.42); box-shadow: 0 0 50px rgba(140,70,235,.1); }
.shop-card h3 { margin: 0; font-size: 25px; }
.shop-card p { color: var(--muted); min-height: 76px; }
.shop-card ul { min-height: 138px; padding-left: 20px; color: #c9cfdd; }
.shop-card .button { width: 100%; margin-top: 8px; }

.site-footer { padding: 58px 0 28px; border-top: 1px solid var(--line); background: rgba(2,4,11,.46); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 44px; }
.footer-brand { max-width: 290px; }
.footer-brand p { color: var(--muted); font-size: 13px; }
.footer-col strong { display: block; margin-bottom: 13px; color: #d7dceb; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; padding: 5px 0; color: var(--muted); font-size: 13px; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 160;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(166, 178, 218, .24);
  border-radius: 13px;
  background: rgba(17, 24, 43, .96);
  box-shadow: var(--shadow);
  color: #e7eaf4;
  transform: translateY(130%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    inset: 76px 16px auto;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8,12,26,.97);
    box-shadow: var(--shadow);
  }
  .site-header.is-open .nav-links { display: flex; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; }
  .nav-links a:hover { background: rgba(255,255,255,.04); }
  .nav-actions { margin-left: auto; }
  .menu-button { display: inline-flex; }
  .nav-actions .button-ghost { display: none; }
  .card-grid, .shop-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .launcher-window { max-width: 660px; width: 100%; margin-inline: auto; }
  .content-shell { grid-template-columns: 1fr; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 2; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .nav-shell { min-height: 68px; }
  .brand img { width: 42px; height: 42px; }
  .brand-mode { display: none; }
  .nav-links { inset: 68px 12px auto; }
  .nav-actions .button-primary { display: none; }
  .hero { min-height: 820px; }
  .hero-inner { margin-top: 50px; padding-bottom: 90px; }
  .hero h1 { font-size: clamp(52px, 18vw, 78px); }
  .hero-emblem { width: 150px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 330px; margin-inline: auto; }
  .section { padding: 76px 0; }
  .card-grid, .shop-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card { min-height: 285px; }
  .feature-card { min-height: 0; }
  .launcher-window { min-height: 330px; padding: 16px; }
  .launcher-side { display: none; }
  .launcher-main { min-height: 270px; margin-left: 0; }
  .server-card { padding: 22px; }
  .server-address { align-items: stretch; flex-direction: column; }
  .copy-button { width: 100%; margin: 0; min-height: 44px; }
  .page-hero { padding: 130px 0 58px; }
  .rule { grid-template-columns: 40px 1fr; gap: 13px; padding: 18px; }
  .rule b { width: 38px; height: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

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