:root {
  color-scheme: dark;
  --canvas: #111518;
  --panel: #1a2024;
  --line: #343e43;
  --lime: #d8ff56;
  --ink: #f4f2e9;
  --muted: #adb7bd;
  font: 16px/1.6 "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header, .header-links, .brand, .actions, .release, .section-heading {
  display: flex; align-items: center; gap: 16px;
}
.site-header { min-height: 76px; justify-content: space-between; }
.brand { text-decoration: none; font-weight: 800; font-size: .8rem; letter-spacing: .09em; }
.brand img { border-radius: 9px; }
.header-links { gap: 19px; font-size: .875rem; }
.header-links a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.language { border: 1px solid var(--line); border-radius: 7px; padding: 5px 11px; text-decoration: none; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  padding-block: clamp(40px, 8vw, 112px);
  border-block: 1px solid var(--line);
}
.eyebrow, .label { color: var(--lime); font-size: .76rem; font-weight: 700; }
.eyebrow { letter-spacing: .13em; }
[lang="ar"] .eyebrow { letter-spacing: normal; }
h1, h2, h3, p { margin: 0; }
h1 {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.45rem);
  line-height: .98;
  font-weight: 850;
  margin-block: 17px 23px;
  letter-spacing: -.06em;
  text-align: start;
}
[lang="ar"] h1 { text-align: right; }
[lang="ar"] .release { justify-content: flex-end; }
h1 span { display: block; color: var(--lime); }
.tagline { font-size: clamp(1.17rem, 2.1vw, 1.62rem); line-height: 1.4; font-weight: 700; }
.intro { color: var(--muted); margin-block: 12px 24px; max-width: 45ch; }
.actions { margin-block: 22px 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px;
  min-height: 49px; border-radius: 9px; text-decoration: none; border: 1px solid var(--line);
  font-size: .93rem; font-weight: 700;
}
.button:hover { border-color: var(--lime); }
.primary { background: var(--lime); border-color: var(--lime); color: #141a0b; }
.primary:hover { background: #e7ff9b; }
.release { color: var(--muted); font-size: .78rem; gap: .48rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  min-height: 445px;
  display: grid;
  place-content: center;
  background-color: #161d1b;
  background-image: linear-gradient(#cedbb912 1px, transparent 1px), linear-gradient(90deg, #cedbb912 1px, transparent 1px),
    radial-gradient(ellipse at 20% 25%, #c4ff4328, transparent 66%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  border: 1px solid #3c4932;
  border-radius: 18px;
  padding: 28px;
  overflow: hidden;
}
.visual-caption { position: absolute; inset-inline: 20px; inset-block-end: 13px; color: #d6dfce; font-size: .72rem; }
.preview-window {
  width: min(100%, 402px); min-width: 0; box-shadow: 0 20px 62px #080b09ad;
  background: #111719; border: 1px solid #52604a; border-radius: 13px; overflow: hidden;
}
.preview-header { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px;
  background: #1f2925; color: #f2f4e9; font-size: .68rem; font-weight: 750; gap: 12px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #a1ac97; }
.window-dots i:last-child { background: var(--lime); }
.preview-content { padding: 15px; display: grid; grid-template-columns: minmax(106px, .9fr) minmax(110px, 1fr); align-items: center; gap: 12px; }
.preview-nav { display: grid; gap: 7px; }
.preview-nav span { display: block; min-width: 0; font-size: .68rem; padding: 7px; border-radius: 6px; background: #222a2a; color: #dde2dc; }
.preview-nav span:first-child { background: #303d24; color: var(--lime); }
.preview-paper { width: min(123px, 100%); aspect-ratio: 1 / 1.35; margin-inline: auto; padding: 11px 10px; border-radius: 3px; background: #f4f6ef; color: #172015; }
.preview-paper strong { display: block; font-size: .68rem; }
.preview-paper small { display: block; font-size: .62rem; color: #4f6b26; margin-block: 4px 8px; }
.preview-lines { height: 62px; border: 1px solid #aebba3; background: repeating-linear-gradient(transparent 0 11px,#c6d1bf 11px 12px); }
.section { padding-block: 62px; border-bottom: 1px solid var(--line); }
.section-heading { align-items: baseline; justify-content: space-between; margin-block-end: 20px; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.7rem); line-height: 1.2; letter-spacing: -.032em; }
[lang="ar"] h2 { letter-spacing: normal; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 0; padding: 21px; }
.card h3 { font-size: 1.08rem; margin-block: 5px 7px; }
.card p, .faq p { color: var(--muted); font-size: .92rem; }
.steps { counter-reset: steps; }
.steps li { counter-increment: steps; }
.steps .label::after { content: counter(steps, decimal-leading-zero); }
.tasks { margin-block-start: 15px; }
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 9px; padding: 13px 17px; background: var(--panel); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin-block-start: 10px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 23px 30px; color: var(--muted); font-size: .84rem; }
.footer a { text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 830px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { min-height: 330px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .wrap { width: calc(100% - 28px); }
  .site-header { min-height: 65px; gap: 9px; }
  .header-links { gap: 10px; }
  .header-links .home { display: none; }
  .hero-visual { min-height: 300px; padding: 15px; }
  .section { padding-block: 36px; }
  .preview-content { padding: 11px; }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
