/* LineageTanks site. The palette is the launcher's theme (client/launcher/assets/themes/clean_dark.tres),
   itself sampled from the LVT logo. Dark only, like the launcher. */

:root {
  color-scheme: dark;

  --bg: #05080c;
  --card: #0d151d;
  --border: #2c3a47;
  --border-strong: #66737f;

  --text: #eefafe;
  --text-2: #ccd6de;
  --muted: #98a4ae;

  --primary: #57d4fa;
  --primary-hover: #8ce4fc;
  --primary-press: #1baef2;
  --on-primary: #030c19;
  --focus: #b4f4fc;

  --ice: #a0effc;
  --sky: #1baef2;
  --deep: #087ed1;

  --radius: 12px;
  --gutter: 16px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Same width as the launcher window, so the cards below line up with it. */
.container {
  width: min(960px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Buttons (the theme's PrimaryButton) ---------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--primary-hover); color: var(--on-primary); transform: scale(1.05); }
.btn:active { background: var(--primary-press); transform: scale(1); }

.btn--small { padding: 8px 18px; font-size: .9rem; }
.btn--big { padding: 16px 52px; font-size: 1.2rem; }

/* ---------- Navbar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 8, 12, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, 100% - 2 * var(--gutter));
  height: var(--nav-h);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .02em;
}
.brand:hover { color: var(--text); }
.brand img { height: 36px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__menu a:not(.btn) { color: var(--text-2); font-weight: 500; }
.nav__menu a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 1px;
}

/* ---------- Hero: the launcher window ---------- */

.hero {
  padding: 40px var(--gutter) 24px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(27, 174, 242, .14), transparent 70%);
}

.launcher {
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  aspect-ratio: 8 / 5;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(160, 239, 252, .04), 0 30px 80px -20px rgba(27, 174, 242, .35), 0 20px 50px rgba(0, 0, 0, .6);
}

.launcher__stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #07111d 0%, #030609 100%);
}

/* Dot matrix: reads at the edges, fades out behind the logo. */
.launcher__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle, rgba(160, 239, 252, .22) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, transparent 18%, #000 80%);
  mask-image: radial-gradient(ellipse at 50% 45%, transparent 18%, #000 80%);
}

/* Vignette. */
.launcher__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(0, 0, 0, .55) 100%);
}

/* Three aurora ribbons in the logo's blues, each drifting at its own speed. */
.aurora { position: absolute; inset: 0; z-index: -3; }
.aurora i {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 34%;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .5;
  transform: rotate(-7deg);
}
.aurora i:nth-child(1) {
  top: 8%;
  background: linear-gradient(90deg, transparent, var(--sky) 35%, var(--ice) 60%, transparent);
  animation: drift-a 14s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  top: 34%;
  height: 28%;
  background: linear-gradient(90deg, transparent, var(--deep) 30%, var(--sky) 70%, transparent);
  animation: drift-b 19s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  top: 58%;
  height: 24%;
  opacity: .32;
  background: linear-gradient(90deg, transparent, var(--ice) 40%, var(--sky) 75%, transparent);
  animation: drift-a 24s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(-6%, -4%, 0) rotate(-7deg); }
  to   { transform: translate3d(6%, 5%, 0) rotate(-3deg); }
}
@keyframes drift-b {
  from { transform: translate3d(5%, 4%, 0) rotate(5deg); opacity: .35; }
  to   { transform: translate3d(-6%, -3%, 0) rotate(8deg); opacity: .55; }
}

.launcher__center {
  z-index: 2;
  text-align: center;
}

.logo {
  position: relative;
  width: clamp(150px, 26vw, 260px);
  margin: 0 auto 14px;
  animation: float 6s ease-in-out infinite;
}
.logo img { position: relative; width: 100%; }
.logo__halo {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(87, 212, 250, .45), transparent 62%);
  animation: breathe 6s ease-in-out infinite -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(-5px); }
  50%      { transform: translateY(5px); }
}
@keyframes breathe {
  0%, 100% { opacity: .55; transform: scale(.95); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

.launcher__center h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: .04em;
  text-shadow: 0 2px 24px rgba(27, 174, 242, .45);
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }

.section h2 {
  margin-bottom: 32px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: .02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.card__icon { width: 30px; height: 30px; margin-bottom: 14px; color: var(--primary); }
.card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.card p { color: var(--text-2); }

.section--download { padding-top: 24px; padding-bottom: 96px; }

.dl {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, rgba(27, 174, 242, .16), transparent 70%),
    var(--card);
}
.dl h2 { margin-bottom: 12px; }
.dl__text > p:not(.dl__alt) { margin-bottom: 24px; color: var(--text-2); max-width: 46ch; }
.dl__alt { margin-top: 16px; color: var(--muted); font-size: .9rem; }

.dl__facts { margin: 0; display: grid; gap: 14px; }
.dl__facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.dl__facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.dl__facts dt { color: var(--muted); }
.dl__facts dd { margin: 0; text-align: right; font-weight: 500; }

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 760px) {
  .nav__toggle { display: block; }

  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 16px;
    background: rgba(5, 8, 12, .96);
    border-bottom: 1px solid var(--border);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 10px 4px; }
  .nav__menu .btn { margin-top: 6px; }

  .hero { padding-top: 24px; }

  .launcher { aspect-ratio: auto; min-height: 380px; }
  .launcher__stage { padding: 24px 20px; }

  .section { padding: 56px 0; }
  .dl { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
  .dl .btn { display: block; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .logo, .logo__halo { animation: none; }
  .btn { transition: none; }
}
