:root {
  --bg: #070817;
  --bg-soft: #0b0d22;
  --panel: rgba(8, 9, 28, 0.82);
  --panel-strong: rgba(7, 8, 24, 0.94);
  --text: #f3f0ff;
  --muted: #aaa8c6;
  --line: rgba(137, 111, 255, 0.30);
  --violet: #7550ff;
  --violet-bright: #967bff;
  --blue: #56b9ff;
  --success: #78e8a5;
  --error: #ff8f9f;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 30%, rgba(74, 46, 170, 0.14), transparent 38rem),
    var(--bg);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

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

button, input { font: inherit; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(to bottom, rgba(4,5,18,.88), rgba(4,5,18,.48));
  backdrop-filter: blur(12px);
}

.brand {
  margin-right: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .16em;
  text-shadow: 0 0 20px rgba(113, 86, 255, .45);
}

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

.site-nav a {
  color: #d8d5e8;
  font-size: .9rem;
  transition: color .2s ease;
}

.site-nav a:hover { color: #fff; }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.5rem;
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    url("../assets/images/HeroBackground.jpg") center center / cover no-repeat,
    linear-gradient(135deg, #171238, #071426);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(3,4,15,.12) 25%, rgba(4,5,18,.22) 55%, rgba(5,6,18,.94) 100%),
    linear-gradient(to right, rgba(4,5,18,.28), transparent 48%, rgba(4,5,18,.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 160px 0 82px;
}

.hero-copy {
  width: min(590px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #a999ff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .22em;
}

h1, h2, h3 { margin-top: 0; }

h1 {
  margin-bottom: 16px;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.025em;
  text-shadow: 0 3px 28px rgba(0,0,0,.7);
}

.hero-lead {
  max-width: 590px;
  margin: 0;
  color: #ddd9eb;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  transition: transform .15s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: .58;
  transform: none;
}

.button-primary {
  color: #fff;
  border-color: rgba(173, 149, 255, .72);
  background: linear-gradient(135deg, #5630d4, #734bea);
  box-shadow: 0 0 28px rgba(103, 67, 231, .20), inset 0 1px rgba(255,255,255,.12);
}

.button-primary:hover { background: linear-gradient(135deg, #6440df, #8060ee); }

.button-secondary {
  color: #eeeaff;
  border-color: rgba(195,185,255,.28);
  background: rgba(9,10,30,.58);
  backdrop-filter: blur(8px);
}

.button-full { width: 100%; }

.section {
  padding: 100px 24px;
  border-top: 1px solid rgba(255,255,255,.045);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
  text-align: center;
}

.section h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

.intro {
  background: radial-gradient(circle at 50% 0%, rgba(89, 57, 190, .12), transparent 34rem);
}

.register-section {
  position: relative;
  background:
    radial-gradient(circle at 78% 50%, rgba(76, 42, 183, .16), transparent 30rem),
    var(--bg-soft);
}

.register-layout {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 480px);
  align-items: center;
  gap: clamp(50px, 9vw, 130px);
}

.register-copy p:last-child { max-width: 520px; }

.arcane-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15,17,47,.94), rgba(7,8,25,.94));
  box-shadow: 0 24px 80px rgba(0,0,0,.34), 0 0 55px rgba(90, 54, 214, .08);
}

.arcane-card::before,
.arcane-card::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  pointer-events: none;
}

.arcane-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--violet-bright);
  border-left: 2px solid var(--violet-bright);
}

.arcane-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  color: #d9d5eb;
  font-size: .82rem;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: white;
  outline: none;
  border: 1px solid rgba(158,145,213,.24);
  border-radius: 2px;
  background: rgba(3,4,17,.62);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus {
  border-color: rgba(143,116,255,.82);
  box-shadow: 0 0 0 3px rgba(111,78,236,.12);
}

.form-status {
  min-height: 24px;
  margin-top: 15px;
  font-size: .87rem;
  line-height: 1.45;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }
.form-status.info { color: #c7c0e9; }

.form-footnote {
  margin: 8px 0 0;
  text-align: center;
  font-size: .78rem;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 45px;
  text-align: center;
}

.download-section {
  background: radial-gradient(circle at 50% 100%, rgba(44,103,181,.10), transparent 34rem);
}

.download-grid {
  max-width: 850px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.download-card {
  min-height: 270px;
  padding: 34px;
  text-align: center;
  border: 1px solid rgba(145,127,221,.20);
  background: linear-gradient(145deg, rgba(14,16,43,.8), rgba(7,8,24,.8));
}

.platform-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(151,129,255,.44);
  transform: rotate(45deg);
  color: #c9beff;
  font-size: .72rem;
  font-weight: 800;
}

.platform-mark::first-line { transform: rotate(-45deg); }

.download-card h3 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.coming-soon {
  display: inline-block;
  margin-top: 14px;
  color: #9c8bf0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-footer {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px max(24px, calc((100vw - var(--max)) / 2));
  color: #77758e;
  border-top: 1px solid rgba(255,255,255,.05);
  background: #050612;
  font-size: .8rem;
}

.site-footer a:hover { color: #b8b2d4; }

@media (max-width: 760px) {
  .site-header { height: 64px; padding-inline: 20px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(5,6,20,.97);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 4px; }
  .hero {
    min-height: 760px;
    background-position: 50% center;
  }
  .hero-content { width: calc(100% - 36px); padding-bottom: 52px; }
  .hero-copy { margin-top: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .section { padding: 74px 18px; }
  .register-layout { grid-template-columns: 1fr; gap: 30px; }
  .arcane-card { padding: 24px 20px; }
  .download-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
