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

.splash-page {
  width: 100%;
  min-height: 100dvh;
  max-width: var(--page-max);
  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-hero {
  width: 100%;
  display: flex;
  justify-content: center;
}

.splash-content {
  /* z-index عمداً ندارد: با z-index روی عنصر position شده یک stacking context
     ساخته می‌شود و mix-blend-mode ویدیو (حذف پس‌زمینه‌ی سفید) به پس‌زمینه‌ی
     صفحه نمی‌رسد. ترتیب نمایش روی orb ها با ترتیب DOM تأمین است. */
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

/* Logo area */


/* 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(77, 125, 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) {


  .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: var(--page-max);
  }


  .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: var(--page-max);
  }

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