@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  --bg: #100d09;
  --bg-raise: #1b1510;
  --card: #241c14;
  --line: rgba(255, 186, 64, 0.18);
  --text: #fff8ee;
  --muted: #cbbba6;
  --faint: #9a8b78;
  --yellow: #ffd000;
  --orange: #ff8a1a;
  --ink: #1a1208;
  --header: 76px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Manrope, sans-serif;
  background:
    radial-gradient(ellipse 70% 45% at 85% 0%, rgba(255, 140, 0, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(255, 208, 0, 0.1), transparent 55%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(16, 13, 9, 0.82);
  border-bottom: 1px solid var(--line);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  flex: none;
}

.brand-name {
  font-family: Manrope, Inter, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-name span {
  color: var(--yellow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn img {
  width: 22px;
  height: 22px;
}

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

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

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, #ffe14a 0%, #ffb000 42%, #ff7a00 100%);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-discord {
  color: #fff;
  background: #5865f2;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.28);
}

.btn-discord img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--yellow);
  background: #3a2208;
  border: 1px solid rgba(255, 208, 0, 0.28);
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 18px 0 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
  text-shadow: 0 0 32px rgba(255, 208, 0, 0.35);
}

.lead {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.hero-actions .btn-primary {
  height: 58px;
  padding: 0 22px;
  font-size: 16px;
}

.trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  color: var(--faint);
  font-size: 15px;
}

.trust strong {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-right: 6px;
}

.trust-split {
  width: 1px;
  height: 26px;
  background: #6d6256;
}

.hero-art {
  position: relative;
  min-height: 440px;
  padding: 36px 24px 24px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 176, 32, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--bg-raise);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-art-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.hero-art img {
  width: 168px;
  height: 168px;
  filter: drop-shadow(0 18px 30px rgba(255, 122, 0, 0.35));
}

.hero-art strong {
  font-family: Manrope, sans-serif;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.hero-art strong span {
  color: var(--yellow);
}

.hero-art p {
  margin: 0;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 13, 9, 0.72);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.features {
  padding: 28px 0 72px;
}

.features h2 {
  margin: 0 0 22px;
  text-align: center;
  font-family: Manrope, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

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

.card {
  padding: 22px 20px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.card:hover {
  border-color: rgba(255, 176, 32, 0.4);
  background: rgba(255, 176, 32, 0.05);
}

.card img {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.footer {
  border-top: 1px solid var(--line);
  background: #16110c;
  padding: 36px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
}

.footer-brand .brand-name {
  font-size: 30px;
}

.footer-brand p {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.download-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid #5c4030;
  text-align: center;
}

.download-card h2 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 26px;
}

.download-card p {
  margin: 8px 0 14px;
  color: var(--muted);
}

.download-card .btn {
  width: 100%;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.social-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Manrope, sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.social-label img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.legal {
  padding: 16px 0 22px;
  text-align: center;
  color: #b7a48c;
  font-size: 13px;
  background: #0e0b08;
  border-top: 1px solid rgba(255, 176, 32, 0.12);
}

.legal strong {
  color: #ffd27a;
  font-weight: 600;
}

body.download-modal-open {
  overflow: hidden;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.download-modal[hidden] {
  display: none;
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 13, 9, 0.82);
  backdrop-filter: blur(6px);
}

.download-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 880px);
  overflow: auto;
  padding: 28px 24px 22px;
  text-align: center;
  background: var(--card);
  border: 1px solid #5c4030;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 140, 0, 0.12);
}

.download-modal__brand {
  font-family: Manrope, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.download-modal__brand-load {
  color: var(--yellow);
}

.download-modal__title {
  margin: 0 0 12px;
  font-family: Manrope, sans-serif;
  font-size: 26px;
}

.download-modal__password {
  margin: 0 0 14px;
  color: rgba(255, 248, 238, 0.8);
}

.download-modal__password strong {
  color: #fff;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(255, 176, 32, 0.18);
  border: 1px solid rgba(255, 176, 32, 0.35);
}

.download-modal__guide {
  margin: 0 0 16px;
  padding: 16px;
  text-align: left;
  background: rgba(16, 13, 9, 0.55);
  border: 1px solid #5c4030;
  border-radius: 14px;
}

.download-modal__phase + .download-modal__phase {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(92, 64, 48, 0.85);
}

.download-modal__phase-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.download-modal__phase-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(135deg, #ffe14a, #ff9a1a);
}

.download-modal__phase-title {
  margin: 0;
  font-size: 17px;
}

.download-modal__phase-text,
.download-modal__steps li {
  color: rgba(255, 248, 238, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.download-modal__phase-text {
  margin: 0;
}

.download-modal__steps {
  margin: 0;
  padding-left: 1.4rem;
}

.download-modal__steps li {
  margin: 0 0 10px;
}

.download-modal__steps li::marker {
  color: var(--orange);
  font-weight: 700;
}

.download-modal__kbd,
.download-modal__code {
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: #ffe7a8;
  background: rgba(255, 176, 32, 0.18);
  border: 1px solid rgba(255, 176, 32, 0.35);
}

.download-modal__countdown {
  margin: 0 0 16px;
  color: var(--yellow);
  font-weight: 600;
}

.download-modal__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.download-modal__btn {
  min-width: 140px;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 16px Inter, sans-serif;
  cursor: pointer;
}

.download-modal__btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, #ffe14a, #ff7a00);
}

.download-modal__btn--ghost {
  color: #fff;
  background: transparent;
  border-color: #5c4030;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-art {
    min-height: 340px;
    order: -1;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .social,
  .footer-brand,
  .download-card {
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1120px, calc(100% - 28px));
  }

  .brand-name {
    font-size: 20px;
  }

  .btn-label {
    display: none;
  }

  .nav .btn {
    width: 48px;
    padding: 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .trust {
    flex-wrap: wrap;
  }

  .hero-art {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
