@font-face { font-family: Cairo; font-weight: 600; font-display: swap; src: url(fonts/cairo-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Cairo; font-weight: 700; font-display: swap; src: url(fonts/cairo-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Cairo; font-weight: 800; font-display: swap; src: url(fonts/cairo-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(fonts/poppins-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Nastaliq Urdu'; font-weight: 400; font-display: swap; src: url(fonts/noto-nastaliq-urdu-arabic-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans Gujarati'; font-weight: 400; font-display: swap; src: url(fonts/noto-sans-gujarati-gujarati-400-normal.woff2) format('woff2'); }

:root {
  --night: #0C1A12; --night-2: #12241A; --green: #1D602E; --gold: #CBAA4B; --gold-soft: #D9C07A;
  --ivory: #F6F2EA; --ink: #121815; --text: #47504A; --mute: #7D857F; --hair: rgba(18,24,21,.14); --hair-light: rgba(246,242,234,.16);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; font-family: Poppins, system-ui, sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: Cairo, Poppins, sans-serif; margin: 0; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.small { font-size: 13.5px; }

/* ---------- Night opening ---------- */
.night { background: var(--night); color: rgba(246,242,234,.72); }
.night h1, .night h2, .night h3 { color: var(--ivory); }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 34px 0; }
.bar img { height: 58px; width: auto; }
.bar nav { display: flex; gap: 36px; font-size: 14px; }
.bar nav a { text-decoration: none; color: rgba(246,242,234,.7); transition: color .2s; }
.bar nav a:hover { color: var(--ivory); }
.bar nav a.req { color: var(--gold-soft); }

.opening { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: end; padding: 92px 0 64px; }
.opening h1 { font-size: clamp(46px, 6.4vw, 92px); font-weight: 700; line-height: .98; }
.opening h1 span { color: var(--gold); }
.opening p { font-size: 16.5px; line-height: 1.75; }
.opening .acts { display: flex; align-items: center; gap: 28px; margin-top: 30px; }
.btn { display: inline-block; text-decoration: none; font-weight: 500; font-size: 14.5px; letter-spacing: .01em; padding: 15px 26px; border-radius: 2px; transition: background .2s, color .2s; }
.btn.gold { background: var(--gold); color: var(--night); }
.btn.gold:hover { background: var(--gold-soft); }
.btn.dark { background: var(--ink); color: var(--ivory); }
.btn.dark:hover { background: var(--green); }
.textlink { font-size: 14.5px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.night .textlink { color: var(--ivory); }

.plate { margin: 0; padding-bottom: 96px; }
.plate img { width: 100%; }
.plate figcaption { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--hair-light); margin-top: 18px; padding-top: 16px; font-size: 13px; color: rgba(246,242,234,.55); }

.ver { margin-top: 18px; font-size: 13px; letter-spacing: .02em; color: var(--gold-soft); }
.ver:empty { display: none; }
.dl-head .ver { margin-top: 14px; }

/* ---------- Spoken / translated ---------- */
.spoken { background: var(--ivory); padding: 128px 0; }
.spoken .wrap { max-width: 1000px; }
.spoken .ur { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; text-align: right; font-size: clamp(26px, 3.4vw, 44px); line-height: 2.15; color: var(--ink); }
.spoken .rule { width: 72px; height: 1px; background: var(--gold); margin: 40px 0 36px; }
.spoken .en { font-weight: 300; font-size: clamp(26px, 3.3vw, 42px); line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; }
.spoken .src { margin-top: 36px; font-size: 13.5px; color: var(--mute); }

/* ---------- Feature ---------- */
.feature { padding: 136px 0 120px; }
.feature .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
.feature figure { margin: 0; }
.feature figcaption { font-size: 13px; color: var(--mute); margin-top: 14px; }
.feature h2 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; }
.feature .lede { font-size: 17px; margin-top: 22px; color: var(--text); }
.points { margin-top: 44px; border-top: 1px solid var(--hair); }
.points > div { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.points h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.005em; }
.points p { font-size: 15px; }

/* ---------- Languages ---------- */
.tongues { padding: 112px 0; }
.tongues h2 { font-size: clamp(28px, 2.8vw, 38px); font-weight: 700; max-width: 520px; }
.tongues .row { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 64px; border-top: 1px solid var(--hair-light); }
.tongues .row > div { padding: 34px 24px 6px 0; }
.tongues .row > div + div { padding-left: 24px; border-left: 1px solid var(--hair-light); }
.tongues .w { font-size: 34px; color: var(--ivory); line-height: 1.6; min-height: 80px; display: flex; align-items: center; }
.tongues .w.nq { font-family: 'Noto Nastaliq Urdu', serif; font-size: 34px; }
.tongues .w.gu { font-family: 'Noto Sans Gujarati', sans-serif; font-size: 32px; }
.tongues .w.la { font-family: Cairo, sans-serif; font-weight: 600; font-size: 30px; }
.tongues .n { font-size: 14px; color: rgba(246,242,234,.55); margin-top: 6px; }
.tongues .n b { color: var(--gold-soft); font-weight: 500; }

/* ---------- Steps ---------- */
.steps { background: var(--ivory); padding: 120px 0; }
.steps h2 { font-size: clamp(28px, 2.8vw, 38px); font-weight: 700; }
.steps .grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--hair); }
.steps .grid > div { padding: 30px 28px 0 0; }
.steps .grid > div + div { padding-left: 28px; border-left: 1px solid var(--hair); }
.steps .k { font-family: Cairo, sans-serif; font-weight: 600; font-size: 44px; line-height: 1; color: var(--gold); }
.steps h3 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
.steps p { font-size: 15px; }

/* ---------- Request access ---------- */
.access { position: relative; overflow: hidden; background: var(--green); color: rgba(246,242,234,.8); padding: 128px 0; }
.access::after { content: ''; position: absolute; right: 7%; top: 50%; width: 220px; height: 420px; transform: translateY(-50%); background: url(stars-gold.png) no-repeat center / contain; opacity: .3; pointer-events: none; }
.access .wrap { position: relative; z-index: 1; }
.access h2 { color: var(--ivory); font-size: clamp(36px, 4.2vw, 58px); font-weight: 700; max-width: 640px; }
.access p { font-size: 17px; max-width: 560px; margin-top: 22px; }
.access .mail { display: inline-block; margin-top: 44px; font-family: Cairo, sans-serif; font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.access .mail:hover { color: var(--gold-soft); }
.access .alt { margin-top: 28px; font-size: 14px; }
.access .alt a { color: var(--gold-soft); }

/* ---------- Footer ---------- */
.foot { padding: 44px 0 52px; font-size: 13px; color: rgba(246,242,234,.5); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot img { height: 40px; width: auto; opacity: .9; }
.foot a { color: rgba(246,242,234,.7); text-decoration: none; }
.foot a:hover { color: var(--ivory); }

/* ---------- Download page ---------- */
.dl-head { padding: 84px 0 80px; }
.dl-head h1 { font-size: clamp(42px, 5.2vw, 72px); font-weight: 700; line-height: 1; }
.dl-head p { font-size: 16.5px; max-width: 600px; margin-top: 24px; }
.dl { padding: 0 0 112px; }
.dl .grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); }
.dl .os { padding: 56px 56px 8px 0; }
.dl .os + .os { padding: 56px 0 8px 56px; border-left: 1px solid var(--hair); }
.dl h2 { font-size: 36px; font-weight: 700; }
.dl .meta { font-size: 14px; color: var(--mute); margin: 6px 0 30px; }
.dl ol { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: s; }
.dl li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; padding: 14px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.dl li::before { content: counter(s); font-family: Cairo, sans-serif; font-weight: 600; font-size: 18px; color: var(--gold); line-height: 1.5; }
.dl b { color: var(--ink); font-weight: 600; }
.dl .notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--hair); }
.dl .notes h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.dl .notes p { font-size: 15px; }
.dl .notes a { color: var(--green); }

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .bar nav a:not(.req) { display: none; }
  .opening, .feature .wrap, .dl .grid, .dl .notes { grid-template-columns: 1fr; }
  .opening { gap: 28px; padding: 48px 0 40px; }
  .plate { padding-bottom: 56px; }
  .plate figcaption { flex-direction: column; gap: 4px; }
  .spoken, .access { padding: 80px 0; }
  .feature { padding: 80px 0; }
  .feature .wrap { gap: 40px; }
  .tongues .row { grid-template-columns: 1fr 1fr; }
  .tongues .row > div, .tongues .row > div + div { padding: 24px 0 8px; border-left: 0; border-bottom: 1px solid var(--hair-light); }
  .steps .grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .steps .grid > div, .steps .grid > div + div { padding: 28px 16px 24px 0; border-left: 0; }
  .access::after { opacity: .12; right: -40px; }
  .dl .os, .dl .os + .os { padding: 40px 0 8px; border-left: 0; }
  .dl .os + .os { border-top: 1px solid var(--hair); }
}
