:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: rgba(14, 20, 29, 0.9);
  --panel-strong: rgba(18, 26, 38, 0.95);
  --text: #f5f7fb;
  --muted: #a6b0c3;
  --accent: #4ad3b1;
  --accent-soft: rgba(74, 211, 177, 0.16);
  --line: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

@supports (font-variation-settings: normal) {
  body {
    font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(72, 101, 255, 0.15),
      transparent 45%
    ),
    radial-gradient(circle at 80% 0%, rgba(74, 211, 177, 0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 120, 90, 0.12), transparent 45%),
    #0a0e13;
}

.orb {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: float 10s ease-in-out infinite;
}

.orb--one {
  top: -220px;
  left: -140px;
  background: linear-gradient(130deg, rgba(74, 211, 177, 0.2), transparent);
}

.orb--two {
  bottom: -260px;
  right: -120px;
  background: linear-gradient(130deg, rgba(90, 120, 255, 0.2), transparent);
  animation-delay: -3s;
}

.grid {
  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: 80px 80px;
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 70%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 8vw 20px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.2rem;
}

.logo--center {
  text-align: center;
}

.logo-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.logo-link:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 4vw;
  padding: 40px 8vw 60px;
  align-items: center;
}

.hero--single {
  grid-template-columns: 1fr;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.subhead {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.primary-btn,
.secondary-btn {
  border-radius: 14px;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: var(--accent);
  color: #0b1a17;
  box-shadow: 0 10px 30px rgba(74, 211, 177, 0.25);
}

.primary-btn.is-sent {
  background: rgba(74, 211, 177, 0.25);
  color: var(--text);
  box-shadow: none;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

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

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.modal-close:active {
  filter: brightness(0.9);
  transform: translateY(0);
}

.stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stats span {
  font-weight: 600;
  font-size: 1.1rem;
}

.stats p {
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 20px 50px var(--shadow);
  animation: reveal 0.8s ease both;
}

.card-header h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.card-header p {
  color: var(--muted);
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-password {
  display: grid;
  gap: 16px;
  opacity: 1;
  max-height: 200px;
  transform: translateY(0);
  transition: opacity 0.25s ease, max-height 0.25s ease,
    transform 0.25s ease;
  overflow: hidden;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.is-hidden {
  opacity: 0;
  max-height: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.auth-form label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.auth-form input {
  background: var(--panel-strong);
  border: 1px solid transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(74, 211, 177, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 211, 177, 0.12);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  flex-direction: row;
}

.checkbox input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  display: inline-grid;
  place-content: center;
  margin: 0;
  cursor: pointer;
}

.checkbox input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.12s ease;
  background: #0b1a17;
  border-radius: 2px;
}

.checkbox input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: rgba(74, 211, 177, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 211, 177, 0.12);
}

.checkbox input[type="checkbox"]:checked::after {
  transform: scale(1);
}

.primary-btn.full {
  width: 100%;
}

.card-footer {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.card-footer a {
  color: var(--text);
  text-decoration: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  width: min(420px, 90vw);
  box-shadow: 0 20px 60px var(--shadow);
  position: relative;
  animation: reveal 0.3s ease;
}

.modal-panel h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.modal-panel p {
  color: var(--muted);
  margin-bottom: 18px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-form input {
  background: var(--panel-strong);
  border: 1px solid transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.modal-form input:focus {
  outline: none;
  border-color: rgba(74, 211, 177, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 211, 177, 0.12);
}

.modal-actions {
  margin-top: 18px;
}

.modal-actions .secondary-btn {
  width: 100%;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  padding: 30px 8vw 70px;
}

.info h3 {
  margin-bottom: 8px;
}

.info p {
  color: var(--muted);
}

.archive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  padding: 10px 8vw 60px;
}

.archive-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px;
}

.archive-card h3 {
  margin-bottom: 12px;
}

.archive-card p {
  color: var(--muted);
}

.archive-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.archive-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.legal-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.faq-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 8vw 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(18, 26, 38, 0.95);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

.toast-text {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.toast.is-complete .toast-text {
  opacity: 1;
}

.toast.is-complete .toast-spinner {
  display: none;
}

.glow .auth-card {
  box-shadow: 0 0 40px rgba(74, 211, 177, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(25px);
  }
}

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

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 680px) {
  .cta-row {
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
