:root {
  --bg: #061018;
  --bg-soft: #0b1d29;
  --card: #102938;
  --text: #f3fdfa;
  --muted: #a9c4cc;
  --accent: #34e2c8;
  --accent-2: #9df3e0;
  --accent-rgb: 52, 226, 200;
  --line: rgba(157, 243, 224, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Archivo", sans-serif;
  min-height: 100vh;
  background:#000000;
  display: flex;
  flex-direction: column;
}

.grid-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.11;
}

.topbar,
.stage,
.footer {
  width: min(1250px, 94vw);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.join-link {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.73rem;
  justify-self: end;
}

.join-link strong {
  color: var(--text);
}

.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(2.35rem, 7vw, 4.4rem);
}

.stage {
  display: grid;
  gap: 1rem;
  flex: 1;
}

.hero-wrap {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(8, 17, 24, 0.95);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.hero-slide {
  position: relative;
  min-height: 510px;
  background-size: cover;
  background-position: center;
  transition: opacity 420ms ease;
}

.hero-slide.fade {
  opacity: 0.35;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 14, 0.52) 0 55%, rgba(3, 10, 14, 0.35) 100%),
    linear-gradient(to top, rgba(3, 10, 14, 0.58), rgba(3, 10, 14, 0.08));
}

.hero-copy {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 6vw, 4rem);
  max-width: 44ch;
  z-index: 2;
  animation: rise 600ms ease;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  font-size: 0.72rem;
}

.hero-copy h1 {
  margin: 0.4rem 0 0.6rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.01em;
}

.hero-copy p {
  margin: 0;
  color: #e2f4f0;
}

.hero-button {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: #04110e;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  box-shadow: 0 14px 30px rgba(var(--accent-rgb), 0.22);
}

.login-card {
  position: absolute;
  z-index: 3;
  right: clamp(0.75rem, 2vw, 1.4rem);
  top: clamp(0.75rem, 2vw, 1.4rem);
  width: min(360px, calc(100% - 1.5rem));
  border-radius: 18px;
  border: 1px solid rgba(157, 243, 224, 0.22);
  background: rgba(7, 18, 25, 0.84);
  backdrop-filter: blur(8px);
  padding: 1rem;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.38);
  animation: rise 650ms ease;
}

.login-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.login-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

#loginForm {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

#loginForm label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#loginForm input[type="text"],
#loginForm input[type="password"] {
  height: 2.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0 0.75rem;
  font-family: "Archivo", sans-serif;
}

#loginForm input::placeholder {
  color: #86a7b0;
}

#loginButton {
  margin-top: 0.3rem;
  height: 2.7rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #03110e;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.carousel-controls {
  background: rgba(6, 15, 21, 0.98);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.8rem;
}

.carousel-controls button {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #112331;
  color: #fff;
  cursor: pointer;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: #52717a;
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2);
}

.market-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.market-strip article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 1rem;
  transform: translateY(12px);
  opacity: 0;
  animation: rise 650ms ease forwards;
}

.market-strip article:nth-child(2) {
  animation-delay: 120ms;
}

.market-strip article:nth-child(3) {
  animation-delay: 220ms;
}

.market-strip h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-2);
  font-size: 1.3rem;
}

.market-strip p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.footer {
  text-align: center;
  color: #98b4ba;
  font-size: 0.84rem;
  padding: 0.9rem 0 1.15rem;
}

@media (min-width: 900px) {
  .hero-slide {
    min-height: 600px;
  }

  .market-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.35rem;
  }

  .join-link {
    justify-self: center;
  }

  .hero-slide {
    min-height: 690px;
  }

  .hero-copy {
    top: 6vw;
  }

  .login-card {
    top: auto;
    bottom: 1rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}