:root {
  --bg: #0b0c0f;
  --panel: #0f1115;
  --muted: #151822;
  --text: #f5f7fb;
  --subtle: #aeb7c6;
  --primary: #7c5cff;
  --primary-2: #b095ff;
  --ring: #2b2f3a;
  --ok: #27c498;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 8px 16px rgba(124, 92, 255, .12);
  --radius: 1.25rem;
  --radius-sm: .9rem;
  --radius-lg: 2rem;
  --container: 1200px;
}

* {
  box-sizing: border-box
}

html, body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: linear-gradient(180deg, var(--bg), #090a0d 60%, #0a0b0e);
  color: var(--text);
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 1rem
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .7rem;
  border: 1px solid #2a2f3a;
  background: #121420;
  border-radius: 999px;
  color: #cbd4e6;
  font-size: .875rem
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.1rem;
  border-radius: .9rem;
  border: 1px solid #2a2f3a;
  background: linear-gradient(180deg, #1a1f2d, #141827);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow)
}

.btn.primary {
  background: linear-gradient(180deg, var(--primary), #5f3ffd);
  border-color: #6d51ff
}

.btn.ghost {
  background: transparent
}

.input {
  height: 3rem;
  padding: .75rem 1rem;
  border-radius: .8rem;
  border: 1px solid var(--ring);
  background: #0d0f15;
  color: #e8eefc;
  outline: none;
  width: 100%
}

.input:focus {
  border-color: #4b5164;
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .15)
}

.pill {
  border-radius: 999px
}

.muted {
  color: var(--subtle)
}

.sep {
  border-top: 1px solid #1a1e28
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative
}

.nav a {
  font-size: .95rem;
  color: #c7cee0
}

.nav .links {
  display: none;
  gap: 1.25rem
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700
}

.brand .logo {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  border-radius: .4rem;
  background: linear-gradient(135deg, var(--primary), #13b0ff);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .2) inset
}

header.sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(10, 11, 14, .5);
  border-bottom: 1px solid #161a24
}

.hero {
  position: relative;
  overflow: hidden
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.hero-bg::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  translate: -50% 0;
  width: 1200px;
  height: 600px;
  filter: blur(80px);
  border-radius: 999px;
  background: radial-gradient(60% 60% at 50% 0, rgba(124, 92, 255, .25), transparent 70%)
}

.hero-inner {
  padding: 6rem 0 4rem;
  text-align: center
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.75rem);
  line-height: 1.1;
  margin: 0
}

.hero p {
  margin: 1rem auto 0;
  max-width: 800px;
  font-size: 1.1rem;
  color: var(--subtle)
}

.hero .cta {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
  justify-content: center
}

.hero .cta .row {
  display: flex;
  gap: .75rem;
  width: min(100%, 720px)
}

.brand-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 2rem
}

.brand-chip {
  border: 1px dashed #283048;
  border-radius: .9rem;
  padding: .7rem 1rem;
  color: #c6cbe0;
  background: #0f1220
}

section {
  padding: 4.5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 600px
}

.section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto
}

.section-title h2 {
  font-size: clamp(1.6rem, 2.2vw+1rem, 2.4rem);
  margin: .3rem 0
}

.section-title p {
  color: var(--subtle)
}

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

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

.card {
  background: var(--panel);
  border: 1px solid #1a1e28;
  border-radius: var(--radius);
  padding: 1.1rem
}

.card.raise {
  box-shadow: var(--shadow);
  border-color: #2a234a
}

.card-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .5rem
}

.icon {
  inline-size: 2.25rem;
  block-size: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: .8rem;
  background: rgba(124, 92, 255, .12);
  color: #d9d0ff
}

.card-title {
  font-weight: 600
}

.card-desc {
  color: var(--subtle);
  font-size: .98rem
}

.steps {
  display: grid;
  gap: .75rem
}

.step {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid #1a1e28;
  border-radius: .9rem;
  background: #0e111a
}

.step .small {
  color: var(--subtle);
  font-size: .8rem
}

.logo-card {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border: 1px dashed #283048;
  border-radius: var(--radius-sm);
  color: #c9d0ea;
  background: #0f1220
}

.tabs {
  display: grid;
  place-items: center;
  margin-top: 1rem
}

.tab-switch {
  display: grid;
  grid-auto-flow: column;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid #24293a;
  background: #111421;
  border-radius: 999px
}

.tab-switch button {
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #cbd1e8;
  cursor: pointer
}

.tab-switch button[aria-selected="true"] {
  background: linear-gradient(180deg, #1a1f2d, #131827);
  color: #fff;
  border: 1px solid #2a2f3a
}

.plan {
  display: flex;
  flex-direction: column
}

.plan .price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-top: .5rem
}

.plan .price .value {
  font-size: 2rem;
  font-weight: 700
}

.plan .features {
  margin-top: .5rem
}

.plan .features li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .95rem;
  padding: .25rem 0
}

.popular {
  display: inline-block;
  background: #1b1531;
  border: 1px solid #2e2453;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  color: #dcd2ff
}

.avatar {
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: 50%;
  background: #23273a
}

.band {
  background: linear-gradient(180deg, rgba(124, 92, 255, .08), rgba(124, 92, 255, .02));
  border-block: 1px solid #15192a
}

.accordion {
  max-width: 800px;
  margin: 1rem auto 0 auto
}

.acc-item {
  border: 1px solid #1a1e28;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f121a
}

.acc-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  background: transparent;
  color: #e9efff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 1.1rem
}

.acc-panel.open {
  padding: 0 1.1rem 1.1rem
}

footer {
  border-top: 1px solid #15192a
}

.mt-1 {
  margin-top: .25rem
}

.mt-2 {
  margin-top: .5rem
}

.mt-3 {
  margin-top: .75rem
}

.mt-4 {
  margin-top: 1rem
}

.mt-6 {
  margin-top: 1.5rem
}

.mt-8 {
  margin-top: 2rem
}

.mb-2 {
  margin-bottom: .5rem
}

.mb-3 {
  margin-bottom: .75rem
}

.mb-4 {
  margin-bottom: 1rem
}

.row {
  display: flex;
  align-items: center;
  gap: .75rem
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between
}

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

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

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #2a2f3a;
  background: #111421;
  border-radius: .6rem;
  color: #e6eaff;
  cursor: pointer
}

.desktop-actions {
  display: none
}

header .mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  background: #0b0d14;
  border-bottom: 1px solid #161a24;
  padding: .75rem 1rem;
  z-index: 39
}

header .mobile-menu a {
  display: block;
  color: #cbd1e8;
  border-top: 1px solid #131829
}

header .mobile-menu a:first-child {
  border-top: 0
}

header .mobile-menu.open {
  display: block
}

@media (min-width:850px) {
  .menu-btn {
    display: none
  }

  .links {
    display: flex
  }

  .desktop-actions {
    display: flex
  }

  header .mobile-menu {
    display: none !important
  }
}

@media (max-width:520px) {
  .hero .cta .row {
    flex-direction: column
  }
}

@media (max-width:480px) {
  .brand-bar {
    grid-template-columns: 1fr
  }
}

.logos {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr))
}

@media (max-width:1100px) {
  .logos {
    grid-template-columns: repeat(4, 1fr)
  }
}

@media (max-width:900px) {
  .logos {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:640px) {
  .logos {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:400px) {
  .logos {
    grid-template-columns: 1fr
  }
}

@media (max-width:640px) {
  section {
    padding: 3rem 0
  }

  .hero-inner {
    padding: 4rem 0 3rem
  }
}

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

  .reveal {
    transition: none
  }
}

@media (max-width:640px) {
  .card.raise {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25)
  }
}

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: .6rem .7rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #161a27, #0f1220);
  border: 1px solid #21263a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  gap: .6rem;
  z-index: 50;
  transform: translateY(calc(100% + 24px));
  transition: transform .25s ease
}

.sticky-cta.show {
  transform: translateY(0)
}

.sticky-cta .title {
  font-weight: 600
}

.sticky-cta .spacer {
  flex: 1
}

.sticky-cta .close {
  width: 36px;
  height: 36px;
  border-radius: .6rem;
  border: 1px solid #2a2f3a;
  background: #121628;
  color: #cbd1e8;
  cursor: pointer
}

@supports(padding:max(0px)) {
  .sticky-cta {
    bottom: max(12px, env(safe-area-inset-bottom))
  }
}

@media (min-width:850px) {
  .sticky-cta {
    display: none
  }
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  flex-wrap: wrap;
  gap: 1rem
}

.copyright {
  color: var(--subtle);
  text-align: center;
  padding: 1rem 0;
  font-size: .9rem
}

@media(max-width:700px) {
  .footer {
    flex-direction: column;
    text-align: center
  }

  .footer .left, .footer .right {
    justify-content: center
  }
}

/* ---------- Auth screens (restored) ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--bg), #090a0d 60%, #0a0b0e);
  padding: 1rem;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid #1a1e28;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.auth-title {
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0
}

.auth-sub {
  color: var(--subtle);
  margin: .35rem 0 1rem
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem
}

.brand-mini .logo {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  border-radius: .4rem;
  background: linear-gradient(135deg, var(--primary), #13b0ff);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .2) inset
}

.helper {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .5rem
}

.close-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: #121628;
  color: var(--subtle);
  border: 1px solid var(--ring);
  border-radius: .6rem;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.close-btn:hover {
  background: #1d2131;
  color: #fff;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.pw-strength-bar-wrap {
  margin-top: 0.25rem;
  background: #eee;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.pw-strength-bar {
  height: 100%;
  width: 0%;
  background: #ddd;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 3px;
}

.pw-strength-label {
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 500;
  text-align: right;
}

.pw-checklist {
  margin: 6px 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
}

.pw-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0;
  opacity: 0.95;
}

.pw-checklist li .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
}

.pw-checklist li.ok {
  color: #2c8b2c;
}

.pw-checklist li.ok .dot {
  background: #28a745;
}

#confirm.mismatch, #confirm_new_password.mismatch {
  outline: 2px solid #ff4d4d;
}

#confirm.match, #confirm_new_password.match {
  outline: 2px solid #28a745;
}