/* ---------- shared ---------- */
.kicker { font: 500 11px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; margin: 0; }
p, h1, h2, h3, figure { margin: 0; }

/* ---------- 1. hero ---------- */
.st-hero { display: grid; place-items: center; text-align: center; padding: 72px var(--gutter) 72px; color: var(--text-on-dark); }
.hero-dial { position: absolute; left: 50%; top: 50%; width: min(112vmin, 980px); aspect-ratio: 1; transform: translate(-50%, -50%); color: #9DB8FF; pointer-events: none; }
.hero-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .30), rgba(47, 107, 255, 0) 66%); }
.sweep { position: absolute; inset: 6%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(143, 182, 255, 0) 0deg, rgba(143, 182, 255, 0) 292deg, rgba(143, 182, 255, .22) 358deg, rgba(143, 182, 255, 0) 360deg); animation: spin 11s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-copy { position: relative; max-width: min(660px, 74vmin); display: grid; justify-items: center; gap: clamp(14px, 2.4vmin, 22px); }
.wordmark { direction: ltr; unicode-bidi: isolate; font: 800 clamp(48px, 11vw, 136px)/.84 var(--f-brand); letter-spacing: -.05em; font-variation-settings: 'wdth' 88; }
.wordmark span { color: var(--sky); }
.wordmark i, .d-logo i { font-style: normal; font-weight: 400; }
.slogan { font: 500 clamp(19px, 2.7vw, 31px)/1.22 var(--f-display); max-width: 27ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(7, 13, 28, .9); }
.hero-def { font: 400 clamp(14px, 1.5vw, 17px)/1.55 var(--f-body); color: var(--muted-on-dark); max-width: 46ch; text-wrap: pretty; text-shadow: 0 1px 14px rgba(7, 13, 28, .9); }
.hero-turn { position: absolute; left: 50%; top: 50%; width: min(86%, 780px); transform: translate(-50%, -50%); text-align: center; font: 600 clamp(26px, 5vw, 58px)/1.08 var(--f-display); letter-spacing: -.02em; text-wrap: balance; color: #FFE3E6; opacity: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-dark); }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--sky), rgba(143, 182, 255, 0)); transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2. crisis ---------- */
.st-crisis { color: #FFE9EC; padding: 70px var(--gutter) 40px; }
.c-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 70, 90, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 70, 90, .07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%); }
.c-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255, 30, 55, 0) 38%, rgba(255, 30, 55, .42) 100%); opacity: 0; animation: throb 1.6s ease-in-out infinite; }
@keyframes throb { 50% { filter: brightness(1.5); } }
.c-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 4px); opacity: .5; pointer-events: none; }
.c-wrap { position: relative; height: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: clamp(18px, 3.4vw, 52px); align-items: center; }
.c-alerts { display: grid; gap: 10px; }
.alert { display: grid; grid-template-columns: auto minmax(0, 1fr) 46px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 96, 112, .42); background: linear-gradient(90deg, rgba(255, 59, 78, .2), rgba(255, 59, 78, .05)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.a-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--alarm); color: #fff; font: 800 15px/1 var(--f-display); box-shadow: 0 0 0 5px rgba(255, 59, 78, .22); }
.a-tag { font: 500 10px/1.2 var(--f-mono); letter-spacing: .13em; text-transform: uppercase; color: #FF9AA5; margin-bottom: 3px; }
.a-msg { font: 500 clamp(14px, 1.35vw, 17px)/1.3 var(--f-body); color: #FFF1F2; text-wrap: pretty; }
.a-sev { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.a-sev i { display: block; height: 100%; width: 100%; background: var(--alarm); transform-origin: left; transform: scaleX(.3); }
.c-charts { position: relative; display: grid; gap: 12px; align-content: center; }
.chart { position: relative; border-radius: 14px; border: 1px solid rgba(255, 96, 112, .3); background: rgba(24, 3, 8, .62); padding: 10px 12px 8px; }
.chart figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 210, 215, .78); margin-bottom: 4px; }
.chart figcaption em { font-style: normal; font-weight: 600; color: #fff; background: var(--alarm); padding: 4px 7px; border-radius: 6px; letter-spacing: .04em; }
.chart svg { display: block; width: 100%; height: auto; }
.c-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini figcaption { font-size: 9.5px; }
.mini figcaption em { padding: 3px 5px; }
.flag { position: absolute; padding: 6px 10px; border-radius: 999px; background: #FF3B4E; color: #fff; font: 600 11px/1 var(--f-mono); letter-spacing: .05em; box-shadow: 0 6px 24px rgba(255, 59, 78, .5); white-space: nowrap; opacity: 0; z-index: 2; }
.flag::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 7px; vertical-align: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.f1 { top: -14px; right: 14px; }
.f2 { top: 44%; left: -12px; }
.f3 { bottom: -14px; left: 22%; }
.f4 { bottom: 38%; right: -6px; }
.c-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; overflow: hidden; background: #1a0207; border-top: 1px solid rgba(255, 96, 112, .5); opacity: 0; display: flex; align-items: center; }
.c-ticker-track { display: flex; white-space: nowrap; animation: tick 28s linear infinite; font: 500 11px/1 var(--f-mono); letter-spacing: .18em; color: #FF8A97; }
.c-ticker-track span { padding-right: 2ch; }
@keyframes tick { to { transform: translateX(-50%); } }
.c-emerg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; background: radial-gradient(ellipse at center, rgba(14, 0, 4, .84), rgba(10, 0, 3, .96)); opacity: 0; pointer-events: none; text-align: center; overflow: hidden; }
.stripe { position: absolute; left: 0; right: 0; height: 24px; background: repeating-linear-gradient(-45deg, #FF3B4E 0 18px, #1a0207 18px 36px); }
.stripe.top { top: 0; } .stripe.bot { bottom: 0; }
.emerg-h { display: grid; font: 800 clamp(54px, 14.5vw, 210px)/.86 var(--f-display); font-variation-settings: 'wdth' 75; letter-spacing: -.01em; color: #fff; text-shadow: 0 0 46px rgba(255, 59, 78, .85), 4px 0 0 rgba(255, 59, 78, .75), -3px 0 0 rgba(255, 59, 78, .35); }
.emerg-h span { display: block; }
.emerg-sub { font: 500 clamp(13px, 1.6vw, 18px)/1.3 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: #FF9AA5; opacity: 0; }

/* ---------- 3. discovery ---------- */
.st-disc { color: var(--text-on-light); }
.halo { position: absolute; left: 50%; top: 46%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; border-radius: 50%; background: radial-gradient(circle closest-side, #F4F8FF 0, #F4F8FF 40%, rgba(244, 248, 255, .85) 56%, rgba(244, 248, 255, 0) 100%); transform: scale(.04); opacity: 0; }
.clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; width: calc(30vmin * var(--s, 1)); aspect-ratio: 2 / 1; opacity: 0;
  background:
    radial-gradient(circle at 22% 62%, #fff 0 24%, transparent 25%),
    radial-gradient(circle at 42% 40%, #fff 0 31%, transparent 32%),
    radial-gradient(circle at 67% 48%, #fff 0 28%, transparent 29%),
    radial-gradient(circle at 83% 66%, #fff 0 20%, transparent 21%),
    linear-gradient(#fff, #fff) 10% 72% / 80% 26% no-repeat;
  filter: blur(2px) drop-shadow(0 16px 26px rgba(47, 107, 255, .22)); }
.d-core { position: absolute; left: 50%; top: 46%; display: grid; justify-items: center; gap: 10px; transform: translate(-50%, -50%); opacity: 0; }
.d-ring { position: absolute; left: 50%; top: 50%; width: min(86vw, 640px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(47, 107, 255, .22); box-shadow: inset 0 0 80px rgba(47, 107, 255, .08); }
.d-logo { direction: ltr; unicode-bidi: isolate; position: relative; font: 800 clamp(50px, 11.5vw, 136px)/.84 var(--f-brand); letter-spacing: -.05em; font-variation-settings: 'wdth' 88; color: var(--text-on-light); }
.d-logo b { color: var(--blue); font-weight: 800; }
.d-sub { position: relative; font: 500 clamp(13px, 1.5vw, 17px)/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-light); }
.d-deck { position: absolute; left: 50%; top: 58%; width: min(660px, calc(100% - 2 * var(--gutter))); height: 0; transform: translateX(-50%); perspective: 1200px; }
.insight { position: absolute; left: 50%; top: 0; width: 100%; padding: 18px 20px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line-light); box-shadow: 0 24px 60px rgba(47, 107, 255, .16), 0 2px 0 rgba(47, 107, 255, .04); opacity: 0; will-change: transform, opacity; backface-visibility: hidden; transform-origin: 50% 50%; contain: layout style; }
.insight header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.i-cat { font: 500 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.i-chip { font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-light); border: 1px solid var(--line-light); border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.i-chip::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--alarm); margin-right: 6px; vertical-align: 1px; }
.i-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.i-metric strong { display: block; font: 700 clamp(30px, 5vw, 46px)/1 var(--f-display); letter-spacing: -.03em; color: var(--text-on-light); }
.i-metric small { display: block; font: 500 12px/1.3 var(--f-body); color: var(--muted-on-light); margin-top: 4px; }
.i-glyph { flex: 0 0 auto; width: 132px; color: var(--blue); }
.i-glyph svg { display: block; width: 100%; height: auto; }
.i-text { font: 400 clamp(14px, 1.45vw, 17px)/1.5 var(--f-body); color: #1A2A55; text-wrap: pretty; }
.d-count { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 66px); text-align: center; font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-on-light); opacity: 0; }
.d-close { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); transform: translateX(-50%); width: min(92%, 560px); text-align: center; font: 600 clamp(18px, 2.4vw, 26px)/1.2 var(--f-display); letter-spacing: -.01em; color: var(--text-on-light); opacity: 0; }

/* ---------- 4. diagnosis ---------- */
.st-net { color: var(--text-on-light); }
.n-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(47, 107, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 107, 255, .07) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%); mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%); }
#net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.n-head { position: absolute; left: var(--gutter); right: var(--gutter); top: 68px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted-on-light); }
.n-hud { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-light); }
.n-hud b { color: var(--alarm); font-weight: 600; display: inline-block; min-width: 1ch; }
.n-caption { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 66px); text-align: center; padding: 0 var(--gutter); font: 400 14px/1.4 var(--f-body); color: var(--muted-on-light); opacity: 0; }
.n-title { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; opacity: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(244, 248, 255, .94), rgba(244, 248, 255, .55) 70%, rgba(244, 248, 255, 0)); }
.n-title h2 { font: 800 clamp(46px, 11vw, 150px)/.88 var(--f-display); letter-spacing: -.04em; font-variation-settings: 'wdth' 82; color: var(--text-on-light); text-wrap: balance; }
.n-title h2 i { font-style: normal; color: var(--alarm); }

/* ---------- 5. improvement ---------- */
.st-up { color: var(--text-on-light); padding: 70px var(--gutter) 28px; }
.u-aurora { position: absolute; inset: 0; overflow: hidden; }
.u-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.u-aurora i:nth-child(1) { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: #BFE3FF; }
.u-aurora i:nth-child(2) { width: 44vmax; height: 44vmax; right: -12vmax; top: 10vmax; background: #C3F5E6; }
.u-aurora i:nth-child(3) { width: 40vmax; height: 40vmax; left: 20vmax; bottom: -22vmax; background: #D9E6FF; }
.u-wrap { position: relative; height: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(14px, 3vh, 30px); align-content: center; }
.u-head { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.u-ring { position: relative; flex: 0 0 auto; width: clamp(76px, 9vw, 112px); aspect-ratio: 1; }
.u-ring svg { width: 100%; height: 100%; display: block; }
.u-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(24px, 3vw, 36px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.u-copy { flex: 1 1 0; min-width: 0; display: grid; gap: 8px; color: var(--muted-on-light); }
.u-msg { position: relative; height: 2.5em; font: 600 clamp(20px, 3.2vw, 38px)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--text-on-light); }
.u-msg span { position: absolute; left: 0; top: 0; right: 0; opacity: 0; text-wrap: balance; }
.u-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-content: start; }
.up-card { position: relative; border-radius: 16px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line-light); padding: 12px 14px 8px; box-shadow: 0 14px 40px rgba(47, 107, 255, .09); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.up-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-light); margin-bottom: 4px; }
.up-card figcaption span { min-width: 0; }
.up-card figcaption em { font-style: normal; font-weight: 600; letter-spacing: .02em; color: #067A5E; background: rgba(18, 194, 155, .15); padding: 4px 7px; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.up-card svg { display: block; width: 100%; height: auto; }
.up-ok { position: absolute; inset-inline-end: 10px; bottom: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; font: 700 11px/1 var(--f-body); font-style: normal; opacity: 0; transform: scale(.4); }
.u-grid .up-card:nth-child(7) { grid-column: span 1; }

/* ---------- 6. conversion ---------- */
.enter { position: relative; z-index: 2; background: radial-gradient(ellipse at 20% 0%, #2F6BFF 0, rgba(47, 107, 255, 0) 55%), radial-gradient(ellipse at 90% 100%, #1B4FE0 0, rgba(27, 79, 224, 0) 60%), var(--blue-deep); color: #fff; padding-block: clamp(96px, 16vh, 170px) 28px; padding-inline: var(--gutter); overflow: hidden; min-height: 118vh; min-height: 118svh; display: flex; flex-direction: column; }
.enter::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22vh; background: linear-gradient(#F7FBFF, rgba(247, 251, 255, 0)); pointer-events: none; }
.enter-in { position: relative; width: 100%; max-width: 1180px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.e-copy { display: grid; gap: 18px; min-width: 0; }
.e-copy .kicker { color: var(--sky); }
.enter h2 { font: 800 clamp(40px, 6.4vw, 84px)/.96 var(--f-display); letter-spacing: -.04em; text-wrap: balance; }
.e-lead { font: 400 clamp(15px, 1.6vw, 19px)/1.5 var(--f-body); color: rgba(255, 255, 255, .8); max-width: 44ch; }
.e-form { display: grid; gap: 14px; max-width: 460px; margin-top: 8px; }
.field { display: grid; gap: 7px; }
.field label { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.field input { width: 100%; height: 58px; border-radius: 14px; border: 2px solid transparent; background: #fff; color: var(--text-on-light); font: 500 17px/1 var(--f-body); padding: 0 18px; box-shadow: 0 10px 30px rgba(4, 16, 70, .28); transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #8A98BA; }
.field input:focus-visible { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(143, 182, 255, .35), 0 10px 30px rgba(4, 16, 70, .28); }
.field input[aria-invalid="true"] { border-color: #FF8C98; }
.err { min-height: 1.2em; font: 500 13px/1.2 var(--f-body); color: #FFC9CF; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 28px; border: 0; border-radius: 16px; background: #fff; color: var(--blue-deep); font: 700 18px/1 var(--f-display); letter-spacing: -.01em; cursor: pointer; text-decoration: none; box-shadow: 0 16px 44px rgba(4, 16, 70, .4), 0 0 0 0 rgba(255, 255, 255, .5); transition: transform .2s, box-shadow .3s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 52px rgba(4, 16, 70, .45), 0 0 0 6px rgba(255, 255, 255, .14); }
.cta svg { transition: transform .2s; }
.cta:hover svg { transform: translateX(4px); }
.e-note { font: 400 13px/1.4 var(--f-body); color: rgba(255, 255, 255, .66); }
.e-done { display: grid; gap: 10px; max-width: 460px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.e-done h3 { font: 700 28px/1.1 var(--f-display); letter-spacing: -.02em; }
.e-done p { color: rgba(255, 255, 255, .82); }
.e-done .cta { height: 52px; font-size: 16px; justify-self: start; margin-top: 6px; }
.e-preview { min-width: 0; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; gap: 16px; }
.e-preview .kicker { color: rgba(255, 255, 255, .78); }
.e-preview ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.e-preview li { display: grid; gap: 8px; font: 500 14px/1.2 var(--f-body); color: rgba(255, 255, 255, .92); }
.e-preview li i { display: block; height: 12px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .14)); filter: blur(4px); }
.e-preview li:nth-child(1) i { width: 78%; } .e-preview li:nth-child(2) i { width: 56%; } .e-preview li:nth-child(3) i { width: 88%; } .e-preview li:nth-child(4) i { width: 64%; }
.e-lock { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.foot { position: relative; width: 100%; max-width: 1180px; margin: clamp(64px, 12vh, 120px) auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font: 400 12px/1.4 var(--f-mono); letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
html.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
html.js .rv.in { opacity: 1; transform: none; }
.e-preview li i { animation: shimmer 2.8s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .55; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .c-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; gap: 14px; padding-top: 4px; }
  .c-alerts { gap: 6px; }
  .alert { padding: 8px 11px; gap: 10px; grid-template-columns: auto minmax(0, 1fr) 30px; }
  .a-ico { width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 3px rgba(255, 59, 78, .22); }
  .a-tag { font-size: 9px; margin-bottom: 2px; }
  .a-msg { font-size: 13px; line-height: 1.25; }
  .c-charts { gap: 8px; }
  .chart { padding: 7px 9px 5px; }
  .c-minis { gap: 8px; }
  .flag { font-size: 9.5px; padding: 5px 8px; }
  .f2 { left: -4px; } .f4 { right: -2px; }
  .u-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .u-grid .up-card:nth-child(7) { grid-column: span 2; }
  .up-card { padding: 9px 10px 5px; }
  .up-card figcaption { font-size: 9.5px; }
  .enter-in { grid-template-columns: minmax(0, 1fr); }
  .i-glyph { width: 104px; }
  .n-head { top: 62px; }
}
@media (max-width: 520px) {
  .c-minis .mini:nth-child(3) { display: none; }
  .c-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 640px) and (max-width: 860px) {
  .u-head { gap: 12px; }
  .u-ring { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .sweep, .scroll-cue i, .c-vignette, .flag::before, .c-ticker-track, .e-preview li i { animation: none; }
  html.js .rv { transition: none; }
}

[hidden]{display:none!important}

/* ---------- language switch ---------- */
.bar-right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--rail-bg); border: 1px solid var(--rail-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lang button { border: 0; background: transparent; color: var(--bar-fg); font: 600 12px/1 var(--f-body); padding: 8px 11px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--bar-cta-bg); color: var(--bar-cta-fg); }
.lang button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.lang button[lang="fa"], .lang button[lang="ar"] { font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif; font-size: 13px; }

/* ---------- ticker (built by script) ---------- */
.c-ticker { direction: ltr; }
.c-ticker-track { direction: ltr; }
.c-ticker-track > span { display: inline-flex; flex: none; }
.c-ticker-track em { font-style: normal; padding: 0 1.4ch; unicode-bidi: isolate; direction: auto; }
.c-ticker-track i { font-style: normal; opacity: .6; }

/* ---------- Persian: type ---------- */
html:is([lang="fa"], [lang="ar"]) * { text-transform: none !important; }
html:is([lang="fa"], [lang="ar"]) :is(.kicker, .a-tag, .i-cat, .i-chip, .chart figcaption, .up-card figcaption, .flag, .n-hud, .d-count, .d-sub, .emerg-sub, .scroll-cue, .field label, .e-lock, .rail span, .foot, .hero-def, .slogan, .hero-turn, .emerg-h, .n-title h2, .enter h2, .u-msg, .d-close, .i-metric strong, .e-done h3, .cta, .e-lead) { letter-spacing: 0 !important; }
html:is([lang="fa"], [lang="ar"]) .slogan { line-height: 1.55; font-weight: 600; max-width: 24ch; }
html:is([lang="fa"], [lang="ar"]) .hero-def { line-height: 1.9; }
html:is([lang="fa"], [lang="ar"]) .hero-turn { line-height: 1.45; font-weight: 700; }
html:is([lang="fa"], [lang="ar"]) .a-tag { font-size: 11.5px; line-height: 1.4; }
html:is([lang="fa"], [lang="ar"]) .a-msg { line-height: 1.6; }
html:is([lang="fa"], [lang="ar"]) .kicker { font-size: 13px; }
html:is([lang="fa"], [lang="ar"]) .chart figcaption { font-size: 12px; line-height: 1.4; }
html:is([lang="fa"], [lang="ar"]) .mini figcaption { font-size: 11px; }
html:is([lang="fa"], [lang="ar"]) .up-card figcaption { font-size: 12px; line-height: 1.4; }
html:is([lang="fa"], [lang="ar"]) .flag { font-size: 12px; }
html:is([lang="fa"], [lang="ar"]) .emerg-h { font-variation-settings: normal; line-height: 1.1; font-size: clamp(48px, 13vw, 180px); font-weight: 800; }
html:is([lang="fa"], [lang="ar"]) .emerg-sub { font-size: clamp(14px, 1.7vw, 19px); }
html:is([lang="fa"], [lang="ar"]) .d-sub { font-size: clamp(14px, 1.6vw, 18px); }
html:is([lang="fa"], [lang="ar"]) .d-count { font-size: 13px; }
html:is([lang="fa"], [lang="ar"]) .d-close { line-height: 1.5; }
html:is([lang="fa"], [lang="ar"]) .i-cat { font-size: 12.5px; }
html:is([lang="fa"], [lang="ar"]) .i-chip { font-size: 11.5px; }
html:is([lang="fa"], [lang="ar"]) .i-metric strong { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.25; font-weight: 800; }
html:is([lang="fa"], [lang="ar"]) .i-metric small { font-size: 13px; }
html:is([lang="fa"], [lang="ar"]) .i-text { line-height: 1.9; }
html:is([lang="fa"], [lang="ar"]) .n-hud { font-size: 13px; }
html:is([lang="fa"], [lang="ar"]) .n-title h2 { font-variation-settings: normal; line-height: 1.15; font-size: clamp(40px, 9.5vw, 128px); }
html:is([lang="fa"], [lang="ar"]) .n-caption { line-height: 1.7; }
html:is([lang="fa"], [lang="ar"]) .u-msg { line-height: 1.5; font-size: clamp(18px, 2.8vw, 34px); height: 3.1em; }
html:is([lang="fa"], [lang="ar"]) .enter h2 { line-height: 1.25; font-size: clamp(34px, 5.6vw, 72px); }
html:is([lang="fa"], [lang="ar"]) .e-lead { line-height: 1.85; }
html:is([lang="fa"], [lang="ar"]) .field label { font-size: 13px; }
html:is([lang="fa"], [lang="ar"]) .e-lock, html[lang="fa"] .foot { font-size: 13px; }
html:is([lang="fa"], [lang="ar"]) .rail span { font-size: 12.5px; }
html:is([lang="fa"], [lang="ar"]) .scroll-cue { font-size: 12px; }
html:is([lang="fa"], [lang="ar"]) .cta { font-weight: 700; }
html:is([lang="fa"], [lang="ar"]) .bar-cta { font-weight: 700; }

/* ---------- RTL: mirroring ---------- */
html[dir="rtl"] .a-sev i { transform-origin: right; }
html[dir="rtl"] .cta svg { transform: scaleX(-1); }
html[dir="rtl"] .cta:hover svg { transform: translateX(-4px) scaleX(-1); }
html[dir="rtl"] .field input { text-align: right; }
.chart figcaption em, .up-card figcaption em { direction: ltr; unicode-bidi: isolate; }
.chart svg, .up-card svg, .i-glyph svg { direction: ltr; }
@media (max-width: 860px) {
  .bar-right { gap: 8px; }
  .lang button { padding: 7px 9px; }
  html[lang="fa"] .a-tag { font-size: 10.5px; }
  html[lang="fa"] .a-msg { font-size: 13px; line-height: 1.5; }
}

/* header backing while the sign-up section is under it */
html[data-enter="1"] .bar { background: linear-gradient(rgba(11, 42, 138, .94) 55%, rgba(11, 42, 138, 0)); padding-bottom: 26px; }
