:root {
  --bg: #09090b;
  --panel: rgba(18, 18, 24, 0.9);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #a0a8ba;
  --accent: #8df7c4;
  --accent-strong: #69e6b0;
  --danger: #ff8f8f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background:
    radial-gradient(circle at top left, rgba(141, 247, 196, 0.15), transparent 35%),
    radial-gradient(circle at top right, rgba(132, 180, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #06070a 0%, #0d1016 100%);
  background-color: #06070a;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background: inherit;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 28px 28px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

.page {
  position: relative;
}

.shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card,
.admin-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.hero-card {
  max-width: 720px;
  padding: 32px;
  animation: rise 500ms ease-out;
}

.admin-card {
  padding: 28px;
  animation: rise 500ms ease-out;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: rgba(141, 247, 196, 0.55);
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.page-admin h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 46ch;
}

.waitlist-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.consent-field input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  padding: 0;
}

.field span,
.stat-label,
th {
  color: var(--muted);
  font-size: 0.9rem;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

input:focus {
  outline: none;
  border-color: rgba(141, 247, 196, 0.6);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease, box-shadow 150ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.75;
}

#submit-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #07110d;
  box-shadow: 0 14px 30px rgba(105, 230, 176, 0.2);
}

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

.form-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
}

.privacy-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.privacy-note a {
  color: var(--text);
}

.form-message.success {
  color: var(--accent);
}

.form-message.error {
  color: var(--danger);
}

.social-proof {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-label {
  display: inline-block;
  color: var(--muted);
}

.admin-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: #dde3f0;
}

.empty-state {
  color: var(--muted);
  text-align: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .shell {
    padding: 40px;
  }

  .hero-card {
    padding: 48px;
  }

  .admin-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
