/* ============ OBSCORN — Neon Drop ============ */
:root {
  --bg: #050506;
  --panel: #0a0b09;
  --lime: #c6f135;
  --lime-dim: rgba(198, 241, 53, .35);
  --text: #f5f5f2;
  --muted: #a3a39c;
  --line: rgba(198, 241, 53, .28);
  --font-ar: "Tajawal", system-ui, sans-serif;
  --font-display: "Archivo", "Tajawal", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background-color: var(--bg); color: var(--text);
  font-family: var(--font-ar); font-size: 17px; line-height: 1.7; font-weight: 500;
  background-image:
    linear-gradient(rgba(198, 241, 53, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 241, 53, .025) 1px, transparent 1px);
  background-size: 64px 64px;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.lime { color: var(--lime); }
.display { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; text-transform: none; letter-spacing: -.01em; }
.kicker { font-family: var(--font-mono); font-size: 13px; color: var(--lime); letter-spacing: .06em; direction: inherit; text-align: start; margin-bottom: 12px; }
html[lang="ar"] .mono, html[lang="ar"] .kicker, html[lang="ar"] .eyebrow, html[lang="ar"] .tag, html[lang="ar"] .chip, html[lang="ar"] .spec-row li { font-family: var(--font-ar); letter-spacing: 0; }

/* ============ زر اللغة ============ */
.lang { display: inline-flex; border: 1px solid var(--lime); margin-inline-start: 0; }
.lang button {
  background: transparent; border: 0; color: var(--muted); padding: 7px 12px; cursor: pointer; min-height: 38px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 13px; letter-spacing: .04em;
}
.lang button + button { border-inline-start: 1px solid var(--lime); }
.lang button[aria-pressed="true"] { background: var(--lime); color: #000; }
.lang button:hover:not([aria-pressed="true"]) { color: var(--lime); }
html[lang="ar"] .lang button { font-family: var(--font-ar); font-stretch: 100%; font-size: 15px; }
html[lang="ar"] .display, html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.25; }
html[lang="ar"] .hero h1 { line-height: 1.2; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: fixed; top: -60px; inset-inline-start: 12px; background: var(--lime); color: #000; padding: 8px 14px; z-index: 200; text-decoration: none; }
.skip:focus { top: 12px; }

/* ============ Neon chamfer frame system ============ */
/* .nf: الإطار الخارجي (لون النيون). .nf-in: الداخل المعتم. الزوايا المقطوعة بـ clip-path */
.nf {
  --c: 16px;
  position: relative; background: var(--lime); padding: 1px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: background .3s ease;
}
.nf-in {
  position: relative; height: 100%;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(198, 241, 53, .08), transparent 60%),
    #060607;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.nf.lg { --c: 34px; }
.glow { filter: drop-shadow(0 0 14px rgba(198, 241, 53, .35)); }

/* خلفية ملوّنة خلف الإطارات الزجاجية لتظهر تأثير الزجاج */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 420px at 12% 18%, rgba(198, 241, 53, .18), transparent 70%),
    radial-gradient(720px 520px at 88% 55%, rgba(198, 241, 53, .12), transparent 70%),
    radial-gradient(520px 380px at 45% 100%, rgba(255, 255, 255, .07), transparent 70%);
}

/* الشعار الأصلي */
.brand-logo { height: 46px; width: auto; display: block; }
.footer-logo { height: 58px; width: auto; display: block; opacity: .95; }
.board-brand { height: clamp(96px, 13vw, 170px); width: auto; display: block; filter: drop-shadow(0 0 18px rgba(198, 241, 53, .25)); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 26px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}
.btn-neon { background: var(--lime); color: #000; box-shadow: 0 0 22px rgba(198, 241, 53, .35); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.btn-neon:hover { box-shadow: 0 0 34px rgba(198, 241, 53, .6); }
.btn-ghost { background: rgba(198, 241, 53, .06); color: var(--lime); border-color: var(--lime); }
.btn-ghost:hover { background: rgba(198, 241, 53, .14); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ============ Header ============ */
.topbar { position: sticky; top: 0; z-index: 50; padding: 14px 0; transition: background .3s ease; }
.topbar.scrolled { background: rgba(5, 5, 6, .88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 14px; font-size: 15px; font-weight: 700; transition: color .2s ease; position: relative; }
.nav a:hover, .nav a.is-active { color: var(--lime); }
.nav a.is-active::after { content: ""; position: absolute; inset-inline: 14px; bottom: 0; height: 2px; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.topbar-cta { margin-inline-start: 6px; }
.nav-cta { display: none; }
.menu-btn { display: none; margin-inline-start: auto; background: transparent; border: 1px solid var(--lime); color: var(--lime); padding: 8px 16px; cursor: pointer; min-height: 40px; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; }

/* ============ Hero ============ */
.hero { padding: 16px 0 40px; }
.hero-glow { width: min(1240px, 100% - 24px); margin-inline: auto; }
.hero-frame { width: 100%; }
.hero-in { padding: clamp(22px, 3vw, 40px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(18px, 3vw, 44px); align-items: center;
}
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 13px; color: var(--lime);
  border: 1px solid var(--line); padding: 4px 12px; direction: inherit; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(42px, 5vw, 84px); line-height: .92; letter-spacing: -.02em; direction: inherit; text-align: start; }
.hero h1 span { display: block; }
.ar-title { font-size: clamp(24px, 3vw, 38px); font-weight: 800; margin-top: 18px; line-height: 1.2; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 520px; margin-top: 16px; }
.spec-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.spec-row li { font-size: 12px; color: var(--lime); border: 1px solid var(--line); padding: 4px 12px; direction: inherit; }

/* ---- لصاقات ورقية: قصّة بحواف بيضاء وظل خفيف، موزعة عشوائياً ---- */
.hero-visual { position: relative; width: 100%; max-width: 520px; aspect-ratio: 4 / 5; justify-self: center; }
.hero-visual > .nf { height: 100%; }
.visual-in { position: absolute; inset: 1px; overflow: hidden; isolation: isolate; }
.wall, .process, .projects, .about, .contact, footer { position: relative; isolation: isolate; }
.sticker-field { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sticker {
  position: absolute; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none;
  transform: rotate(var(--rot, 0deg));
  opacity: .72;
  filter:
    drop-shadow(2px 0 0 rgba(198, 241, 53, .85)) drop-shadow(-2px 0 0 rgba(198, 241, 53, .85))
    drop-shadow(0 2px 0 rgba(198, 241, 53, .85)) drop-shadow(0 -2px 0 rgba(198, 241, 53, .85))
    drop-shadow(0 0 10px rgba(198, 241, 53, .45));
  animation: sticker-float 7s ease-in-out infinite;
}
.sticker-avatar { animation-duration: 6s; }
.sticker-logo { animation-duration: 8s; }
@keyframes sticker-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@media (max-width: 760px) {
  .sticker { max-width: 26vw; }
}

/* ---- Marquee ---- */
.marquee { overflow: hidden; background: var(--lime); color: #000; padding: 12px 0; margin-top: 8px; }
.marquee .track {
  display: flex; gap: 28px; width: max-content; animation: marquee 16s linear infinite;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 18px; white-space: nowrap; text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Services ============ */
.wall { position: relative; padding: 110px 0 0; overflow: hidden; }
.wall::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 50% 0%, rgba(198, 241, 53, .12), transparent 70%);
}
.wall-head { text-align: center; margin-bottom: 56px; position: relative; }
.wall-head .kicker { display: inline-block; }
.wall-head h2 { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 12px; }
.wall-head .muted { max-width: 540px; margin-inline: auto; }
.frames {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: end;
  width: min(1180px, 100% - 32px); margin-inline: auto; perspective: 1400px;
}
.frame { --c: 22px; display: block; aspect-ratio: 3 / 4; border: 0; padding: 1px; cursor: default; text-align: center; transform-origin: 50% 100%; }
.frame.is-link { cursor: pointer; }
.frame.is-link:focus-visible .frame-in { background: radial-gradient(120% 80% at 50% 0%, rgba(198, 241, 53, .22), transparent 65%), #060607; }
@media (hover: hover) and (pointer: fine) {
  .frame.is-link:hover .frame-in { background: radial-gradient(120% 80% at 50% 0%, rgba(198, 241, 53, .22), transparent 65%), #060607; }
}
.frame-in {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px 16px; color: var(--text);
}
.frame svg { width: 66px; height: 66px; stroke: var(--lime); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(198, 241, 53, .5)); }
.frame svg text { fill: var(--lime); }
.frame-title { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 15px; text-transform: uppercase; line-height: 1.15; }
.frame-sub { font-size: 14px; color: var(--muted); }
.frame.center { aspect-ratio: 3 / 4.4; }
.frame.center .frame-title { font-size: clamp(20px, 2.4vw, 28px); }
.frame.center svg { width: 112px; height: 112px; }

/* ============ Projects ============ */
.projects { padding: 120px 0 100px; position: relative; }
.projects::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 400px at 85% 0%, rgba(198, 241, 53, .07), transparent 70%);
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; position: relative; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 12px; }
.section-head p { max-width: 560px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters button {
  background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 8px 18px; cursor: pointer;
  font-size: 15px; font-weight: 700; min-height: 44px; transition: all .2s ease;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.filters button:hover { color: var(--lime); border-color: var(--lime); }
.filters button[aria-pressed="true"] { background: var(--lime); color: #000; border-color: var(--lime); box-shadow: 0 0 18px rgba(198, 241, 53, .4); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; position: relative; }
.card { --c: 18px; display: block; width: 100%; padding: 1px; border: 0; text-align: start; cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.card:focus-visible { transform: translateY(-6px); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px); }
  .card:hover .card-in { background: radial-gradient(120% 80% at 50% 0%, rgba(198, 241, 53, .18), transparent 65%), #060607; }
  .card:hover .mock { box-shadow: 0 0 22px rgba(198, 241, 53, .35); }
}
.card-in { display: flex; flex-direction: column; padding: 14px 14px 20px; height: 100%; color: var(--text); }
.card-body { display: flex; flex-direction: column; gap: 9px; padding-top: 16px; flex: 1; }
.card-name { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 19px; line-height: 1.2; }
.card-short { font-size: 15px; color: var(--muted); line-height: 1.6; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tag { font-family: var(--font-mono); font-size: 11px; color: var(--lime); border: 1px solid var(--line); padding: 2px 9px; direction: inherit; }
.status { font-size: 13px; color: var(--text); border-top: 1px solid var(--line); padding-top: 9px; margin-top: 4px; opacity: .85; }

/* Mock "screens" as thumbnails (replace with real screenshots later) */
.mock {
  position: relative; display: block; aspect-ratio: 16 / 10; background: #0b0c0a; overflow: hidden;
  border: 1px solid var(--line);
}
.mock::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 20px; background: #111310;
  background-image: radial-gradient(circle at 12px 10px, #ff5f57 4px, transparent 4.5px), radial-gradient(circle at 26px 10px, #febc2e 4px, transparent 4.5px), radial-gradient(circle at 40px 10px, #28c840 4px, transparent 4.5px);
}
.mock.has-shot { border-color: rgba(198, 241, 53, .45); }
.mock.has-shot::before, .mock.has-shot i, .mock.has-shot b { display: none; }
.mock.has-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.illus-tag { position: absolute; bottom: 8px; inset-inline-start: 8px; z-index: 2; background: rgba(0, 0, 0, .75); color: var(--lime); border: 1px solid var(--line); padding: 2px 8px; font-family: var(--font-mono); font-size: 11px; direction: inherit; }
.pd-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border: 1px solid var(--line); margin-bottom: 26px; }
.mock i { position: absolute; display: block; height: 10px; background: #1d211a; }
.mock i:nth-child(1) { top: 34px; left: 12px; right: 12px; height: 14px; background: var(--lime); opacity: .9; box-shadow: 0 0 12px rgba(198, 241, 53, .5); }
.mock i:nth-child(2) { top: 60px; left: 12px; width: 44%; }
.mock i:nth-child(3) { top: 78px; left: 12px; width: 30%; }
.mock b {
  position: absolute; bottom: 8px; right: 12px; font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 34px;
  color: var(--lime); text-shadow: 0 0 18px rgba(198, 241, 53, .45); line-height: 1;
}

/* ============ Project dialog ============ */
dialog.pdialog { padding: 0; border: 0; background: transparent; color: var(--text); width: min(900px, calc(100% - 24px)); max-height: calc(100vh - 32px); overflow: visible; }
dialog.pdialog::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(4px); }
dialog.pdialog[open] { animation: dialog-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.pd-frame { --c: 26px; max-height: calc(100vh - 32px); filter: drop-shadow(0 0 18px rgba(198, 241, 53, .3)); }
.pd-inner { max-height: calc(100vh - 34px); overflow: auto; padding: 32px clamp(18px, 4vw, 42px) 40px; }
.pd-close {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 3; width: 44px; height: 44px;
  background: #060607; border: 1px solid var(--lime); color: var(--lime); cursor: pointer; display: grid; place-items: center;
}
.pd-close:hover { background: var(--lime); color: #000; }
.pd-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.pd-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 12px; padding-inline-end: 48px; }
.pd-head .kicker { direction: inherit; text-align: start; }
.pd-head .lead { margin-top: 0; }
.pd-section { margin-top: 30px; }
.pd-section h3 { font-family: var(--font-mono); font-size: 14px; color: var(--lime); margin-bottom: 12px; direction: inherit; text-align: start; }
.pd-section p { color: var(--muted); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 28px; }
.pd-grid ul { list-style: none; color: var(--muted); }
.pd-grid li { position: relative; padding-inline-start: 18px; }
.pd-grid li + li { margin-top: 8px; }
.pd-grid li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 6px var(--lime); }
.journey ol { display: grid; gap: 12px; }
.journey li { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); padding: 14px 18px; color: var(--text); background: rgba(198, 241, 53, .03); }
.journey .num { color: var(--lime); font-weight: 700; flex: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); font-size: 12.5px; border: 1px solid var(--line); padding: 4px 11px; direction: inherit; color: var(--text); }
.status-line { margin-top: 30px; padding: 14px 18px; border: 1px dashed rgba(198, 241, 53, .55); color: var(--muted); }
.status-line strong { color: var(--text); }

/* Demo area */
.demo { border: 1px solid var(--line); background: rgba(198, 241, 53, .02); padding: 20px; }
.demo .note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.demo-box { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field select {
  font: inherit; color: var(--text); background: #060607; border: 1px solid var(--line); padding: 10px 12px; min-height: 44px; max-width: 280px;
  color-scheme: dark; direction: ltr; text-align: start;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 2px rgba(198, 241, 53, .2); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.time-card { border: 1px solid var(--line); padding: 14px; display: grid; gap: 4px; background: #060607; }
.time-card strong { font-size: 26px; color: var(--lime); }
.time-card span { font-size: 13px; color: var(--muted); }
.order-id { color: var(--muted); font-size: 14px; direction: inherit; text-align: start; font-family: var(--font-mono); }
.track-steps { display: grid; gap: 10px; }
.track-steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 6px 0; }
.track-steps .dot { width: 14px; height: 14px; border: 2px solid var(--line); flex: none; transition: all .4s ease; }
.track-steps li.done { color: var(--text); }
.track-steps li.done .dot { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 12px rgba(198, 241, 53, .7); }
.cart-list { display: grid; gap: 8px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); padding: 10px 14px; background: #060607; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 44px; height: 44px; border: 1px solid var(--line); background: #060607; cursor: pointer; font-size: 18px; color: var(--text); }
.qty button:hover { border-color: var(--lime); color: var(--lime); }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.totals div { border: 1px solid var(--line); padding: 12px; background: #060607; }
.totals strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 24px; color: var(--lime); direction: ltr; text-align: start; }
.totals span { font-size: 13px; color: var(--muted); }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chips button { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 6px 14px; cursor: pointer; font-size: 14px; min-height: 36px; }
.cat-chips button[aria-pressed="true"] { background: var(--lime); color: #000; border-color: var(--lime); font-weight: 700; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.prod { border: 1px solid var(--line); background: #060607; display: grid; }
.prod .thumb { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, rgba(198, 241, 53, .2), transparent 70%), #0b0c0a; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; color: var(--lime); font-size: 32px; }
.prod .body { padding: 12px; display: grid; gap: 10px; }
.prod .body span { font-size: 14px; color: var(--text); }
.obd-result { border: 1px solid var(--line); padding: 18px; background: #060607; }
.obd-result strong { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 28px; color: var(--lime); direction: ltr; display: block; text-align: start; }
.obd-result p { color: var(--text); margin-top: 6px; }
.obd-result small { color: var(--muted); display: block; margin-top: 8px; }

/* ============ أفكار مقترحة (مفاهيم، ليست أعمالاً منفذة) ============ */
.concepts { padding: 100px 0; position: relative; }
.concept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; position: relative; }
.concept { --c: 14px; }
.concept-in { padding: 18px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.concept-tag { font-size: 11px; color: var(--lime); border: 1px solid var(--line); align-self: flex-start; padding: 2px 8px; }
.concept-name { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 18px; line-height: 1.25; }
.concept-in .card-short { font-size: 14px; }
.concept-twist { font-size: 14px; color: var(--text); }
.concept-twist strong { color: var(--lime); }
.concept-business { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.concept-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border: 1px solid var(--line); display: block; }
.concept .tags { margin-top: auto; }

/* ============ About ============ */
.about { padding: 120px 0; position: relative; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about h2 { font-size: clamp(34px, 4.8vw, 58px); margin-bottom: 22px; }
.about p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.skills { display: grid; gap: 16px; }
.skill-group .nf-in { padding: 20px; }
.skill-group h3 { font-size: 14px; color: var(--lime); margin-bottom: 14px; }
.skill-group { --c: 14px; }

/* ============ Contact ============ */
.contact { padding: 60px 0 120px; }
.contact-frame { width: 100%; }
.contact-in { padding: clamp(36px, 6vw, 80px) clamp(20px, 4vw, 60px); text-align: center; }
.contact h2 { font-size: clamp(40px, 6.6vw, 84px); margin-bottom: 18px; }
.contact p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.contact .cta-row { justify-content: center; }

footer { padding: 26px 0; color: var(--muted); font-size: 14px; }
.footer-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
footer .mono { direction: inherit; }

/* ============ Process: لوحة الشرح بالرسم اليدوي ============ */
.process { padding: 110px 0 100px; position: relative; }
.process-head { margin-bottom: 40px; }
.process-head h2 { font-size: clamp(36px, 5vw, 60px); margin-top: 0; }
.board { width: 100%; }
.board-in { padding: clamp(24px, 4vw, 56px); }
.doodle { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; filter: drop-shadow(0 0 6px rgba(198, 241, 53, .45)); }
.doodle path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.doodle.under { display: block; width: 100%; height: 22px; margin-top: 6px; }
.board-top { display: grid; grid-template-columns: 1.5fr .7fr; gap: 24px; align-items: center; }
.board-brand {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: clamp(44px, 7vw, 96px); line-height: 1;
  color: var(--lime); text-shadow: 0 0 24px rgba(198, 241, 53, .35);
}
.board-tag { font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; margin-top: 10px; }
.key-block { position: relative; display: grid; place-items: center; text-align: center; padding: 10px; }
.key-block .ring { position: absolute; top: -34px; left: 50%; translate: -50% 0; width: 170px; height: 170px; }
.key-block .key-label { margin-top: 128px; }
.key-num { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 96px; color: var(--lime); line-height: 1; text-shadow: 0 0 20px rgba(198, 241, 53, .4); }
.key-label { font-size: 15px; color: var(--muted); }
.board-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.step { position: relative; border-top: 1px dashed var(--line); padding-top: 18px; }
.step-doodle { width: 96px; height: 96px; display: block; margin-bottom: 8px; }
.step-n { font-size: 13px; color: var(--muted); }
.step h3 { font-size: 28px; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 16px; }
.sound {
  position: absolute; top: 4px; inset-inline-start: 96px; font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: 22px; color: var(--lime); transform: rotate(-8deg); text-shadow: 0 0 12px rgba(198, 241, 53, .5);
}
html[lang="ar"] .sound { font-family: var(--font-ar); font-stretch: 100%; }
.board-checks { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 14px; }
.check { display: flex; align-items: center; gap: 14px; font-size: 21px; font-weight: 800; }
.check .doodle { width: 40px; height: 40px; flex: none; }
.check.bad .doodle { stroke: #ff5d5d; filter: drop-shadow(0 0 6px rgba(255, 93, 93, .5)); }
.check.bad span { color: #ff8a8a; text-decoration: line-through; text-decoration-color: #ff5d5d; }
.problem {
  margin-top: 26px; border: 1px dashed var(--lime); padding: 14px 18px; font-size: 18px; font-weight: 700; color: var(--text);
  background: rgba(198, 241, 53, .05);
}
@media (max-width: 760px) {
  .board-top { grid-template-columns: 1fr; }
  .key-block { justify-items: start; text-align: start; }
  .key-block .ring { width: 130px; height: 130px; }
  .key-num { font-size: 72px; }
  .board-steps { grid-template-columns: 1fr; gap: 28px; }
  .sound { inset-inline-start: 84px; top: 0; }
}

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .frames { grid-template-columns: repeat(2, 1fr); }
  .frame.center { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
}
@media (max-width: 760px) {
  .topbar-in { gap: 8px; }
  .brand-logo { height: 38px; }
  .lang button, html[lang="ar"] .lang button { font-size: 12px; padding: 6px 8px; min-height: 44px; }
  .menu-btn { padding: 6px 12px; min-height: 44px; font-size: 14px; }
  .hero-glow { width: calc(100% - 20px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(36px, 11vw, 60px); }
  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 16px; background: #060607; border: 1px solid var(--lime);
    padding: 10px; flex-direction: column; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.nav-cta { display: block; margin-top: 8px; background: var(--lime); color: #000; text-align: center; font-weight: 800; }
  .nav a.nav-cta:hover { color: #000; }
  .topbar-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .topbar-in { position: relative; }
  .pd-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .wall-head { margin-bottom: 36px; }
}
@media (max-width: 520px) {
  .frames { grid-template-columns: 1fr 1fr; gap: 14px; }
  .frame-sub { display: none; }
  .frame svg { width: 48px; height: 48px; }
  .frame-title { font-size: 12.5px; }
  .grid { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
  .hero-in { padding: 18px; }
}


/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .marquee .track { animation: none; }
}
