:root {
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --text-muted: #888888;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.12);
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(16, 185, 129, 0.15), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 90%, rgba(5, 150, 105, 0.06), transparent 50%);
}

.page__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}

.container {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* Header */

.header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo__mark {
  width: 2rem;
  height: 2rem;
}

.logo__text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo__text em {
  font-style: normal;
  color: var(--emerald-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--emerald-bright);
}

.nav__cta {
  padding: 0.5rem 1rem;
  color: #000 !important;
  background: linear-gradient(135deg, #059669, var(--emerald-bright));
  border-radius: 8px;
  box-shadow: 0 0 16px var(--emerald-glow);
}

.nav__cta:hover {
  color: #000 !important;
  opacity: 0.92;
}

/* Main */

.main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section--hero {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.section--alt {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.section__header {
  max-width: 36rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-bright);
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero__title span {
  background: linear-gradient(135deg, #059669, var(--emerald-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 auto 2rem;
  max-width: 32rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn--primary {
  color: #000;
  background: linear-gradient(135deg, #059669, var(--emerald-bright));
  box-shadow: 0 0 20px var(--emerald-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--emerald-glow);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--emerald-bright);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--emerald-bright);
}

.card__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split__text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.split__text p:last-child {
  margin-bottom: 0;
}

.split__panel {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.split__panel h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.split__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.split__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.split__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-glow);
}

.split__list li:last-child {
  margin-bottom: 0;
}

/* Legal pages */

.page--legal .main {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.legal {
  max-width: 42rem;
  margin: 0 auto;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal__meta {
  margin: 0 0 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal a {
  color: var(--emerald-bright);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

/* Footer */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: #555;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--emerald-bright);
}

/* Account */

.page--account .main {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 4rem);
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.account-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.account-brand {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(16, 185, 129, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.35));
}

.account-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
  pointer-events: none;
}

.account-brand__inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.account-brand__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-bright);
}

.account-brand__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.account-brand__text {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 28rem;
}

.account-brand__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.account-brand__list li {
  position: relative;
  padding-left: 1.1rem;
  color: #bdbdbd;
  font-size: 0.9rem;
}

.account-brand__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-glow);
}

.account-panel {
  min-height: 32rem;
}

.account-panel__loading {
  display: grid;
  place-items: center;
  gap: 1rem;
  min-height: 24rem;
  color: var(--text-muted);
}

.account-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--emerald-bright);
  animation: account-spin 0.8s linear infinite;
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

.account-guest,
.account-dashboard {
  animation: account-fade 0.35s ease;
}

@keyframes account-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-guest {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 20px;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}

.account-tabs__btn {
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.account-tabs__btn.is-active {
  color: var(--text);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.18) inset;
}

.account-guest__header h2 {
  margin: 0 0 0.45rem;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.account-guest__header p {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.account-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a3a3a3;
}

.field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input::placeholder {
  color: #666;
}

.field__input:focus {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.account-message {
  margin: 0;
  font-size: 0.875rem;
}

.account-message--error {
  color: #f87171;
}

.account-message--info {
  color: var(--emerald-bright);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.8125rem;
}

.account-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.account-profile__avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #052e1f;
  background: linear-gradient(135deg, #059669, var(--emerald-bright));
  box-shadow: 0 0 24px var(--emerald-glow);
}

.account-profile__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.account-profile__meta h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.account-profile__sub {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.account-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: var(--emerald-dim);
  color: var(--emerald-bright);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-cards {
  display: grid;
  gap: 1rem;
}

.account-card {
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
}

.account-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.account-card__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-bright);
}

.account-card h3 {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.account-card__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.1);
}

.account-card__text {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.account-card--download .account-card__text {
  margin-bottom: 0.85rem;
}

.account-release {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}

.account-release__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.account-release__row strong {
  color: var(--text);
  font-weight: 600;
}

.account-inline-link {
  color: var(--emerald-bright);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.account-inline-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-brand {
    min-height: auto;
  }

  .account-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .account-profile {
    grid-template-columns: auto 1fr;
  }

  .account-profile .btn--sm {
    grid-column: 1 / -1;
    width: 100%;
  }

  .nav a:not(.nav__cta) {
    display: none;
  }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 1rem;
  }

  .nav a:not(.nav__cta) {
    display: none;
  }
}
