/* ── Reset / Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: #091A33;
  color: #85B7EB;
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
  margin: 0;
}

#canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.landing {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.anim-1 { opacity: 0; animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.anim-2 { opacity: 0; animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards; }
.anim-3 { opacity: 0; animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards; }
.anim-4 { opacity: 0; animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.35s forwards; }

/* ── Logo ──────────────────────────────────────────────────────────────────── */
.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 64px;
}
.logo-block img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 8px;
}
.logo-text {
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  letter-spacing: -1px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: #85B7EB;
  margin-left: 1px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  max-width: 560px;
}
.hero h1 {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 36px; }
}
.hero p {
  color: #85B7EB;
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  max-width: 480px;
  margin: 0 auto;
}

/* ── CTA ───────────────────────────────────────────────────────────────────── */
.cta {
  margin-top: 48px;
  width: 100%;
  max-width: 560px;
}

.btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.cta-btn {
  width: 100%;
  padding: 16px;
  background: rgba(26, 58, 107, 0.25);
  border: 2px solid rgba(133, 183, 235, 0.25);
  border-radius: 8px;
  color: #85B7EB;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  text-align: center;
}
.cta-btn:hover {
  background: rgba(93, 202, 165, 0.25);
  color: #5DCAA5;
  border-color: rgba(93, 202, 165, 0.4);
  transform: translateY(-1px);
}
.cta-btn .btn-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}
.cta-btn .btn-sub {
  display: block;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  color: #4D7BAF;
}
.cta-btn:hover .btn-sub {
  color: rgba(93, 202, 165, 0.7);
}

/* ── Info Cards ────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-card {
  background: rgba(26, 58, 107, 0.25);
  border-radius: 12px;
  padding: 20px;
}
.card-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #4D7BAF;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card-label-pro {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.card-label-pro span:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #5DCAA5;
  text-transform: uppercase;
}
.invite-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #4D7BAF;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(77, 123, 175, 0.2);
  padding: 2px 6px;
  border-radius: 20px;
}
.card-title {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.card-desc {
  color: #85B7EB;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.landing-footer {
  margin-top: 80px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #4D7BAF;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.landing-footer span,
.landing-footer a,
.landing-footer button {
  opacity: 0.6;
  color: #4D7BAF;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.15s, color 0.15s;
}
.landing-footer a:hover,
.landing-footer button:hover {
  opacity: 1;
  color: #5DCAA5;
}
.landing-footer .admin-link {
  opacity: 0.3;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.landing-footer .admin-link:hover {
  opacity: 0.6;
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 26, 51, 0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: rgba(12, 41, 82, 0.85);
  border: 1px solid rgba(26, 58, 107, 0.3);
  border-radius: 12px;
  padding: 28px;
  width: 340px;
  box-shadow: 0 32px 80px rgba(13, 33, 64, 0.9);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: scale(0.97) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.modal-overlay.open .modal-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.modal-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #4D7BAF;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.modal-input {
  width: 100%;
  background: rgba(9, 26, 51, 0.3);
  border: 1px solid rgba(26, 58, 107, 0.3);
  border-radius: 8px;
  padding: 11px 13px;
  color: #85B7EB;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.modal-input::placeholder { color: #4D7BAF; }
.modal-input:focus { border-color: #85B7EB; }

.modal-error {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #ff5555;
  margin-bottom: 10px;
  display: none;
}
.modal-error.visible { display: block; }

.modal-btns {
  display: flex;
  gap: 8px;
}
.modal-btn {
  flex: 1;
  background: rgba(26, 58, 107, 0.4);
  border: 1px solid #1A3A6B;
  border-radius: 8px;
  padding: 9px;
  color: #4D7BAF;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: "Space Grotesk", sans-serif;
}
.modal-btn:hover {
  border-color: rgba(133, 183, 235, 0.4);
  color: #85B7EB;
}
.modal-btn.primary {
  color: #85B7EB;
  font-weight: 700;
}
.modal-btn.primary:hover {
  background: rgba(93, 202, 165, 0.3);
  border-color: rgba(93, 202, 165, 0.6);
  color: #5DCAA5;
}
