﻿:root {
  --bg: #060505;
  --bg-soft: #110d09;
  --card: #17110c;
  --card-2: #23180f;
  --line: #4f3720;
  --text: #f7f2e8;
  --muted: #d3bea0;
  --accent: #d89a3a;
  --accent-2: #f0c467;
  --discord: #d89a3a;
  --radius: 18px;
  --container: min(1140px, 92vw);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  --glow-y: 20%;
  --glow-opacity: 0.28;
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.12;
}

p {
  margin: 0;
}

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

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at -10% -10%, rgba(216, 154, 58, 0.3), transparent 70%),
    radial-gradient(720px 460px at 100% 8%, rgba(240, 196, 103, 0.18), transparent 70%),
    linear-gradient(180deg, #060505 0%, #0b0806 45%, #050403 100%);
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.46), transparent 88%);
}

.scroll-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--glow-opacity);
  background:
    radial-gradient(560px 260px at 20% var(--glow-y), rgba(240, 196, 103, 0.3), transparent 72%),
    radial-gradient(500px 220px at 80% calc(var(--glow-y) + 10%), rgba(216, 154, 58, 0.18), transparent 72%);
  transition: opacity 0.35s ease;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 6, 5, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.header-row {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 195, 66, 0.45));
}

.brand-title {
  letter-spacing: 0.02em;
  font-size: 1.14rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav > a {
  color: #f2e0c0;
  font-size: 0.94rem;
  font-weight: 600;
  position: relative;
}

.nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.nav > a:hover {
  color: #fff4e0;
}

.nav > a:hover::after {
  width: 100%;
}

.auth-box {
  display: inline-flex;
  align-items: center;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--card), #0f0c09);
  padding: 0;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.85rem;
}

.btn-discord {
  background: linear-gradient(135deg, var(--discord), var(--accent-2));
  border-color: rgba(240, 196, 103, 0.95);
  color: #22150a;
  box-shadow: 0 8px 20px rgba(216, 154, 58, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 195, 66, 0.48);
  color: #ffe1b0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  border-radius: 999px;
  border: 1px solid rgba(240, 196, 103, 0.5);
  background: rgba(216, 154, 58, 0.18);
  padding: 4px 8px 4px 4px;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #24190e;
}

.user-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8rem;
}

.logout-link {
  color: #ffe3c0;
  font-size: 0.78rem;
  font-weight: 600;
}

.logout-link:hover {
  color: #fff;
}

.hero {
  padding: 88px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 11ch;
  text-shadow: 0 0 30px rgba(255, 170, 55, 0.2);
}

.hero-lead {
  margin-top: 16px;
  color: var(--muted);
  max-width: 65ch;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(240, 196, 103, 0.06);
  color: #f6dfbb;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(165deg, var(--card), #100c08);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hero-card-meta {
  padding: 16px 17px 18px;
}

.hero-card-meta h2 {
  font-size: 1.08rem;
}

.hero-card-meta p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.section-lead {
  margin-top: 10px;
  color: var(--muted);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--card), #120d08);
}

.preview-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.preview-meta {
  padding: 14px 16px 16px;
}

.preview-meta h3 {
  font-size: 1rem;
}

.preview-meta p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.download-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, var(--card), var(--card-2));
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-item strong {
  color: #ffdfac;
  font-size: 1rem;
}

.download-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.download-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 195, 66, 0.72);
  box-shadow: 0 12px 28px rgba(255, 195, 66, 0.15);
}

.tutorial-shell {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, var(--card), #120d08);
  padding: clamp(18px, 2.2vw, 28px);
}

.tutorial-shell h3 {
  font-size: 1.1rem;
  color: #ffe0af;
}

.tutorial-intro {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.tutorial-steps {
  margin: 20px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.tutorial-steps li {
  border: 1px solid rgba(240, 196, 103, 0.22);
  border-radius: 12px;
  background: rgba(240, 196, 103, 0.05);
  padding: 12px 13px;
}

.tutorial-steps h4 {
  font-size: 0.96rem;
  color: #ffe6be;
}

.tutorial-steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.tutorial-finish {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 196, 103, 0.38);
  border-radius: 11px;
  background: rgba(240, 196, 103, 0.08);
  color: #ffe8c5;
  font-weight: 600;
}

.tutorial-disclaimer {
  margin-top: 18px;
  border: 1px solid rgba(240, 196, 103, 0.28);
  border-radius: 14px;
  background: rgba(240, 196, 103, 0.05);
  padding: 14px;
}

.tutorial-disclaimer h3 {
  font-size: 1rem;
  color: #ffe6be;
}

.tutorial-disclaimer h4 {
  margin-top: 14px;
  font-size: 0.93rem;
  color: #ffe1b0;
}

.tutorial-disclaimer-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.tutorial-disclaimer p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.payment-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, var(--card), #110d09);
  padding: 14px;
}

.payment-qr-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.payment-qr-wrap img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.payment-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.payment-info h3 {
  color: #ffe6be;
  font-size: 1rem;
}

.payment-info ul {
  margin: 10px 0 16px;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 7px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.social-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, var(--card), #110d09);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 195, 66, 0.62);
}

.social-icon {
  width: 28px;
  height: 28px;
  opacity: 1;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

.social-card strong {
  display: block;
  font-size: 0.95rem;
}

.social-card p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.muted {
  color: var(--muted);
}

.auth-page .header {
  position: sticky;
}

.auth-main {
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.auth-card {
  width: min(640px, 92vw);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(23, 17, 12, 0.95), rgba(15, 10, 7, 0.95));
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.6vw, 30px);
}

.auth-card h1 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.auth-lead {
  margin-top: 12px;
  color: var(--muted);
}

.provider-grid {
  margin-top: 22px;
  display: grid;
  gap: 11px;
}

.provider-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(240, 196, 103, 0.45);
  border-radius: 13px;
  background: rgba(240, 196, 103, 0.08);
  color: #ffe6bf;
  padding: 12px 14px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.provider-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 196, 103, 0.9);
  background: rgba(240, 196, 103, 0.14);
}

.provider-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #ffffff;
  padding: 3px;
}

.auth-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .hero-grid,
  .preview-grid,
  .download-grid,
  .payment-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .menu-btn {
    display: inline-block;
  }

  .nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 86px;
    background: rgba(19, 13, 9, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav.open {
    display: flex;
  }

  .auth-box,
  .user-chip {
    width: 100%;
  }

  .user-chip {
    border-radius: 12px;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 68px;
  }

  .section {
    padding: 62px 0;
  }
}

@media (max-width: 620px) {
  .header-row {
    min-height: 76px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .hero-badges span {
    font-size: 0.74rem;
  }

  .footer-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 16px 0;
  }

  .auth-main {
    min-height: calc(100vh - 76px);
  }
}
