:root {
  --bg: #06090f;
  --bg-2: #0d121b;
  --panel: rgba(15, 21, 31, 0.86);
  --panel-strong: rgba(20, 28, 41, 0.94);
  --panel-border: rgba(110, 145, 185, 0.18);
  --text: #f3f6fb;
  --muted: #9db0c5;
  --orange: #ff7a1f;
  --orange-2: #ffb14b;
  --cyan: #62d7ff;
  --danger: #ff5c5c;
  --success: #6bffb0;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 31, 0.18), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(98, 215, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%),
    linear-gradient(135deg, #04070c 0%, #09111a 48%, #05080d 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

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

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.landing-shell {
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: grid;
  gap: 2px;
}

.brand-overline {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-title,
.hero-title,
.section-title,
.download-title,
.step-title,
.player-name {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.brand-title {
  font-size: 34px;
  line-height: 0.9;
}

.topnav,
.topbar-actions,
.hero-cta,
.hero-strip,
.button-row,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topnav a,
.quick-links a {
  color: var(--muted);
  transition: color 140ms ease;
}

.topnav a:hover,
.quick-links a:hover,
.manual-link:hover {
  color: var(--cyan);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

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

.button-primary {
  color: #111722;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 16px 32px rgba(255, 122, 31, 0.28);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  border-color: rgba(98, 215, 255, 0.22);
}

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.page-content {
  display: grid;
  gap: 26px;
}

.hero,
.section-grid {
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 21, 31, 0.88), rgba(10, 14, 22, 0.93));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  padding: 34px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -18% -35% 40%;
  height: 320px;
  transform: rotate(-9deg);
  background: linear-gradient(135deg, rgba(255, 122, 31, 0.2), rgba(98, 215, 255, 0.07));
  filter: blur(12px);
}

.hero-copy-block,
.hero-panel,
.auth-card,
.playbook-card,
.feature-card,
.step-card,
.download-card {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-eyebrow,
.download-eyebrow,
.panel-kicker,
.step-index,
.intent-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 92, 92, 0.12);
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(107, 255, 176, 0.12);
}

.hero-title {
  display: grid;
  margin: 18px 0 12px;
  font-size: clamp(70px, 14vw, 132px);
  line-height: 0.82;
}

.hero-accent {
  color: var(--orange);
  text-shadow: 0 0 24px rgba(255, 122, 31, 0.2);
}

.hero-lead,
.section-lead,
.download-copy,
.step-copy,
.feature-copy,
.notice-body,
.playbook-list,
.player-meta,
.download-pending {
  color: var(--muted);
  line-height: 1.6;
}

.hero-strip {
  margin-top: 18px;
}

.hero-strip span,
.download-meta {
  color: var(--muted);
}

.hero-panel,
.auth-card,
.playbook-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(24, 33, 47, 0.88), rgba(15, 20, 31, 0.95));
}

.panel-title-large {
  margin: 14px 0 18px;
  font-size: 34px;
  line-height: 1.05;
}

.stat-grid,
.feature-grid,
.guide-grid,
.privacy-grid,
.step-grid,
.download-grid,
.account-grid {
  display: grid;
  gap: 16px;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.stat-tile,
.feature-card,
.step-card,
.download-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.stat-value {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 700;
}

.server-meta,
.player-meta {
  display: grid;
  gap: 10px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-row:last-child {
  border-bottom: 0;
}

.section-grid {
  padding: 28px;
}

.section-copy {
  max-width: 760px;
}

.section-title {
  margin: 16px 0 8px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(280px, 0.85fr);
}

.privacy-grid {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.feature-title,
.step-title,
.download-title {
  margin: 14px 0 8px;
  font-size: 30px;
  line-height: 1;
}

.step-grid,
.download-grid,
.account-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.download-card,
.feature-card {
  min-height: 100%;
}

.download-card-primary {
  background:
    linear-gradient(180deg, rgba(255, 122, 31, 0.14), rgba(255, 122, 31, 0.04)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 122, 31, 0.24);
}

.feature-card-accent {
  background:
    linear-gradient(180deg, rgba(98, 215, 255, 0.12), rgba(98, 215, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(98, 215, 255, 0.22);
}

.privacy-sections-card {
  grid-column: span 2;
}

.download-meta {
  margin: 14px 0;
}

.guide-list,
.faq-list {
  display: grid;
  gap: 14px;
}

.privacy-meta,
.policy-sections {
  display: grid;
  gap: 14px;
}

.guide-item,
.faq-item,
.policy-item {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-item:first-child,
.faq-item:first-child,
.policy-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.guide-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.guide-index {
  min-width: 46px;
  justify-content: center;
}

.guide-copy-block {
  min-width: 0;
}

.faq-question {
  font-size: 24px;
}

.policy-list,
.policy-bullets {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.policy-list li + li,
.policy-bullets li + li {
  margin-top: 10px;
}

.account-grid {
  align-items: start;
}

.auth-card {
  grid-column: span 2;
}

.mode-toggle {
  display: inline-flex;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.mode-toggle button {
  min-width: 112px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.mode-toggle button.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.form-grid,
.field {
  display: grid;
  gap: 10px;
}

.field span,
.checkbox-row {
  color: var(--muted);
  font-size: 15px;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
}

.field input:focus {
  outline: 2px solid rgba(98, 215, 255, 0.2);
  border-color: rgba(98, 215, 255, 0.4);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input {
  margin-top: 3px;
}

.policy-note {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.policy-note a {
  color: var(--cyan);
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notice.success {
  background: rgba(107, 255, 176, 0.08);
  border-color: rgba(107, 255, 176, 0.22);
}

.notice.error {
  background: rgba(255, 92, 92, 0.08);
  border-color: rgba(255, 92, 92, 0.22);
}

.notice.info {
  background: rgba(98, 215, 255, 0.08);
  border-color: rgba(98, 215, 255, 0.22);
}

.notice-title {
  margin-bottom: 4px;
  font-weight: 700;
}

.player-name {
  margin: 12px 0 4px;
  font-size: 48px;
  line-height: 0.95;
}

.player-email,
.footer-copy,
.intent-preview,
.manual-link {
  color: var(--cyan);
}

.intent-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(98, 215, 255, 0.12);
}

.intent-preview {
  margin: 14px 0 10px;
  word-break: break-word;
}

.playbook-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.playbook-list li + li {
  margin-top: 10px;
}

.quick-links {
  margin-top: 20px;
}

.contact-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-box a {
  color: var(--cyan);
  word-break: break-word;
}

.footer-links {
  margin-top: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 18px 4px 0;
}

.footer-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 30px;
  letter-spacing: 0.06em;
}

@media (max-width: 1080px) {
  .hero,
  .feature-grid,
  .guide-grid,
  .privacy-grid,
  .step-grid,
  .download-grid,
  .account-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .privacy-sections-card {
    grid-column: auto;
  }

  .auth-card {
    grid-column: auto;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .landing-shell {
    width: min(100vw, calc(100vw - 18px));
    padding-top: 12px;
  }

  .hero,
  .section-grid {
    padding: 20px;
  }

  .brand-title {
    font-size: 28px;
  }

  .hero-title {
    font-size: clamp(54px, 20vw, 92px);
  }

  .section-title {
    font-size: clamp(34px, 12vw, 54px);
  }

  .player-name {
    font-size: 38px;
  }

  .meta-row,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
