:root {
  --background: #070810;
  --background-raised: #0e101d;
  --panel: rgba(17, 20, 35, 0.82);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #f5f6fb;
  --muted: #a2a7ba;
  --red: #fb354b;
  --red-dark: #b71831;
  --purple: #7537ff;
  --cyan: #26ddeb;
  --green: #42f3a3;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
  --radius: 24px;
  --max: 1240px;
  font-family: "Segoe UI", "Arial", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(117, 55, 255, 0.2), transparent 32%),
    radial-gradient(circle at 13% 26%, rgba(251, 53, 75, 0.15), transparent 32%),
    linear-gradient(145deg, #070810 0%, #090a14 42%, #05060b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 28%, transparent 83%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.is-hidden {
  display: none !important;
}

.site-header {
  width: min(var(--max), calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -1px;
  color: #fff;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  box-shadow: 0 0 30px rgba(251, 53, 75, 0.3);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  letter-spacing: 0.12em;
  font-size: 16px;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.18em;
  font-size: 10px;
}

.header-actions,
.account-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.text-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 10px 12px;
  font-weight: 600;
}

.text-button:hover {
  color: var(--text);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 22px;
  color: #fff;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: linear-gradient(125deg, var(--red), #c81d38);
  box-shadow: 0 12px 32px rgba(251, 53, 75, 0.25);
}

.button-primary:hover {
  box-shadow: 0 17px 36px rgba(251, 53, 75, 0.4);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.button-small {
  min-height: 44px;
  padding: 0 17px;
  font-size: 14px;
}

.account-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 16px;
  padding: 9px 11px 9px 15px;
}

.account-label,
.account-name,
.verification-status {
  margin: 0;
}

.account-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.account-name {
  margin-top: 3px;
  font-weight: 700;
}

.verification-status {
  margin-top: 2px;
  color: var(--green);
  font-size: 12px;
}

.verification-status.unverified {
  color: #ffd057;
}

main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 635px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 54px;
  padding: 58px 0 52px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #ff5366;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  line-height: 0.94;
  font-size: clamp(55px, 6.2vw, 82px);
  letter-spacing: -0.065em;
  font-weight: 900;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(98deg, #fff 8%, #ff5366 62%, #fa2d44 100%);
  background-clip: text;
}

.hero-description {
  max-width: 580px;
  margin: 25px 0 33px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.development-note {
  max-width: 600px;
  margin-top: 31px;
  padding: 18px 20px;
  line-height: 1.55;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid rgba(255, 208, 87, 0.24);
  border-radius: 16px;
  background: rgba(255, 208, 87, 0.055);
}

.development-note strong {
  display: block;
  color: #ffe096;
  margin-bottom: 4px;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.pc-stage {
  width: min(475px, 100%);
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 44px;
  background:
    radial-gradient(circle at 50% 50%, rgba(117, 55, 255, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.016);
}

.pc-stage::after {
  content: "";
  position: absolute;
  bottom: 50px;
  width: 70%;
  height: 20px;
  border-radius: 50%;
  background: rgba(38, 221, 235, 0.22);
  filter: blur(18px);
}

.pc-case {
  position: relative;
  width: 228px;
  height: 314px;
  border-radius: 11px;
  background: linear-gradient(145deg, #151820, #05070c);
  box-shadow: 0 38px 75px rgba(0,0,0,0.65), 0 0 55px rgba(117,55,255,0.13);
  border: 2px solid #242a35;
}

.pc-glass {
  position: absolute;
  inset: 12px 29px 12px 12px;
  overflow: hidden;
  border: 1px solid rgba(38, 221, 235, 0.32);
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(30, 36, 50, 0.74), rgba(6, 10, 17, 0.95));
}

.fan {
  position: absolute;
  right: 17px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 4px solid rgba(38, 221, 235, 0.75);
  box-shadow: inset 0 0 20px rgba(38, 221, 235, 0.65), 0 0 21px rgba(38, 221, 235, 0.33);
}

.fan::before,
.fan::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 2px solid rgba(117, 55, 255, 0.8);
}

.fan-one {
  top: 33px;
}

.fan-two {
  top: 111px;
  border-color: rgba(251, 53, 75, 0.8);
  box-shadow: inset 0 0 20px rgba(251, 53, 75, 0.6), 0 0 21px rgba(251, 53, 75, 0.31);
}

.gpu {
  position: absolute;
  left: 19px;
  right: 12px;
  bottom: 62px;
  height: 34px;
  border-radius: 5px;
  background: linear-gradient(90deg, #171b24, #2e3540);
  border-left: 3px solid var(--purple);
  box-shadow: -2px 0 16px rgba(117, 55, 255, 0.8);
}

.pc-power {
  position: absolute;
  top: 16px;
  right: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px var(--green);
}

.digital-hand {
  position: absolute;
  right: 71px;
  top: 215px;
  width: 130px;
  height: 125px;
  transform: rotate(-12deg);
  filter: drop-shadow(0 15px 25px rgba(251,53,75,0.3));
}

.hand-palm {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 86px;
  height: 78px;
  border-radius: 30px 15px 38px 32px;
  background: linear-gradient(145deg, #ff5366, #ad1029);
}

.finger {
  position: absolute;
  left: 0;
  height: 17px;
  border-radius: 15px 0 0 15px;
  background: linear-gradient(90deg, #ff5366, #dc203b);
}

.finger-one { top: 29px; width: 80px; }
.finger-two { top: 51px; width: 89px; }
.finger-three { top: 73px; width: 83px; }
.finger-four { top: 95px; left: 14px; width: 66px; }

.pc-status {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 22px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  color: #aeb9c7;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  background: #111521;
  border: 1px solid rgba(255,255,255,0.08);
}

.pc-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd057;
  box-shadow: 0 0 11px #ffd057;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 52px;
}

.stat-card {
  min-height: 118px;
  padding: 22px 24px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 18px;
}

.stat-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.stat-card.accent {
  border-color: rgba(251, 53, 75, 0.26);
  background: linear-gradient(135deg, rgba(251,53,75,0.13), rgba(17,20,35,0.86));
}

.content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  margin-bottom: 66px;
}

.prize-card {
  min-height: 275px;
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.grand-prize {
  border-color: rgba(251, 53, 75, 0.2);
  background:
    radial-gradient(circle at 90% 5%, rgba(251, 53, 75, 0.16), transparent 34%),
    var(--panel);
}

.card-label {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 12px;
  color: #ff5366;
}

.prize-card h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.prize-card p:not(.card-label) {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.66;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.tag-row span {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  color: #d8dbea;
  font-size: 12px;
}

.how-it-works {
  margin-bottom: 64px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 33px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 44px);
  letter-spacing: -0.055em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.steps article {
  padding: 27px 24px;
  min-height: 218px;
  border-radius: 19px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.075);
}

.steps span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.steps h3 {
  margin: 19px 0 10px;
  font-size: 19px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 14px;
}

.security-banner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 34px;
  padding: 33px 36px;
  margin-bottom: 66px;
  border: 1px solid rgba(38, 221, 235, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(38,221,235,0.07), rgba(117,55,255,0.07));
}

.security-banner h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.045em;
}

.security-banner > p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 13px;
}

.auth-dialog {
  width: min(506px, calc(100% - 32px));
  max-height: min(94vh, 760px);
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 25px;
  padding: 0;
  color: var(--text);
  background: #10131f;
  box-shadow: 0 34px 90px rgba(0,0,0,0.7);
}

.auth-dialog::backdrop {
  background: rgba(3,4,8,0.82);
  backdrop-filter: blur(8px);
}

.auth-shell {
  position: relative;
  padding: 37px 37px 34px;
}

.auth-shell h2 {
  margin: 0 38px 10px 0;
  letter-spacing: -0.045em;
  font-size: 30px;
}

.auth-subtitle {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
  margin: 0 0 27px;
}

.dialog-close {
  position: absolute;
  top: 19px;
  right: 19px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 13px;
  background: rgba(255,255,255,0.05);
  margin-bottom: 26px;
}

.auth-tab {
  min-height: 43px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.auth-tab.is-active {
  color: var(--text);
  background: rgba(255,255,255,0.1);
}

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

.auth-form label:not(.checkbox-line) {
  color: #e5e8f4;
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  color: var(--text);
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.2);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(251,53,75,0.75);
  box-shadow: 0 0 0 3px rgba(251,53,75,0.16);
}

.auth-form small {
  margin: -4px 0 5px;
  color: var(--muted);
  line-height: 1.45;
}

.checkbox-line {
  display: flex;
  gap: 11px;
  margin: 12px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkbox-line input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.full-width {
  width: 100%;
  margin-top: 12px;
}

.reset-link {
  border: 0;
  margin-top: 11px;
  padding: 8px;
  color: #b8bdcf;
  background: transparent;
  font-size: 13px;
}

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

.auth-message {
  min-height: 22px;
  margin: 21px 0 0;
  color: var(--green);
  line-height: 1.5;
  font-size: 13px;
}

.auth-message.error {
  color: #ff8290;
}

@media (max-width: 1020px) {
  .site-header {
    padding: 17px 0;
    flex-wrap: wrap;
  }

  .account-panel {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 55px;
  }

  .hero-visual {
    order: -1;
  }

  .stats,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid,
  .security-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max), calc(100% - 30px));
  }

  .brand-copy {
    display: none;
  }

  .header-actions .text-button {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 36px 0 39px;
  }

  .pc-stage {
    width: 100%;
  }

  .pc-case {
    transform: scale(0.84);
  }

  .digital-hand {
    right: 42px;
    transform: scale(0.84) rotate(-12deg);
  }

  .stats,
  .steps {
    grid-template-columns: 1fr;
  }

  .prize-card,
  .security-banner {
    padding: 25px 22px;
  }

  .auth-shell {
    padding: 31px 22px 28px;
  }

  .account-panel,
  .account-buttons {
    align-items: flex-start;
    flex-direction: column;
  }
}
