/* eZtv site — colors mirror lib/theme/app_theme.dart */
:root {
  --red: #E31E24;
  --red-dark: #B0151A;
  --red-light: #FF5A5F;
  --bg: #0B0B0F;
  --surface: #16161C;
  --surface-2: #1F1F28;
  --surface-3: #2A2A36;
  --text: #F5F5F7;
  --text-2: #A5A5B0;
  --text-3: #8A8A96;
  --ok: #2ECC71;
  --line: rgba(255, 255, 255, .08);
  --tilt: -9deg;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html[dir="rtl"] { --tilt: 9deg; }
html:lang(fa), html:lang(ar) { --font: 'Vazirmatn', 'Manrope', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }

:focus-visible { outline: 2px solid var(--red-light); outline-offset: 3px; border-radius: 6px; }

/* Icons */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.fill { fill: currentColor; stroke: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn.solid { background: var(--red); color: #fff; }
.btn.solid:hover { background: var(--red-light); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .2); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .5); }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 1.02rem; }
.btn:active { transform: translateY(1px); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 15, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; }
.brand-word { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.nav { display: flex; gap: 6px; margin-inline-start: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: .95rem; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; display: inline-flex; align-items: center; }
.lang .ico { position: absolute; inset-inline-start: 12px; pointer-events: none; color: var(--text-2); width: 18px; height: 18px; }
.lang select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  min-height: 42px; padding: 0 14px; padding-inline-start: 38px; cursor: pointer; font-weight: 600; font-size: .92rem;
}
.lang select:hover { border-color: rgba(255, 255, 255, .25); }
.lang select option { background: var(--surface); color: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(227, 30, 36, .20), transparent 62%),
    linear-gradient(180deg, #1A0E10 0%, var(--bg) 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: 88px 80px; }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.3rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -.04em;
  text-wrap: balance;
}
html:lang(fa) .hero h1, html:lang(ar) .hero h1 { line-height: 1.3; letter-spacing: 0; }
.lead { margin-top: 24px; max-width: 34em; font-size: 1.2rem; color: var(--text-2); line-height: 1.65; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hint { margin-top: 20px; color: var(--text-3); font-size: .92rem; max-width: 34em; }

/* Hero app mock */
.stage { perspective: 1400px; }
.device {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 26px; padding: 16px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(227, 30, 36, .10), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: rotateY(var(--tilt)) rotateX(3deg);
  transform-origin: center;
}
.dev-bar { display: flex; align-items: center; gap: 12px; }
.dev-logo { border-radius: 6px; }
.dev-tabs { display: flex; gap: 6px; flex: 1; justify-content: space-between; }
.dev-tabs i { flex: 1; display: grid; place-items: center; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--text-3); transition: background .35s, color .35s, box-shadow .35s; }
.dev-tabs i .ico { width: 16px; height: 16px; }
.dev-tabs i.on { background: rgba(227, 30, 36, .18); color: var(--red-light); box-shadow: inset 0 0 0 1px rgba(227, 30, 36, .6); }
.dev-banner {
  position: relative; margin-top: 14px; height: 190px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(240px 160px at 85% 20%, rgba(227, 30, 36, .55), transparent 70%), linear-gradient(135deg, #3a1216, #1b1b24 70%);
  display: flex; align-items: flex-end; padding: 18px;
}
.dev-banner-txt { display: grid; gap: 9px; width: 55%; }
.dev-play { position: absolute; inset-inline-end: 18px; inset-block-end: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(227, 30, 36, .5); }
.dev-play .ico { width: 20px; height: 20px; }
.dev-progress { position: absolute; inset-inline: 0; inset-block-end: 0; height: 4px; background: rgba(255, 255, 255, .12); }
.dev-progress b { display: block; height: 100%; width: 0; background: var(--red); animation: fill 2.6s .5s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes fill { to { width: 62%; } }
.dev-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.tile { position: relative; aspect-ratio: 16 / 11; border-radius: 12px; overflow: hidden; }
.t1 { background: linear-gradient(140deg, #5b1a1f, #24242e); }
.t2 { background: linear-gradient(140deg, #1d3b5c, #22222c); }
.t3 { background: linear-gradient(140deg, #3d2a63, #22222c); }
.t4 { background: linear-gradient(140deg, #1f5a49, #22222c); }

/* Skeleton + progress + live dot (shared by mock and panels) */
.sk { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .16); }
.sk.thin { height: 6px; background: rgba(255, 255, 255, .09); }
.sk.tall { height: 14px; background: rgba(255, 255, 255, .28); }
.w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; }
.w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.bar { display: block; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--red); border-radius: 3px; }
.tile .bar { position: absolute; inset-inline: 8px; inset-block-end: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); animation: pulse 2s infinite; flex: none; }
.dev-banner .live-dot { position: absolute; inset-inline-start: 18px; inset-block-start: 18px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }

/* Sections */
.sec { padding-block: 104px; }
.sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 40em; margin-bottom: 44px; }
.sec h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
html:lang(fa) .sec h2, html:lang(ar) .sec h2 { line-height: 1.4; letter-spacing: 0; }
.sub { margin-top: 14px; color: var(--text-2); font-size: 1.1rem; }

/* Feature tabs (the app's seven tabs) */
.tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px; margin: -4px; scroll-snap-type: x proximity; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 112px; scroll-snap-align: start;
  display: grid; justify-items: center; align-content: center; gap: 9px;
  padding: 16px 10px; border-radius: 16px; cursor: pointer;
  background: var(--surface-2); border: 1px solid transparent;
  color: var(--text-2); font-weight: 700; font-size: .92rem;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.tab .ico { width: 26px; height: 26px; }
.tab:hover { background: var(--surface-3); color: var(--text); }
.tab[aria-selected="true"] {
  color: #fff; border-color: var(--red);
  background: linear-gradient(180deg, rgba(227, 30, 36, .22), rgba(227, 30, 36, .08));
  box-shadow: 0 10px 34px rgba(227, 30, 36, .22);
}
.tab[aria-selected="true"] .ico { color: var(--red-light); }

.panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; margin-top: 48px; }
.panel[hidden] { display: none; }
.panel-copy h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
html:lang(fa) .panel-copy h3, html:lang(ar) .panel-copy h3 { line-height: 1.45; letter-spacing: 0; }
.panel-copy p { margin-top: 14px; color: var(--text-2); max-width: 30em; }
.ticks { margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(227, 30, 36, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A5F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.viz {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; min-height: 320px; display: grid; align-content: center; gap: 12px;
}
.alt .viz { background: var(--surface-2); }
.v-col { display: grid; gap: 8px; flex: 1; min-width: 0; }
.v-row, .ep, .g-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.v-row.on { background: rgba(227, 30, 36, .10); box-shadow: inset 0 0 0 1px rgba(227, 30, 36, .45); }
.chan { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; flex: none; color: #fff; }
.c1 { background: linear-gradient(140deg, var(--red), var(--red-dark)); }
.c2 { background: linear-gradient(140deg, #2b6cb0, #1d3b5c); }
.c3 { background: linear-gradient(140deg, #7b4bd6, #3d2a63); }
.c4 { background: linear-gradient(140deg, #2fa37f, #1f5a49); }

.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; }
.poster .bar { position: absolute; inset-inline: 8px; inset-block-end: 8px; }
.p1 { background: linear-gradient(160deg, #7a1b21, #1c1c25); }
.p2 { background: linear-gradient(160deg, #1f4a78, #1c1c25); }
.p3 { background: linear-gradient(160deg, #5a3a93, #1c1c25); }
.p4 { background: linear-gradient(160deg, #a2641c, #1c1c25); }
.p5 { background: linear-gradient(160deg, #1f6b57, #1c1c25); }
.p6 { background: linear-gradient(160deg, #8b2a55, #1c1c25); }

.chips { display: flex; gap: 8px; }
.chip { padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text-2); font-weight: 700; font-size: .88rem; }
.chip.on { background: var(--red); color: #fff; }
.thumb { width: 104px; aspect-ratio: 16 / 9; border-radius: 10px; flex: none; }
.th1 { background: linear-gradient(140deg, #7a1b21, #22222c); }
.th2 { background: linear-gradient(140deg, #1f4a78, #22222c); }
.th3 { background: linear-gradient(140deg, #5a3a93, #22222c); }

.g-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 10px; color: var(--red-light); border-bottom: 1px solid var(--line); }
.g-head .sk { flex: 1; max-width: 220px; }
.g-row { align-items: flex-start; }
.g-row.now { background: rgba(227, 30, 36, .10); box-shadow: inset 3px 0 0 var(--red); }
html[dir="rtl"] .g-row.now { box-shadow: inset -3px 0 0 var(--red); }
.g-time { width: 118px; flex: none; font-size: .86rem; font-weight: 700; color: var(--text-2); direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
.g-row.now .g-time { color: var(--red-light); }

.avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.av { display: grid; justify-items: center; gap: 12px; padding: 18px 8px; border-radius: 16px; background: rgba(255, 255, 255, .03); }
.av i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.av .sk { width: 60%; }
.a1 { background: linear-gradient(140deg, var(--red), var(--red-dark)); }
.a2 { background: linear-gradient(140deg, #2b6cb0, #1d3b5c); }
.a3 { background: linear-gradient(140deg, #2fa37f, #1f5a49); }
.a4 { background: linear-gradient(140deg, #f5a623, #b06d0a); }
.a4 .ico { width: 28px; height: 28px; }

.sync-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.dv { display: grid; justify-items: center; gap: 12px; padding: 18px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); width: 92px; color: var(--text-2); }
.dv.big { width: 128px; padding-block: 28px; color: var(--text); border-color: rgba(227, 30, 36, .5); }
.dv .ico { width: 30px; height: 30px; }
.dv .bar { width: 100%; }
.link { flex: 1; min-width: 18px; max-width: 60px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 6px, transparent 6px 12px); position: relative; }
.link i { position: absolute; top: -3px; inset-inline-start: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--red-light); animation: travel 2.4s linear infinite; }
html[dir="rtl"] .link i { animation-name: travel-rtl; }
@keyframes travel { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateX(46px); opacity: 0; } }
@keyframes travel-rtl { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateX(-46px); opacity: 0; } }

.lang-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-chips button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; font-weight: 700; transition: background .2s, border-color .2s; }
.lang-chips button:hover { border-color: rgba(255, 255, 255, .3); }
.lang-chips button[aria-pressed="true"] { background: rgba(227, 30, 36, .18); border-color: var(--red); }

/* Platforms */
.plats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.plat {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 22px 12px 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid transparent;
  cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.plat .ico { width: 30px; height: 30px; color: var(--text-2); }
.plat strong { font-weight: 800; font-size: 1.02rem; }
.plat .st { font-size: .84rem; font-weight: 700; color: var(--red-light); }
button.plat:hover, a.plat:hover { border-color: rgba(255, 255, 255, .3); background: var(--surface-3); }
.plat.sel { border-color: var(--red); background: linear-gradient(180deg, rgba(227, 30, 36, .20), rgba(227, 30, 36, .06)); }
.plat.sel .ico { color: var(--red-light); }
.plat.soon { cursor: default; opacity: .62; }
.plat.soon .st { color: var(--text-2); }
.note { margin-top: 18px; color: var(--text-3); font-size: .92rem; max-width: 46em; }

.dl { margin-top: 44px; padding: 28px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.dl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dl-head h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.dl-chosen { padding: 4px 14px; border-radius: 999px; background: rgba(227, 30, 36, .16); color: var(--red-light); font-weight: 700; font-size: .88rem; }
.dl-fields { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.dl-fields input[type="email"] {
  flex: 1 1 280px; min-height: 52px; padding: 0 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .16); color: var(--text); font-size: 1rem; direction: ltr; text-align: start;
}
html[dir="rtl"] .dl-fields input[type="email"]::placeholder { text-align: right; }
.dl-fields input[type="email"]::placeholder { color: var(--text-3); }
.dl-fields input[type="email"]:focus { outline: none; border-color: var(--red-light); box-shadow: 0 0 0 3px rgba(227, 30, 36, .25); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.dl-msg { min-height: 1.6em; margin-top: 14px; font-weight: 600; }
.dl-msg.ok { color: var(--ok); }
.dl-msg.err { color: var(--red-light); }
.dl-priv { margin-top: 4px; color: var(--text-3); font-size: .9rem; }
.dl .btn[disabled] { opacity: .6; cursor: progress; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px;
  border-radius: 50%; background: var(--red); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.steps p { margin-top: 10px; color: var(--text-2); }

/* Trust */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.facts > div { padding-block: 22px; border-top: 1px solid var(--line); }
.facts dt { font-weight: 800; font-size: 1.12rem; }
.facts dd { margin-top: 6px; color: var(--text-2); }

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 22px 0; padding-inline-end: 36px; font-weight: 700; font-size: 1.1rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--text-2); transition: transform .25s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--red-light); }
details p { padding-bottom: 24px; color: var(--text-2); max-width: 40em; }

/* Footer */
.foot { padding-block: 56px 48px; border-top: 1px solid var(--line); background: #08080B; }
.foot-in { display: grid; gap: 22px; }
.foot-brand p { margin-top: 10px; color: var(--text-2); max-width: 34em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--text-2); font-weight: 600; }
.foot-links a:hover { color: var(--text); }
.rights { color: var(--text-3); font-size: .9rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding-block: 56px 72px; }
  .stage { max-width: 520px; }
  .panel { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .hide-s { display: none; }
  .top-in { gap: 8px; min-height: 60px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 30px; height: 30px; }
  .brand-word { font-size: 1.15rem; }
  .top-actions { gap: 8px; min-width: 0; }
  .lang select { max-width: 104px; text-overflow: ellipsis; padding-inline: 10px; padding-inline-start: 32px; min-height: 38px; font-size: .85rem; }
  .lang .ico { inset-inline-start: 10px; }
  .top .btn { min-height: 38px; padding: 0 14px; font-size: .85rem; }
  .sec { padding-block: 72px; }
  .device { transform: none; }
  .dev-banner { height: 150px; }
  .avatars { grid-template-columns: repeat(2, 1fr); }
  .dv { width: 72px; padding-inline: 10px; }
  .dv.big { width: 92px; }
  .dl { padding: 20px; }
  .thumb { width: 84px; }
  .g-time { width: 96px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dev-progress b { width: 62%; }
}
