:root {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, .72);
  --soft: rgba(245, 245, 247, .54);
  --line: rgba(255, 255, 255, .14);
  --panel: rgba(16, 13, 24, .74);
  --violet: #a855f7;
  --violet-deep: #5b21b6;
  --cyan: #34c759;
  --blue: #0071e3;
  --gold: #ffd700;
  --gold-deep: #b8860b;
  --danger: #ff6f91;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(139, 92, 246, .18), transparent 58%),
    radial-gradient(ellipse 70% 50% at 80% 8%, rgba(168, 85, 247, .12), transparent 60%),
    #050507;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }

.hero,
.experience,
.market-ticker,
.cinema,
.register-section {
  scroll-margin-top: 92px;
}

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

.reveal.in {
  opacity: 1;
  transform: none;
}

.register-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  width: min(1080px, calc(100% - 28px));
  min-height: 56px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(7, 7, 10, .58);
  backdrop-filter: blur(24px) saturate(165%);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.brand strong {
  margin-left: 1px;
}

.pro-gold {
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #fff8dc 0%, var(--gold) 28%, #daa520 56%, var(--gold-deep) 76%, #fff2a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, .32));
}

.pro-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(255,255,255,.72) 50%, transparent 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shine 4s ease-in-out infinite;
  pointer-events: none;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(145deg, #7c3aed, #0f0b20 62%, #17c9b6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 0 26px rgba(139, 92, 246, .35);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent, rgba(52, 199, 89, .42), transparent, rgba(255, 215, 0, .34), transparent);
  animation: orbit 6s linear infinite;
}

.register-nav nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 30px);
}

.register-nav nav a,
.nav-login {
  color: rgba(245, 245, 247, .78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
}

.register-nav nav a:hover,
.nav-login:hover { color: #fff; }

.nav-login {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  padding: 120px 20px 76px;
  overflow: hidden;
  isolation: isolate;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -3;
  object-fit: cover;
  opacity: .82;
  filter: saturate(1.08) contrast(1.08);
}

.hero-shade {
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(139,92,246,.42), transparent 62%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(168,85,247,.34), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 92%, rgba(91,33,182,.42), transparent 65%),
    linear-gradient(180deg, rgba(0, 0, 0, .58), rgba(15, 5, 32, .2) 32%, rgba(0, 0, 0, .92) 100%);
}

.hero-copy {
  width: min(980px, 100%);
  text-align: center;
}

.eyebrow,
.section-copy span,
.cinema-copy span,
.register-intro span {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: .94;
  letter-spacing: -.06em;
  font-weight: 900;
}

.hero p {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.primary-link,
.secondary-link,
.primary-action {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-decoration: none;
  font: inherit;
  font-size: 16px;
  font-weight: 860;
  cursor: pointer;
}

.primary-link,
.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #7c3aed);
  box-shadow: 0 18px 50px rgba(168, 85, 247, .36);
}

.secondary-link {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

.primary-link:hover,
.secondary-link:hover,
.primary-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 60px rgba(168, 85, 247, .46);
}

.experience {
  padding: clamp(78px, 10vw, 140px) 20px;
  background:
    radial-gradient(ellipse 50% 34% at 50% 0%, rgba(168, 85, 247, .11), transparent 72%),
    #f5f5f7;
  color: #1d1d1f;
}

.section-copy {
  width: min(980px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.section-copy span { color: #7c3aed; }

.section-copy h2,
.cinema-copy h2,
.register-intro h2 {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.section-copy p,
.cinema-copy p,
.register-intro p {
  margin: 18px auto 0;
  max-width: 720px;
  color: #66666d;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.showcase-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.showcase-grid article {
  min-height: 270px;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.showcase-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(124, 58, 237, .16);
}

.showcase-grid small {
  display: inline-block;
  font-weight: 900;
  letter-spacing: .1em;
  background: linear-gradient(135deg, #daa520, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showcase-grid h3 {
  margin: 54px 0 10px;
  color: #1d1d1f;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.04em;
}

.showcase-grid p {
  margin: 0;
  color: #6e6e73;
  line-height: 1.5;
}

.market-ticker {
  overflow: hidden;
  padding: 15px 0;
  background: #fafafa;
  border-top: 1px solid #ededf2;
  border-bottom: 1px solid #ededf2;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-slide 42s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6e6e73;
  font-size: 13px;
}

.ticker-track strong { color: #1d1d1f; font-weight: 700; }
.ticker-track b { font-weight: 850; }
.ticker-track .up { color: #34c759; }
.ticker-track .down { color: #ff453a; }

.cinema {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(78px, 10vw, 140px) clamp(20px, 6vw, 92px);
  background:
    radial-gradient(ellipse 70% 45% at 20% 50%, rgba(168, 85, 247, .16), transparent 62%),
    #000;
}

.cinema-frame {
  aspect-ratio: 16 / 10;
  border-radius: 34px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 38px 120px rgba(139, 92, 246, .28);
  transform: translateZ(0);
  transition: transform .35s ease, box-shadow .35s ease;
}

.cinema-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 44px 130px rgba(168, 85, 247, .34);
}

.cinema-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.54) saturate(1.1);
  display: block;
}

.cinema-copy p { color: var(--muted); }

.register-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 500px);
  align-items: start;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(82px, 10vw, 140px) clamp(20px, 6vw, 92px);
  background:
    radial-gradient(ellipse 70% 45% at 75% 12%, rgba(168, 85, 247, .18), transparent 64%),
    linear-gradient(180deg, #08070d 0%, #130d22 100%);
}

.register-intro {
  position: sticky;
  top: 110px;
}

.register-intro p { color: var(--muted); }

.register-intro ul {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.register-intro li {
  color: rgba(245, 245, 247, .82);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.register-intro li:hover {
  transform: translateX(4px);
  border-color: rgba(255, 215, 0, .34);
  background: rgba(255, 215, 0, .07);
}

.register-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, .22);
  border-radius: 34px;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  box-shadow: 0 30px 90px rgba(124, 58, 237, .2), 0 28px 90px rgba(0, 0, 0, .42);
  backdrop-filter: blur(22px);
}

.register-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(168,85,247,.16) 0%, transparent 60%);
  pointer-events: none;
}

.register-panel > * {
  position: relative;
}

.panel-head h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.05em;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

label span {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  background: rgba(0, 0, 0, .28);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:hover {
  border-color: rgba(255, 255, 255, .24);
}

input:focus,
button:focus-visible,
a:focus-visible {
  outline: 4px solid rgba(139, 92, 246, .28);
  outline-offset: 2px;
  border-color: rgba(139, 92, 246, .8);
}

.primary-action {
  width: 100%;
  margin-top: 6px;
}

button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.message {
  min-height: 24px;
  margin-top: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.message.error { color: var(--danger); }
.message.success { color: var(--cyan); }

.auth-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: center;
  color: var(--muted);
  line-height: 1.45;
}

.auth-links a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.floating-register {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 19;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #7c3aed);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .34), 0 16px 42px rgba(168, 85, 247, .32);
  text-decoration: none;
  font-weight: 900;
}

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes gold-shine { 0%,100% { opacity: 0; } 46%,54% { opacity: 1; } }
@keyframes ticker-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

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

@media (max-width: 860px) {
  .register-nav {
    grid-template-columns: 1fr auto;
    width: calc(100% - 20px);
  }

  .register-nav nav { display: none; }

  .hero {
    align-items: end;
    padding: 104px 16px 52px;
  }

  .showcase-grid,
  .cinema,
  .register-section {
    grid-template-columns: 1fr;
  }

  .cinema,
  .register-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .register-intro {
    position: static;
  }
}

@media (max-width: 540px) {
  .brand span:last-child {
    max-width: 154px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero h1 {
    font-size: clamp(42px, 16vw, 64px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .showcase-grid article {
    min-height: 220px;
    padding: 24px;
  }

  .showcase-grid h3 {
    margin-top: 36px;
  }

  .cinema-frame,
  .register-panel {
    border-radius: 24px;
  }

  .auth-links {
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }

  .floating-register {
    display: none;
  }
}
