:root {
    color-scheme: dark;
    --ink: #f8f4ff;
    --muted: #bdb4ca;
    --dim: #877e96;
    --night: #090713;
    --night-2: #110c25;
    --panel: rgba(24, 17, 48, .76);
    --panel-light: rgba(255, 255, 255, .055);
    --line: rgba(231, 199, 125, .17);
    --gold: #e7c77d;
    --gold-bright: #ffe7a8;
    --violet: #8d63e9;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .35);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 4%, rgba(113, 70, 205, .22), transparent 30rem),
        radial-gradient(circle at 88% 24%, rgba(195, 142, 67, .09), transparent 26rem),
        linear-gradient(155deg, var(--night) 0%, #0d091a 47%, var(--night-2) 100%);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.38) 0 1px, transparent 1.2px),
        radial-gradient(circle, rgba(231,199,125,.25) 0 1px, transparent 1.2px);
    background-position: 0 0, 37px 61px;
    background-size: 97px 97px, 131px 131px;
    opacity: .18;
    pointer-events: none;
    content: "";
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link, .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}
.skip-link:focus {
    z-index: 100;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    background: var(--gold);
    color: #17101d;
}
.site-header, .site-footer, .hero, .page-header, .section, .download-band, .notice, .article {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(9,7,19,.72);
    backdrop-filter: blur(22px);
}
.site-header::before {
    position: absolute;
    right: 50%;
    left: 50%;
    width: 100vw;
    height: 100%;
    z-index: -1;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: inherit;
    transform: translateX(-50%);
    content: "";
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-bright); font-size: 1.28rem; font-weight: 720; letter-spacing: .035em; }
.brand__mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: .72rem; }
.site-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .9rem; font-weight: 620; }
.site-nav > a { transition: color .2s ease; }
.site-nav > a:hover { color: var(--gold-bright); }
.nav-cta, .button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 19px;
    font-weight: 720;
    line-height: 1.2;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.nav-cta { min-height: 38px; color: var(--gold-bright); }
.button:hover, .nav-cta:hover { transform: translateY(-2px); }
.button--primary {
    border-color: rgba(255,231,168,.6);
    background: linear-gradient(135deg, #d8ad55, var(--gold-bright));
    box-shadow: 0 13px 38px rgba(211,164,75,.2);
    color: #1d1420;
}
.button--ghost { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.045); }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-light); color: var(--ink); padding: 9px 14px; font: inherit; }
.language-picker { position: relative; }
.language-picker__button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255,255,255,.045);
    color: var(--ink);
    font: inherit;
    font-size: .78rem;
    font-weight: 720;
    cursor: pointer;
}
.language-picker__button svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.language-picker__button i { color: var(--dim); font-style: normal; }
.language-picker__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    display: grid;
    width: 240px;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    padding: 8px;
    background: rgba(15,10,31,.98);
    box-shadow: 0 22px 60px rgba(0,0,0,.46);
}
.language-picker__menu[hidden] { display: none; }
.language-picker__menu a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 11px;
    padding: 8px 11px;
    color: var(--muted);
}
.language-picker__menu a:hover, .language-picker__menu a[aria-current="page"] { background: rgba(231,199,125,.1); color: var(--gold-bright); }
.language-picker__menu small { color: var(--dim); font-size: .68rem; letter-spacing: .08em; }
.hero {
    position: relative;
    display: grid;
    min-height: 720px;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    align-items: center;
    gap: 70px;
    padding-block: 92px 110px;
}
.hero__content { position: relative; z-index: 2; max-width: 790px; }
.hero__glow { position: absolute; top: 9%; left: -12%; width: 640px; height: 640px; border-radius: 50%; background: rgba(113,70,205,.12); filter: blur(80px); }
.hero h1, .page-header h1, .article__header h1 {
    max-width: 1000px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.1rem, 7.2vw, 6.6rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .98;
    text-wrap: balance;
}
.hero__lead, .page-header > p:not(.eyebrow), .article__header > p:not(.eyebrow) { max-width: 730px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.eyebrow, .content-card__meta {
    margin: 0 0 15px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 760;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__signals { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 42px; color: var(--dim); font-size: .82rem; letter-spacing: .04em; }
.hero__orb { position: relative; display: grid; aspect-ratio: 1; place-items: center; border: 1px solid rgba(231,199,125,.25); border-radius: 50%; box-shadow: inset 0 0 70px rgba(141,99,233,.15), 0 0 100px rgba(141,99,233,.12); color: var(--gold); font-family: Georgia, serif; font-size: 8rem; }
.hero__orb::before, .hero__orb::after { position: absolute; inset: 9%; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.hero__orb::after { inset: -9%; border-style: dashed; animation: orbit 50s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
h2, h3 { margin: 0; line-height: 1.16; text-wrap: balance; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -.03em; }
h3 { font-size: 1.18rem; }
.section { padding-block: 74px; }
.section--compact { padding-top: 28px; }
.section--tinted { position: relative; }
.section--tinted::before { position: absolute; right: 50%; left: 50%; z-index: -1; width: 100vw; height: 100%; border-block: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.018); transform: translateX(-50%); content: ""; }
.section__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.text-link { color: var(--gold); font-size: .9rem; font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.content-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
    box-shadow: 0 16px 50px rgba(0,0,0,.18);
    transition: transform .25s ease, border-color .25s ease;
}
.content-card:hover { border-color: rgba(231,199,125,.28); transform: translateY(-5px); }
.content-card__button { display: block; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.content-card__media { display: grid; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; background: linear-gradient(135deg, #191032, #302058); }
.content-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.content-card:hover img { transform: scale(1.035); }
.content-card__placeholder { color: rgba(231,199,125,.5); font-size: 2.2rem; }
.content-card__body { position: relative; padding: 24px 26px 28px; }
.content-card__meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; letter-spacing: .08em; }
.content-card__meta time { color: var(--dim); }
.content-card__title { display: block; padding-inline-end: 32px; font-size: 1.18rem; font-weight: 700; line-height: 1.3; }
.content-card__summary { display: -webkit-box; overflow: hidden; margin: 13px 0 0; color: var(--muted); font-size: .93rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.content-card__link { position: absolute; top: 24px; right: 24px; color: var(--gold); }
.content-feed__status { border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px 20px; background: rgba(255,255,255,.025); color: var(--muted); text-align: center; }
.content-feed__more { display: flex; margin: 28px auto 0; }
.kd-content-modal[hidden] { display: none; }
.kd-content-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 28px;
    opacity: 0;
    transition: opacity .2s ease;
}
.kd-content-modal.is-open { opacity: 1; }
.kd-content-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(3, 2, 8, .82);
    backdrop-filter: blur(10px);
    cursor: pointer;
}
.kd-content-modal__panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(231, 199, 125, .24);
    border-radius: 26px;
    background: radial-gradient(circle at 85% 0, rgba(231,199,125,.1), transparent 20rem), #100b20;
    box-shadow: 0 30px 100px rgba(0,0,0,.62);
    transform: translateY(18px) scale(.985);
    transition: transform .22s ease;
    overscroll-behavior: contain;
}
.kd-content-modal.is-open .kd-content-modal__panel { transform: translateY(0) scale(1); }
.kd-content-modal__close {
    position: sticky;
    top: 16px;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    margin: 16px 16px -60px auto;
    place-items: center;
    border: 1px solid rgba(231,199,125,.3);
    border-radius: 50%;
    background: rgba(9,7,19,.94);
    color: var(--gold-bright);
    font-size: 1.6rem;
    cursor: pointer;
}
.kd-content-modal__media { display: grid; min-height: 260px; max-height: 430px; place-items: center; overflow: hidden; background: linear-gradient(135deg, #191032, #302058); color: rgba(231,199,125,.5); font-size: 4rem; }
.kd-content-modal__media img { width: 100%; height: 100%; max-height: 430px; object-fit: cover; }
.kd-content-modal__content { padding: clamp(28px, 6vw, 58px); }
.kd-content-modal__title { font-size: clamp(2rem, 5vw, 3.5rem); }
.kd-content-modal__summary { margin: 18px 0 32px; color: var(--muted); font-size: 1.05rem; }
.kd-content-modal__body { max-width: none; }
.kd-content-modal-open { overflow: hidden; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-card { position: relative; display: flex; min-height: 155px; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 22px; background: var(--panel-light); transition: background .2s, border-color .2s; }
.category-card:hover { border-color: rgba(231,199,125,.3); background: rgba(231,199,125,.07); }
.category-card__index { position: absolute; top: 13px; left: 18px; color: var(--dim); font-family: Georgia, serif; font-size: .75rem; }
.category-card > span:not(.category-card__index) { font-family: Georgia, serif; font-size: 1.24rem; }
.category-card strong { margin-top: 4px; color: var(--muted); font-size: .75rem; font-weight: 550; }
.category-card i { position: absolute; top: 16px; right: 18px; color: var(--gold); font-style: normal; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature-card { min-height: 320px; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: clamp(28px, 5vw, 52px); background: linear-gradient(145deg, rgba(113,70,205,.13), rgba(255,255,255,.025)); }
.feature-card__icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.feature-card p { max-width: 540px; color: var(--muted); }
.download-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    overflow: hidden;
    border: 1px solid rgba(231,199,125,.22);
    border-radius: calc(var(--radius) + 4px);
    padding: clamp(30px, 6vw, 62px);
    background: radial-gradient(circle at 80% 0, rgba(231,199,125,.14), transparent 18rem), linear-gradient(135deg, rgba(113,70,205,.2), rgba(255,255,255,.035));
    box-shadow: var(--shadow);
}
.download-band > div { max-width: 760px; }
.download-band p:last-child { margin-bottom: 0; color: var(--muted); }
.notice { display: flex; gap: 14px; align-items: flex-start; margin-block: 26px 70px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 17px 20px; background: rgba(255,255,255,.025); color: var(--muted); font-size: .88rem; }
.notice span { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-family: Georgia, serif; }
.notice p { margin: 0; }
.page-header { padding-block: 90px 40px; }
.page-header h1, .article__header h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); }
.page-header--center { display: grid; min-height: 68vh; place-content: center; justify-items: center; text-align: center; }
.page-header--center .button { margin-top: 28px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; color: var(--dim); font-size: .78rem; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { color: rgba(255,255,255,.2); font-style: normal; }
.article { max-width: 900px; padding-block: 62px 30px; }
.article__header { margin-bottom: 34px; }
.article-hero { width: min(1120px, calc(100vw - 40px)); margin: 34px 50% 48px; transform: translateX(-50%); }
.article-hero img { width: 100%; max-height: 620px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); object-fit: cover; aspect-ratio: 16/9; }
.article__body { max-width: 740px; margin-inline: auto; color: #e9e4ef; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 2vw, 1.2rem); line-height: 1.88; }
.article__body p, .article__body ul, .article__body ol { margin: 0 0 1.45em; }
.article__body h2, .article__body h3, .article__body h4 { margin: 2em 0 .65em; color: var(--ink); font-family: ui-sans-serif, system-ui, sans-serif; }
.article__body h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.article__body h3 { font-size: 1.45rem; }
.article__body li { margin-bottom: .5em; }
.article__body a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.article__body img { width: 100%; height: auto; border-radius: 14px; margin-block: 28px; }
.article .download-band { width: 100%; margin-top: 70px; }
.article .notice { width: 100%; }
.article--legal .article__body { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.05rem; }
.site-footer {
    position: relative;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 44px;
    margin-top: 90px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-block: 54px 34px;
    color: var(--muted);
    font-size: .86rem;
}
.site-footer > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.site-footer strong { margin-bottom: 6px; color: var(--ink); }
.site-footer a:hover { color: var(--gold); }
.site-footer__brand p { max-width: 390px; }
.site-footer__copyright { grid-column: 1 / -1; margin: 18px 0 0; border-top: 1px solid rgba(255,255,255,.06); padding-top: 22px; color: var(--dim); }
.rtl { text-align: right; }
.rtl .content-card__link, .rtl .category-card i { right: auto; left: 22px; }
.rtl .category-card__index { right: 18px; left: auto; }
.rtl .content-card__title { padding-right: 0; padding-left: 32px; }
.rtl .hero__glow { right: -12%; left: auto; }
.rtl .language-picker__menu { right: auto; left: 0; }

@media (max-width: 980px) {
    .menu-button { display: inline-flex; }
    .site-header { flex-wrap: wrap; }
    .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 7px; padding: 14px 0 19px; }
    .site-nav.is-open { display: flex; }
    .site-nav > a { padding: 8px 4px; }
    .language-picker { width: 100%; }
    .language-picker__button { width: 100%; justify-content: center; }
    .language-picker__menu { position: fixed; right: 14px; bottom: 14px; left: 14px; top: auto; width: auto; max-height: min(72vh, 540px); border-radius: 22px; padding: 12px; }
    .rtl .language-picker__menu { right: 14px; left: 14px; }
    .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 74px 86px; }
    .hero__orb { display: none; }
    .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .site-footer { grid-template-columns: repeat(3, 1fr); }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .site-header, .site-footer, .hero, .page-header, .section, .download-band, .notice, .article { width: min(100% - 28px, 1180px); }
    .site-header { min-height: 66px; gap: 12px; }
    .menu-button { min-height: 42px; }
    .hero { padding-block: 44px 58px; }
    .hero h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); line-height: 1.02; }
    .hero__lead { margin-top: 19px; }
    .hero__actions { margin-top: 25px; }
    .hero__actions .button { width: 100%; min-height: 50px; }
    .hero__signals { gap: 12px; }
    .section { padding-block: 46px; }
    .section__heading { align-items: flex-start; flex-direction: column; }
    .card-grid, .category-grid, .feature-grid { grid-template-columns: 1fr; }
    .kd-content-modal { align-items: end; padding: 0; }
    .kd-content-modal__panel {
        width: 100%;
        max-height: 90vh;
        border-width: 1px 0 0;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }
    .kd-content-modal.is-open .kd-content-modal__panel { transform: translateY(0); }
    .kd-content-modal__media { min-height: 210px; }
    .kd-content-modal__content { padding: 28px 22px 36px; }
    .category-card { min-height: 118px; padding: 20px; }
    .download-band { align-items: stretch; flex-direction: column; }
    .download-band .button { width: 100%; }
    .page-header { padding-block: 54px 24px; }
    .page-header h1, .article__header h1 { font-size: clamp(2.2rem, 12vw, 3.35rem); overflow-wrap: anywhere; }
    .breadcrumb { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
    .breadcrumb > * { flex: 0 0 auto; }
    .article { padding-top: 36px; }
    .article__body { font-size: 1.04rem; line-height: 1.78; overflow-wrap: anywhere; }
    .article-hero { width: calc(100vw - 28px); }
    .site-footer { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
    .site-header, .site-footer, .hero, .page-header, .section, .download-band, .notice, .article { width: calc(100% - 24px); }
    .brand { font-size: 1.12rem; }
    .content-card__body { padding: 20px 20px 24px; }
    .content-card__meta { align-items: flex-start; flex-direction: column; gap: 2px; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer > div, .site-footer__brand { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
