:root {
    color-scheme: light;
    --ink: #17201e;
    --muted: #5d6965;
    --paper: #fbf8f1;
    --surface: #ffffff;
    --primary: #087f72;
    --primary-dark: #04645b;
    --mint: #dff4ee;
    --warm: #f6debd;
    --line: #dfe5df;
    --shadow: 0 18px 50px rgba(28, 55, 48, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
    line-height: 1.8;
}
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow-shell { width: min(820px, calc(100% - 40px)); }
.skip-link { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 99; padding: 10px 16px; background: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 241, .92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(223, 229, 223, .8); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 900; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: #fff; background: var(--primary); box-shadow: 0 8px 20px rgba(8, 127, 114, .22); }
nav { display: flex; align-items: center; gap: 8px; }
nav a { padding: 9px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; }
nav a:hover, nav a:focus-visible { background: var(--mint); outline: none; }
.nav-download { color: var(--primary-dark); }
.hero { overflow: hidden; padding: 88px 0 76px; background: radial-gradient(circle at 12% 20%, #ffe8c9 0, transparent 31%), linear-gradient(135deg, #fbf8f1, #edf7f2); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 80px; }
.eyebrow { margin: 0 0 10px; color: var(--primary); font-weight: 900; letter-spacing: -.01em; }
h1, h2, h3 { margin-top: 0; line-height: 1.35; }
h1 { margin-bottom: 22px; font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.055em; }
h1 span { color: var(--primary); }
.hero-lead { max-width: 590px; margin-bottom: 28px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 15px; font-weight: 900; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid #f0b665; outline-offset: 3px; }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 10px 24px rgba(8, 127, 114, .22); }
.button-primary:hover { background: var(--primary-dark); }
.button-quiet { border: 1px solid var(--line); background: rgba(255,255,255,.7); }
.button-light { background: #fff; color: var(--primary-dark); }
.trust-note { margin-top: 22px; color: var(--muted); font-size: .92rem; }
.trust-note span { color: var(--primary); font-weight: 900; }
.hero-art { position: relative; min-height: 430px; display: grid; place-items: center; }
.art-window { position: relative; width: min(390px, 90vw); aspect-ratio: .93; overflow: hidden; border: 12px solid rgba(255,255,255,.88); border-radius: 36px; background: #c7ebe5; box-shadow: var(--shadow); transform: rotate(-2deg); }
.art-sky { position: absolute; inset: 0; background: linear-gradient(#b8e7e3 0 48%, #f9dfb8 49% 100%); }
.art-sun { position: absolute; width: 96px; height: 96px; top: 62px; left: 54px; border-radius: 50%; background: #fff2bd; box-shadow: 0 0 42px #fff1bb; }
.art-hill { position: absolute; width: 135%; height: 58%; bottom: -19%; border-radius: 50% 50% 0 0; }
.art-hill-back { left: -48%; background: #86b9a6; transform: rotate(12deg); }
.art-hill-front { right: -48%; bottom: -28%; background: #3b7869; transform: rotate(-9deg); }
.art-spark { position: absolute; color: #fff; font-size: 2rem; }
.art-spark-one { top: 30px; right: 48px; }
.art-spark-two { top: 104px; right: 30px; font-size: 1.2rem; }
.art-chip { position: absolute; padding: 8px 16px; border: 1px solid rgba(255,255,255,.8); border-radius: 13px; background: rgba(255,255,255,.88); box-shadow: 0 8px 25px rgba(20,55,45,.13); font-weight: 900; }
.chip-one { top: 44px; right: -2px; }
.chip-two { bottom: 44px; left: 0; }
.feature-section { padding: 88px 0; background: var(--surface); }
.feature-section h2, .download-callout h2 { max-width: 660px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 16px; background: var(--mint); color: var(--primary); font-size: 1.4rem; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); }
.download-callout { padding: 28px 0 88px; background: #fff; }
.callout-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px; border-radius: 30px; color: #fff; background: linear-gradient(125deg, #087f72, #145f57); box-shadow: var(--shadow); }
.callout-card .eyebrow { color: #bff2e7; }
.callout-card h2 { margin-bottom: 0; }
.download-hero { padding: 76px 0 42px; text-align: center; }
.download-hero h1 { margin-bottom: 16px; font-size: clamp(2.2rem, 6vw, 4rem); }
.download-hero p:last-child { color: var(--muted); font-size: 1.08rem; }
.download-options { padding: 18px 0 90px; }
.legal-hero { padding: 76px 0 26px; text-align: center; }
.legal-hero h1 { margin-bottom: 16px; font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -.035em; }
.legal-intro { margin: 0 auto; color: var(--muted); font-size: 1.04rem; }
.legal-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
    text-align: start;
}
.legal-meta div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); }
.legal-meta dt { color: var(--muted); font-size: .84rem; font-weight: 800; }
.legal-meta dd { margin: 2px 0 0; font-weight: 900; overflow-wrap: anywhere; }
.legal-meta a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-content { padding: 10px 0 88px; }
.legal-highlight, .legal-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 55, 48, .06);
}
.legal-highlight { margin-bottom: 18px; background: linear-gradient(180deg, #ffffff, #f7faf8); }
.legal-highlight h3, .legal-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.legal-highlight p, .legal-card p { margin: 0; color: var(--muted); }
.support-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 14px 18px;
    border-radius: 16px;
    color: #fff;
    background: var(--primary);
    font-weight: 900;
    text-decoration: none;
}
.support-contact:hover { background: var(--primary-dark); }
.support-contact:focus-visible { outline: 3px solid #f0b665; outline-offset: 3px; }
.support-contact bdi { font-family: "Segoe UI", Tahoma, sans-serif; letter-spacing: .01em; }
.legal-sections { display: grid; gap: 18px; }
.legal-list { margin: 0; padding: 0; list-style: none; }
.legal-list li {
    position: relative;
    padding-inline-start: 18px;
    color: var(--muted);
}
.legal-list li + li { margin-top: 10px; }
.legal-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .8em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
}
.channel-list { display: grid; gap: 16px; }
.channel-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 10px 28px rgba(28, 55, 48, .06); }
.channel-card.unavailable { background: rgba(255,255,255,.55); }
.channel-copy { display: flex; align-items: center; gap: 18px; padding-inline-end: 190px; }
.channel-mark { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; color: var(--primary-dark); background: var(--mint); font-size: 1.35rem; font-weight: 900; }
.channel-copy h3 { margin-bottom: 2px; }
.channel-copy p { margin: 0; color: var(--muted); }
.channel-action, .status-pill { position: absolute; inset-inline-end: 24px; top: 27px; }
.status-pill { padding: 9px 15px; border-radius: 999px; color: var(--muted); background: #edf0ec; font-weight: 800; }
.checksum { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.checksum summary { cursor: pointer; color: var(--primary-dark); font-weight: 800; }
.checksum code { display: block; overflow-wrap: anywhere; margin-top: 10px; padding: 12px; border-radius: 12px; background: #f3f5f2; font-size: .78rem; text-align: left; }
.security-note { margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--mint); }
.security-note p { margin: 4px 0 0; color: #37544e; }
.site-footer { padding: 44px 0; border-top: 1px solid var(--line); background: #f3f1ea; }
.footer-shell { display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); }
.footer-shell p { margin: 0; }
.footer-shell strong { color: var(--ink); font-size: 1.2rem; }
.footer-meta { display: grid; gap: 12px; justify-items: end; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.footer-links a { font-weight: 700; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--primary-dark); outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 780px) {
    .shell, .narrow-shell { width: min(100% - 28px, 680px); }
    .nav-shell { min-height: 66px; }
    nav a:first-child { display: none; }
    .hero { padding: 54px 0 50px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-art { min-height: 340px; }
    .art-window { width: min(320px, 84vw); }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-section { padding: 64px 0; }
    .callout-card, .footer-shell { align-items: stretch; flex-direction: column; }
    .footer-meta { justify-items: start; }
    .legal-meta { grid-template-columns: 1fr; }
    .channel-copy { padding-inline-end: 0; }
    .channel-action, .status-pill { position: static; margin-top: 18px; }
    .channel-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
