@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-primary: #063F89;
  --color-primary-dark: #042d63;
  --color-primary-light: #0a5299;
  --color-secondary: #FFC301;
  --color-secondary-dark: #e6af00;
}

* {
  font-family: 'Vazirmatn', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-primary);
  color: #fff;
}

body.loading {
  overflow: hidden;
}

/* Hero diagonal pattern (legacy) */
.hero-pattern {
  background-color: var(--color-primary);
}

/* ===== Cosmic Hero ===== */
.hero-cosmos {
  background: linear-gradient(180deg, #020818 0%, var(--color-primary-dark) 35%, var(--color-primary) 100%);
}

.hero-cosmos__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#hero-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: nebulaDrift 20s ease-in-out infinite alternate;
}

.hero-nebula--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(255, 195, 1, 0.18) 0%, rgba(10, 82, 153, 0.25) 40%, transparent 70%);
  animation-duration: 18s;
}

.hero-nebula--2 {
  width: 600px;
  height: 600px;
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(106, 90, 205, 0.2) 0%, rgba(6, 63, 137, 0.3) 45%, transparent 70%);
  animation-duration: 24s;
  animation-delay: -5s;
}

.hero-nebula--3 {
  width: 350px;
  height: 350px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 195, 1, 0.08) 0%, rgba(6, 63, 137, 0.15) 50%, transparent 70%);
  animation-duration: 15s;
  animation-delay: -8s;
}

@keyframes nebulaDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 195, 1, 0.12);
  border-radius: 50%;
  animation: orbitSpin linear infinite;
}

.hero-orbit--1 {
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  margin: -210px 0 0 -210px;
  animation-duration: 40s;
}

.hero-orbit--2 {
  width: 620px;
  height: 620px;
  top: 50%;
  left: 50%;
  margin: -310px 0 0 -310px;
  animation-duration: 60s;
  animation-direction: reverse;
  border-color: rgba(255, 255, 255, 0.06);
}

.hero-orbit--3 {
  width: 900px;
  height: 900px;
  top: 50%;
  left: 50%;
  margin: -450px 0 0 -450px;
  animation-duration: 90s;
  border-color: rgba(255, 195, 1, 0.05);
  border-style: dashed;
}

.hero-orbit__dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 195, 1, 0.4), 0 0 16px rgba(255, 195, 1, 0.15);
}

.hero-orbit__dot--sm {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  top: -3px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-planet {
  position: absolute;
  border-radius: 50%;
  animation: planetFloat ease-in-out infinite alternate;
}

.hero-planet--1 {
  width: 80px;
  height: 80px;
  top: 18%;
  left: 12%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 195, 1, 0.9) 0%, rgba(255, 150, 0, 0.6) 40%, rgba(6, 63, 137, 0.3) 100%);
  box-shadow: 0 0 40px rgba(255, 195, 1, 0.3), inset -8px -8px 20px rgba(0, 0, 0, 0.3);
  animation-duration: 8s;
}

.hero-planet--2 {
  width: 36px;
  height: 36px;
  top: 25%;
  right: 18%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, rgba(200, 220, 255, 0.8) 50%, rgba(100, 130, 200, 0.5) 100%);
  box-shadow: 0 0 20px rgba(200, 220, 255, 0.4);
  animation-duration: 6s;
  animation-delay: -2s;
}

.hero-planet--3 {
  width: 120px;
  height: 120px;
  bottom: 10%;
  right: 8%;
  background: radial-gradient(circle at 40% 35%, rgba(106, 90, 205, 0.7) 0%, rgba(6, 63, 137, 0.8) 60%, rgba(2, 8, 24, 0.9) 100%);
  box-shadow: 0 0 60px rgba(106, 90, 205, 0.25), inset -12px -12px 30px rgba(0, 0, 0, 0.4);
  animation-duration: 10s;
  animation-delay: -4s;
  opacity: 0.7;
}

@keyframes planetFloat {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-15px) translateX(8px); }
}

.hero-shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 195, 1, 0.9), transparent);
  border-radius: 2px;
  opacity: 0;
  animation: shootingStar 8s ease-in-out infinite;
}

.hero-shooting-star--1 {
  top: 20%;
  right: 30%;
  transform: rotate(-35deg);
  animation-delay: 0s;
}

.hero-shooting-star--2 {
  top: 45%;
  right: 60%;
  transform: rotate(-25deg);
  animation-delay: 4s;
  width: 70px;
}

@keyframes shootingStar {
  0%, 85%, 100% { opacity: 0; transform: rotate(-35deg) translateX(0); }
  88% { opacity: 1; }
  95% { opacity: 0; transform: rotate(-35deg) translateX(-200px); }
}

.hero-cosmos__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(2, 8, 24, 0.6) 100%);
}

@media (max-width: 768px) {
  .hero-orbit--3,
  .hero-planet--3,
  .hero-shooting-star--2 {
    display: none;
  }

  .hero-nebula {
    filter: blur(40px);
    opacity: 0.35;
  }

  .hero-planet--1 {
    width: 50px;
    height: 50px;
    opacity: 0.6;
  }

  .hero-planet--2 {
    width: 24px;
    height: 24px;
    opacity: 0.6;
  }
}

/* ===== Page Loader ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #020818 0%, var(--color-primary-dark) 50%, var(--color-primary) 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__cosmos {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-loader__star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  animation: loaderStarTwinkle 4s ease-in-out infinite;
}

.page-loader__star--1 { top: 20%; left: 15%; animation-delay: 0s; }
.page-loader__star--2 { top: 60%; right: 20%; animation-delay: 0.7s; width: 2px; height: 2px; }
.page-loader__star--3 { top: 35%; right: 40%; animation-delay: 1.2s; width: 4px; height: 4px; background: var(--color-secondary); }

.page-loader__orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border: 1px solid rgba(255, 195, 1, 0.08);
  border-radius: 50%;
  animation: orbitSpin 20s linear infinite;
}

@keyframes loaderStarTwinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.1); }
}

.page-loader__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.page-loader__logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  animation: loaderLogoPulse 3.5s ease-in-out infinite;
}

@keyframes loaderLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(255, 195, 1, 0.15)); }
  50% { transform: scale(1.02); filter: drop-shadow(0 0 18px rgba(255, 195, 1, 0.25)); }
}

.page-loader__spinner {
  position: relative;
  width: 56px;
  height: 56px;
}

.page-loader__spinner-ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: loaderSpin 1s linear infinite;
}

.page-loader__spinner-ring--2 {
  inset: 8px;
  border-top-color: rgba(255, 195, 1, 0.4);
  animation-duration: 1.5s;
  animation-direction: reverse;
}

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

.page-loader__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.page-loader__progress {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.page-loader__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-secondary), #fff);
  border-radius: 999px;
  animation: loaderProgress 1.8s ease-in-out forwards;
  box-shadow: 0 0 10px rgba(255, 195, 1, 0.5);
}

@keyframes loaderProgress {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* Gradient overlays */
.gradient-radial {
  background: radial-gradient(ellipse at 50% 0%, rgba(10, 82, 153, 0.6) 0%, transparent 70%);
}

.glow-secondary {
  box-shadow: 0 0 60px rgba(255, 195, 1, 0.15);
}

/* Feature cards */
.feature-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 195, 1, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Timeline */
.timeline-line {
  background: linear-gradient(90deg, transparent, rgba(255, 195, 1, 0.5), transparent);
}

.timeline-step {
  transition: transform 0.3s ease;
}

.timeline-step:hover {
  transform: scale(1.1);
}

/* Buttons */
.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 195, 1, 0.35);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background: rgba(255, 195, 1, 0.08);
}

.btn-ghost {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-question {
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.3s ease;
}

/* Testimonial carousel — center focus */
.testimonial-slider {
  padding-inline: 2.5rem;
}

.testimonial-viewport {
  overflow: hidden;
  padding: 1.5rem 0 2rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonial-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.65s cubic-bezier(0.34, 1.02, 0.38, 1);
  will-change: transform;
}

.testimonial-card-slide {
  position: relative;
  flex: 0 0 min(78vw, 300px);
  padding: 1.35rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(4, 45, 99, 0.85) 0%, rgba(6, 63, 137, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: scale(0.86);
  opacity: 0.45;
  filter: blur(0.4px);
  transition:
    transform 0.65s cubic-bezier(0.34, 1.02, 0.38, 1),
    opacity 0.65s ease,
    filter 0.65s ease,
    border-color 0.65s ease,
    box-shadow 0.65s ease;
  cursor: pointer;
  user-select: none;
  transform-origin: center center;
}

.testimonial-card-slide.is-active {
  transform: scale(1.08);
  opacity: 1;
  filter: blur(0);
  border-color: rgba(255, 195, 1, 0.35);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 195, 1, 0.12),
    0 0 48px rgba(255, 195, 1, 0.1);
  z-index: 2;
}

.testimonial-card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 195, 1, 0.12) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.testimonial-card-slide.is-active .testimonial-card__glow {
  opacity: 1;
}

.testimonial-card__quote {
  width: 2rem;
  height: 2rem;
  color: rgba(255, 195, 1, 0.25);
  margin-bottom: 0.75rem;
  transition: color 0.65s ease, transform 0.65s ease;
}

.testimonial-card-slide.is-active .testimonial-card__quote {
  color: rgba(255, 195, 1, 0.7);
  transform: scale(1.1);
}

.testimonial-card__text {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  transition: color 0.65s ease, font-size 0.65s ease;
}

.testimonial-card-slide.is-active .testimonial-card__text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 195, 1, 0.15);
  color: var(--color-secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.65s ease, box-shadow 0.65s ease;
}

.testimonial-card-slide.is-active .testimonial-card__avatar {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 195, 1, 0.25);
}

.testimonial-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
}

.testimonial-dots button.is-active {
  width: 1.75rem;
  background: var(--color-secondary);
}

.testimonial-dots button:hover {
  background: rgba(255, 195, 1, 0.6);
}

@media (min-width: 768px) {
  .testimonial-slider {
    padding-inline: 3rem;
  }

  .testimonial-card-slide {
    flex: 0 0 300px;
  }

  .testimonial-card-slide.is-active .testimonial-card__text {
    font-size: 1.0625rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-viewport {
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }

  .testimonial-card-slide {
    flex: 0 0 320px;
  }
}

.testimonial-card {
  background: linear-gradient(145deg, rgba(4, 45, 99, 0.9) 0%, rgba(6, 63, 137, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Support box */
.support-box {
  background: linear-gradient(145deg, rgba(4, 45, 99, 0.95) 0%, rgba(6, 63, 137, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Page hero for inner pages */
.page-hero {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

/* Step guide cards */
.step-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 4px solid var(--color-secondary);
}

/* Download app badges */
.store-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.store-badge__icon {
  height: 2.5rem;
  width: auto;
  max-width: 7rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0.375rem;
}

.store-badge:hover {
  background: rgba(255, 195, 1, 0.12);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

/* Phone device mockup */
.phone-device {
  position: relative;
  padding: 0.5rem;
}

.phone-device__frame {
  position: relative;
  width: min(72vw, 280px);
  height: min(130vw, 560px);
  background: #0a1628;
  border-radius: 2.75rem;
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.phone-device__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 1.35rem;
  background: #0a1628;
  border-radius: 0 0 1rem 1rem;
  z-index: 2;
}

.phone-device__screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 2.4rem;
}

.phone-device__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (min-width: 1024px) {
  .phone-device__frame {
    width: 300px;
    height: 600px;
  }
}

/* Form inputs */
.form-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(255, 195, 1, 0.15);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  animation-play-state: paused;
}

.hero-cosmos--ready .animate-fade-in-up {
  animation-play-state: running;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Rotating text */
.text-rotate {
  display: inline-grid;
  grid-template: 1fr / 1fr;
  vertical-align: bottom;
  text-align: center;
}

.text-rotate__item {
  grid-area: 1 / 1;
  color: #fff;
  opacity: 0;
  transform: translateY(1.25rem) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  white-space: nowrap;
  will-change: opacity, transform, filter;
}

.text-rotate__item.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.text-rotate__item.is-exiting {
  opacity: 0;
  transform: translateY(-1rem) scale(0.96);
  filter: blur(6px);
}

.text-rotate--hero .text-rotate__item.is-active {
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.12);
}

.text-rotate--hero {
  display: grid;
  grid-template: 1fr / 1fr;
  width: 100%;
  justify-items: center;
  margin-top: 0.1em;
  min-height: 1.15em;
}

@media (max-width: 639px) {
  .text-rotate__item {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-rotate__item:not(.is-active) {
    display: none;
  }

  .text-rotate__item.is-active {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-badge-dot {
  animation: softPulse 3s ease-in-out infinite;
}

/* Hero stats — simple circles with count-up */
.hero-stat {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 195, 1, 0.25);
  box-shadow: 0 0 20px rgba(255, 195, 1, 0.08);
}

.hero-stat--featured {
  border-color: rgba(255, 195, 1, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stat__value {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  color: var(--color-secondary);
  font-variant-numeric: tabular-nums;
}

.hero-stat--featured .hero-stat__value {
  font-size: 1.125rem;
}

.hero-stat__label {
  font-size: 0.625rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

@media (min-width: 640px) {
  .hero-stat__value {
    font-size: 1.25rem;
  }

  .hero-stat--featured .hero-stat__value {
    font-size: 1.4rem;
  }

  .hero-stat__label {
    font-size: 0.75rem;
  }
}

/* Coming soon — countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 28rem;
  margin-inline: auto;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 195, 1, 0.22);
  box-shadow: 0 0 24px rgba(255, 195, 1, 0.06);
}

.countdown__value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-secondary);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.coming-soon.hero-cosmos--ready .animate-fade-in-up,
.hero-cosmos.coming-soon.hero-cosmos--ready .animate-fade-in-up {
  animation-play-state: running;
}

@media (min-width: 640px) {
  .countdown {
    gap: 1rem;
  }

  .countdown__item {
    padding: 1.25rem 0.75rem;
  }

  .countdown__value {
    font-size: 2.25rem;
  }

  .countdown__label {
    font-size: 0.875rem;
  }
}

@keyframes softPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 4px;
}

/* ===== Responsive / Mobile ===== */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

#site-header {
  padding-top: env(safe-area-inset-top, 0);
}

.container {
  width: 100%;
  max-width: 100%;
}

/* Timeline — vertical on mobile */
@media (max-width: 639px) {
  .timeline-grid {
    max-width: 22rem;
    margin-inline: auto;
  }

  .timeline-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
    padding: 0.35rem 0;
  }

  .timeline-step__icon {
    margin: 0 !important;
    flex-shrink: 0;
    width: 3rem !important;
    height: 3rem !important;
  }

  .timeline-step__icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .timeline-step p {
    margin: 0;
    text-align: right;
    flex: 1;
    font-size: 0.875rem;
  }
}

/* Testimonials — mobile tweaks */
@media (max-width: 767px) {
  .testimonial-slider {
    padding-inline: 2rem;
  }
}

/* Hero mobile */
@media (max-width: 767px) {
  .hero-cosmos {
    min-height: 100svh;
  }

  .hero-cosmos .container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-orbit--1,
  .hero-orbit--2 {
    display: none;
  }

  .hero-nebula--1 {
    width: 280px;
    height: 280px;
  }

  .hero-nebula--2 {
    width: 320px;
    height: 320px;
  }

  .hero-nebula--3 {
    width: 200px;
    height: 200px;
  }
}

/* Sections & typography */
@media (max-width: 767px) {
  section:not(.hero-cosmos) {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .feature-card {
    padding: 1.25rem !important;
  }

  .support-box {
    padding: 1.5rem !important;
  }

  .step-card {
    padding: 1.25rem !important;
  }

  .page-hero {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .page-hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .page-hero p {
    font-size: 0.9375rem;
  }

  footer {
    padding-top: 2.5rem !important;
  }

  footer .grid {
    gap: 2rem !important;
  }

  .faq-item.active .faq-answer {
    max-height: 500px;
  }

  .btn-primary,
  .btn-outline,
  .btn-ghost {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .store-badge {
    width: 100%;
    max-width: none !important;
  }

  .store-badge__icon {
    height: 2.25rem;
    max-width: 6rem;
  }

  .page-loader__logo {
    height: 52px;
  }

  .page-loader__progress {
    width: 140px;
  }
}

/* Phone mockup legacy alias */
.phone-mockup {
  /* styles applied via .phone-device__frame */
}

@media (max-width: 767px) {
  .phone-mockup {
    width: min(72vw, 260px) !important;
    height: min(130vw, 480px) !important;
    border-radius: 2rem !important;
  }
}

/* Disable hover lift on touch */
@media (hover: none) {
  .feature-card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .store-badge:hover {
    transform: none;
  }
}
