:root {
  --bg-image: url("https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=1800&q=80");
  --overlay: rgba(0, 0, 0, 0.45);
  --text-light: #ffffff;
  --panel-bg: rgba(10, 10, 18, 0.92);
  --brand-accent: #7c3aed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-light);
  background: #08080e;
}

.hero {
  min-height: 100vh;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-emblem {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 650;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.menu-root,
.dropdown,
.sub-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-root {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item {
  position: relative;
}

.menu-button,
.submenu-button,
.linkish {
  background: transparent;
  border: none;
  color: var(--text-light);
  font: inherit;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
}

.menu-button:hover,
.submenu-button:hover,
.linkish:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--panel-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  display: none;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
}

.menu-item.open > .dropdown {
  display: block;
}

.dropdown > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown > li:last-child {
  border-bottom: none;
}

.dropdown a,
.dropdown .submenu-button,
.dropdown .linkish {
  width: 100%;
  text-align: left;
  display: block;
  padding: 10px 14px;
  color: #f7f7ff;
  text-decoration: none;
}

.submenu-item {
  position: relative;
}

.sub-dropdown {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 220px;
  background: #151523;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: none;
}

.submenu-item.open > .sub-dropdown {
  display: block;
}

.hero-content {
  margin: auto;
  max-width: 760px;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.hero-content p {
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 24px;
}

#cta-account {
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.98rem;
}

#cta-account:hover {
  filter: brightness(1.1);
}

.auth-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  z-index: 6;
}

.auth-card {
  width: min(430px, 92vw);
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 18px;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: transparent;
  color: #d1d1e8;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.field-group {
  margin-top: 12px;
}

.field-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="password"],
.field-group input[type="tel"] {
  width: 100%;
  background: #0c0c16;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 10px;
}

#auth-submit {
  margin-top: 14px;
  width: 100%;
  border: none;
  background: #7c3aed;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}

.auth-status {
  margin-top: 10px;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #facc15;
}

.thank-you-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0b0b14;
}

.thank-you-card {
  width: min(560px, 95vw);
  text-align: center;
  padding: 30px 22px;
  border-radius: 14px;
  background: #141424;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.thank-you-card h1 {
  margin-top: 0;
  margin-bottom: 12px;
}

.thank-you-card p {
  margin-bottom: 20px;
  line-height: 1.5;
}

.thank-you-btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  background: #7c3aed;
  color: #fff;
}

footer {
  text-align: center;
  padding: 8px 10px;
  background: #07070d;
}

footer small {
  font-size: 0.72rem;
  opacity: 0.75;
}

.hidden {
  display: none !important;
}

@media (max-width: 840px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .menu-root {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .dropdown,
  .sub-dropdown {
    position: static;
    margin-top: 6px;
  }
}
