@font-face {
  font-family: 'Unbounded';
  src: url('../assets/fonts/unbounded-normal.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../assets/fonts/schibsted-grotesk-normal.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Fragment Mono';
  src: url('../assets/fonts/fragment-mono-normal.woff2') format('woff2');
  font-display: swap;
}

:root {
  --void: #05060e;
  --space: #12142b;
  --panel: #1b1e42;
  --ion: #7a6cff;
  --lavender: #a79cff;
  --gold: #ffc96b;
  --plasma: #ff7ac3;
  --text: #eae8f7;
  --muted: #a9a4c8;
  --line: rgba(167, 156, 255, 0.18);
  --danger: #ff9cbb;
  --success: #92e0b2;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, monospace;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button { color: inherit; }

a { color: inherit; }

::selection { background: rgba(122, 108, 255, 0.48); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.mono { font-family: var(--font-mono); }

.space {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 19% 24%, rgba(122, 108, 255, 0.17), transparent 24%),
    radial-gradient(circle at 83% 78%, rgba(255, 122, 195, 0.08), transparent 27%),
    radial-gradient(circle at 54% 35%, #15142e 0, var(--void) 60%);
  pointer-events: none;
}

.space::before,
.space::after {
  content: '';
  position: absolute;
  inset: -100px;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.62) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(167,156,255,0.55) 0 1px, transparent 1.5px);
  background-position: 0 0, 43px 31px;
  background-size: 101px 113px, 157px 173px;
  opacity: 0.33;
  mask-image: linear-gradient(90deg, #000, transparent 48%, #000);
}

.space::after {
  transform: rotate(12deg) scale(1.18);
  opacity: 0.16;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 3px rgba(255,255,255,0.45);
}

.star-a { left: 8%; top: 22%; }
.star-b { right: 10%; top: 17%; width: 2px; height: 2px; }
.star-c { left: 41%; bottom: 11%; width: 2px; height: 2px; }

.account-world {
  position: absolute;
  left: 9vw;
  bottom: -15vw;
  width: min(38vw, 530px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,255,0.7), transparent 4%),
    radial-gradient(circle at 31% 32%, #b8aefc 0, #5d51bd 18%, #24265f 48%, #090b1c 76%);
  box-shadow:
    inset -50px -35px 90px rgba(0,0,0,0.76),
    0 0 70px rgba(122,108,255,0.28),
    0 0 150px rgba(122,108,255,0.12);
  opacity: 0.62;
}

.account-world::after {
  content: '';
  position: absolute;
  inset: 32% -33%;
  border: 1px solid rgba(255,201,107,0.32);
  border-radius: 50%;
  transform: rotate(-11deg);
  box-shadow: 0 0 22px rgba(255,201,107,0.12);
}

.orbit {
  position: absolute;
  left: -10vw;
  bottom: -18vw;
  width: min(58vw, 800px);
  aspect-ratio: 1;
  border: 1px solid rgba(167,156,255,0.11);
  border-radius: 50%;
}

.orbit-two { transform: scale(1.28); border-style: dashed; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 26px 0;
}

.wordmark {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(122,108,255,0.6);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.back-link:hover { color: var(--text); }

.account-shell {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.88fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  width: min(100% - 48px, 1180px);
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 56px 0 88px;
}

.account-intro { max-width: 610px; }

.eyebrow,
.panel-tag,
.roadmap-label {
  margin: 0;
  color: var(--lavender);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.account-intro h1 {
  max-width: 680px;
  margin: 19px 0 24px;
  background: linear-gradient(115deg, #fff 7%, var(--gold) 42%, var(--lavender) 82%);
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.intro-copy {
  max-width: 590px;
  margin: 0;
  color: #c4c0d9;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.roadmap {
  display: grid;
  gap: 0;
  max-width: 580px;
  margin: 42px 0 30px;
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding-bottom: 28px;
}

.roadmap-item:last-child { padding-bottom: 0; }

.roadmap-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--lavender), rgba(167,156,255,0.14));
}

.roadmap-marker {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 1px solid rgba(167,156,255,0.55);
  border-radius: 50%;
  background: var(--void);
}

.roadmap-marker.active {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255,201,107,0.52);
}

.roadmap-label { margin-bottom: 5px; font-size: 0.64rem; }

.roadmap h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.roadmap p:last-child { margin: 0; color: var(--muted); font-size: 0.94rem; }

.principle {
  max-width: 560px;
  margin: 0;
  color: rgba(169,164,200,0.72);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-panel { width: 100%; max-width: 510px; justify-self: end; }

.preview-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 12px;
  border: 1px solid rgba(255,201,107,0.2);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(22,21,43,0.75);
  color: #c9c5dc;
  font-size: 0.76rem;
}

.preview-notice strong { color: var(--gold); font-weight: 600; }

.preview-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 11px rgba(255,201,107,0.72);
}

.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(27px, 4vw, 42px);
  background: linear-gradient(145deg, rgba(25,27,60,0.88), rgba(12,13,30,0.9));
  box-shadow: 0 34px 90px rgba(0,0,0,0.5), 0 0 80px rgba(122,108,255,0.08);
  backdrop-filter: blur(20px);
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.36), transparent);
}

.auth-card::after {
  content: '';
  position: absolute;
  right: -90px;
  top: -100px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(122,108,255,0.13);
  filter: blur(40px);
  pointer-events: none;
}

.auth-heading,
.auth-tabs,
.auth-form,
.verification-state,
.account-preview { position: relative; z-index: 1; }

.auth-heading h2,
.verification-state h2,
.account-preview h2 {
  margin: 11px 0 7px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.auth-heading > p:last-child,
.verification-state > p,
.account-preview > p { margin: 0; color: var(--muted); }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 28px 0 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  background: rgba(5,6,14,0.52);
}

.auth-tab {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.auth-tab.is-active {
  background: rgba(122,108,255,0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(167,156,255,0.16);
}

.auth-form { display: grid; gap: 18px; }

.compact-form { margin-top: 25px; }

.field { display: grid; gap: 7px; }

.field > span:first-child {
  color: #d5d2e5;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  border: 1px solid rgba(167,156,255,0.2);
  border-radius: 11px;
  padding: 13px 14px;
  background: rgba(5,6,14,0.7);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input::placeholder { color: #6f6b8e; }

.field input:hover { border-color: rgba(167,156,255,0.36); }

.field input:focus {
  border-color: var(--lavender);
  background: rgba(8,9,22,0.9);
  box-shadow: 0 0 0 3px rgba(122,108,255,0.15);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255,156,187,0.1);
}

.field input:disabled {
  border-color: rgba(167,156,255,0.1);
  background: rgba(5,6,14,0.42);
  color: #716d8d;
  cursor: not-allowed;
}

.password-input { position: relative; display: block; }

.password-input input { padding-right: 70px; }

.show-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  padding: 4px;
  background: transparent;
  color: var(--lavender);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
}

.field-error {
  min-height: 0;
  color: var(--danger);
  font-size: 0.76rem;
}

.field-error:empty { display: none; }

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
}

.check-field input { width: 15px; height: 15px; accent-color: var(--ion); }

.text-button {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--lavender);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.text-button:hover { color: var(--text); text-decoration-color: currentColor; }

.back-action { display: inline-flex; gap: 7px; margin-bottom: 2px; }

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  border: 1px solid rgba(255,201,107,0.36);
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(115deg, #8a78ff, #6556d7 62%, #5a4cc4);
  color: #fff;
  box-shadow: 0 10px 25px rgba(68,53,181,0.24), inset 0 1px rgba(255,255,255,0.2);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(68,53,181,0.34), 0 0 28px rgba(122,108,255,0.16), inset 0 1px rgba(255,255,255,0.22);
  filter: brightness(1.06);
}

.primary-button:active { transform: translateY(0) scale(0.99); }

.primary-button:disabled,
.google-button:disabled,
.show-password:disabled,
.text-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.48;
  transform: none;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #7f7a9b;
  font-size: 0.74rem;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: '';
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 47px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 11px 17px;
  background: #fff;
  color: #3c4043;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.16);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.google-button:hover {
  border-color: #c6c8cc;
  background: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.google-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 17px;
  background: rgba(5,6,14,0.52);
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.secondary-button:hover {
  border-color: var(--lavender);
  background: rgba(122,108,255,0.1);
  transform: translateY(-1px);
}

.danger-button {
  border-color: rgba(255,156,187,0.24);
  color: var(--danger);
}

.danger-button:hover {
  border-color: var(--danger);
  background: rgba(255,156,187,0.07);
}

.form-status {
  min-height: 0;
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-warning { color: var(--gold); }
.form-status.is-error { color: var(--danger); }

.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: -8px 0 0;
  padding: 0;
  color: #767291;
  font-size: 0.72rem;
  list-style: none;
}

.password-rules li::before { content: '○'; margin-right: 6px; }

.password-rules li.is-met { color: var(--success); }

.password-rules li.is-met::before { content: '✓'; }

.legal-copy {
  margin: -3px 0 0;
  border-left: 1px solid rgba(255,201,107,0.32);
  padding-left: 12px;
  color: #8f8aa9;
  font-size: 0.75rem;
}

.legal-copy a,
.delete-note a,
.launch-note a { color: var(--lavender); text-underline-offset: 2px; }

.legal-copy a:hover,
.delete-note a:hover,
.launch-note a:hover { color: var(--text); }

.noscript-note {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  border: 1px solid rgba(255,156,187,0.22);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255,156,187,0.06);
  color: #d9b6c3;
  font-size: 0.8rem;
}

.verification-state,
.account-preview { display: grid; justify-items: center; gap: 15px; text-align: center; }

.signal-mark {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
}

.signal-core {
  position: absolute;
  inset: 27px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 25px rgba(255,201,107,0.8);
}

.signal-ring {
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(167,156,255,0.72);
  border-radius: 50%;
}

.verification-state .verification-note {
  border: 1px solid rgba(255,201,107,0.18);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255,201,107,0.05);
  color: #c9c5dc;
  font-size: 0.78rem;
}

.avatar-preview {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255,201,107,0.42);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--lavender), #5144b7);
  box-shadow: 0 0 35px rgba(122,108,255,0.28);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 10px 0 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(5,6,14,0.48);
}

.account-stats div { padding: 13px 8px; }

.account-stats div + div { border-left: 1px solid var(--line); }

.account-stats dt { color: var(--muted); font-size: 0.68rem; }

.account-stats dd { margin: 3px 0 0; color: var(--gold); font-family: var(--font-display); font-size: 0.78rem; }

.delete-note {
  color: #7f7a9b !important;
  font-size: 0.74rem;
  line-height: 1.55;
}

.launch-note {
  max-width: 450px;
  margin: 15px auto 0;
  color: rgba(169,164,200,0.58);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  .account-shell {
    grid-template-columns: 1fr;
    gap: 46px;
    max-width: 660px;
    padding-top: 46px;
  }

  .account-intro { text-align: center; }
  .intro-copy, .roadmap, .principle { margin-left: auto; margin-right: auto; }
  .roadmap { text-align: left; }
  .auth-panel { max-width: 540px; justify-self: center; }
  .account-world { left: -16vw; top: 210px; bottom: auto; opacity: 0.3; }
}

@media (max-width: 560px) {
  .site-header { width: min(100% - 36px, 1280px); padding-top: 20px; }
  .back-link { font-size: 0; }
  .back-link span { font-size: 1.2rem; }

  .account-shell {
    width: min(100% - 28px, 1180px);
    min-height: auto;
    gap: 36px;
    padding: 35px 0 56px;
  }

  .auth-panel { order: -1; }
  .account-intro h1 { margin-top: 15px; font-size: clamp(2.2rem, 13vw, 3.2rem); }
  .intro-copy { font-size: 0.96rem; line-height: 1.65; }
  .roadmap { margin-top: 31px; }
  .roadmap-item { grid-template-columns: 20px 1fr; gap: 12px; }
  .principle { font-size: 0.59rem; }

  .preview-notice { font-size: 0.68rem; text-align: center; }
  .auth-card { border-radius: 19px; padding: 25px 20px; }
  .auth-tabs { margin-top: 23px; }
  .form-options { align-items: flex-start; }
  .check-field { line-height: 1.3; }
  .account-stats dt { min-height: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  .star { animation: star-pulse 3s ease-in-out infinite alternate; }
  .star-b { animation-delay: -1.2s; }
  .star-c { animation-delay: -2.1s; }
  .signal-ring { animation: ring-turn 8s linear infinite; }
}

@keyframes star-pulse {
  to { opacity: 0.38; transform: scale(0.72); }
}

@keyframes ring-turn {
  to { transform: rotate(360deg); }
}
