/* =====================================================================
   ONYX LABS — Platform styles (Software Center, software details,
   download dialog, home divisions, VANTA CYBER).
   Builds on the tokens and components of style.css. Logical properties
   keep everything mirrored correctly in Arabic (RTL).
   ===================================================================== */

/* ---------- Shared additions ---------- */
.main-nav__link[aria-current="page"] { color: var(--text); }
.btn--xs { min-height: 28px; padding: .2rem .5rem; font-size: var(--fs-xs); }
.btn.is-disabled { opacity: .55; cursor: not-allowed; }
.badge {
  display: inline-block;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.state {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 2.5rem 0;
  color: var(--muted);
}
.state--error p { color: var(--text); }
.state-page { min-height: 60vh; display: grid; align-content: center; gap: 1rem; }
.state-page__code { font-family: var(--font-mono); color: var(--green); font-size: var(--fs-lg); }
.state-page__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }

select, textarea { font: inherit; color: inherit; }

/* Form fields (search, select) */
.field { position: relative; display: flex; align-items: center; gap: .6rem; }
.field input, .field select {
  min-height: 46px;
  padding: .6rem .9rem;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.field--search { flex: 1 1 320px; }
.field--search input { width: 100%; padding-inline-start: 2.6rem; }
.field__icon { position: absolute; inset-inline-start: .85rem; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field--select label { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; }

/* Chips (category filter) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 36px; padding: .35rem .85rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); font-size: var(--fs-sm);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--muted-2); }
.chip[aria-pressed="true"] { color: #00140C; background: var(--green); border-color: var(--green); font-weight: 600; }
.chip__n { font-size: var(--fs-xs); opacity: .75; }

/* Skeleton loading */
.sk { border-radius: var(--r-sm); background: linear-gradient(90deg, var(--bg-3), var(--line), var(--bg-3)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
.sk--icon { width: 52px; height: 52px; border-radius: 12px; }
.sk--line { height: 14px; margin-top: 1rem; }
.sk--short { width: 60%; }
.sk--block { height: 90px; margin-top: 1.25rem; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ---------- Home: divisions ---------- */
.divisions { border-top: 1px solid var(--line); }
.divisions__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.division {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.division__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; font-stretch: 120%; letter-spacing: .01em; }
.division__text { color: var(--muted); }
.division__points { list-style: none; display: grid; gap: .45rem; }
.division__points li { position: relative; padding-inline-start: 1.2rem; }
.division__points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .7; }
.division .btn { align-self: flex-start; margin-top: auto; }
.division--software .division__name { color: var(--green); }
.division--vanta { background: #09090B; border-color: #2a2238; }
.division--vanta .division__name { color: #C084FC; }
.division--vanta .division__points li::before { background: #A855F7; opacity: 1; }
.division--vanta .btn--primary { --btn-bg: #6D28D9; --btn-bd: #6D28D9; --btn-fg: #fff; }
.division--vanta .btn--primary:hover { box-shadow: 0 0 0 4px rgba(168, 85, 247, .18); }

/* ---------- Software Center ---------- */
.sw-head { padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; border-bottom: 1px solid var(--line); }
.sw-title { font-size: var(--fs-xl); font-weight: 800; font-stretch: 118%; line-height: 1.1; }
html[lang="ar"] .sw-title { font-stretch: normal; }
.sw-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.sw-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.sw-count { color: var(--muted); font-size: var(--fs-sm); }
.sw-results { padding-block: 2.5rem 5rem; display: grid; gap: 3rem; }
.sw-section-title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 1.1rem; }
.sw-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 2rem; align-items: start; margin-bottom: 3rem; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.5rem; }

.sw-card {
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.sw-card:hover { border-color: var(--line-strong); }
.sw-card--skeleton { padding: 1.5rem; min-height: 280px; }
.sw-card__shot { display: block; aspect-ratio: 16 / 10; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.sw-card__shot img { width: 100%; height: 100%; object-fit: cover; }
.sw-card__body { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; flex: 1; }
.sw-card__head { display: flex; align-items: center; gap: .9rem; }
.sw-card__cat { color: var(--muted); font-size: var(--fs-sm); }
.sw-card__name { font-size: 1.3rem; font-weight: 750; line-height: 1.2; }
.sw-card__name a { color: var(--text); }
.sw-card__desc { color: var(--muted); font-size: var(--fs-sm); }
.sw-featured__card .sw-card { border-color: var(--line-strong); }
.sw-featured__card .sw-card__body { padding: clamp(1.5rem, 3vw, 2.2rem); }
.sw-featured__card .sw-card__desc { font-size: var(--fs-base); }

.sw-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.sw-meta dt { color: var(--muted-2); font-size: var(--fs-xs); }
.sw-meta dd { font-size: var(--fs-sm); font-weight: 600; overflow-wrap: anywhere; }
.sw-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.sw-icon { flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--green-dim); color: var(--green); }
.sw-icon--md { width: 52px; height: 52px; }
.sw-icon--md svg { width: 32px; height: 32px; }
.sw-icon--sm { width: 32px; height: 32px; border-radius: 8px; }
.sw-icon--sm svg { width: 20px; height: 20px; }
.sw-icon--lg { width: 76px; height: 76px; border-radius: 18px; }
.sw-icon--lg svg { width: 46px; height: 46px; }
.sw-icon--img { background: var(--bg-3); overflow: hidden; }
.sw-icon--img img { width: 100%; height: 100%; object-fit: contain; }
.sw-icon.product-icon--onyx { background: var(--cyan-dim); color: var(--cyan); }
.sw-icon.product-icon--phishing { background: linear-gradient(135deg, var(--green-dim), var(--cyan-dim)); }

.sw-recent { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); }
.sw-recent__list { list-style: none; display: grid; }
.sw-recent__list li { display: grid; gap: .15rem; padding-block: .8rem; border-top: 1px solid var(--line); }
.sw-recent__list li:first-child { border-top: 0; padding-top: 0; }
.sw-recent__list a { display: flex; align-items: center; gap: .7rem; color: var(--text); font-weight: 600; }
.sw-recent__name { flex: 1; }
.sw-recent__ver { color: var(--green); font-family: var(--font-mono); font-size: var(--fs-xs); }
.sw-recent__list time { padding-inline-start: calc(32px + .7rem); color: var(--muted); font-size: var(--fs-xs); }

/* ---------- Software details ---------- */
.sd-hero { padding-block: 2rem clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.sd-back { display: inline-block; margin-bottom: 1.5rem; font-size: var(--fs-sm); }
.sd-back::before { content: "‹ "; }
html[dir="rtl"] .sd-back::before { content: "› "; }
.sd-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "id cta" "lead cta"; gap: 1.25rem 3rem; align-items: start; }
.sd-hero__id { grid-area: id; display: flex; align-items: center; gap: 1.2rem; }
.sd-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); font-weight: 800; font-stretch: 115%; line-height: 1.05; }
html[lang="ar"] .sd-title { font-stretch: normal; }
.sd-pub { color: var(--muted); font-size: var(--fs-sm); margin-top: .3rem; }
.sd-lead { grid-area: lead; font-size: var(--fs-lg); color: var(--muted); max-width: 60ch; }
.sd-cta { grid-area: cta; display: grid; gap: .9rem; justify-items: start; padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg); }
.sd-cta__meta { color: var(--muted); font-size: var(--fs-sm); }
.sd-h2 { font-size: var(--fs-lg); font-weight: 750; margin-bottom: 1.1rem; }
.sd-shots { padding-block: 3rem 0; }
.sd-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 3rem; padding-block: 3rem; }
.sd-main { display: grid; gap: 2.5rem; align-content: start; }
.sd-prose p + p { margin-top: .9rem; }
.sd-prose p:first-child { font-size: var(--fs-lg); }
.sd-aside { display: grid; gap: 2rem; align-content: start; }
.sd-aside ul { padding-inline-start: 1.1rem; color: var(--muted); font-size: var(--fs-sm); display: grid; gap: .5rem; }
.sd-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: var(--fs-sm); }
.sd-section { padding-block: 3rem; border-top: 1px solid var(--line); }
.sd-note { color: var(--muted); margin-bottom: 1.25rem; max-width: 70ch; }

.req-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); }
.req-list > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid var(--line); }
.req-list > div:first-child { border-top: 0; }
.req-list dt { color: var(--muted); font-size: var(--fs-sm); }
.req-list dd { font-size: var(--fs-sm); font-weight: 600; }

.dl-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.dl-table th, .dl-table td { padding: .9rem 1rem; text-align: start; vertical-align: top; border-top: 1px solid var(--line); }
.dl-table thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: var(--fs-xs); background: var(--bg-2); }
.dl-row__kind { display: block; font-weight: 650; }
.dl-row__name, .dl-row__sub { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.dl-row__name { font-family: var(--font-mono); overflow-wrap: anywhere; }
.dl-row__sha { max-width: 340px; }
.dl-row__sha code { display: block; font-size: .72rem; color: var(--muted); overflow-wrap: anywhere; }
.sig { display: inline-block; margin-top: .4rem; font-size: var(--fs-xs); color: var(--warn); }
.sig--valid { color: var(--green); }
.sig--not-applicable { color: var(--muted); }
.sig--invalid { color: #ff6b6b; }

.sd-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.sd-guide > .sd-h2 { grid-column: 1 / -1; margin-bottom: 0; }
.guide-block h3 { font-size: var(--fs-base); font-weight: 700; margin-bottom: .75rem; }
.guide-block ul, .guide-block ol { padding-inline-start: 1.2rem; display: grid; gap: .55rem; color: var(--muted); font-size: var(--fs-sm); }
.guide-block:first-of-type { grid-row: span 2; }
.guide-block pre { margin-top: .75rem; padding: 1rem; overflow-x: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: .78rem; }
.guide-block p { color: var(--muted); font-size: var(--fs-sm); }

.history { list-style: none; display: grid; }
.history__item { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.history__item:first-child { border-top: 0; padding-top: 0; }
.history__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem; margin-bottom: .6rem; }
.history__head h3 { font-family: var(--font-mono); font-size: var(--fs-lg); }
.history__head time { color: var(--muted); font-size: var(--fs-sm); }
.history__item > ul { padding-inline-start: 1.2rem; color: var(--muted); font-size: var(--fs-sm); display: grid; gap: .35rem; }
.history__files { list-style: none; padding: 0 !important; margin-top: .6rem; }
.history__files span { color: var(--muted-2); }

/* ---------- Download dialog ---------- */
.dl-modal { width: min(94vw, 560px); }
.dl-kind { color: var(--muted); margin-top: .25rem; }
.dl-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.25rem; margin-top: 1.25rem; padding: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.dl-meta dt { color: var(--muted-2); font-size: var(--fs-xs); }
.dl-meta dd { font-size: var(--fs-sm); font-weight: 600; overflow-wrap: anywhere; }
.dl-meta__sha { grid-column: 1 / -1; }
.dl-meta__sha code { display: block; font-size: .74rem; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.dl-note { margin-top: 1rem; font-size: var(--fs-sm); color: var(--muted); }
.dl-note--warn { padding: .75rem .9rem; border-inline-start: 3px solid var(--warn); background: rgba(255, 181, 71, .07); color: var(--text); }
.dl-note--error { color: #ff8b8b; }
.dl-progress { margin-top: 1.25rem; }
.dl-progress__bar { height: 8px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.dl-progress__fill { display: block; height: 100%; width: var(--p, 0%); background: var(--green); transition: width .15s linear; }
.dl-progress__text { margin-top: .6rem; font-size: var(--fs-sm); color: var(--muted); }
.dl-next { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.dl-next h3 { font-size: var(--fs-base); margin-bottom: .6rem; }
.dl-next ol { padding-inline-start: 1.2rem; display: grid; gap: .45rem; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .divisions__grid, .sw-top, .sd-body, .sd-guide { grid-template-columns: 1fr; }
  .sd-hero__grid { grid-template-columns: 1fr; grid-template-areas: "id" "lead" "cta"; }
  .guide-block:first-of-type { grid-row: auto; }
}
@media (max-width: 720px) {
  .dl-table thead { display: none; }
  .dl-table, .dl-table tbody, .dl-table tr, .dl-table th, .dl-table td { display: block; width: 100%; }
  .dl-table tr { padding: .5rem 0; border-top: 1px solid var(--line); }
  .dl-table tr:first-child { border-top: 0; }
  .dl-table th, .dl-table td { border-top: 0; padding: .35rem 1rem; }
  .dl-row__sha { max-width: none; }
  .req-list > div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 480px) {
  .sw-meta, .dl-meta { grid-template-columns: 1fr; }
  .sw-actions .btn, .sd-cta .btn { width: 100%; }
}

/* =====================================================================
   VANTA CYBER — distinct division theme inside the ONYX LABS frame.
   Palette from the brand brief: #09090B, #6D28D9, #A855F7, #2563EB.
   ===================================================================== */
.theme-vanta {
  --bg: #09090B;
  --bg-2: #111016;
  --bg-3: #18161F;
  --line: #221E2C;
  --line-strong: #332B44;
  --green: #A855F7;              /* accent role in shared components */
  --green-dim: rgba(168, 85, 247, .12);
  --green-glow: rgba(168, 85, 247, .26);
  --cyan: #C4A1FF;               /* links: lighter tint for contrast on black */
  --cyan-dim: rgba(37, 99, 235, .14);
  --v-purple: #6D28D9;
  --v-electric: #A855F7;
  --v-blue: #2563EB;
  --v-blue-text: #7EA2FF;
  --v-red: #E5484D;
  background: var(--bg);
}
.theme-vanta ::selection { background: var(--v-electric); color: #0B0612; }
.theme-vanta .site-header { background: rgba(9, 9, 11, .78); }
.theme-vanta .btn--primary { --btn-bg: var(--v-purple); --btn-bd: var(--v-purple); --btn-fg: #fff; }
.theme-vanta .btn--primary:hover { --btn-bg: #7C3AED; --btn-bd: #7C3AED; box-shadow: 0 0 0 4px rgba(168, 85, 247, .16); }
.theme-vanta .modal__box { background: var(--bg-2); }

.v-section { padding-block: clamp(4.5rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.v-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3rem); }
.v-h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; font-stretch: 125%; line-height: 1.08; letter-spacing: -.01em; }
.v-h3 { font-size: var(--fs-lg); font-weight: 700; }
html[lang="ar"] .v-h2, html[lang="ar"] .v-hero__title { font-stretch: normal; letter-spacing: 0; }
.v-lead { margin-top: 1rem; color: var(--muted); font-size: var(--fs-lg); max-width: 62ch; }

/* Hero */
.v-hero { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.v-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.v-mark { display: flex; align-items: center; gap: .8rem; margin-bottom: 2rem; }
.v-mark__logo { width: 44px; height: 44px; color: var(--text); }
.v-mark__red, .v-mark__blue { fill: none; stroke-width: 2.4; }
.v-mark__red { stroke: var(--v-red); }
.v-mark__blue { stroke: var(--v-blue); }
.v-mark__text { display: grid; line-height: 1.2; }
.v-mark__name { font-weight: 800; font-stretch: 125%; letter-spacing: .08em; }
.v-mark__div { color: var(--v-electric); font-size: var(--fs-sm); }
.v-hero__title {
  font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.1rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.v-hero__text { margin-top: 1.6rem; max-width: 58ch; color: var(--muted); font-size: var(--fs-lg); }
.v-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.v-hero__slogan { margin-top: 2.2rem; padding-inline-start: 1rem; border-inline-start: 2px solid var(--v-electric); color: var(--text); font-weight: 600; }

.v-visual { position: relative; color: var(--text); }
.v-visual__svg { width: 100%; height: auto; }
.v-ring { fill: none; stroke: var(--v-blue); stroke-opacity: .55; stroke-width: 1.2; }
.v-ring--core { stroke: var(--v-electric); stroke-opacity: .9; }
.v-core { fill: var(--v-purple); }
.v-path { fill: none; stroke: var(--v-red); stroke-width: 2; stroke-dasharray: 6 6; stroke-linecap: round; }
.v-hit circle { fill: var(--bg); stroke: var(--v-red); stroke-width: 2; }
.v-detect circle { fill: none; stroke: var(--v-electric); stroke-width: 2; }
.v-lbl { font: 600 12px var(--font-sans); letter-spacing: .14em; }
.v-lbl--red { fill: var(--v-red); }
.v-lbl--blue { fill: var(--v-blue-text); }
.v-cycle { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-top: 1rem; color: var(--muted); font-size: var(--fs-sm); }
.v-cycle span { position: relative; }
.v-cycle span + span::before { content: ""; position: absolute; inset-inline-start: -.85rem; top: 50%; width: .4rem; height: 1px; background: var(--v-electric); }

/* One orchestrated moment: the attack path draws, then detections appear. */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .v-path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: v-draw 2.2s .3s var(--ease) forwards; }
  .js-ready .v-detect circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: v-pop .5s var(--ease) forwards; }
  .js-ready .v-detect circle:nth-child(1) { animation-delay: 1.3s; }
  .js-ready .v-detect circle:nth-child(2) { animation-delay: 2.3s; }
}
@keyframes v-draw { to { stroke-dashoffset: 0; stroke-dasharray: 6 6; } }
@keyframes v-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* About */
.v-about__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.v-prose { margin-top: 1.4rem; display: grid; gap: 1rem; color: var(--muted); max-width: 66ch; }
.v-prose p:first-child { color: var(--text); font-size: var(--fs-lg); }
.v-founder { margin-top: 1.6rem; color: var(--v-electric); font-weight: 600; }
.v-principles { list-style: none; display: grid; gap: 0; align-content: start; border-inline-start: 1px solid var(--line-strong); }
.v-principles li { padding: 1.2rem 0 1.2rem 1.5rem; padding-inline: 1.5rem 0; }
.v-principles li + li { border-top: 1px solid var(--line); }
.v-principles h3 { font-size: var(--fs-base); font-weight: 700; }
.v-principles p { margin-top: .3rem; color: var(--muted); font-size: var(--fs-sm); }

/* Services */
.v-services { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.v-service {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.6rem;
  border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.v-service:hover { background: var(--bg-2); }
.v-service__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--green-dim); color: var(--v-electric); }
.v-service__icon svg { width: 22px; height: 22px; }
.v-service__name { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.v-service__text { color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.v-service__actions { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-inline-start: -.5rem; }
.v-service__actions .btn { min-height: 36px; font-size: var(--fs-sm); }
.v-modal__short { color: var(--text); font-weight: 600; }

/* Methodology — the signature element */
.v-method { background: linear-gradient(180deg, var(--bg) 0%, #0D0B12 100%); }
.v-flow { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: stretch; gap: 0; }
.v-node {
  display: grid; gap: .35rem; align-content: center; text-align: start;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  color: var(--text);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.v-node__name { font-size: 1.35rem; font-weight: 800; font-stretch: 120%; }
html[lang="ar"] .v-node__name { font-stretch: normal; }
.v-node__role { color: var(--muted); font-size: var(--fs-sm); }
.v-node--red { border-top: 3px solid var(--v-red); }
.v-node--blue { border-top: 3px solid var(--v-blue); }
.v-node--purple { border-top: 3px solid var(--v-electric); }
.v-node:hover { border-color: var(--muted-2); }
.v-node[aria-selected="true"] { background: #17121F; }
.v-node--red[aria-selected="true"] { border-color: var(--v-red); }
.v-node--blue[aria-selected="true"] { border-color: var(--v-blue); }
.v-node--purple[aria-selected="true"] { border-color: var(--v-electric); }
.v-flow__arrow { position: relative; width: clamp(28px, 4vw, 56px); }
.v-flow__arrow::before { content: ""; position: absolute; top: 50%; inset-inline: 6px; height: 2px; background: linear-gradient(90deg, var(--v-red), var(--v-electric)); }
.v-flow__arrow:last-of-type::before { background: linear-gradient(90deg, var(--v-electric), var(--v-blue)); }
html[dir="rtl"] .v-flow__arrow::before { transform: scaleX(-1); }
.v-flow__arrow::after { content: ""; position: absolute; top: calc(50% - 4px); inset-inline-end: 4px; width: 8px; height: 8px; border-top: 2px solid var(--v-electric); border-inline-end: 2px solid var(--v-electric); transform: rotate(45deg); }
html[dir="rtl"] .v-flow__arrow::after { transform: rotate(-45deg); }
.v-flow__arrow:last-of-type::after { border-color: var(--v-blue); }
.v-team { margin-top: 1.5rem; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.v-team[data-team="red"] { border-inline-start: 3px solid var(--v-red); }
.v-team[data-team="purple"] { border-inline-start: 3px solid var(--v-electric); }
.v-team[data-team="blue"] { border-inline-start: 3px solid var(--v-blue); }
.v-team__role { font-weight: 700; font-size: var(--fs-lg); }
.v-team__points { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 2rem; margin-top: 1rem; }
.v-team__points li { position: relative; padding-inline-start: 1.3rem; color: var(--muted); }
.v-team__points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--v-electric); }
.v-why { margin-top: 3rem; }
.v-why__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.25rem; }
.v-why__list h4 { font-size: var(--fs-base); font-weight: 700; }
.v-why__list p { margin-top: .35rem; color: var(--muted); font-size: var(--fs-sm); }

/* Process (a real sequence → numbered) */
.v-process { list-style: none; display: grid; gap: 0; counter-reset: none; max-width: 900px; }
.v-step { display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.v-step:first-child { border-top: 0; }
.v-step__n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--v-electric); font-weight: 700; font-variant-numeric: tabular-nums; }
.v-step h3 { font-size: var(--fs-base); font-weight: 700; }
.v-step p { margin-top: .25rem; color: var(--muted); font-size: var(--fs-sm); }
.v-step--auth .v-step__n { background: var(--v-purple); border-color: var(--v-purple); color: #fff; }
.v-auth { margin-top: 2rem; max-width: 900px; padding: 1rem 1.2rem; border: 1px solid var(--v-purple); border-radius: var(--r-md); background: rgba(109, 40, 217, .1); font-weight: 600; }

/* Contact */
.v-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.v-direct { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.v-wa { --btn-bg: #1F8F4E !important; --btn-bd: #1F8F4E !important; }
.v-wa:hover { --btn-bg: #23A35A !important; --btn-bd: #23A35A !important; box-shadow: none !important; }
.v-phone { margin-top: 1.4rem; color: var(--muted); }
.v-phone a { font-weight: 700; color: var(--text); }
.v-form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg-2); }
.v-field { display: grid; gap: .4rem; }
.v-field label { font-weight: 600; font-size: var(--fs-sm); }
.v-field__opt { color: var(--muted); font-weight: 400; }
.v-field input, .v-field select, .v-field textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.v-field textarea { resize: vertical; min-height: 140px; }
.v-field input:focus-visible, .v-field select:focus-visible, .v-field textarea:focus-visible { outline: 2px solid var(--v-electric); outline-offset: 1px; }
.v-field [aria-invalid="true"] { border-color: #F2555A; }
.v-field__hint { color: var(--muted); font-size: var(--fs-xs); }
.v-field__err { color: #FF8A8E; font-size: var(--fs-xs); min-height: 0; }
.v-field__err:empty { display: none; }
.v-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.v-form .btn { justify-self: start; }
.v-form .btn:disabled { opacity: .65; cursor: progress; }
.v-form__privacy { color: var(--muted); font-size: var(--fs-xs); }
.v-form__status { padding: .8rem 1rem; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; }
.v-form__status--ok { background: rgba(31, 143, 78, .14); border: 1px solid #1F8F4E; }
.v-form__status--error { background: rgba(242, 85, 90, .1); border: 1px solid #F2555A; }

@media (max-width: 1080px) {
  .v-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .v-hero__inner, .v-about__grid, .v-contact__grid { grid-template-columns: 1fr; }
  .v-visual { max-width: 420px; }
  .v-flow { grid-template-columns: 1fr; }
  .v-flow__arrow { width: auto; height: 28px; }
  .v-flow__arrow::before { top: 4px; bottom: 4px; height: auto; inset-inline: auto; inset-inline-start: 50%; width: 2px; background: linear-gradient(180deg, var(--v-red), var(--v-electric)); }
  .v-flow__arrow:last-of-type::before { background: linear-gradient(180deg, var(--v-electric), var(--v-blue)); }
  .v-flow__arrow::after { top: auto; bottom: 3px; inset-inline-end: auto; inset-inline-start: calc(50% - 4px); transform: rotate(135deg); }
  html[dir="rtl"] .v-flow__arrow::after { transform: rotate(135deg); }
  .v-why__list, .v-team__points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .v-services { grid-template-columns: 1fr; }
  .v-hero__actions .btn, .v-direct .btn { width: 100%; }
}

/* Home footer gained a "Divisions" column */
@media (min-width: 1181px) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
}

/* Long commands and Windows paths must wrap instead of widening the page */
.guide-block, .sd-main, .sd-aside, .history__item { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .divisions__grid, .sw-top, .sd-body, .sd-guide { grid-template-columns: minmax(0, 1fr); }
}

/* Contact section: email only */
#contact-list { grid-template-columns: minmax(0, 440px); }
