@font-face {
    font-family:Vazirmatn;
    src:url('../fonts/Vazirmatn.woff2') format('woff2');
    font-weight:100 900;
    font-style:normal;
    font-display:swap;
}

:root {
    color-scheme:dark;
    --background:#0b0d10;
    --surface:#14191e;
    --text:#f5f5f6;
    --muted:#b4b7bc;
    --border:#282e34;
    --accent:#f5c518;
    --radius:14px;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:28px;
}

body {
    margin:0;
    background:var(--background);
    color:var(--text);
    font:16px/1.8 Vazirmatn,Tahoma,sans-serif;
    text-align:start;
}

[hidden] {
    display:none!important;
}

button,input {
    font:inherit;
}

a {
    color:inherit;
    text-decoration:none;
}

a:hover {
    color:var(--accent);
}

button,a {
    -webkit-tap-highlight-color:transparent;
}

button {
    cursor:pointer;
}

button:focus-visible,a:focus-visible,summary:focus-visible {
    outline:3px solid var(--accent);
    outline-offset:5px;
}

h1,h2,h3,p {
    margin:0;
}

h1,h2,h3 {
    color:var(--text);
    font-family:inherit;
}

h2 {
    font-size:28px;
    font-weight:800;
    line-height:1.6;
}

h3 {
    font-size:25px;
    font-weight:700;
    line-height:1.4;
}

h3[dir=ltr],.wordmark {
    font-family:Arial,Helvetica,sans-serif;
}

.page-shell {
    width:min(1280px,calc(100% - 80px));
    margin-inline:auto;
}

.icon-definitions {
    position:absolute;
    width:0;
    height:0;
    overflow:hidden;
}

.icon {
    display:inline-block;
    width:24px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.6;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex-shrink:0;
    vertical-align:middle;
}

.skip-link {
    position:fixed;
    inset-block-start:12px;
    inset-inline-start:12px;
    z-index:1100;
    padding:10px 18px;
    border-radius:8px;
    background:var(--accent);
    color:#101114;
    transform:translateY(-180%);
}

.skip-link:focus {
    transform:none;
    color:#101114;
}

.site-header {
    border-bottom:1px solid var(--border);
}

.header-inner {
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:32px;
}

.wordmark {
    color:var(--text);
    font-size:35px;
    line-height:1;
    font-weight:800;
    letter-spacing:-1.5px;
    white-space:nowrap;
}

.wordmark:hover {
    color:var(--text);
}

.wordmark span {
    color:var(--accent);
}

.main-nav {
    display:flex;
    gap:40px;
    font-size:14px;
    color:#d6d8db;
}

.main-nav a {
    padding-block:16px;
}

.header-actions {
    display:flex;
    align-items:center;
    gap:24px;
}

.language-trigger,.help-trigger {
    border:0;
    border-radius:6px;
    min-height:44px;
    padding:4px 0;
    background:transparent;
    color:#d6d8db;
    font-size:14px;
}

.language-trigger {
    direction:ltr;
    white-space:nowrap;
}

.help-trigger {
    display:flex;
    align-items:center;
    gap:8px;
}

.help-trigger .icon {
    width:20px;
    height:20px;
}

.help-mobile {
    display:none;
}

.hero {
    display:grid;
    grid-template-columns:.86fr 1.14fr;
    align-items:center;
    min-height:480px;
    padding-block:20px 4px;
}

.hero-copy {
    position:relative;
    z-index:1;
    padding-block:24px;
}

.hero h1 {
    font-size:clamp(46px,4.5vw,68px);
    font-weight:900;
    line-height:1.45;
    letter-spacing:-1.8px;
}

.hero h1 span {
    display:block;
    color:var(--accent);
}

.hero-description {
    color:#d6d8da;
    font-size:19px;
    line-height:1.9;
    max-width:490px;
    margin-top:16px;
}

.hero-cta {
    margin-top:28px;
    width:245px;
    border-radius:999px!important;
}

.hero-art {
    display:block;
    width:calc(100% + 40px);
    margin-inline-end:-40px;
}

.hero-art img {
    display:block;
    width:100%;
    height:auto;
    max-height:480px;
    aspect-ratio:3/2;
    object-fit:contain;
    mask-image:linear-gradient(to bottom,#000 88%,transparent);
}

.action {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:48px;
    padding:10px 22px;
    border:1px solid transparent;
    border-radius:9px;
    font-size:16px;
    font-weight:750;
    line-height:1.5;
    text-align:center;
    transition:background-color .18s,border-color .18s,transform .18s;
}

.action-primary {
    background:var(--accent);
    color:#111318;
    border-color:var(--accent);
}

.action-primary:hover {
    background:#ffda43;
    border-color:#ffda43;
    color:#111318;
    transform:translateY(-2px);
}

.action-outline {
    background:transparent;
    border-color:#afb4ba;
    color:var(--text);
}

.action-outline:hover {
    border-color:var(--accent);
    color:var(--accent);
    background:#f5c51808;
}

.download-section {
    padding-top:12px;
}

.section-heading {
    text-align:center;
    margin-bottom:28px;
}

.section-heading h2::after,.faq-section h2::after {
    content:'';
    display:block;
    width:44px;
    height:2px;
    background:var(--accent);
    margin:12px auto 0;
}

.download-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.download-card {
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 42%;
    grid-template-rows:auto 1fr;
    gap:12px;
    align-content:center;
    align-items:center;
    min-height:225px;
    padding:32px;
    background:linear-gradient(130deg,#151b20,#101418);
    border:1px solid var(--border);
    border-radius:var(--radius);
    transition:border-color .2s;
}

.download-card:hover {
    border-color:#5b5540;
}

.platform-icon {
    grid-column:1;
    grid-row:1;
    color:#a4dc38;
}

.platform-icon .icon {
    width:38px;
    height:38px;
}

.windows-icon {
    color:#f4f5f6;
}

.download-copy {
    grid-column:2;
    grid-row:1;
    min-width:0;
}

.platform-heading {
    display:flex;
    align-items:center;
    gap:10px;
}

.download-copy p {
    color:var(--muted);
    font-size:15px;
    margin-top:8px;
    line-height:1.8;
}

.download-actions {
    grid-column:1/3;
    grid-row:2;
    align-self:end;
    margin-top:14px;
}

.download-actions .action {
    width:100%;
}

.device-art {
    grid-column:3;
    grid-row:1/3;
    width:100%;
    height:165px;
    object-fit:contain;
    pointer-events:none;
}

.phone-art {
    height:175px;
}

.cast-card {
    grid-column:1/-1;
    grid-template-columns:56px minmax(0,1fr) 220px;
    grid-template-rows:1fr;
    min-height:128px;
    padding:28px 34px;
}

.cast-card .download-actions {
    grid-column:3;
    grid-row:1;
    margin-top:0;
    align-self:center;
}

.cast-card .platform-icon .icon {
    width:44px;
    height:44px;
}

.region-note {
    color:#90979f;
    font-size:12px;
    line-height:1.9;
    text-align:center;
    margin:18px auto 0;
    max-width:700px;
}

.tv-section {
    padding-top:48px;
}

.tv-intro .section-heading {
    margin-bottom:32px;
}

.connection-note {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:7px;
    margin-top:14px;
    color:var(--muted);
    font-size:13px;
}

.connection-note .icon {
    width:16px;
    height:18px;
}

.connection-steps {
    list-style:none;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:48px;
    padding:0;
    margin:0 auto 36px;
}

.connection-steps li {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    text-align:center;
    padding-inline:12px;
}

.connection-steps li:not(:last-child)::after {
    content:'';
    position:absolute;
    top:22px;
    inset-inline-start:calc(50% + 24px);
    width:calc(100% + 1px);
    border-top:1px dashed #485059;
}

.step-number {
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    border:1px solid var(--accent);
    border-radius:50%;
    color:var(--accent);
    background:var(--background);
    font-size:24px;
    position:relative;
    z-index:1;
}

.connection-steps li>div>span {
    font-size:19px;
    font-weight:750;
}

.connection-steps p {
    color:var(--muted);
    font-size:14px;
    line-height:1.8;
    margin:6px auto 0;
    max-width:270px;
}

.connection-steps li>.icon {
    display:none;
}

.tv-grid-title {
    text-align:center;
    color:#a8adb3;
    font-size:14px;
    font-weight:500;
    margin-block:0 20px;
    display:flex;
    align-items:center;
    gap:18px;
}

.tv-grid-title::before,.tv-grid-title::after {
    content:'';
    flex:1;
    height:1px;
    background:var(--border);
}

.tv-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}

.tv-card {
    border:1px solid var(--border);
    border-radius:12px;
    padding:22px;
    min-height:130px;
    background:#11161b;
    text-align:center;
}

.tv-card>.icon {
    width:28px;
    height:28px;
    color:#a4dc38;
    margin-bottom:8px;
}

.tv-card h3 {
    display:inline;
    font-size:23px;
    margin-inline-start:6px;
}

.tv-card h3 span {
    font-weight:400;
    color:#c6c9ce;
}

.tv-description {
    display:none;
    color:var(--muted);
    font-size:13px;
    margin-top:10px;
}

.tv-card .action {
    display:flex;
    margin:14px auto 0;
    max-width:240px;
    min-height:40px;
    font-size:14px;
    padding:8px 20px;
    border-color:#9e8421;
    color:var(--accent);
}

.upcoming-card {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    align-content:center;
    gap:10px;
}

.upcoming-card>.icon {
    color:#b2b8bf;
    margin:0;
}

.coming-soon {
    flex-basis:100%;
    text-align:center;
    margin-top:8px;
    font-size:12px;
    color:#b9bdc2;
}

.coming-copy {
    display:inline-block;
    min-width:90px;
    border-radius:20px;
    padding:2px 18px;
    background:#2a3037;
}

.faq-section {
    margin-block:42px;
}

.faq-section h2 {
    text-align:center;
    margin-bottom:26px;
}

.faq-section details {
    border:1px solid var(--border);
    border-radius:11px;
    background:#11161b;
    margin-top:12px;
    padding:0 24px;
}

.faq-section summary {
    cursor:pointer;
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding-block:18px;
    font-size:15px;
    font-weight:550;
}

.faq-section summary::-webkit-details-marker {
    display:none;
}

.faq-section summary::after {
    content:'';
    width:9px;
    height:9px;
    border-right:1.5px solid #d1d4d8;
    border-bottom:1.5px solid #d1d4d8;
    transform:rotate(45deg);
    flex-shrink:0;
    margin-inline-end:4px;
    transition:transform .2s;
}

.faq-section details[open] summary::after {
    transform:rotate(225deg);
}

.faq-section details p {
    color:var(--muted);
    margin-bottom:22px;
    font-size:14px;
    line-height:2;
    max-width:1000px;
}

.site-footer {
    border-top:1px solid var(--border);
    padding-block:24px;
}

.footer-inner {
    direction:ltr;
    display:flex;
    align-items:center;
    gap:26px;
    font-size:13px;
    color:#b8bcc2;
}

.footer-wordmark {
    margin-inline-end:auto;
    font-size:30px;
}

.footer-copyright {
    font-size:11px;
    color:#7d858e;
}

.social-links {
    display:flex;
    align-items:center;
    gap:14px;
}

.social-links a {
    display:grid;
    place-items:center;
    min-width:40px;
    min-height:40px;
}

.social-links .icon {
    width:21px;
    height:21px;
}

.mobile-download-bar {
    display:none;
}

.modal-content {
    background:var(--surface);
    color:var(--text);
    border:1px solid #39414a;
    border-radius:16px;
}

.modal-header,.modal-footer {
    border-color:#303841;
    padding:20px 24px;
    gap:12px;
}

.modal-body {
    padding:24px;
    font-size:15px;
    line-height:2;
}

.modal-title {
    font-size:20px;
    line-height:1.7;
    font-weight:700;
}

.modal-header .btn-close {
    margin:0;
    flex-shrink:0;
}

.modal .text-primary {
    color:var(--accent)!important;
}

.modal h6 {
    margin-bottom:12px;
}

.modal .alert-info {
    background:#f5c5180d;
    border-color:#67591d;
    color:#e1ddcc;
    font-size:13px;
}

.modal .btn-secondary {
    background:#303840;
    border-color:#404a54;
    font:inherit;
}

.modal a.action {
    color:#111318;
}

.modal-backdrop.show {
    opacity:.82;
}

@media(max-width:1100px) {
    .page-shell {
        width:calc(100% - 48px);
    }
    .header-inner {
        gap:20px;
    }
    .main-nav {
        gap:24px;
    }
    .header-actions {
        gap:18px;
    }
    .hero {
        grid-template-columns:.9fr 1.1fr;
        min-height:400px;
    }
    .hero h1 {
        font-size:54px;
    }
    .hero-description {
        font-size:17px;
    }
    .hero-art {
        width:calc(100% + 24px);
        margin-inline-end:-24px;
    }
    .download-card {
        padding:25px;
        grid-template-columns:34px minmax(0,1fr) 35%;
        gap:10px;
    }
    .platform-icon .icon {
        width:30px;
        height:30px;
    }
    .download-card h3 {
        font-size:22px;
    }
    .download-copy p {
        font-size:14px;
    }
    .cast-card {
        grid-template-columns:44px minmax(0,1fr) 200px;
    }
    .connection-steps {
        gap:20px;
    }
}

@media(min-width:701px) and (max-width:850px) {
    .hero h1 { font-size:46px; }
    .download-card:not(.cast-card) {
        grid-template-columns:34px minmax(0,1fr);
        min-height:190px;
    }
    .device-art {
        display:none;
    }
    .main-nav {
        gap:18px;
        font-size:13px;
    }
    .wordmark {
        font-size:30px;
    }
    .help-trigger .icon,.help-desktop {
        display:none;
    }
    .help-mobile {
        display:inline;
    }
}

@media(max-width:700px) {
    html {
        scroll-padding-top:16px;
    }
    body {
        padding-bottom:calc(86px + env(safe-area-inset-bottom));
    }
    .page-shell {
        width:calc(100% - 36px);
    }
    .header-inner {
        min-height:66px;
        gap:18px;
    }
    .wordmark {
        font-size:29px;
        letter-spacing:-1.2px;
    }
    .main-nav {
        display:none;
    }
    .header-actions {
        margin-inline-start:auto;
        gap:20px;
        flex-direction:row-reverse;
    }
    .help-trigger .icon,.help-desktop {
        display:none;
    }
    .help-mobile {
        display:inline;
    }
    .help-trigger,.language-trigger {
        font-size:12px;
    }
    .hero {
        display:flex;
        flex-direction:column;
        min-height:0;
        padding-top:18px;
    }
    .hero-copy {
        padding:4px 0 0;
        text-align:center;
        width:100%;
    }
    .hero h1 {
        font-size:clamp(36px,10vw,48px);
        line-height:1.4;
        letter-spacing:-1px;
    }
    .hero-description {
        font-size:15px;
        line-height:1.85;
        max-width:330px;
        margin:12px auto 0;
    }
    .hero-cta {
        display:none;
    }
    .hero-art {
        width:calc(100% + 36px);
        margin:0 -18px;
    }
    .hero-art img {
        max-height:250px;
        object-fit:contain;
    }
    h2 {
        font-size:24px;
    }
    .download-section {
        padding-top:0;
    }
    .section-heading {
        margin-bottom:22px;
    }
    .download-grid {
        grid-template-columns:1fr;
        gap:14px;
    }
    .download-card,.cast-card {
        grid-template-columns:40px minmax(0,1fr);
        grid-template-rows:auto auto;
        min-height:0;
        padding:20px;
        gap:0 12px;
    }
    .device-art {
        display:none;
    }
    .platform-icon .icon,.cast-card .platform-icon .icon {
        width:35px;
        height:35px;
    }
    .download-card h3 {
        font-size:24px;
    }
    .download-copy p {
        margin-top:4px;
        font-size:13px;
    }
    .download-actions,.cast-card .download-actions {
        grid-column:1/-1;
        grid-row:2;
        margin-top:18px;
        width:100%;
    }
    .action {
        min-height:48px;
        font-size:15px;
        padding:10px 16px;
    }
    .region-note {
        font-size:11px;
        margin-top:15px;
    }
    .tv-section {
        padding-top:34px;
    }
    .tv-intro .section-heading {
        margin-bottom:22px;
    }
    .connection-note {
        font-size:12px;
        line-height:1.9;
        margin-top:12px;
    }
    .connection-note .icon {
        display:none;
    }
    .connection-steps {
        grid-template-columns:1fr;
        gap:10px;
        margin-bottom:26px;
    }
    .connection-steps li {
        flex-direction:row;
        text-align:start;
        align-items:center;
        padding:16px;
        border:1px solid var(--border);
        border-radius:12px;
        background:#11161b;
        gap:16px;
    }
    .connection-steps li:not(:last-child)::after {
        top:calc(50% + 22px);
        inset-inline-start:37px;
        width:0;
        height:calc(50% + 12px);
        border:0;
        border-inline-start:1px solid #897723;
    }
    .step-number {
        flex-shrink:0;
        width:42px;
        height:42px;
        font-size:23px;
    }
    .connection-steps li>div>span {
        font-size:17px;
    }
    .connection-steps p {
        font-size:12px;
        line-height:1.9;
        margin-top:3px;
        max-width:none;
    }
    .tv-grid-title {
        font-size:17px;
        font-weight:700;
        color:var(--text);
        margin-bottom:18px;
    }
    .tv-grid {
        grid-template-columns:1fr;
        gap:12px;
    }
    .tv-card {
        display:grid;
        grid-template-columns:36px minmax(0,1fr);
        gap:0 10px;
        align-items:center;
        text-align:start;
        padding:20px;
        min-height:0;
    }
    .tv-card>.icon {
        grid-column:1;
        grid-row:1;
        width:30px;
        height:30px;
        margin:0;
    }
    .tv-card h3 {
        grid-column:2;
        font-size:22px;
        margin:0;
    }
    .tv-description {
        display:block;
        grid-column:2;
        font-size:12px;
        margin-top:5px;
    }
    .tv-card .action {
        grid-column:1/-1;
        width:100%;
        max-width:none;
        margin-top:16px;
        min-height:46px;
        background:var(--accent);
        color:#111318;
        border-color:var(--accent);
        font-size:14px;
    }
    .upcoming-card {
        grid-template-columns:30px minmax(0,1fr) auto;
        padding:16px 18px;
    }
    .upcoming-card h3 {
        font-size:20px;
    }
    .upcoming-card>.icon {
        width:24px;
        height:24px;
    }
    .coming-soon {
        grid-column:3;
        margin:0;
        font-size:11px;
    }
    .coming-copy {
        min-width:0;
        padding:2px 12px;
    }
    .faq-section {
        margin-block:32px;
    }
    .faq-section h2 {
        margin-bottom:22px;
    }
    .faq-section details {
        padding-inline:16px;
        margin-top:10px;
    }
    .faq-section summary {
        font-size:13px;
        padding-block:17px;
        gap:16px;
    }
    .faq-section details p {
        font-size:13px;
    }
    .site-footer {
        padding-block:20px;
    }
    .footer-inner {
        gap:12px;
        flex-wrap:wrap;
        font-size:11px;
    }
    .footer-wordmark {
        font-size:25px;
    }
    .footer-copyright {
        flex-basis:100%;
        order:3;
        text-align:center;
        font-size:10px;
    }
    .social-links {
        gap:2px;
    }
    .social-links a {
        min-width:32px;
        min-height:40px;
    }
    .social-links .icon {
        width:19px;
        height:19px;
    }
    .mobile-download-bar {
        position:fixed;
        inset-inline:0;
        bottom:0;
        z-index:1020;
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:10px;
        padding:12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top:1px solid #343a42;
        background:#0b0d10f5;
        backdrop-filter:blur(16px);
    }
    .mobile-download-bar .action {
        padding-inline:10px;
        font-size:13px;
    }
    .mobile-download-bar .icon {
        width:20px;
        height:20px;
    }
    body.modal-open .mobile-download-bar {
        visibility:hidden;
    }
    .modal-title {
        font-size:17px;
    }
    .modal-header,.modal-body {
        padding:18px;
    }
}

@media(max-width:370px) {
    .header-actions {
        gap:12px;
    }
    .wordmark {
        font-size:25px;
    }
    .hero h1 {
        font-size:35px;
    }
    .download-card,.cast-card {
        padding:17px;
    }
    .download-card h3 {
        font-size:22px;
    }
    .upcoming-card {
        grid-template-columns:minmax(0,1fr) auto;
    }
    .upcoming-card>.icon {
        display:none;
    }
    .upcoming-card h3 {
        grid-column:1;
        font-size:18px;
    }
    .coming-soon {
        grid-column:2;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto;
    }
    *,*::before,*::after {
        transition:none!important;
        animation:none!important;
    }
}
