:root {
  --brand: #4B3BE8;
  --brand-soft: #EEECFD;
  --surface: #FFFFFF;
  --line: #E4E4EE;
  --frame: #12131C;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #9B8CFF;
    --brand-soft: rgba(155, 140, 255, 0.12);
    --surface: #171A2B;
    --line: #262A3F;
    --frame: #000000;
  }
}

/* Phone frames: screenshots are 600x1227 (status bar cropped) */
.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 600 / 1227;
  box-sizing: content-box;
  padding: 10px;
  background: var(--frame);
  border-radius: 44px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -20px rgba(43, 30, 160, 0.45),
    0 18px 36px -18px rgba(0, 0, 0, 0.35);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #F7F7FA;
}

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

.phone-sm {
  width: 220px;
  padding: 8px;
  border-radius: 34px;
}

.phone-sm .phone-screen {
  border-radius: 26px;
}

.phone-behind {
  position: absolute;
  top: 40px;
  right: -20px;
  width: 250px;
  transform: rotate(7deg);
  z-index: 0;
  opacity: 0.9;
}

.carousel-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.carousel-img.active {
  opacity: 1;
}

.hero-glow {
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(75, 59, 232, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(155, 140, 255, 0.12), transparent 70%);
}

.cta-glow {
  background:
    radial-gradient(ellipse 50% 60% at 15% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(13, 15, 26, 0.35), transparent 70%);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  transition: background-color 0.2s;
}

/* Modules */
.group-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748B;
  margin-bottom: 1rem;
}

.module {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.module:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.module-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.module h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.module p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748B;
}

@media (prefers-color-scheme: dark) {
  .module p { color: #94A3B8; }
}

.module-tag {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* Gallery */
.shot {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 4px 0 24px;
}

.shot figcaption {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748B;
}

.gallery-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  transition: border-color 0.2s;
}

.gallery-nav:hover {
  border-color: var(--brand);
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.footer-link {
  display: block;
  font-size: 0.875rem;
  color: #64748B;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--brand);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

@media (max-width: 480px) {
  .phone { width: 250px; }
  .phone-sm { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-img, .module { transition: none; }
}

/* Room inside the scroller so the frame shadows aren't clipped */
.gallery {
  margin: -24px -16px 0;
  padding: 24px 16px 32px;
  scroll-padding-left: 16px;
}

.phone-sm {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 16px 28px -14px rgba(43, 30, 160, 0.35);
}
