/* Mooziko landing — Persian, RTL, dark theme.
   Tokens match the mobile app's AppColors so the web ↔ app feels like
   one product. Brand gradient: pink #FF1B6B → purple #7B2CBF → orange #FF8C42. */

:root {
  --bg: #0A0612;
  --surface: #15101E;
  --surface-2: #1F1830;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F4EEFF;
  --text-2: rgba(244, 238, 255, 0.72);
  --text-3: rgba(244, 238, 255, 0.5);

  --pink: #FF1B6B;
  --purple: #7B2CBF;
  --orange: #FF8C42;
  --rose: #FF6BA0;

  --grad-brand: linear-gradient(135deg, #FF1B6B 0%, #7B2CBF 50%, #FF8C42 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 27, 107, 0.18), rgba(123, 44, 191, 0.18));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-glow: 0 24px 60px -16px rgba(255, 27, 107, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  /* Brand-tinted ambient gradient behind the whole page so dark surfaces
     don't feel flat. Fixed so it doesn't move with scroll. */
  background:
    radial-gradient(900px 700px at 85% -10%, rgba(255, 27, 107, 0.18), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(123, 44, 191, 0.18), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(255, 140, 66, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------------- Topbar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 6, 18, 0.65);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-brand);
  padding: 4px;
  box-shadow: var(--shadow-glow);
}
.brand-name {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.2px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  padding: 10px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 13px;
}
.btn-ghost:hover {
  background: rgba(255, 27, 107, 0.18);
  border-color: rgba(255, 27, 107, 0.45);
}

/* Store buttons — pill with two-line label, matches the play-store /
   app-store visual idiom but in our brand colours. */
.btn-store {
  padding: 10px 22px 10px 18px;
  color: white;
  background: var(--grad-brand);
  box-shadow: 0 18px 40px -12px rgba(255, 27, 107, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  min-width: 200px;
}
.btn-store:hover {
  box-shadow: 0 22px 50px -10px rgba(255, 27, 107, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-store[data-store="ios"] {
  background: linear-gradient(135deg, #2A1547 0%, #4B2D8E 100%);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn-store-top { font-size: 10px; font-weight: 500; opacity: 0.8; }
.btn-store-bottom { font-size: 17px; font-weight: 900; letter-spacing: 0.2px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 60px 28px 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 400px at 80% 30%, rgba(255, 27, 107, 0.35), transparent 60%),
    radial-gradient(420px 340px at 20% 60%, rgba(123, 44, 191, 0.35), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner {
  /* Widened from 1180px → 1300px and rebalanced from 1.15fr/0.85fr → 1fr/1.2fr
     to make room for the 392px-tall 3D logo that now sits next to the
     280px phone mockup on the right side of the page. */
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 27, 107, 0.15);
  border: 1px solid rgba(255, 27, 107, 0.35);
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}
.hero-title br + * { display: inline; }
.hero-subtitle {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-2);
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-note {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------------- Phone mockup (pure CSS, no image needed) ---------------- */
.hero-phone {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* 3D logo beside the phone. Sized to 70% of the phone-frame's 560px
   height. In RTL flex-row the DOM-first child (this element) renders
   on the visual right of the phone-frame. */
.hero-3d {
  width: 392px;
  height: 392px;
  flex-shrink: 0;
  background: transparent;
  --poster-color: transparent;
  filter: drop-shadow(0 30px 70px rgba(255, 27, 107, 0.35))
          drop-shadow(0 18px 50px rgba(123, 44, 191, 0.25));
}
.phone-frame {
  width: 280px;
  height: 560px;
  background: #0E0918;
  border: 8px solid #1F1830;
  border-radius: 42px;
  padding: 14px 12px;
  position: relative;
  box-shadow:
    0 50px 100px -20px rgba(255, 27, 107, 0.35),
    0 30px 80px -20px rgba(123, 44, 191, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: phoneFloat 6s ease-in-out infinite;
}
.phone-frame::before {
  /* Speaker notch */
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1F1830;
  border-radius: 12px;
}
.phone-screen {
  width: 100%;
  height: 100%;
  padding: 36px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone-bar {
  height: 12px;
  width: 60%;
  margin: 0 auto;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}
.phone-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  /* Subtle radial wash behind the transparent logo so the cover slot has
     some brand colour but doesn't fight with the colourful glyph itself.
     Stronger than no-bg, weaker than the full brand gradient — the logo
     reads as the focal point. */
  background:
    radial-gradient(80% 80% at 50% 40%, rgba(255, 27, 107, 0.35), rgba(123, 44, 191, 0.18) 60%, transparent 100%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 40px -12px rgba(255, 27, 107, 0.5);
  animation: coverPulse 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
}
.phone-cover-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
.phone-title {
  height: 16px;
  width: 75%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  margin: 4px 0 0;
}
.phone-subtitle {
  height: 12px;
  width: 50%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
}
.phone-progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 8px;
}
.phone-progress-fill {
  width: 35%;
  height: 100%;
  background: var(--pink);
  animation: progressGrow 8s linear infinite;
}
.phone-controls {
  /* Lock to LTR so the music-control row reads universally
     (shuffle | prev | play | next | repeat) even on the RTL page. */
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.phone-ctrl {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}
.phone-ctrl svg {
  width: 55%;
  height: 55%;
}
.phone-ctrl-sm { width: 26px; height: 26px; }
.phone-ctrl-md { width: 32px; height: 32px; }
.phone-ctrl-lg {
  width: 50px;
  height: 50px;
  background: var(--grad-brand);
  box-shadow: 0 12px 24px -6px rgba(255, 27, 107, 0.6);
  color: white;
}
/* Play triangle reads better slightly off-centre to the right — the
   geometric centre of a triangle sits a touch left of its bounding box. */
.phone-ctrl-lg svg {
  width: 50%;
  height: 50%;
  transform: translateX(2px);
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes coverPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@keyframes progressGrow {
  0% { width: 10%; }
  100% { width: 90%; }
}

/* ---------------- Sections ---------------- */
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}
.section-sub {
  text-align: center;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 50px;
  font-size: 16px;
  line-height: 1.8;
}

/* ---------------- Features ---------------- */
.features {
  padding: 80px 28px 60px;
  max-width: 1180px;
  margin: 0 auto;
}
/* Centred phone mockup sitting between the section subtitle and the
   feature cards — gives the section a concrete "see the app" visual
   before the bullet-style feature list. */
.features-phone {
  display: flex;
  justify-content: center;
  margin: 30px 0 50px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 27, 107, 0.35);
  box-shadow: 0 24px 60px -20px rgba(255, 27, 107, 0.28);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 27, 107, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--rose);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.85;
}

/* ---------------- About ---------------- */
.about {
  padding: 80px 28px;
}
.about-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
}
.about-inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 27, 107, 0.5), rgba(123, 44, 191, 0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.about p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 2;
  margin: 0 0 36px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-value {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 600;
}

/* ---------------- Bottom CTA ---------------- */
.cta-bottom {
  padding: 80px 28px 100px;
}
.cta-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}
.cta-inner p {
  color: var(--text-2);
  font-size: 16px;
  margin: 0 0 32px;
}
.cta-inner .hero-ctas { justify-content: center; }

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 6, 18, 0.6);
  padding: 36px 28px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.footer-links a:hover { color: var(--rose); }
.footer-copy {
  width: 100%;
  text-align: center;
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-3);
}
.footer-credit {
  /* Latin credit line sits centred under the Persian copyright.
     direction:ltr keeps the year range rendering correctly even
     though the rest of the page is RTL. */
  width: 100%;
  text-align: center;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-3);
  direction: ltr;
  unicode-bidi: isolate;
}
.footer-credit a {
  color: var(--text-2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.footer-credit a:hover {
  color: var(--rose);
  text-decoration-color: var(--rose);
}
.credit-years {
  opacity: 0.7;
  margin-left: 4px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 880px) {
  .hero { padding: 40px 20px 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text .eyebrow { margin-inline: auto; }
  .hero-subtitle { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-phone { order: -1; flex-direction: column; gap: 16px; }
  .phone-frame { width: 220px; height: 440px; }
  /* 70% of the smaller phone height = 308px. Drop to 280px so it sits
     above the phone without overflowing narrow viewports. */
  .hero-3d { width: 280px; height: 280px; }

  .topbar { padding: 12px 16px; }
  .nav { gap: 4px; }
  .nav-link { display: none; }

  .features, .about, .cta-bottom { padding-left: 16px; padding-right: 16px; }
  .about-inner { padding: 30px 22px; }
  .about-stats { gap: 12px; }
}

@media (max-width: 480px) {
  .btn-store { min-width: 0; flex: 1; }
  .hero-title { font-size: 32px; }
}
