:root {
  --bg-top: #f4f8ff;
  --bg-bottom: #dfeafb;
  --surface: rgba(255, 255, 255, 0.97);
  --text: #0f1d38;
  --muted: #53657f;
  --primary: #1765ea;
  --primary-strong: #0d54d0;
  --line: rgba(15, 29, 56, 0.08);
  --shadow-lg: 0 28px 72px rgba(22, 40, 73, 0.17);
  --shadow-md: 0 18px 34px rgba(22, 40, 73, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(23, 101, 234, 0.12), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(23, 101, 234, 0.1), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(calc(100% - 64px), 1520px);
  margin: 38px auto;
}

.hero-card {
  padding: 26px 34px 22px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar-spacer {
  width: 1px;
  min-height: 1px;
}

.visual-panel {
  width: 560px;
  max-width: 100%;
}

.discord-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a6ef2, #0f58d8);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(23, 101, 234, 0.24);
}

.discord-button-inset {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
}

.discord-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.discord-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  min-width: 112px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid rgba(23, 101, 234, 0.18);
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
}

.lang-btn.active {
  background: linear-gradient(180deg, #1a6ef2, #0f58d8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(23, 101, 234, 0.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.visual-scene {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #19120d 0%, #29190f 52%, #16100c 100%);
  box-shadow: var(--shadow-md);
}

.visual-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 22, 0.04), rgba(8, 12, 22, 0.1)),
    radial-gradient(circle at 15% 88%, rgba(255, 128, 32, 0.08), transparent 14%);
  pointer-events: none;
  z-index: 1;
}

.visual-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  object-position: center;
}

.content-panel h1 {
  margin: 0;
  font-size: clamp(70px, 6.6vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subtitle {
  margin: 22px 0 0;
  max-width: 12ch;
  color: var(--primary);
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.lead {
  margin: 30px 0 32px;
  max-width: 26ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.feature-list li {
  position: relative;
  padding-left: 58px;
  color: #172844;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 3px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a6ef2, #0f58d8);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  flex-wrap: wrap;
}

.footer-copy {
  white-space: nowrap;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.legal-shell {
  width: min(calc(100% - 32px), 980px);
}

.legal-card {
  padding: 26px 30px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(23, 101, 234, 0.08);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.legal-content h1 {
  margin: 0 0 10px;
  font-size: 40px;
  letter-spacing: -0.04em;
}

.legal-content h2 {
  margin: 26px 0 10px;
  font-size: 20px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content ul {
  margin: 0;
  padding-left: 20px;
}

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

  .visual-panel {
    width: 100%;
  }

  .visual-scene {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), 1440px);
    margin: 18px auto 24px;
  }

  .hero-card {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-topbar,
  .hero-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-spacer {
    display: none;
  }

  .lang-switch {
    width: 100%;
  }

  .footer-copy {
    white-space: normal;
  }

  .footer-links {
    justify-content: space-between;
    gap: 16px;
  }

  .lang-btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .visual-scene {
    min-height: 560px;
  }

  .content-panel h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .subtitle,
  .lead {
    max-width: 100%;
  }

  .feature-list li {
    padding-left: 52px;
    font-size: 18px;
  }
}
