/* Page-specific styles — shared theme lives in common.css */

.splash-page {
  width: 100%;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding:
    max(24px, env(safe-area-inset-top))
    24px
    max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.orb-3 {
  width: 140px;
  height: 140px;
  background: var(--accent);
  top: 45%;
  right: -40px;
  opacity: 0.25;
}

.splash-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

/* Logo area */
.logo-area {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.logo-circle {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--secondary-soft);
  border: 5px solid var(--secondary);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 36px rgba(73, 108, 38, 0.16);
  position: relative;
  z-index: 2;
  animation: float 3.2s ease-in-out infinite;
}

.snake {
  font-size: 72px;
  line-height: 1;
  transform: rotate(-6deg);
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(107, 77, 230, 0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-a {
  width: 148px;
  height: 148px;
  animation: spin 12s linear infinite;
}

.orbit-b {
  width: 168px;
  height: 168px;
  border-color: rgba(140, 203, 69, 0.2);
  animation: spin 18s linear infinite reverse;
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark {
  position: absolute;
  font-size: 18px;
  color: var(--primary);
  animation: twinkle 2.4s ease-in-out infinite;
}

.s1 {
  top: 8px;
  right: 12px;
  color: var(--primary);
}

.s2 {
  bottom: 18px;
  left: 6px;
  color: var(--accent);
  animation-delay: 0.6s;
}

.s3 {
  top: 42px;
  left: 0;
  color: var(--secondary);
  animation-delay: 1.2s;
  font-size: 14px;
}

/* Brand */
.brand-text h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.tagline {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.5;
}

/* Code snippet */
.code-snippet {
  direction: ltr;
  text-align: left;
  background: var(--code);
  color: #f4f2ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12.5px;
  padding: 11px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(37, 38, 58, 0.18);
  margin: 4px 0 2px;
  max-width: 280px;
  width: 100%;
}

.kw {
  color: var(--accent);
}

.str {
  color: #8ccb45;
}

/* Feature badges */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 10px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(36, 33, 55, 0.04);
}

/* Start button */
.start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  height: 54px;
  border-radius: 15px;
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(107, 77, 230, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 6px;
}

.start-btn:active {
  transform: scale(0.98);
}

.start-btn .arrow {
  font-size: 18px;
  line-height: 1;
}

.footer-note {
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-soft);
  opacity: 0.75;
}

/* Animations */

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Small height phones */
@media (max-height: 700px) {
  .logo-area {
    width: 130px;
    height: 130px;
  }

  .logo-circle {
    width: 100px;
    height: 100px;
  }

  .snake {
    font-size: 56px;
  }

  .orbit-a { width: 118px; height: 118px; }
  .orbit-b { width: 136px; height: 136px; }

  .brand-text h1 {
    font-size: 30px;
  }

  .tagline {
    font-size: 13px;
  }

  .splash-content {
    gap: 12px;
  }

  .start-btn {
    height: 50px;
  }
}

/* Desktop improvements */
@media (min-width: 768px) {
  .splash-page {
    max-width: 440px;
  }

  .logo-circle {
    width: 140px;
    height: 140px;
  }

  .snake {
    font-size: 80px;
  }

  .orbit-a { width: 162px; height: 162px; }
  .orbit-b { width: 184px; height: 184px; }

  .brand-text h1 {
    font-size: 40px;
  }

  .tagline {
    font-size: 15px;
  }

  .code-snippet {
    font-size: 13.5px;
    padding: 12px 18px;
  }

  .feature-badge {
    font-size: 13px;
    padding: 8px 14px;
  }

  .start-btn {
    height: 56px;
    font-size: 16px;
    max-width: 300px;
  }
}

@media (min-width: 1024px) {
  .splash-page {
    max-width: 460px;
  }

  .brand-text h1 {
    font-size: 42px;
  }
}
