/* ─── Variables ─────────────────────────────────────────────────── */
:root {
  --clr-primary:       #E8234A;
  --clr-primary-dark:  #C41A3C;
  --clr-primary-light: #FF6B8A;
  --clr-green:         #4CAF50;
  --clr-bg:            #FFFFFF;
  --clr-surface:       #F8F9FA;
  --clr-border:        #EAEAEA;
  --clr-text:          #1A1A2E;
  --clr-muted:         #666677;
  --clr-white:         #FFFFFF;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:  0 24px 64px rgba(0,0,0,.12);

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max-w:      1140px;
  --nav-h:      68px;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

/* ─── Utilities ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(232,35,74,.28);
}
.btn-primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,35,74,.36);
}
.btn-primary:active { transform: translateY(0); }

/* ─── Animations ─────────────────────────────────────────────────── */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.animate.visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }

/* ─── Navigation ──────────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color .2s, box-shadow .2s;
}
#main-nav.scrolled {
  border-color: var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--clr-text);
}
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }

#nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
#nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color .15s;
}
#nav-links a:hover { color: var(--clr-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  padding: 3px;
  gap: 2px;
}
.lang-toggle button {
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-muted);
  transition: background .2s, color .2s;
}
.lang-toggle button.active {
  background: var(--clr-primary);
  color: var(--clr-white);
}

/* Hamburger */
#nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
#nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 80px;
  background: linear-gradient(160deg, #fff7f9 0%, #ffffff 60%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-tagline {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(232,35,74,.08);
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: 20px;
  white-space: pre-line;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--clr-text);
  color: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  transition: transform .15s, background .2s;
  min-width: 148px;
}
.store-badge:hover { background: #2d2d3e; transform: translateY(-2px); }
.store-badge svg { flex-shrink: 0; }
.store-badge-label { font-size: .7rem; opacity: .75; line-height: 1; }
.store-badge-store { font-size: .95rem; font-weight: 700; line-height: 1.2; margin-top: 2px; }

/* iOS coming-soon badge */
.store-badge--soon {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}
.store-badge--soon:hover { background: var(--clr-text); transform: none; }

/* Phone mockups */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 520px;
}

.phone-mockup {
  position: absolute;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(0,0,0,.06);
}
.phone-mockup img { width: 100%; height: 100%; object-fit: cover; }

.phone-main {
  width: 220px;
  height: 460px;
  z-index: 2;
  bottom: 0;
}
.phone-back-left {
  width: 190px;
  height: 400px;
  left: 0;
  bottom: 20px;
  z-index: 1;
  opacity: .85;
  transform: rotate(-8deg) translateX(20px);
}
.phone-back-right {
  width: 190px;
  height: 400px;
  right: 0;
  bottom: 20px;
  z-index: 1;
  opacity: .85;
  transform: rotate(8deg) translateX(-20px);
}

/* ─── Section commons ────────────────────────────────────────────── */
.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  color: var(--clr-text);
}
.section-heading span { color: var(--clr-primary); }

/* ─── Features ────────────────────────────────────────────────────── */
#features {
  padding: 96px 0;
  background: var(--clr-surface);
}

#features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--clr-bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-text);
}
.feature-text {
  font-size: .95rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ─── Screenshots ─────────────────────────────────────────────────── */
#screenshots {
  padding: 96px 0;
}

#screenshots-carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

/* Stage: fixed height so absolute slides stack cleanly.
   Image ratio 1280:2856 ≈ 1:2.23. At 250px slide width:
   image = 230px wide → 513px tall; pixel-frame adds 46px → 559px.
   580px gives comfortable breathing room. */
.carousel-stage {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .45s;
  /* in-slide captions are i18n data sources only */
}
.carousel-slide .carousel-caption { display: none; }
.carousel-slide img {
  display: block;
  width: 100%;
  border-radius: 32px;
}

/* ── Slide positions ── */
.carousel-slide[data-pos="active"] {
  transform: translateX(0) scale(1);
  z-index: 3;
  opacity: 1;
}
.carousel-slide[data-pos="prev"] {
  transform: translateX(-235px) scale(.72);
  z-index: 2;
  opacity: .7;
}
.carousel-slide[data-pos="next"] {
  transform: translateX(235px) scale(.72);
  z-index: 2;
  opacity: .7;
}
.carousel-slide[data-pos="far-left"] {
  transform: translateX(-360px) scale(.5);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.carousel-slide[data-pos="far-right"] {
  transform: translateX(360px) scale(.5);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Caption displayed below the stage */
.carousel-active-caption {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-muted);
  margin-top: 20px;
  min-height: 1.6em;
}

/* ─── Pixel phone frame ──────────────────────────────────────────── */
.pixel-frame {
  position: relative;
  background: #111111;
  border-radius: 44px;
  padding: 28px 10px 18px;
  box-shadow:
    0 0 0 1px #2c2c2c,
    0 0 0 3px #111111;
  width: 100%;
}

/* Punch-hole camera */
.pixel-frame::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  background: #0a0a0a;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #1e1e1e;
  z-index: 1;
}

/* Power button — right side */
.pixel-frame::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 30%;
  width: 4px;
  height: 52px;
  background: #252525;
  border-radius: 0 3px 3px 0;
}

/* Volume rocker — left side */
.pixel-vol {
  position: absolute;
  left: -4px;
  top: 24%;
  width: 4px;
  height: 76px;
  background: #252525;
  border-radius: 3px 0 0 3px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.carousel-prev,
.carousel-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text);
  transition: background .15s, border-color .15s, color .15s;
  box-shadow: var(--shadow-sm);
}
.carousel-prev:hover,
.carousel-next:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

.carousel-dots {
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-border);
  transition: background .2s, transform .2s;
}
.carousel-dot.active {
  background: var(--clr-primary);
  transform: scale(1.3);
}

/* ─── CTA ─────────────────────────────────────────────────────────── */
#cta {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #c41a3c 100%);
  text-align: center;
}
#cta .section-heading {
  color: var(--clr-white);
  margin-bottom: 16px;
}
#cta .section-heading span { color: rgba(255,255,255,.85); }
.cta-subtext {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 40px;
}
.cta-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cta-badges .store-badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.cta-badges .store-badge:hover { background: rgba(255,255,255,.25); }
.cta-badges .store-badge--soon:hover { background: rgba(255,255,255,.15); }

/* ─── Footer ──────────────────────────────────────────────────────── */
footer {
  padding: 56px 0 32px;
  background: var(--clr-text);
  color: var(--clr-white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { color: var(--clr-white); margin-bottom: 14px; }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.5); }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.footer-col a:hover { color: var(--clr-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  font-size: .85rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #features-list { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtext { margin: 0 auto 36px; }
  .hero-badges { justify-content: center; }
  .hero-phones { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .carousel-stage { height: 460px; }
  .carousel-slide { width: 200px; }
  .carousel-slide[data-pos="prev"]  { transform: translateX(-185px) scale(.72); }
  .carousel-slide[data-pos="next"]  { transform: translateX(185px)  scale(.72); }
  .carousel-slide[data-pos="far-left"]  { transform: translateX(-290px) scale(.5); }
  .carousel-slide[data-pos="far-right"] { transform: translateX(290px)  scale(.5); }
}

@media (max-width: 640px) {
  #nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--clr-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-md);
  }
  #nav-links.open { display: flex; }
  #nav-hamburger { display: flex; }
  .nav-cta { display: none; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  #features-list { grid-template-columns: 1fr; }
}
