:root {
  color-scheme: dark;
  --bg-1: #05070d;
  --bg-2: #0b1220;
  --bg-3: #131c2d;
  --surface: rgba(19, 27, 42, 0.86);
  --surface-strong: rgba(14, 20, 33, 0.92);
  --line: rgba(166, 186, 214, 0.18);
  --text: #f4f7fe;
  --muted: #b8c4d9;
  --blue: #5b8eff;
  --steel: #8ea0bf;
  --gold: #f0b35a;
  --danger: #f16d71;
  --success: #63d1a1;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Exo 2', sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(3, 5, 10, 0.72), rgba(4, 8, 14, 0.94)),
    url('./assets/dashboard_reference.png') center top / cover fixed no-repeat,
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 45%, #04070f);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(91, 142, 255, 0.16), transparent 34%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 25%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.page-content {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.glass-card,
.glass-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(21, 31, 49, 0.94) 44%, rgba(12, 19, 31, 0.96)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 36%);
  box-shadow: var(--shadow), 0 8px 22px rgba(91, 142, 255, 0.08);
  backdrop-filter: blur(18px);
}

.glass-card::before,
.glass-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 28%, transparent 55%),
    linear-gradient(135deg, rgba(91, 142, 255, 0.14), transparent 38%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.glass-card > *,
.glass-inner > * {
  position: relative;
  z-index: 1;
}

.glass-card {
  padding: 22px;
}

.glass-inner {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brandmark {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brandmark img:first-child {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(91, 142, 255, 0.2);
}

.wordmark {
  height: 42px;
  object-fit: contain;
}

.site-nav,
.footer-links,
.header-actions,
.hero-actions,
.link-row,
.account-actions,
.tab-row,
.stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a,
.link-row a {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover,
.link-row a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.language-switch select,
label input,
label select {
  width: 100%;
  border: 1px solid rgba(165, 183, 214, 0.14);
  border-radius: 18px;
  background: rgba(9, 14, 24, 0.88);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.primary-button,
.secondary-button,
.danger-button,
.tab-button {
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, #4f88ff, #76a2ff);
  color: white;
  box-shadow: 0 16px 32px rgba(79, 140, 255, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.danger-button {
  background: linear-gradient(135deg, #b64242, #f16d71);
  color: white;
  box-shadow: 0 16px 32px rgba(241, 109, 113, 0.24);
}

.compact {
  padding: 12px 14px;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--gold);
  font-weight: 700;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Oxanium', sans-serif;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-grid,
.portal-grid,
.delete-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy,
.portal-copy,
.portal-panel,
.hero-visual,
.legal-hero {
  min-height: 100%;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.hero-body {
  max-width: 60ch;
  font-size: 1.04rem;
}

.hero-visual {
  padding: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.stat-pill {
  min-width: 148px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-pill strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.feature-grid,
.module-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.module-card {
  display: grid;
  gap: 16px;
  min-height: 100%;
}

.feature-card-image {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 200px;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.module-card header,
.feature-card header {
  display: grid;
  gap: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(91, 142, 255, 0.12);
  color: #d7e2ff;
  font-size: 0.85rem;
  border: 1px solid rgba(91, 142, 255, 0.16);
}

.portal-copy,
.portal-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.portal-points,
.delete-steps {
  margin: 0;
  padding-left: 18px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.tab-row {
  margin-bottom: 16px;
}

.tab-button {
  flex: 1 1 140px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border: 1px solid transparent;
}

.tab-button.is-active {
  color: var(--text);
  background: rgba(91, 142, 255, 0.14);
  border-color: rgba(91, 142, 255, 0.22);
}

.inline-notice {
  padding: 14px 16px;
  border-radius: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(244, 176, 78, 0.1);
  color: #ffe2af;
}

.inline-notice.is-success {
  background: rgba(99, 209, 161, 0.1);
  color: #d4ffed;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.account-summary {
  display: grid;
  gap: 12px;
}

.summary-tile {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-label {
  display: block;
  color: var(--steel);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.danger-zone {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  border-color: rgba(241, 109, 113, 0.18);
}

.legal-layout {
  gap: 18px;
}

.legal-sections {
  display: grid;
  gap: 16px;
}

.legal-section {
  display: grid;
  gap: 12px;
}

.site-footer {
  margin-top: 22px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 8, 13, 0.52);
  backdrop-filter: blur(18px);
}

.loader-panel {
  width: min(100%, 360px);
  text-align: center;
}

.gear-cluster {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.gear {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--blue);
  text-shadow: 0 0 24px rgba(91, 142, 255, 0.34);
}

.gear.large {
  inset: 0;
  font-size: 4.4rem;
  animation: spin 4s linear infinite;
}

.gear.small {
  right: 6px;
  bottom: 6px;
  font-size: 2rem;
  color: var(--steel);
  animation: spin-reverse 3s linear infinite;
}

.loader-bar {
  margin-top: 16px;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 142, 255, 0.25), var(--blue));
  animation: progress 1.8s ease-in-out infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes progress {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(135%);
  }
  100% {
    transform: translateX(240%);
  }
}

@media (max-width: 1080px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .portal-grid,
  .delete-grid,
  .feature-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 10px;
  }

  .glass-card {
    padding: 18px;
    border-radius: 26px;
  }

  .brandmark {
    width: 100%;
  }

  .wordmark {
    max-width: 220px;
    height: auto;
  }

  .site-nav {
    width: 100%;
  }

  .hero-visual img {
    min-height: 280px;
  }
}
