@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #12151B;
    --surface: #242A33;
    --surface-raised: #2C333E;
    --text: #E6E7E8;
    --muted: #C7C9CC;
    --green: #6AAA64;
    --yellow: #C9B458;
    --absent: #3A3A3C;
    --outline: #2F343A;
    --outline-soft: rgba(230, 231, 232, .11);
    --max: 1180px;
    --shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 78% 7%, rgba(106, 170, 100, .16), transparent 30rem),
        radial-gradient(circle at 8% 42%, rgba(201, 180, 88, .08), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: "Vazirmatn", system-ui, sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(230, 231, 232, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 231, 232, .035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
    pointer-events: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    inset-inline-start: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--text);
    color: var(--bg);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.smart-banner {
    position: relative;
    z-index: 40;
    min-height: 70px;
    padding: 10px max(12px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    gap: 11px;
    direction: ltr;
    border-bottom: 1px solid var(--outline-soft);
    background: rgba(36, 42, 51, .96);
}

.smart-banner[hidden] { display: none; }
.smart-banner img { border-radius: 11px; }

.banner-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font: 400 24px/1 system-ui, sans-serif;
    cursor: pointer;
}

.banner-copy {
    min-width: 0;
    flex: 1;
    display: grid;
    color: var(--text);
    line-height: 1.25;
}

.banner-copy small { color: var(--muted); }

#bannerGet {
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--green);
    color: #0c150d;
    font-weight: 800;
    text-decoration: none;
}

.site-header {
    position: relative;
    z-index: 20;
    width: min(var(--max), calc(100% - 40px));
    min-height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid var(--outline-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.05;
    text-decoration: none;
}

.brand img {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(106, 170, 100, .18);
}

.brand span { display: grid; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .55rem; letter-spacing: .13em; }

.site-header nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
}

.site-header nav a {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
}

.site-header nav a:hover { color: var(--text); }

.site-header .language-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--outline-soft);
    border-radius: 999px;
    background: rgba(44, 51, 62, .58);
    color: var(--text);
}

main { position: relative; z-index: 1; }

.hero {
    width: min(var(--max), calc(100% - 40px));
    min-height: 740px;
    margin: 0 auto;
    padding: 72px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
    align-items: center;
    gap: clamp(48px, 8vw, 108px);
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(3.3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .98;
}

.hero h1 span { color: var(--yellow); }

.hero-lede {
    max-width: 610px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.9;
}

.store-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    direction: ltr;
}

.store-badges a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    transition: transform .18s ease, filter .18s ease;
}

.store-badges a:hover { transform: translateY(-2px); filter: brightness(1.05); }
.store-badges a:first-child img { width: 162px; height: auto; }
.store-badges a:last-child img { width: 174px; height: auto; }

.availability { margin: 11px 0 0; color: var(--muted); font-size: .82rem; }

.hero-visual {
    position: relative;
    min-height: 620px;
    isolation: isolate;
}

.visual-glow {
    position: absolute;
    z-index: -1;
    inset: 18% 5% 10%;
    border-radius: 50%;
    background: rgba(106, 170, 100, .2);
    filter: blur(72px);
}

.phone-shot {
    position: absolute;
    width: min(58%, 300px);
    height: auto;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.phone-shot-back {
    top: 62px;
    inset-inline-start: 0;
    transform: rotate(-5deg);
    opacity: .88;
}

[dir="rtl"] .phone-shot-back { transform: rotate(5deg); }

.phone-shot-front {
    top: 0;
    inset-inline-end: 0;
    z-index: 2;
    transform: rotate(3deg);
}

[dir="rtl"] .phone-shot-front { transform: rotate(-3deg); }

.proof-strip {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--outline-soft);
    border-radius: 24px;
    background: rgba(36, 42, 51, .72);
    box-shadow: var(--shadow);
}

.proof-strip p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: var(--muted);
}

.proof-strip p + p { border-inline-start: 1px solid var(--outline-soft); }
.proof-strip strong { color: var(--text); font-size: 2rem; font-variant-numeric: tabular-nums; }

.how-section,
.faq-section {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 136px 0;
}

.section-heading { max-width: 700px; }

.section-heading h2,
.daily-card h2,
.final-cta h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2.15rem, 5vw, 4.6rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.section-heading > p:last-child,
.daily-card > p:not(.eyebrow) {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.rules-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.rules-grid article {
    min-height: 290px;
    padding: 30px;
    border: 1px solid var(--outline-soft);
    border-radius: 24px;
    background: rgba(36, 42, 51, .68);
}

.demo-tile {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.demo-tile.correct { background: var(--green); }
.demo-tile.present { background: var(--yellow); }
.demo-tile.absent { background: var(--absent); }

.rules-grid h3 { margin: 27px 0 9px; font-size: 1.25rem; }
.rules-grid p { margin: 0; color: var(--muted); }

.daily-section {
    padding: 40px 20px 136px;
}

.daily-card {
    position: relative;
    width: min(1040px, 100%);
    margin: 0 auto;
    overflow: hidden;
    padding: clamp(38px, 7vw, 86px);
    border: 1px solid rgba(201, 180, 88, .24);
    border-radius: 34px;
    background:
        radial-gradient(circle at 100% 0, rgba(201, 180, 88, .18), transparent 26rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.daily-card ul {
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    gap: 13px;
    list-style: none;
    color: var(--muted);
}

.daily-card li::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-inline-end: 11px;
    display: inline-block;
    border-radius: 50%;
    background: var(--green);
}

.faq-section { padding-top: 40px; }

.faq-list {
    max-width: 860px;
    margin-top: 48px;
    display: grid;
    gap: 12px;
}

.faq-list details {
    border: 1px solid var(--outline-soft);
    border-radius: 17px;
    background: rgba(36, 42, 51, .64);
}

.faq-list summary {
    min-height: 66px;
    padding: 19px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.faq-list summary::after { content: "+"; color: var(--yellow); font-size: 1.5rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 22px 22px; color: var(--muted); }

.final-cta {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto 96px;
    padding: clamp(32px, 6vw, 62px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    border: 1px solid var(--outline-soft);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.final-cta > img { border-radius: 24px; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.final-cta .store-badges { margin-top: 0; }
.store-badges.compact a:first-child img { width: 140px; }
.store-badges.compact a:last-child img { width: 151px; }

footer {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 calc(30px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--outline-soft);
    color: var(--muted);
    font-size: .78rem;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-main a { text-decoration: none; }
.footer-main a:hover { color: var(--text); }
.trademark { max-width: 900px; margin: 20px auto 0; color: rgba(199, 201, 204, .74); text-align: center; }

@media (max-width: 900px) {
    .site-header nav > a:not(.language-link) { display: none; }

    .hero {
        min-height: auto;
        padding-top: 64px;
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hero-copy { text-align: center; }
    .hero-lede { margin-inline: auto; }
    .store-badges { justify-content: center; }
    .hero-visual { width: min(100%, 520px); min-height: 610px; margin: 0 auto; }

    .rules-grid { grid-template-columns: 1fr; }
    .rules-grid article { min-height: 0; }

    .final-cta {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .site-header { width: calc(100% - 28px); min-height: 72px; }
    .site-header nav { gap: 10px; }
    .hero { width: calc(100% - 32px); padding-top: 48px; }
    .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
    .hero-visual { min-height: 480px; }
    .phone-shot { width: min(62%, 240px); border-radius: 16px; }

    .proof-strip {
        width: calc(100% - 32px);
        padding: 20px 14px;
    }

    .proof-strip p { display: grid; gap: 1px; text-align: center; }
    .proof-strip strong { font-size: 1.55rem; }
    .proof-strip span { font-size: .72rem; }

    .how-section,
    .faq-section { width: calc(100% - 32px); padding: 100px 0; }
    .daily-section { padding-inline: 16px; }
    .daily-card { border-radius: 24px; }
    .rules-grid article { padding: 24px; }
    .final-cta { width: calc(100% - 32px); margin-bottom: 64px; }
    footer { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-contrast: more) {
    :root { --outline-soft: rgba(230, 231, 232, .34); }
    .eyebrow { color: #86C97F; }
}
