/* =============================================================
   SeeDS — splash.css
   Landing / splash screen shown before the main app.
   Matches the existing dark design system from main.css.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;600;700;800&display=swap');

/* ---------------------------------------------------------------
   OVERLAY CONTAINER
   Covers the entire viewport, sits on top of the app shell.
   Fades out + slides up when user clicks "Enter".
---------------------------------------------------------------- */
#splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0a10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-behavior: smooth;
}

#splash-overlay.splash--exiting {
  opacity: 0;
  transform: translateY(-32px);
  pointer-events: none;
}

#splash-overlay.splash--gone {
  display: none;
}

/* ---------------------------------------------------------------
   GRID BACKGROUND  — subtle dot matrix like graph paper
---------------------------------------------------------------- */
#splash-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(91,142,247,0.12) 0%, transparent 55%),
    radial-gradient(1.5px 1.5px at 40px 40px, rgba(255,255,255,0.04) 0%, transparent 100%);
  background-size: 100% 100%, 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* ---------------------------------------------------------------
   HERO SECTION
---------------------------------------------------------------- */
.splash-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 72px 40px 40px;
  text-align: center;
}

/* Tiny pill badge above the title */
.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,142,247,0.10);
  border: 1px solid rgba(91,142,247,0.25);
  border-radius: 99px;
  padding: 5px 14px 5px 10px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #5b8ff7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeSlideDown 0.6s 0.1s both;
}

.splash-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5b8ff7;
  box-shadow: 0 0 8px rgba(91,142,247,0.7);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* MAIN TITLE */
.splash-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 9vw, 96px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #e8ecf8;
  margin-bottom: 4px;
  animation: fadeSlideDown 0.6s 0.2s both;
}

.splash-title__accent {
  background: linear-gradient(135deg, #5b8ff7 0%, #85b5ff 50%, #b8d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* SUBTITLE */
.splash-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: clamp(13px, 1.6vw, 16px);
  color: #8890aa;
  margin-top: 20px;
  margin-bottom: 0;
  line-height: 1.7;
  animation: fadeSlideDown 0.6s 0.3s both;
}

.splash-subtitle em {
  color: #b8c5e8;
  font-style: normal;
}

/* CREATORS ROW */
.splash-creators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 36px;
  animation: fadeSlideDown 0.6s 0.4s both;
}

.splash-creator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-creator__name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #e8ecf8;
  letter-spacing: 0.02em;
}

.splash-creator__role {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #5b8ff7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

.splash-creators__sep {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(91,142,247,0.4), transparent);
  margin: 0 24px;
  align-self: center;
}

/* Also: class for the course chip */
.splash-course-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 14px;
  margin-top: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #4a4f6a;
  letter-spacing: 0.06em;
  animation: fadeSlideDown 0.6s 0.45s both;
}

.splash-course-chip__label { color: #8890aa; }

/* ---------------------------------------------------------------
   DIVIDER WITH TEXT
---------------------------------------------------------------- */
.splash-divider {
  width: 100%;
  max-width: 700px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 32px;
  padding: 0 40px;
  animation: fadeIn 0.6s 0.55s both;
}

.splash-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

.splash-divider__label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a4f6a;
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   SYLLABUS GRID
---------------------------------------------------------------- */
.splash-syllabus {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  animation: fadeIn 0.7s 0.6s both;
}

.syllabus-card {
  background: rgba(17, 17, 24, 0.8);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
  cursor: default;
}

.syllabus-card:hover {
  border-color: rgba(91,142,247,0.3);
  background: rgba(91,142,247,0.04);
  transform: translateY(-2px);
}

.syllabus-card__icon {
  font-size: 18px;
  line-height: 1;
}

.syllabus-card__name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #e8ecf8;
  letter-spacing: 0.01em;
}

.syllabus-card__tag {
  font-family: 'Space Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a4f6a;
}

.syllabus-card--error-types {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: rgba(255,59,59,0.04);
  border-color: rgba(255,59,59,0.12);
}

.syllabus-card--error-types:hover {
  border-color: rgba(255,59,59,0.3);
  background: rgba(255,59,59,0.07);
}

.syllabus-card__error-badge {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,59,59,0.10);
  color: #ff3b3b;
  letter-spacing: 0.04em;
}

.syllabus-card__error-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #ff6b6b;
  margin-right: 4px;
}

/* ---------------------------------------------------------------
   CTA / ENTER BUTTON
---------------------------------------------------------------- */
.splash-cta-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 48px 40px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeIn 0.6s 0.8s both;
}

.splash-enter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #5b8ff7;
  color: #0a0a10;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 16px 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease, box-shadow 200ms ease;
  box-shadow: 0 0 30px rgba(91,142,247,0.3);
  text-transform: uppercase;
}

.splash-enter-btn:hover {
  background: #85b5ff;
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(91,142,247,0.5);
}

.splash-enter-btn:active {
  transform: translateY(0px) scale(0.97);
}

.splash-enter-btn__arrow {
  font-size: 18px;
  transition: transform 200ms ease;
}

.splash-enter-btn:hover .splash-enter-btn__arrow {
  transform: translateX(4px);
}

.splash-hint {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #4a4f6a;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------
   KEYFRAMES
---------------------------------------------------------------- */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------------------------------------------------------------
   SCROLLBAR inside splash
---------------------------------------------------------------- */
#splash-overlay::-webkit-scrollbar { width: 5px; }
#splash-overlay::-webkit-scrollbar-track { background: transparent; }
#splash-overlay::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}