/* ============================================
   صانع مد — Landing (white / orange / navy)
   ============================================ */
:root {
  --navy: #172554;
  --orange: #ea580c;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --white: #ffffff;
  --radius: 20px;
  --shadow-lg: 0 30px 60px -18px rgba(23, 37, 84, 0.28);
  --container: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: clip;
  line-height: 1.8;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

::selection { background: var(--orange); color: #fff; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============ HEADER ============ */
.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 14px clamp(16px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand__logo { height: 42px; width: auto; }

.topbar__nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}
.topbar__nav a { transition: color 0.25s; }
.topbar__nav a:hover { color: var(--orange); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 170px clamp(20px, 6vw, 72px) 100px;
  overflow: clip;
}

/* floating fashion icons — no background, just icons */
.hero__floats { position: absolute; inset: 0; pointer-events: none; }

.float {
  position: absolute;
  color: var(--orange);
  opacity: 0.55;
  animation: floatY 7s ease-in-out infinite alternate;
}
.float svg { width: 34px; height: 34px; display: block; }

.float--1 { top: 22%; inset-inline-start: 9%; animation-delay: -1s; }
.float--2 { top: 16%; inset-inline-end: 11%; color: var(--navy); animation-delay: -3s; }
.float--3 { bottom: 20%; inset-inline-start: 14%; color: var(--navy); animation-delay: -5s; }
.float--4 { bottom: 26%; inset-inline-end: 8%; animation-delay: -2s; }
.float--5 { top: 52%; inset-inline-start: 3.5%; color: var(--navy); animation-delay: -4s; }
.float--5 svg { width: 28px; height: 28px; }

@keyframes floatY {
  from { transform: translateY(0) rotate(-4deg); }
  to   { transform: translateY(-18px) rotate(5deg); }
}


.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.hero__title {
  font-size: clamp(36px, 6.5vw, 68px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.hero__lead {
  max-width: 560px;
  font-size: clamp(15.5px, 1.8vw, 18px);
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn--orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 16px 32px -12px rgba(234, 88, 12, 0.5);
}
.btn--orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px -14px rgba(234, 88, 12, 0.6);
}

.btn--navy {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--navy:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -14px rgba(23, 37, 84, 0.45);
}

/* ============ SECTION HEAD ============ */
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
  display: grid;
  gap: 10px;
}
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 900;
  color: var(--navy);
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ============ 3D STACK ============ */
.stack {
  padding: 40px clamp(20px, 6vw, 72px) 120px;
  overflow: clip;
}

.stack__scene {
  position: relative;
  max-width: var(--container);
  height: clamp(480px, 60vw, 620px);
  margin: 0 auto;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.card3d {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: box-shadow 0.5s;
  will-change: transform;
}
.card3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* landing4 — tall dashboard, back layer */
.card3d--back {
  width: min(52%, 500px);
  height: 92%;
  inset-inline-start: 2%;
  top: 4%;
  transform: rotateY(14deg) rotateX(4deg) translateZ(-140px) scale(0.96);
  z-index: 1;
  opacity: 0.95;
}

/* inde1 — wide analytics, middle layer */
.card3d--mid {
  width: min(56%, 540px);
  height: 62%;
  inset-inline-end: 4%;
  top: 6%;
  transform: rotateY(-12deg) rotateX(3deg) translateZ(-40px);
  z-index: 2;
}

/* index2 — pos, front layer */
.card3d--front {
  width: min(50%, 480px);
  height: 54%;
  inset-inline-end: 14%;
  bottom: 2%;
  transform: rotateY(-8deg) translateZ(90px);
  z-index: 3;
}

/* index3 — small mobile app, floating front */
.card3d--phone {
  width: clamp(120px, 15vw, 170px);
  aspect-ratio: 416 / 634;
  inset-inline-start: 12%;
  bottom: 0;
  border-radius: 24px;
  border: 5px solid #fff;
  transform: rotateY(10deg) rotateZ(-3deg) translateZ(170px);
  z-index: 4;
  animation: phoneFloat 6s ease-in-out infinite alternate;
}
@keyframes phoneFloat {
  from { transform: rotateY(10deg) rotateZ(-3deg) translateZ(170px) translateY(0); }
  to   { transform: rotateY(10deg) rotateZ(-3deg) translateZ(170px) translateY(-14px); }
}

/* ============ EDITIONS ============ */
.editions {
  padding: 30px clamp(20px, 6vw, 72px) 110px;
}

.editions__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px 32px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}
.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.plan__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.plan__head h3 { font-size: 21px; font-weight: 800; color: var(--navy); }
.plan__head p { font-size: 13.5px; color: var(--muted); }

.plan__tag {
  flex-shrink: 0;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
}
.plan__tag--vip { background: var(--orange); color: #fff; }
.plan__tag--pro { background: var(--navy); color: #fff; }

.plan__list {
  list-style: none;
  display: grid;
  gap: 11px;
}
.plan__list li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.75;
}
.plan__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff7ed;
  border: 1.5px solid var(--orange);
}
.plan__list li::after {
  content: "";
  position: absolute;
  inset-inline-start: 5px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.plan:nth-child(2) .plan__list li::before { background: #eff6ff; border-color: var(--navy); }
.plan:nth-child(2) .plan__list li::after { background: var(--navy); }

.plan__note {
  position: relative;
  padding: 20px 22px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--orange);
  box-shadow: 0 10px 24px -14px rgba(23, 37, 84, 0.18);
}
.plan__note-badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 18px;
  padding: 3px 13px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(234, 88, 12, 0.55);
}
.plan__note p {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.95;
}
.plan:nth-child(2) .plan__note { border-inline-start-color: var(--navy); }
.plan:nth-child(2) .plan__note-badge { background: var(--navy); box-shadow: 0 6px 14px -6px rgba(23, 37, 84, 0.55); }

.plan__cta {
  display: block;
  text-align: center;
  padding: 15px 24px;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}
.plan__cta--vip {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(234, 88, 12, 0.5);
}
.plan__cta--vip:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -14px rgba(234, 88, 12, 0.6);
}
.plan__cta--pro {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.plan__cta--pro:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -14px rgba(23, 37, 84, 0.45);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px clamp(20px, 6vw, 72px) 34px;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.footer__logo { height: 44px; width: auto; }

.footer__consult {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.footer__consult:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}
.footer__consult b { font-weight: 800; letter-spacing: 0.5px; }

.footer__love {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.footer__love a {
  color: var(--orange);
  border-bottom: 1.5px solid #fdba74;
  transition: color 0.25s, border-color 0.25s;
}
.footer__love a:hover { color: var(--navy); border-color: var(--navy); }

.footer__copy { font-size: 12.5px; color: var(--muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .stack__scene { height: clamp(420px, 58vw, 540px); }
}

@media (max-width: 720px) {
  .hero { padding: 140px 20px 70px; }

  .float svg { width: 24px; height: 24px; }
  .float--1 { top: 13%; inset-inline-start: 5%; }
  .float--2 { top: 10%; inset-inline-end: 6%; }
  .float--3,
  .float--5 { display: none; }
  .float--4 { bottom: 10%; inset-inline-end: 5%; }

  /* stacked cards → clean vertical list */
  .stack { padding-bottom: 80px; }
  .stack__scene {
    height: auto;
    perspective: none;
    display: grid;
    gap: 16px;
  }
  .card3d {
    position: relative;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    animation: none !important;
  }
  .card3d img { height: auto; max-height: 400px; }
  .card3d--phone {
    max-width: 200px;
    margin: 0 auto;
    border-width: 4px;
  }
  .card3d--phone img { max-height: none; }

  .editions__inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar { padding: 12px 16px; }
  .brand__logo { height: 36px; }
  .topbar__nav { gap: 18px; font-size: 14px; }

  .hero { padding: 120px 16px 60px; }
  .hero__inner { gap: 18px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }

  .section-head { margin-bottom: 36px; }

  .editions { padding: 20px 16px 70px; }
  .plan { padding: 26px 20px; gap: 18px; }
  .plan__head { flex-wrap: wrap; }

  .footer { padding: 40px 16px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
