/* ============ Base ============ */
:root {
  --bg: #0c0a1d;
  --bg-elev: rgba(255, 255, 255, 0.045);
  --bg-input: rgba(255, 255, 255, 0.06);
  --text: #f2f2fa;
  --text-dim: #a5a3c4;
  --violet: #8b7bff;
  --pink: #ff5ca8;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --amber: #fbbf24;
  --gradient: linear-gradient(100deg, #8b7bff 0%, #ff5ca8 50%, #22d3ee 100%);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Aurora backdrop */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, #8b7bff 0%, transparent 70%);
}

body::after {
  width: 640px;
  height: 640px;
  bottom: -220px;
  right: -180px;
  background: radial-gradient(circle, #ff5ca8 0%, transparent 70%);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

main {
  position: relative;
  z-index: 2;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(12, 10, 29, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  font-weight: 800;
  font-size: 1rem;
  color: #0c0a1d;
  box-shadow: 0 0 18px rgba(255, 92, 168, 0.35);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 6px;
}

/* ============ Banner ============ */
.banner {
  margin: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ Hero / page head ============ */
.hero,
.page-head {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 4rem;
  text-align: center;
}

/* Tighter gap between the banner image and the hero headline */
.banner + .hero {
  padding-top: 2.5rem;
}

.page-head {
  padding-top: 5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(139, 123, 255, 0.18), rgba(255, 92, 168, 0.18), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(139, 123, 255, 0.4);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 2rem;
  color: #cfc9ff;
}

.headline {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.accent {
  background: linear-gradient(90deg, #8b7bff 0%, #ff5ca8 45%, #22d3ee 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 6s linear infinite;
}

@keyframes flow {
  to {
    background-position: 200% center;
  }
}

.subhead {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 auto;
}

/* ============ Hero actions ============ */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: 2.5rem 0 2.2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  font-family: var(--font);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient);
  background-size: 150% auto;
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 92, 168, 0.3);
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 10px 36px rgba(139, 123, 255, 0.4);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.75rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.hero-points li:nth-child(1)::before {
  content: "\2713";
  color: var(--violet);
  margin-right: 0.5rem;
}

.hero-points li:nth-child(2)::before {
  content: "\2713";
  color: var(--pink);
  margin-right: 0.5rem;
}

.hero-points li:nth-child(3)::before {
  content: "\2713";
  color: var(--cyan);
  margin-right: 0.5rem;
}

/* ============ Cards / features ============ */
.pillars,
.feature-section,
.early-access {
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.feature-section {
  padding-top: 1rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-title::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
}

.feature-section:nth-of-type(1) .section-title::before {
  background: linear-gradient(135deg, #8b7bff, #b39dff);
  box-shadow: 0 0 16px rgba(139, 123, 255, 0.5);
}

.feature-section:nth-of-type(2) .section-title::before {
  background: linear-gradient(135deg, #ff5ca8, #ff8dc7);
  box-shadow: 0 0 16px rgba(255, 92, 168, 0.5);
}

.feature-section:nth-of-type(3) .section-title::before {
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
}

.feature-section:nth-of-type(4) .section-title::before {
  background: linear-gradient(135deg, #a3e635, #d9f99d);
  box-shadow: 0 0 16px rgba(163, 230, 53, 0.45);
}

.feature-section:nth-of-type(5) .section-title::before {
  background: linear-gradient(135deg, #fbbf24, #fde68a);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
}

.feature-section:nth-of-type(6) .section-title::before {
  background: linear-gradient(135deg, #8b7bff, #22d3ee);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.4);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
}

.feature-section:nth-of-type(1) .card:hover {
  border-color: rgba(139, 123, 255, 0.6);
  box-shadow: 0 12px 40px rgba(139, 123, 255, 0.18);
}

.feature-section:nth-of-type(2) .card:hover {
  border-color: rgba(255, 92, 168, 0.6);
  box-shadow: 0 12px 40px rgba(255, 92, 168, 0.18);
}

.feature-section:nth-of-type(3) .card:hover {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.18);
}

.feature-section:nth-of-type(4) .card:hover {
  border-color: rgba(163, 230, 53, 0.5);
  box-shadow: 0 12px 40px rgba(163, 230, 53, 0.14);
}

.feature-section:nth-of-type(5) .card:hover {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.14);
}

.feature-section:nth-of-type(6) .card:hover {
  border-color: rgba(139, 123, 255, 0.55);
  box-shadow: 0 12px 40px rgba(139, 123, 255, 0.16);
}

.card h2,
.card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .accent {
    animation: none;
  }
}

/* ============ Early access / signup ============ */
.early-access {
  text-align: center;
  padding-bottom: 5.5rem;
}

.early-access h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.early-access p {
  color: var(--text-dim);
  margin-bottom: 1.8rem;
}

.signup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 32rem;
  margin: 0 auto;
}

.signup input {
  flex: 1 1 16rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 123, 255, 0.2);
}

.signup input.invalid {
  border-color: #ff6b6b;
}

.signup button {
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: none;
  background: var(--gradient);
  background-size: 150% auto;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255, 92, 168, 0.3);
  transition: background-position 0.3s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.signup button:hover {
  background-position: right center;
  transform: translateY(-1px);
}

.signup button:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.form-note {
  flex-basis: 100%;
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.form-note.success {
  color: #a3e635;
}

.form-note.error {
  color: #ff8fa3;
}

/* ============ Explanatory sections ============ */
.explain {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.explain .cards {
  margin-top: 1.75rem;
}

.explain-lede {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  max-width: 46rem;
}

.explain-lede strong {
  color: var(--text);
}

.steps .card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.beta-cta {
  text-align: center;
  max-width: 720px;
}

.beta-cta .explain-lede {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.8rem;
}

.cta-band {
  position: relative;
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(139, 123, 255, 0.16) 0%, transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(255, 92, 168, 0.16) 0%, transparent 55%),
    var(--bg-elev);
  backdrop-filter: blur(8px);
}

.cta-band h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--text-dim);
  margin-bottom: 1.6rem;
}

/* ============ Login ============ */
.auth-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(50vh - 100px);
  padding: 4rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.6rem 2.2rem 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(139, 123, 255, 0.12), 0 4px 24px rgba(255, 92, 168, 0.08);
  position: relative;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.auth-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.auth-sub {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 1.7rem;
}

.sso-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sso-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0;
  color: var(--text-dim);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-field {
  margin-bottom: 1.15rem;
}

.auth-field label,
.auth-label-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.reveal-toggle {
  background: none;
  border: none;
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.reveal-toggle:hover {
  color: var(--pink);
}

.auth-field input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 92, 168, 0.16);
}

.auth-field input.invalid {
  border-color: #ff6b6b;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0.2rem 0 1.4rem;
  cursor: pointer;
  user-select: none;
}

.auth-remember input {
  accent-color: var(--pink);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.auth-submit {
  display: block;
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--gradient);
  background-size: 150% auto;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255, 92, 168, 0.3);
  transition: background-position 0.3s ease, transform 0.15s ease;
}

.auth-submit:hover {
  background-position: right center;
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.auth-card .form-note {
  min-height: 1.4rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  text-align: center;
}

.auth-switch {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

.auth-switch a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ============ Footer ============ */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 1.6rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.84rem;
  background: rgba(12, 10, 29, 0.6);
}

/* ============ Responsive ============ */
@media (max-width: 560px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .site-nav {
    gap: 1.1rem;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .banner {
    margin-top: 0;
  }

  .signup input,
  .signup button {
    width: 100%;
    flex-basis: 100%;
  }

  body::before,
  body::after {
    width: 320px;
    height: 320px;
  }
}
