/* Fitex product landing — brand tokens */
:root {
  --bg: #0b0d10;
  --surface: #11151a;
  --elevated: #181d23;
  --text: #f5f7fa;
  --text-2: #a7b0bc;
  --text-3: #667085;
  --border: #252b33;
  --primary: #ef334c;
  --primary-hover: #ff4b61;
  --primary-soft: #3a151c;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --peek-h: clamp(14rem, 28vw, 20rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; color: var(--text-2); }

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--primary); color: #fff; }
.btn--solid:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Ambient orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.35;
  animation: drift 14s var(--ease) infinite alternate;
}
.orb--1 {
  width: 28rem; height: 28rem;
  background: var(--primary);
  top: -8rem; inset-inline-end: -6rem;
  opacity: 0.18;
}
.orb--2 {
  width: 22rem; height: 22rem;
  background: #7a1020;
  bottom: 10%; inset-inline-start: -8rem;
  opacity: 0.22;
  animation-delay: -4s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-3%, 4%) scale(1.08); }
}

main, .site-bar, .foot { position: relative; z-index: 1; }

/* Header */
.site-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-bar.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
.brand { margin-inline-end: auto; }
.brand__logo {
  height: 2.4rem; width: auto;
  filter: drop-shadow(0 0 12px rgba(239, 51, 76, 0.35));
  animation: logoFloat 4.5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.site-bar__nav {
  display: none; gap: 1.35rem;
  font-size: 0.88rem; color: var(--text-2);
}
.site-bar__nav a:hover { color: var(--text); }
@media (min-width: 860px) { .site-bar__nav { display: flex; } }

/* Hero */
.hero {
  position: relative;
  display: grid; gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--pad) 3rem;
  max-width: var(--max);
  margin-inline: auto;
  align-items: center;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: 2.75rem;
    min-height: min(72vh, 38rem);
  }
}

.hero__logo {
  width: min(14rem, 70%);
  height: auto;
  margin-bottom: 1rem;
  animation: logoIn 0.9s var(--ease) both;
}
@keyframes logoIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.85rem;
}
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Floating icons */
.float-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.fio {
  position: absolute;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  color: var(--primary);
  opacity: 0.55;
  animation: fioDrift 6s ease-in-out infinite;
}
.fio svg { width: 1.35rem; height: 1.35rem; }
.fio--1 { top: 8%; inset-inline-start: 42%; animation-delay: 0s; }
.fio--2 { top: 28%; inset-inline-start: 58%; animation-delay: -1.2s; color: #ff6b7d; }
.fio--3 { bottom: 22%; inset-inline-start: 48%; animation-delay: -2.4s; }
.fio--4 { top: 12%; inset-inline-end: 4%; animation-delay: -0.8s; }
.fio--5 { bottom: 12%; inset-inline-end: 18%; animation-delay: -3s; color: #ff8a9a; }
@keyframes fioDrift {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(6px, -12px) rotate(4deg); }
}
@media (max-width: 959.98px) {
  .fio--4, .fio--5 { display: none; }
}

/* Peek screenshots — fixed frame, hover scrolls */
.peek { margin: 0; position: relative; }
.peek__viewport {
  height: var(--peek-h);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: ns-resize;
}
.peek__viewport--lg { height: clamp(16rem, 32vw, 22rem); }
.peek__viewport img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
  transform: translateY(0);
  will-change: transform;
}
.peek figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-3);
}
.peek figcaption span { color: var(--primary); font-weight: 500; opacity: 0.85; }

.hero__peek { position: relative; z-index: 1; }
.hero__peek .peek__viewport {
  height: clamp(18rem, 42vh, 26rem);
  box-shadow: -20px 24px 0 -8px var(--primary-soft);
  border-radius: 12px 12px 4px 12px;
}

/* Shot wall */
.strip {
  padding: 3rem var(--pad) 4rem;
  border-top: 1px solid var(--border);
}
.strip__head { max-width: var(--max); margin: 0 auto 2rem; }
.strip__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.shot-wall {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}
.shot {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.shot.is-in { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }
.shot .peek__viewport { height: clamp(11rem, 22vw, 15rem); }
.shot figcaption {
  position: absolute;
  inset-inline-start: 0.55rem;
  bottom: 0.45rem;
  z-index: 2;
  margin: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
  border-inline-start: 2px solid var(--primary);
  pointer-events: none;
}

.shot--a { grid-column: 1 / 8; --r: -1deg; }
.shot--b { grid-column: 8 / 13; --r: 1.2deg; margin-top: 1.25rem; }
.shot--c { grid-column: 8 / 13; --r: -0.6deg; }
.shot--d { grid-column: 1 / 5; --r: 1deg; }
.shot--e { grid-column: 5 / 9; --r: -1.3deg; }
.shot--f { grid-column: 9 / 13; --r: 0.5deg; }

@media (max-width: 767.98px) {
  .shot-wall { grid-template-columns: 1fr; }
  .shot--a, .shot--b, .shot--c, .shot--d, .shot--e, .shot--f {
    grid-column: auto; margin: 0; --r: 0deg;
  }
  .shot .peek__viewport { height: 14rem; }
  .float-icons { display: none; }
}

/* Caps */
.caps {
  padding: 4rem var(--pad);
  max-width: var(--max);
  margin-inline: auto;
  border-top: 1px solid var(--border);
}
.caps__intro { max-width: 36rem; margin-bottom: 2.5rem; }
.caps__intro h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.caps__list { list-style: none; margin: 0; padding: 0; }
.caps__list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}
.caps__list li:hover { background: color-mix(in srgb, var(--primary-soft) 40%, transparent); }
.caps__list li:last-child { border-bottom: 1px solid var(--border); }
.caps__num { font-size: 0.85rem; font-weight: 700; color: var(--primary); padding-top: 0.2rem; }
.caps__list h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.caps__list p { margin: 0; font-size: 0.92rem; max-width: 40rem; }

/* Panels */
.panels {
  padding: 2rem var(--pad) 4rem;
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}
.panel-block {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 900px) {
  .panel-block { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
  .panel-block--flip .panel-block__text { order: 2; }
  .panel-block--flip .panel-block__media { order: 1; }
}
.panel-block h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.ticks { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.ticks li {
  position: relative;
  padding-inline-start: 1rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.45rem; height: 0.45rem;
  background: var(--primary);
  transform: rotate(45deg);
}

.panel-block__duo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.85rem;
  align-items: end;
}
.panel-block__duo .peek--offset { margin-bottom: 1.5rem; transform: rotate(1.5deg); }

/* Stack */
.stack {
  padding: 3.5rem var(--pad);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.stack__mark {
  height: 3rem; width: auto;
  margin: 0 auto 1.25rem;
  animation: logoFloat 4.5s ease-in-out infinite;
}
.stack h2 { font-size: 1.45rem; }
.stack__sub { margin-bottom: 2rem; }
.stack__logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: 2.5rem;
}
.stack__logos img {
  height: 2.25rem; width: auto; object-fit: contain;
  opacity: 0.85; transition: opacity 0.2s, transform 0.2s;
}
.stack__logos li:hover img { opacity: 1; transform: scale(1.06); }

.foot {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 0.75rem;
  padding: 1.25rem var(--pad) 2rem;
  font-size: 0.8rem; color: var(--text-3);
  border-top: 1px solid var(--border);
}
.foot img { height: 2rem; width: auto; opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot, .brand__logo, .hero__logo, .stack__mark, .fio, .orb { animation: none !important; }
  .shot { opacity: 1; transform: none; transition: none; }
  .peek__viewport img { transition: none !important; }
}
