@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #101a21;
  --ink-soft: #17262d;
  --paper: #f1f0e9;
  --muted: #aebbb9;
  --gold: #f3b84b;
  --mint: #9ce1c0;
  --line: rgba(241, 240, 233, .17);
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.skip-link { position: absolute; z-index: 10; top: .5rem; right: .5rem; transform: translateY(-160%); padding: .7rem 1rem; background: var(--gold); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.site-header { width: min(100% - 9vw, 1340px); margin: auto; height: 92px; 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; }
.brand__mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--mint); }
.brand__mark svg { width: 100%; height: 100%; image-rendering: pixelated; }
.brand__name { font: 600 .84rem var(--mono); letter-spacing: .07em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.3rem, 4vw, 3.8rem); margin-inline-start: auto; margin-inline-end: clamp(1rem, 4vw, 4rem); }
.site-nav a, .back-to-top { color: var(--muted); font-size: .87rem; text-decoration: none; transition: color .18s ease; }
.site-nav a:hover, .back-to-top:hover { color: var(--gold); }
.header-download { display: inline-flex; gap: .75rem; align-items: center; padding: .68rem .95rem; color: var(--ink); background: var(--gold); font-weight: 700; font-size: .85rem; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.header-download:hover, .download-button:hover { background: #ffd27c; transform: translateY(-2px); }

.hero { width: min(100% - 9vw, 1340px); min-height: 635px; margin: 0 auto; padding: 72px 0 76px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(400px, .98fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); position: relative; }
.hero__copy { grid-column: 1; grid-row: 1; position: relative; z-index: 1; padding: 10px 0 28px; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--mint); font-size: .82rem; font-weight: 600; margin: 0 0 1.1rem; }
.eyebrow__dot { width: 7px; height: 7px; flex: 0 0 auto; background: var(--gold); box-shadow: 0 0 15px rgba(243, 184, 75, .62); transform: rotate(45deg); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 650px; margin-bottom: 1.2rem; font-size: clamp(3rem, 5vw, 5.2rem); line-height: 1.22; letter-spacing: -.06em; font-weight: 700; }
.hero h1 span { color: var(--gold); }
.hero__description { max-width: 465px; margin-bottom: 1.8rem; color: #c5ceca; font-size: 1.04rem; line-height: 1.95; }
.download-card { max-width: 540px; padding: .85rem; border: 1px solid rgba(241,240,233,.2); background: rgba(255,255,255,.035); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.download-card__file { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.file-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; color: var(--mint); background: rgba(156,225,192,.09); }
.file-icon svg { width: 24px; height: 24px; }
.file-details { min-width: 0; display: grid; gap: .27rem; }
.file-details strong { font: 500 .79rem var(--mono); direction: ltr; text-align: right; overflow-wrap: anywhere; }
.file-details small { color: var(--muted); font-size: .72rem; }
.download-button { min-height: 52px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 1.1rem; padding: .75rem 1.05rem; border: 0; color: var(--ink); background: var(--gold); font-family: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.download-button svg { width: 21px; height: 21px; }
.download-note { margin: .85rem .15rem 0; color: var(--muted); font-size: .76rem; }
.download-note span { color: var(--gold); font-size: .68rem; margin-inline-end: .4rem; }
.hero__art { grid-column: 2; grid-row: 1; position: relative; min-height: 445px; margin-inline-start: -5vw; background: #1a3237; overflow: hidden; border: 1px solid rgba(241,240,233,.14); box-shadow: 22px 22px 0 -12px rgba(156,225,192,.22); }
.hero__art::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10,20,25,.78) 0%, transparent 42%), linear-gradient(90deg, rgba(16,26,33,.2), transparent 70%); }
.hero__art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; image-rendering: pixelated; }
.art-glow { position: absolute; z-index: 1; inset-inline-start: 12%; top: 15%; width: 90px; height: 90px; background: rgba(243,184,75,.4); filter: blur(45px); }
.pixel-star { width: 6px; height: 6px; position: absolute; z-index: 2; background: #f7da94; box-shadow: 0 0 14px #f7da94; }
.pixel-star--one { top: 22%; inset-inline-start: 24%; }
.pixel-star--two { top: 40%; inset-inline-start: 68%; width: 4px; height: 4px; }
.art-caption { position: absolute; z-index: 2; inset-inline-start: 1.4rem; bottom: 1.25rem; color: rgba(241,240,233,.85); font: 500 .7rem var(--mono); letter-spacing: .14em; }
.hero__index { position: absolute; bottom: 27px; inset-inline-end: 0; display: flex; align-items: center; gap: .75rem; color: var(--muted); font: .65rem var(--mono); letter-spacing: .1em; }
.hero__index span:first-child { color: var(--gold); }
.hero__index i { display: block; width: 45px; height: 1px; background: var(--line); }

.install-section { background: var(--paper); color: var(--ink); padding: clamp(4.5rem, 9vw, 8rem) max(4.5vw, calc((100% - 1340px) / 2)); display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(3rem, 10vw, 10rem); align-items: start; }
.install-section .eyebrow { color: #427c68; }
.install-section .eyebrow__dot { background: #d49328; }
.section-intro h2 { margin-bottom: 1rem; font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1.35; letter-spacing: -.05em; }
.section-intro > p:last-child { max-width: 290px; color: #68736e; font-size: .95rem; line-height: 1.9; }
.install-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(16,26,33,.2); }
.step { min-height: 125px; display: grid; grid-template-columns: 3.2rem 1fr 2rem; align-items: center; gap: 1.15rem; border-bottom: 1px solid rgba(16,26,33,.2); }
.step__number { align-self: start; padding-top: 1.65rem; color: #738079; font: .73rem var(--mono); }
.step h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.step p { max-width: 520px; margin-bottom: 0; color: #68736e; font-size: .88rem; line-height: 1.8; }
.step__symbol { justify-self: end; color: #38735f; font-size: 1.15rem; }

.closing-cta { min-height: 224px; padding: 3rem max(4.5vw, calc((100% - 1340px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--mint); color: var(--ink); }
.closing-cta .eyebrow { color: #325e50; margin-bottom: .45rem; }
.closing-cta .eyebrow__dot { background: #bb7917; box-shadow: none; }
.closing-cta h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.download-button--light { background: var(--ink); color: var(--paper); }
.download-button--light:hover { background: #233942; }
.site-footer { min-height: 103px; width: min(100% - 9vw, 1340px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand--footer .brand__mark { color: var(--mint); }
.site-footer p { margin: 0; color: var(--muted); font-size: .77rem; }
.noscript { margin: 0; padding: 1rem; text-align: center; background: var(--gold); color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (min-width: 1500px) { .hero__art { margin-inline-start: -68px; } }
@media (max-width: 900px) {
  .site-header { width: min(100% - 2.5rem, 680px); height: 78px; }
  .site-nav { gap: 1rem; margin-inline-end: 0; }
  .site-nav a { font-size: .77rem; }
  .hero { width: min(100% - 2.5rem, 680px); min-height: auto; padding: 3.8rem 0 4.7rem; grid-template-columns: minmax(0, 1fr) minmax(260px, .84fr); gap: 1.8rem; }
  .hero h1 { font-size: clamp(2.8rem, 6vw, 4rem); }
  .hero__art { min-height: 390px; margin-inline-start: -1.25rem; }
  .install-section { padding: 4.5rem max(1.25rem, calc((100% - 680px) / 2)); gap: 3rem; }
  .closing-cta { padding: 2.8rem max(1.25rem, calc((100% - 680px) / 2)); }
  .site-footer { width: min(100% - 2.5rem, 680px); }
}
@media (max-width: 640px) {
  .site-header { width: calc(100% - 2rem); height: 72px; gap: .6rem; }
  .brand { gap: .45rem; }
  .brand__mark { width: 29px; height: 29px; }
  .brand__name { font-size: .7rem; }
  .site-nav { display: none; }
  .header-download { margin-inline-start: auto; padding: .6rem .75rem; font-size: .77rem; }
  .hero { width: calc(100% - 2rem); padding: 2.6rem 0 3.7rem; display: flex; flex-direction: column; align-items: stretch; gap: 2rem; }
  .hero__copy { order: 1; padding: 0; }
  .hero__art { order: 2; min-height: clamp(235px, 69vw, 350px); margin: 0 .4rem 0 0; box-shadow: 13px 13px 0 -8px rgba(156,225,192,.22); }
  .hero__index { bottom: 17px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.05rem); }
  .hero__description { font-size: .95rem; }
  .download-card { align-items: stretch; flex-direction: column; padding: .8rem; gap: .8rem; }
  .download-card__file { min-height: 42px; }
  .download-button { width: 100%; }
  .hero__index { display: none; }
  .install-section { padding: 3.9rem 1.25rem 4rem; display: block; }
  .section-intro { margin-bottom: 2.2rem; }
  .section-intro h2 { font-size: 2.65rem; }
  .step { grid-template-columns: 2.4rem 1fr 1.4rem; gap: .65rem; min-height: 126px; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: .8rem; }
  .closing-cta { min-height: 0; padding: 2.7rem 1.25rem; align-items: stretch; flex-direction: column; gap: 1.4rem; }
  .closing-cta h2 { font-size: 2rem; }
  .site-footer { width: calc(100% - 2rem); min-height: 145px; flex-wrap: wrap; justify-content: space-between; gap: .7rem; padding: 1.2rem 0; }
  .site-footer p { order: 3; flex-basis: 100%; }
  .back-to-top { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
