@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);
    --badge-height: 48px;
    --badge-height-compact: 44px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: 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;
    background:
        radial-gradient(circle at 78% 9%, rgba(106, 170, 100, .105), transparent 34rem),
        radial-gradient(circle at 13% 46%, rgba(201, 180, 88, .065), transparent 31rem);
    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; }

#how,
#daily { scroll-margin-top: 24px; }

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

.hero-copy {
    position: relative;
    z-index: 2;
    animation: hero-rise .7s cubic-bezier(.2, .8, .2, 1) both;
}

.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(3rem, 5.4vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1.04;
}

.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 {
    height: var(--badge-height);
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: clip;
    transition: transform .18s ease, filter .18s ease;
}

.store-badges a:hover { transform: translateY(-2px); filter: brightness(1.05); }
.store-badges img {
    width: auto;
    height: var(--badge-height);
    max-width: none;
    object-fit: contain;
}

/* Google's official PNG includes transparent clear-space in its canvas.
   Scale the canvas so the visible badge, not the file bounds, matches Apple. */
.store-badges a[href*="play.google.com"] {
    width: calc(var(--badge-height) * 3.357143);
}

.store-badges a[href*="play.google.com"] img {
    height: calc(var(--badge-height) * 1.488095);
}

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

.hero-visual {
    position: relative;
    min-height: 744px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero-visual::before {
    content: "";
    position: absolute;
    z-index: -2;
    width: min(100%, 560px);
    aspect-ratio: 1;
    inset: 50% auto auto 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 170, 100, .14), rgba(201, 180, 88, .045) 43%, transparent 70%);
    filter: blur(28px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.visual-glow {
    position: absolute;
    z-index: -1;
    inset: 19% 9% 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 56% 27%, rgba(106, 170, 100, .16), transparent 46%),
        radial-gradient(circle at 43% 75%, rgba(201, 180, 88, .11), transparent 48%);
    filter: blur(70px);
}

.screen-device {
    position: relative;
    z-index: 1;
    width: min(100%, 344px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(230, 231, 232, .12);
    border-radius: 36px;
    background: #10141a;
    box-shadow:
        0 42px 90px rgba(0, 0, 0, .46),
        0 0 0 1px rgba(106, 170, 100, .045);
    animation: device-arrive .85s .08s cubic-bezier(.2, .8, .2, 1) both;
}

.screen-device img {
    width: 100%;
    height: auto;
    border-radius: inherit;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes device-arrive {
    from { opacity: 0; transform: translateY(24px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.platform-showcase {
    position: relative;
    width: min(1040px, calc(100% - 40px));
    margin: 72px auto 0;
    padding: 124px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
    align-items: center;
    gap: clamp(56px, 9vw, 116px);
    border-block: 1px solid var(--outline-soft);
    isolation: isolate;
}

.platform-showcase::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(56vw, 520px);
    aspect-ratio: 1;
    inset-inline-end: 0;
    top: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 180, 88, .1), rgba(106, 170, 100, .045) 44%, transparent 70%);
    filter: blur(32px);
    transform: translateY(-50%);
}

.platform-copy h2 {
    max-width: 590px;
    margin: 0;
    font-size: clamp(2.45rem, 5vw, 4.55rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.platform-copy > p:last-child {
    max-width: 610px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.9;
}

.platform-visual {
    display: grid;
    place-items: center;
}

.platform-visual .screen-device {
    width: min(100%, 322px);
    border-radius: 34px;
    box-shadow:
        0 38px 82px rgba(0, 0, 0, .43),
        0 0 0 1px rgba(201, 180, 88, .04);
    animation: none;
}

.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 {
    height: var(--badge-height-compact);
}

.store-badges.compact img {
    height: var(--badge-height-compact);
}

.store-badges.compact a[href*="play.google.com"] {
    width: calc(var(--badge-height-compact) * 3.357143);
}

.store-badges.compact a[href*="play.google.com"] img {
    height: calc(var(--badge-height-compact) * 1.488095);
}

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: 60px;
    }

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

    .platform-showcase {
        margin-top: 48px;
        padding: 96px 0;
        grid-template-columns: 1fr;
        gap: 56px;
        text-align: center;
    }

    .platform-copy > p:last-child { margin-inline: auto; }
    .platform-visual { grid-row: 2; }

    .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(2.7rem, 13vw, 4rem); }
    .store-badges { gap: 10px; }
    .hero-visual { min-height: auto; }
    .screen-device { width: min(82vw, 336px); border-radius: 30px; }
    .platform-showcase { width: calc(100% - 32px); padding: 80px 0; }
    .platform-visual .screen-device { width: min(78vw, 312px); border-radius: 29px; }

    .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; }
}
