:root {
    color-scheme: dark;
    --page: #121212;
    --surface: #1e1e1e;
    --surface-raised: #242424;
    --text: #dfe6e9;
    --muted: #b2bec3;
    --gold: #fdb827;
    --gold-soft: #f5d27c;
    --line: rgba(255, 255, 255, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="fa"] { font-family: "Vazirmatn", sans-serif; }
html[lang="en"] { font-family: "Inter", sans-serif; }
body {
    margin: 0;
    min-width: 320px;
    background: radial-gradient(circle at 50% 0, #202020 0, var(--page) 36rem);
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}
a { color: inherit; }
.site-header, main, .site-footer { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.brand small { color: var(--muted); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #fdb82780; border-radius: 50%; color: var(--gold); font-size: 1.25rem; }
nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.4rem, 1.3vw, 1rem); }
.nav-link, .language-link { text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 600; padding: .45rem .7rem; border-radius: 999px; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #fff; background: #ffffff0b; }
.language-link { color: var(--gold-soft); border: 1px solid #ffffff25; }
.language-link:hover { border-color: var(--gold); color: #fff; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 .8rem; color: var(--gold); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
h1, h2, h3, p, figure { margin-top: 0; }
h1 { max-width: 13ch; margin-bottom: 1.15rem; color: #fff; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.22; letter-spacing: -.035em; }
h1 span { color: var(--gold); }
.intro { max-width: 38rem; margin-bottom: 1.6rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 700; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: #17130a; box-shadow: 0 8px 28px #fdb82727; }
.button.primary:hover { background: #ffd166; }
.button.secondary { border-color: #ffffff28; color: #fff; }
.button.secondary:hover { border-color: var(--gold); }
.hero-image { min-width: 0; margin: 0; padding: .55rem; border: 1px solid var(--line); border-radius: 1.15rem; background: #ffffff06; box-shadow: 0 24px 64px #0005; }
.hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: .75rem; }
.hero-image figcaption { padding: .65rem .4rem .1rem; color: var(--muted); font-size: .78rem; }
.content-section { padding-block: clamp(3.2rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.section-heading { max-width: 50rem; margin-bottom: 1rem; }
.section-heading .eyebrow { margin-bottom: .45rem; }
.section-heading h2, .closing-cta h2 { margin-bottom: .7rem; color: #fff; font-size: clamp(1.75rem, 3.3vw, 2.5rem); line-height: 1.35; }
.section-lead { max-width: 55rem; margin-bottom: 2rem; color: var(--muted); font-size: 1.05rem; line-height: 1.9; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.feature-card, .detail-card { min-width: 0; padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(145deg, #ffffff08, #ffffff03); }
.feature-number { display: inline-block; margin-bottom: .9rem; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.feature-card h3 { margin-bottom: .45rem; color: #fff; font-size: 1.05rem; line-height: 1.5; }
.feature-card p, .detail-card p { margin-bottom: 0; color: var(--muted); font-size: .92rem; line-height: 1.85; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-block: 1rem clamp(3.2rem, 7vw, 5.5rem); }
.detail-card { padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--surface); }
.detail-card h2 { margin-bottom: .65rem; color: #fff; font-size: 1.18rem; line-height: 1.5; }
.creator-card a, .text-link { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link { display: inline-flex; gap: .4rem; margin-top: 1rem; font-size: .9rem; font-weight: 600; }
.closing-cta { margin-bottom: 3.5rem; padding: clamp(1.7rem, 5vw, 3rem); border: 1px solid #fdb82738; border-radius: 1.25rem; background: radial-gradient(circle at 50% 0, #fdb82712, transparent 60%), var(--surface); text-align: center; }
.closing-cta .eyebrow { margin-bottom: .5rem; }
.closing-cta h2 { margin-inline: auto; }
.closing-cta > p:not(.eyebrow) { margin-bottom: 1.25rem; color: var(--muted); }
.breadcrumb { margin: -1.5rem 0 2rem; color: var(--muted); font-size: .82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .5rem; color: #ffffff55; }
.breadcrumb a { text-decoration: none; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--gold-soft); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); }
.site-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 800px) {
    .site-header { min-height: 68px; }
    .hero { grid-template-columns: minmax(0, 1fr) minmax(260px, .85fr); gap: 2rem; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .site-header, main, .site-footer { width: min(100% - 1.25rem, 1120px); }
    .site-header { align-items: flex-start; flex-direction: column; gap: .55rem; padding-block: .8rem; }
    nav { width: 100%; justify-content: flex-start; gap: .2rem; overflow-x: auto; padding-bottom: .2rem; }
    .nav-link, .language-link { padding: .38rem .55rem; font-size: .78rem; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; padding-block: 2.8rem 3rem; }
    h1 { max-width: 16ch; margin-bottom: .85rem; font-size: clamp(2.15rem, 9vw, 3rem); line-height: 1.28; }
    .intro { font-size: 1rem; line-height: 1.85; }
    .hero-image { width: 100%; }
    .content-section { padding-block: 3rem; }
    .section-lead { font-size: .98rem; }
    .feature-grid, .details-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
    .feature-card, .detail-card { padding: 1.15rem; }
    .details-grid { padding-block: .25rem 3rem; }
    .closing-cta { margin-bottom: 2.5rem; }
    .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: .4rem; padding-block: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
