/* LagKosh landing (/freefire). Same palette and type as the app: docs/19-ui-ux.md §9. Proprietary.
   Deliberately dark-only: it is a game booster and matches the app. */
@font-face { font-family: Vazirmatn; src: url(vazirmatn_regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(vazirmatn_bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(vazirmatn_black.ttf); font-weight: 900; font-display: swap; }
@font-face { font-family: Chakra; src: url(chakrapetch_bold.ttf); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0B0A0A; --bg2: #120E0E; --card: #171515; --card2: #211E1D; --line: rgba(244,238,227,.09);
  --text: #F4EEE3; --text2: #B9B0A2; --brand: #8E1B2E; --brand-l: #D13A55; --brand-i: #E8506A;
  --good: #3DDC84; --bad: #FF4D5E;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.8 Vazirmatn, Tahoma, sans-serif; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--brand-i); }
.n { font-family: Chakra, sans-serif; direction: ltr; unicode-bidi: isolate; }
.in { max-width: 1080px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 900; line-height: 1.4; margin: 0 0 22px; text-wrap: balance; }
section { padding-block: 44px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(11,10,10,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar .in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { font-size: 22px; font-weight: 900; }
.bar-dl { background: var(--brand-l); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 7px 18px; border-radius: 99px; }

/* hero */
.hero { position: relative; padding-block: 40px 30px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(209,58,85,.32), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero-copy { min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--card2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px 4px 10px; font-size: 14px; font-weight: 700; }
.tag img { width: 22px; height: 22px; }
h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 900; line-height: 1.22; margin: 18px 0 16px; letter-spacing: -.5px; }
h1 span { color: var(--brand-i); text-shadow: 0 0 40px rgba(232,80,106,.5); }
.hero-copy > p { color: var(--text2); font-size: 18px; max-width: 46ch; margin: 0 0 26px; }
.cta { display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px 12px 22px; border-radius: 20px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--brand-i), var(--brand)); box-shadow: 0 10px 40px -8px rgba(232,80,106,.6), inset 0 1px 0 rgba(255,255,255,.2);
  font-weight: 900; font-size: 21px; line-height: 1.4; transition: transform .15s; }
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: scale(.97); }
.cta img { width: 40px; height: 40px; }
.cta small { display: block; font-weight: 400; font-size: 14px; opacity: .85; }
.note { color: var(--text2); font-size: 14.5px; margin: 14px 0 0; max-width: 44ch; }

/* phone preview */
.phone-wrap { position: relative; justify-self: center; padding: 20px 30px; }
.phone { width: 270px; aspect-ratio: 9 / 18.5; max-width: 100%; border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #3a3434, #141212);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06), 0 0 90px -10px rgba(209,58,85,.45); transform: rotate(-4deg); position: relative; }
.notch { position: absolute; top: 18px; left: 50%; width: 80px; height: 20px; margin-left: -40px; background: #000; border-radius: 12px; z-index: 2; }
.scr { height: 100%; border-radius: 33px; background: radial-gradient(circle at 50% 30%, #2a1418, var(--bg) 60%); padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.p-head { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.p-head img { width: 22px; height: 22px; border-radius: 6px; }
.p-head b { font-weight: 900; flex: 1; }
.p-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; background: var(--card2); border-radius: 99px; padding: 1px 8px 1px 5px; }
.p-pill img { width: 15px; height: 15px; }
.p-ring { position: relative; width: 150px; margin: 6px auto 0; aspect-ratio: 1; }
.p-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.p-ring circle { fill: none; stroke-width: 9; }
.p-ring .trk { stroke: rgba(244,238,227,.08); }
.p-ring .arc { stroke: var(--good); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; animation: arc 1.6s .4s cubic-bezier(.2,.8,.2,1) forwards; filter: drop-shadow(0 0 6px rgba(61,220,132,.7)); }
@keyframes arc { to { stroke-dashoffset: 40; } }
.p-ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.p-num { font-size: 38px; line-height: 1; color: var(--good); }
.p-ring-in small { font-size: 13px; font-weight: 700; color: var(--text); }
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.9; }
.p-card b { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-bottom: 2px; }
.p-card b img { width: 18px; height: 18px; }
.p-card span { color: var(--text2); }
.p-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(135deg, var(--brand-i), var(--brand)); border-radius: 14px; padding: 9px; font-size: 13px; font-weight: 900; }
.p-btn img { width: 20px; height: 20px; }
.float { position: absolute; width: 74px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); animation: bob 4s ease-in-out infinite; }
.f1 { top: 34%; left: -6px; }
.f2 { bottom: 10%; right: -6px; animation-delay: -2s; width: 64px; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(6deg); } }

/* ping wave */
.wave { padding-block: 10px 44px; }
.wave-card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: 28px; padding: 22px 22px 18px; }
.wave-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; font-weight: 700; }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: currentColor; }
.lg.bad { color: var(--bad); }
.lg.good { color: var(--good); }
.wave-svg { display: block; width: 100%; height: 150px; margin: 10px 0 6px; overflow: visible; }
.ln { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ln.bad { stroke: var(--bad); opacity: .85; stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.4s .2s ease-out forwards; }
.ln.good { stroke: var(--good); filter: drop-shadow(0 0 6px rgba(61,220,132,.6)); stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.4s 1.9s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wave-cap { color: var(--text2); margin: 0; max-width: 64ch; }

/* problems */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pc { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 18px; overflow: hidden; }
.pc img { width: 54px; height: 54px; }
.pc h3 { font-size: 21px; font-weight: 900; margin: 8px 0 4px; }
.pc p { color: var(--text2); margin: 0; font-size: 16px; }
.pc:nth-child(1) { border-color: rgba(232,80,106,.35); background: linear-gradient(160deg, rgba(142,27,46,.35), var(--card) 55%); }

/* banners */
.brow { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.bn { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--card); min-width: 0; }
.bn:first-child { grid-row: span 2; }
.bn img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 1; }
.bn figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); display: flex; flex-direction: column; line-height: 1.5; }
.bn b { font-size: 20px; font-weight: 900; }
.bn span { color: var(--text2); font-size: 14.5px; }
.bn:first-child b { font-size: 26px; }

/* steps */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.sn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 22px; }
.steps b { font-size: 18px; font-weight: 900; }
.steps p { margin: 2px 0 0; color: var(--text2); font-size: 15px; }

/* faq */
.faq .in { max-width: 760px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 19px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: Chakra, sans-serif; color: var(--brand-i); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--text2); max-width: 62ch; }

/* final */
.final-in { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: linear-gradient(120deg, rgba(142,27,46,.55), var(--card) 70%);
  border: 1px solid rgba(232,80,106,.3); border-radius: 32px; padding: 26px; }
.final-in > img { border-radius: 24px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.final h2 { margin-bottom: 4px; }
.final p { color: var(--text2); margin: 0 0 18px; }

.foot { border-top: 1px solid var(--line); padding-block: 22px 110px; font-size: 14px; color: var(--text2); }
.foot p { margin: 0 0 4px; }
.foot a { color: var(--text2); }

.sticky { display: none; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .phone-wrap { order: 2; }
  .phone { width: 240px; }
  .pgrid, .steps ol { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 1fr; }
  .bn:first-child { grid-row: auto; }
  .final-in { grid-template-columns: 1fr; text-align: center; }
  .final-in > img { width: 160px; margin: 0 auto; }
  .bar-dl { display: none; }
  .sticky { display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; z-index: 30; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); height: 58px; border-radius: 18px; color: #fff;
    text-decoration: none; font-weight: 900; font-size: 19px; background: linear-gradient(135deg, var(--brand-i), var(--brand)); box-shadow: 0 12px 36px -6px rgba(232,80,106,.7); }
  .sticky img { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ln, .p-ring .arc { stroke-dashoffset: 0 !important; }
  .p-ring .arc { stroke-dashoffset: 40 !important; }
}
