:root {
  --paper: #f4f0e6;
  --paper-2: #e9e3d6;
  --ink: #12231d;
  --ink-soft: #4d5e56;
  --forest: #153e32;
  --forest-2: #0d2d24;
  --mint: #84d7ab;
  --line: rgba(18, 35, 29, 0.16);
  --orange: #ec7c47;
  --font-geist-mono: "Courier New";
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Naskh Arabic", "Nirmala UI", "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--mint); color: var(--forest-2); }

.site-header {
  direction: rtl;
  height: 88px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.brand-seal {
  width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; font-weight: 700; letter-spacing: -4px;
  padding-left: 4px; background: var(--ink); color: var(--paper);
}
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-size: 20px; }
.brand small { font-size: 11px; color: var(--ink-soft); letter-spacing: .16em; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { font-size: 15px; color: var(--ink-soft); position: relative; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; width: 0; height: 2px; background: var(--ink); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { width: 100%; }
.header-status { min-width: 200px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 12px; letter-spacing: .06em; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb97d; box-shadow: 0 0 0 6px rgba(47,185,125,.12); }

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
  padding: clamp(70px, 9vw, 130px) clamp(24px, 7vw, 112px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .38;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px; mask-image: linear-gradient(to left, black, transparent 62%);
}
.hero-glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: rgba(132,215,171,.22); filter: blur(80px); left: -160px; top: 14%; }
.hero-copy, .hero-demo { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 12px; direction: ltr; color: var(--ink-soft); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: .12em; }
.eyebrow span:first-child { border: 1px solid var(--line); border-radius: 50%; width: 31px; height: 31px; display: grid; place-items: center; }
.eyebrow i { width: 36px; height: 1px; background: var(--ink-soft); }
.hero h1 { margin: 30px 0 22px; font-size: clamp(52px, 6.7vw, 104px); line-height: .98; letter-spacing: -.055em; max-width: 820px; }
.hero h1 em { display: block; font-style: normal; color: #278066; }
.hero-lead { color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 21px); line-height: 2; max-width: 660px; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.primary-button { background: var(--ink); color: var(--paper); padding: 14px 21px 13px; border: 1px solid var(--ink); display: inline-flex; gap: 26px; align-items: center; transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-2px); background: #285b49; }
.primary-button span { font-family: sans-serif; }
.text-link { color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.text-link:hover { color: var(--ink); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 52px 0 0; padding-top: 22px; max-width: 620px; }
.hero-facts div { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding: 0 18px; }
.hero-facts div:first-child { padding-right: 0; }
.hero-facts div:last-child { border-left: none; }
.hero-facts dt { color: var(--ink-soft); font-size: 11px; }
.hero-facts dd { margin: 3px 0 0; font-family: var(--font-geist-mono), monospace; font-size: 13px; direction: ltr; text-align: right; }

.hero-demo { direction: ltr; }
.monitor-frame { border: 1px solid rgba(244,240,230,.14); background: #0b211b; box-shadow: 0 30px 80px rgba(19,46,36,.24); padding: 10px; transform: perspective(1200px) rotateY(2.5deg) rotateX(.5deg); }
.monitor-top { height: 40px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; color: rgba(244,240,230,.46); font: 9px/1 var(--font-geist-mono), monospace; letter-spacing: .08em; }
.monitor-title { display: flex; align-items: center; gap: 7px; }
.monitor-title i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.monitor-screen { height: 400px; background: #06140f; border: 1px solid rgba(132,215,171,.1); padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.monitor-screen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 4px); pointer-events: none; }
.boot-lines { display: flex; flex-direction: column; gap: 8px; color: rgba(151,211,181,.47); font: 9px/1.3 var(--font-geist-mono), monospace; direction: rtl; text-align: right; }
.boot-lines b { color: var(--mint); font-weight: 500; }
.console-word { margin: auto 0; direction: rtl; color: #dff7e9; display: flex; align-items: flex-end; justify-content: center; min-height: 105px; animation: reveal .4s ease both; }
.console-word span { font-size: clamp(38px, 4.3vw, 70px); line-height: 1.4; text-shadow: 0 0 28px rgba(132,215,171,.22); white-space: nowrap; }
.qalam { width: 28px; height: 3px; background: var(--mint); margin: 0 5px 22px 0; animation: blink 1s step-end infinite; box-shadow: 0 0 10px rgba(132,215,171,.7); }
.screen-rule { height: 1px; background: rgba(132,215,171,.14); }
.screen-caption { color: rgba(151,211,181,.36); font: 9px var(--font-geist-mono), monospace; text-align: right; direction: rtl; margin-top: 12px; }
.sample-switcher { margin-top: 12px; display: flex; gap: 7px; justify-content: flex-start; }
.sample-switcher button { cursor: pointer; border: 1px solid var(--line); background: transparent; padding: 7px 12px; font-size: 11px; border-radius: 999px; transition: all .2s; }
.sample-switcher button:hover, .sample-switcher button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo-note { margin-top: 14px; color: var(--ink-soft); font-size: 11px; direction: rtl; display: flex; gap: 8px; align-items: center; }
.demo-note span { color: #34aa76; font-size: 8px; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }

.vision-band { background: #e4ded0; padding: clamp(80px, 9vw, 140px) clamp(24px, 7vw, 112px); border-top: 1px solid var(--line); }
.section-kicker { display: flex; align-items: center; gap: 11px; color: var(--ink-soft); font-size: 12px; letter-spacing: .08em; }
.section-kicker span { display: grid; place-items: center; border: 1px solid var(--line); width: 29px; height: 29px; border-radius: 50%; }
.section-kicker i { width: 30px; height: 1px; background: currentColor; }
.vision-statement { display: grid; grid-template-columns: 1fr 2.3fr; gap: 60px; align-items: start; margin-top: 54px; }
.vision-statement p { margin: 9px 0; color: var(--ink-soft); font-size: 13px; }
.vision-statement h2 { font-size: clamp(36px, 4.5vw, 69px); line-height: 1.25; letter-spacing: -.035em; margin: 0; max-width: 1000px; }
.principle-grid { margin-top: 80px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.principle-grid article { padding: 33px clamp(20px, 3vw, 50px); border-left: 1px solid var(--line); }
.principle-grid article:first-child { padding-right: 0; }
.principle-grid article:last-child { border-left: 0; }
.principle-grid article > span { font: 10px var(--font-geist-mono), monospace; color: #2d8167; }
.principle-grid h3 { font-size: 23px; margin: 17px 0 10px; }
.principle-grid p { color: var(--ink-soft); font-size: 14px; line-height: 1.85; margin: 0; }

.architecture-section { background: var(--forest-2); color: var(--paper); padding: clamp(80px, 9vw, 140px) clamp(24px, 7vw, 112px); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 70px; }
.section-heading > div { flex: 1; }
.section-heading h2 { font-size: clamp(38px, 4.4vw, 68px); margin: 28px 0 0; line-height: 1.2; letter-spacing: -.035em; }
.section-heading > p { color: rgba(244,240,230,.58); max-width: 470px; font-size: 15px; line-height: 1.9; margin: 0 0 7px; }
.section-kicker.light { color: rgba(244,240,230,.55); }
.section-kicker.light span { border-color: rgba(244,240,230,.2); }
.architecture-explorer { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; margin-top: 70px; direction: ltr; }
.layer-stack { display: flex; flex-direction: column; gap: 8px; }
.layer { direction: rtl; width: 100%; border: 1px solid rgba(244,240,230,.13); background: rgba(244,240,230,.025); min-height: 83px; padding: 14px 22px; display: grid; grid-template-columns: 50px 1fr 30px; align-items: center; gap: 18px; text-align: right; cursor: pointer; transition: background .2s, transform .2s, border-color .2s; }
.layer:hover { background: rgba(244,240,230,.055); transform: translateX(3px); }
.layer.active { background: color-mix(in srgb, var(--layer-color) 22%, transparent); border-color: var(--layer-color); }
.layer-number { font: 12px var(--font-geist-mono), monospace; color: var(--layer-color); direction: ltr; }
.layer-name { display: flex; flex-direction: column; }
.layer-name strong { font-size: 21px; }
.layer-name small { font: 8px var(--font-geist-mono), monospace; letter-spacing: .15em; color: rgba(244,240,230,.42); direction: ltr; text-align: right; text-transform: uppercase; }
.layer-arrow { color: var(--layer-color); font-family: sans-serif; }
.layer-detail { direction: rtl; border: 1px solid var(--layer-color); padding: clamp(26px, 3vw, 46px); background: color-mix(in srgb, var(--layer-color) 8%, transparent); display: flex; flex-direction: column; min-height: 447px; position: relative; overflow: hidden; }
.layer-detail::after { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid var(--layer-color); border-radius: 50%; opacity: .08; left: -60px; bottom: -60px; }
.detail-topline { display: flex; direction: ltr; align-items: center; gap: 10px; color: var(--layer-color); font: 10px var(--font-geist-mono), monospace; }
.detail-topline i { flex: 1; height: 1px; background: currentColor; opacity: .45; }
.detail-english { font: 9px var(--font-geist-mono), monospace; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,240,230,.45); direction: ltr; text-align: right; margin: 40px 0 3px; }
.layer-detail h3 { font-size: clamp(34px, 3.3vw, 52px); margin: 0 0 15px; }
.detail-summary { color: rgba(244,240,230,.65); line-height: 1.8; font-size: 15px; margin: 0; }
.layer-detail ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.layer-detail li { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.layer-detail li span { color: var(--layer-color); }
.detail-caption { margin-top: auto; padding-top: 32px; color: var(--layer-color); font-size: 10px; }

.pipeline-panel { margin-top: 82px; border-top: 1px solid rgba(244,240,230,.14); padding-top: 60px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 75px; direction: ltr; }
.pipeline-copy { direction: rtl; }
.mini-label { color: var(--mint); font: 9px var(--font-geist-mono), monospace; letter-spacing: .16em; }
.pipeline-copy h3 { font-size: clamp(27px, 2.8vw, 43px); line-height: 1.35; margin: 18px 0 14px; }
.pipeline-copy p { color: rgba(244,240,230,.55); font-size: 14px; line-height: 1.9; }
.pipeline-meter { height: 3px; background: rgba(244,240,230,.12); margin-top: 28px; direction: ltr; }
.pipeline-meter span { display: block; height: 100%; background: var(--mint); transition: width .35s ease; }
.pipeline-steps { display: grid; grid-template-columns: repeat(5, 1fr); direction: ltr; position: relative; align-items: start; }
.pipeline-steps::before { content: ""; position: absolute; top: 17px; right: 8%; left: 8%; height: 1px; background: rgba(244,240,230,.18); }
.pipeline-steps button { background: transparent; border: 0; padding: 0 7px; display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; z-index: 1; direction: rtl; text-align: center; }
.pipeline-steps button > span { width: 35px; height: 35px; border: 1px solid rgba(244,240,230,.25); border-radius: 50%; display: grid; place-items: center; background: var(--forest-2); color: rgba(244,240,230,.5); transition: .2s; }
.pipeline-steps button.done > span, .pipeline-steps button.active > span { background: var(--mint); border-color: var(--mint); color: var(--forest-2); }
.pipeline-steps button.active > span { box-shadow: 0 0 0 7px rgba(132,215,171,.1); }
.pipeline-steps strong { font-size: 14px; margin-top: 15px; }
.pipeline-steps small { color: rgba(244,240,230,.43); font-size: 10px; line-height: 1.5; margin-top: 4px; max-width: 105px; }

.features-section { padding: clamp(80px, 9vw, 140px) clamp(24px, 7vw, 112px); background: var(--paper); }
.section-heading.dark-text > p { color: var(--ink-soft); }
.filter-row { margin-top: 55px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.filter-row button { border: 1px solid var(--line); background: transparent; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: .2s; font-size: 13px; }
.filter-row button:hover, .filter-row button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-row > span { margin-right: auto; color: var(--ink-soft); font-size: 11px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.feature-card { background: var(--paper); padding: clamp(25px, 2.5vw, 38px); min-height: 310px; display: flex; flex-direction: column; transition: background .25s, transform .25s; }
.feature-card:hover { background: #ece6d9; transform: translateY(-3px); }
.feature-mark { width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 20px; margin-bottom: 28px; }
.feature-badge { align-self: flex-start; color: #277d63; font-size: 9px; border-bottom: 1px solid #87cbb0; padding-bottom: 3px; }
.feature-card h3 { font-size: 21px; margin: 19px 0 11px; }
.feature-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.8; margin: 0; }
.roadmap-strip { background: var(--ink); color: var(--paper); margin-top: 70px; padding: 26px 35px; display: grid; grid-template-columns: 1fr 50px 1fr 50px 1fr; align-items: center; gap: 20px; }
.roadmap-strip > div { display: flex; align-items: center; gap: 15px; }
.roadmap-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(244,240,230,.25); display: grid; place-items: center; color: var(--mint); font-family: sans-serif; }
.roadmap-strip p { display: flex; flex-direction: column; margin: 0; }
.roadmap-strip small { color: rgba(244,240,230,.45); font-size: 9px; }
.roadmap-strip strong { font-size: 13px; margin-top: 3px; }
.roadmap-strip > i { height: 1px; background: rgba(244,240,230,.18); }

.documents-section { padding: clamp(80px, 9vw, 140px) clamp(24px, 7vw, 112px); background: #e4ded0; border-top: 1px solid var(--line); }
.document-explorer { margin-top: 64px; display: grid; grid-template-columns: .66fr 1.34fr; gap: 24px; direction: ltr; }
.document-tabs { display: flex; flex-direction: column; gap: 8px; }
.document-tab { direction: rtl; width: 100%; min-height: 105px; border: 1px solid var(--line); background: rgba(244,240,230,.35); padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr 24px; gap: 14px; align-items: center; text-align: right; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.document-tab:hover { background: rgba(244,240,230,.8); transform: translateX(3px); }
.document-tab.active { background: var(--paper); border-color: var(--doc-color); box-shadow: inset -4px 0 0 var(--doc-color); }
.document-index { direction: ltr; font: 10px var(--font-geist-mono), monospace; color: var(--doc-color); }
.document-tab > span:nth-child(2) { display: flex; flex-direction: column; }
.document-tab strong { font-size: 17px; }
.document-tab small { margin-top: 5px; direction: ltr; text-align: right; font: 8px var(--font-geist-mono), monospace; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }
.document-tab > i { font-style: normal; color: var(--doc-color); }
.document-detail { direction: rtl; display: grid; grid-template-columns: .72fr 1.28fr; min-height: 500px; border: 1px solid var(--line); background: var(--paper); }
.document-cover { padding: clamp(30px, 4vw, 58px); background: color-mix(in srgb, var(--doc-color) 88%, #071d17); color: white; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.document-cover::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.document-cover::after { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); left: -88px; bottom: -88px; }
.cover-code { direction: ltr; text-align: right; font: 9px var(--font-geist-mono), monospace; letter-spacing: .13em; opacity: .66; position: relative; z-index: 1; }
.cover-mark { width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; display: grid; place-items: center; font-size: 25px; letter-spacing: -5px; padding-left: 5px; margin-top: 55px; position: relative; z-index: 1; }
.document-cover h3 { margin: auto 0 8px; max-width: 330px; font-size: clamp(29px, 3vw, 45px); line-height: 1.28; position: relative; z-index: 1; }
.document-cover p { direction: ltr; text-align: right; font: 9px/1.5 var(--font-geist-mono), monospace; letter-spacing: .07em; opacity: .58; margin: 0; position: relative; z-index: 1; }
.cover-version { border-top: 1px solid rgba(255,255,255,.2); margin-top: 30px; padding-top: 13px; font-size: 10px; opacity: .62; position: relative; z-index: 1; }
.document-content { padding: clamp(32px, 4vw, 58px); display: flex; flex-direction: column; }
.document-meta { display: flex; gap: 9px; flex-wrap: wrap; }
.document-meta span { border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; color: var(--ink-soft); font-size: 9px; }
.document-content h3 { font-size: clamp(30px, 3.2vw, 49px); margin: 26px 0 10px; line-height: 1.25; }
.document-summary { color: var(--ink-soft); font-size: 14px; line-height: 1.9; margin: 0; }
.document-content ul { list-style: none; padding: 0; margin: 25px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.document-content li { font-size: 12px; display: flex; gap: 8px; align-items: center; }
.document-content li span { color: var(--doc-color); }
.document-content blockquote { margin: 28px 0 0; padding: 17px 20px; border-right: 3px solid var(--doc-color); background: color-mix(in srgb, var(--doc-color) 7%, transparent); color: var(--ink); font-size: 15px; line-height: 1.8; }
.document-actions { display: flex; align-items: center; gap: 24px; margin-top: auto; padding-top: 28px; }
.document-download { display: inline-flex; gap: 9px; align-items: center; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 5px; font-size: 12px; }
.document-download:hover { color: var(--ink); }

footer { background: #071d17; color: var(--paper); min-height: 220px; padding: 55px clamp(24px, 7vw, 112px); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand .brand-seal { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.footer-brand small { color: rgba(244,240,230,.45); }
footer > p { color: rgba(244,240,230,.45); font-size: 12px; }
.back-top { display: flex; gap: 13px; align-items: center; font-size: 12px; border-bottom: 1px solid rgba(244,240,230,.25); padding-bottom: 5px; }

@media (max-width: 1000px) {
  .header-status { min-width: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 85px; }
  .hero-copy { max-width: 820px; }
  .hero-demo { max-width: 720px; width: 100%; margin-right: auto; }
  .vision-statement { grid-template-columns: 1fr; gap: 10px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { border-left: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .architecture-explorer { grid-template-columns: 1fr; }
  .pipeline-panel { grid-template-columns: 1fr; gap: 45px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .document-explorer { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 72px; padding: 0 18px; }
  .brand { min-width: auto; }
  .brand-seal { width: 40px; height: 40px; }
  .brand strong { font-size: 17px; }
  .main-nav { display: none; }
  .header-status { font-size: 10px; }
  .hero { min-height: auto; padding: 66px 20px 75px; gap: 48px; }
  .hero h1 { font-size: clamp(50px, 17vw, 78px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 17px; }
  .primary-button { justify-content: space-between; }
  .hero-facts { gap: 0; }
  .hero-facts div { padding: 0 9px; }
  .hero-facts dd { font-size: 10px; }
  .monitor-screen { height: 310px; padding: 20px; }
  .console-word span { font-size: 38px; }
  .sample-switcher { flex-wrap: wrap; }
  .vision-band, .architecture-section, .features-section { padding-right: 20px; padding-left: 20px; }
  .vision-statement h2, .section-heading h2 { font-size: 38px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .layer { min-height: 75px; padding: 12px 14px; }
  .layer-detail { min-height: 390px; }
  .pipeline-steps { grid-template-columns: 1fr; gap: 7px; }
  .pipeline-steps::before { width: 1px; height: 82%; top: 9%; left: auto; right: 17px; }
  .pipeline-steps button { display: grid; grid-template-columns: 35px 78px 1fr; text-align: right; align-items: center; gap: 13px; }
  .pipeline-steps strong, .pipeline-steps small { margin: 0; text-align: right; max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 250px; }
  .filter-row { flex-wrap: wrap; }
  .filter-row > span { width: 100%; margin-top: 8px; }
  .roadmap-strip { grid-template-columns: 1fr; }
  .roadmap-strip > i { width: 1px; height: 17px; margin-right: 20px; }
  .document-tabs { display: grid; grid-template-columns: 1fr; }
  .document-tab { min-height: 85px; }
  .document-detail { grid-template-columns: 1fr; }
  .document-cover { min-height: 390px; }
  .document-content { min-height: 560px; }
  .document-content ul { grid-template-columns: 1fr; }
  .document-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .document-actions .primary-button { justify-content: space-between; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* اصطلاحاتی مشاورت — اصل لوح و قلم بصری نظام کے مطابق */
.consultation-invite { padding: clamp(75px,8vw,120px) clamp(24px,7vw,112px); background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(45px,8vw,120px); align-items: center; }
.consultation-invite h2 { font-size: clamp(38px,5vw,72px); line-height: 1.1; letter-spacing: -.035em; margin: 28px 0 18px; max-width: 780px; }
.consultation-invite p { color: var(--ink-soft); line-height: 2; max-width: 720px; }
.consultation-invite dl { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); margin: 0; }
.consultation-invite dl div { padding: 28px 18px; border-left: 1px solid var(--line); }
.consultation-invite dl div:last-child { border-left: 0; }
.consultation-invite dt { font: 700 clamp(24px,3vw,42px) var(--font-geist-mono),monospace; color: #278066; }
.consultation-invite dd { margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; }

.term-hero { padding: clamp(75px,8vw,125px) clamp(24px,7vw,112px) 62px; position: relative; overflow: hidden; }
.term-hero::after { content:""; position:absolute; width:480px; height:480px; left:-180px; top:0; border-radius:50%; background:rgba(132,215,171,.19); filter:blur(85px); pointer-events:none; }
.term-hero > * { position:relative; z-index:1; }
.term-hero h1 { font-size: clamp(52px,7.5vw,112px); letter-spacing:-.055em; line-height:.98; margin:35px 0 24px; }
.term-hero h1 em { display:block; font-style:normal; color:#278066; }
.term-hero > p { max-width:820px; color:var(--ink-soft); font-size:clamp(16px,1.35vw,21px); line-height:2; }
.term-warning { display:flex; gap:24px; align-items:start; max-width:950px; border-right:3px solid var(--orange); background:#ede5d6; padding:18px 22px; margin-top:35px; }
.term-warning b { white-space:nowrap; }
.term-warning span { color:var(--ink-soft); font-size:13px; line-height:1.8; }
.term-stats { display:grid; grid-template-columns:repeat(4,1fr); max-width:950px; border-top:1px solid var(--line); margin:48px 0 0; padding-top:22px; }
.term-stats div { padding:0 18px; border-left:1px solid var(--line); }
.term-stats div:first-child { padding-right:0; }
.term-stats div:last-child { border-left:0; }
.term-stats dt { font:700 26px var(--font-geist-mono),monospace; }
.term-stats dd { margin:5px 0 0; color:var(--ink-soft); font-size:10px; }

.catalogue { background:#e4ded0; border-top:1px solid var(--line); padding:55px clamp(24px,7vw,112px) 100px; }
.term-toolbar { position:sticky; top:88px; z-index:15; display:grid; grid-template-columns:2fr 1fr 1fr; gap:10px; padding:14px 0; background:#e4ded0; }
.term-toolbar label,.suggestion-form label { display:flex; flex-direction:column; gap:7px; }
.term-toolbar label > span,.suggestion-form label > span { color:var(--ink-soft); font-size:10px; }
.term-toolbar input,.term-toolbar select,.suggestion-form input,.suggestion-form select,.suggestion-form textarea { width:100%; border:1px solid var(--line); background:var(--paper); padding:13px 15px; color:var(--ink); font:inherit; outline:none; }
.term-toolbar input:focus,.term-toolbar select:focus,.suggestion-form input:focus,.suggestion-form select:focus,.suggestion-form textarea:focus { border-color:#278066; box-shadow:0 0 0 2px rgba(39,128,102,.1); }
.term-browser { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:22px; align-items:start; margin-top:18px; }
.term-list { display:grid; gap:8px; }
.term { display:grid; grid-template-columns:1.08fr 1fr auto; gap:15px; align-items:center; background:var(--paper); border:1px solid var(--line); padding:17px 19px; cursor:pointer; transition:.2s; }
.term:hover { border-color:#278066; transform:translateY(-1px); }
.term h3 { margin:0 0 3px; font-size:20px; }
.term small { color:var(--ink-soft); font-size:9px; }
.english { direction:ltr; text-align:left; color:var(--ink-soft); font:12px/1.6 var(--font-geist-mono),monospace; }
.tag { background:#d8eadf; color:#1f7259; border:1px solid #9bcab7; padding:4px 9px; border-radius:999px; font-size:9px; white-space:nowrap; }
.tag.reference { background:#eee7da; color:#6c6253; border-color:var(--line); }
.term-browser aside { position:sticky; top:170px; }
.term-detail { min-height:340px; background:var(--paper); border:1px solid var(--line); padding:28px; }
.term-detail h3 { font-size:34px; margin:14px 0 6px; }
.term-detail .english { font-size:13px; }
.detail-placeholder { color:var(--ink-soft); font-size:13px; }
.meta { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:20px 0; }
.meta div { border-top:1px solid var(--line); padding-top:8px; font-size:11px; }
.meta small { display:block; color:var(--ink-soft); margin-bottom:3px; }
.term-detail .button { margin-top:15px; background:var(--ink); color:var(--paper); border:0; padding:12px 17px; cursor:pointer; }
.term-pager { display:flex; align-items:center; justify-content:center; gap:13px; margin:27px 0; color:var(--ink-soft); font-size:11px; }
.term-pager button { border:1px solid var(--line); background:transparent; padding:8px 17px; cursor:pointer; }
.term-pager button:disabled { opacity:.35; cursor:default; }
.empty { text-align:center; background:var(--paper); border:1px solid var(--line); padding:50px; color:var(--ink-soft); }

.suggestion-section { background:var(--forest); color:var(--paper); padding:clamp(80px,9vw,140px) clamp(24px,7vw,112px); display:grid; grid-template-columns:.75fr 1.25fr; gap:clamp(45px,7vw,100px); align-items:start; }
.suggestion-copy h2 { font-size:clamp(39px,5vw,70px); line-height:1.1; margin:30px 0 20px; }
.suggestion-copy > p { color:rgba(244,240,230,.65); line-height:2; }
.privacy-note { border-right:2px solid var(--mint); padding-right:14px; font-size:12px; }
.suggestion-form { background:var(--paper); color:var(--ink); padding:clamp(25px,4vw,48px); display:grid; gap:15px; }
.form-two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.suggestion-form textarea { min-height:145px; resize:vertical; }
.form-trap { position:absolute; right:-9999px; }
.consent { display:flex!important; flex-direction:row!important; align-items:center; }
.consent input { width:auto; }
.submit-button { border:1px solid var(--ink); background:var(--ink); color:var(--paper); padding:14px 20px; display:flex; justify-content:space-between; cursor:pointer; }

.success-page { background:var(--forest-2); color:var(--paper); }
.success-page main { min-height:100vh; display:grid; place-items:center; padding:24px; }
.success-page section { max-width:700px; text-align:center; }
.success-page section > span { display:grid; place-items:center; width:76px; height:76px; border:1px solid var(--mint); color:var(--mint); border-radius:50%; margin:0 auto 35px; font-size:32px; }
.success-page .eyebrow { justify-content:center; color:rgba(244,240,230,.5); }
.success-page h1 { font-size:clamp(44px,7vw,80px); line-height:1.15; margin:30px 0 18px; }
.success-page p { color:rgba(244,240,230,.6); line-height:2; }
.success-page .primary-button { margin-top:25px; background:var(--paper); color:var(--ink); }

@media(max-width:1000px){.consultation-invite,.suggestion-section{grid-template-columns:1fr}.term-browser{grid-template-columns:1fr}.term-browser aside{position:static}.term-toolbar{grid-template-columns:1fr 1fr}.term-toolbar label:first-child{grid-column:1/-1}}
@media(max-width:720px){.consultation-invite{grid-template-columns:1fr}.consultation-invite dl{grid-template-columns:1fr}.consultation-invite dl div{border-left:0;border-bottom:1px solid var(--line)}.term-stats{grid-template-columns:1fr 1fr;gap:18px}.term-stats div{border-left:0;padding:0}.term-toolbar{position:static;grid-template-columns:1fr}.term-toolbar label:first-child{grid-column:auto}.term{grid-template-columns:1fr}.form-two{grid-template-columns:1fr}.term-warning{flex-direction:column;gap:5px}.suggestion-section{padding-right:20px;padding-left:20px}}
