/* ═══════════════════════════════════════════════════════════════════
   Raazdaar — Design System
   Matches the Raazdaar_Datasheet_edited.html design language.
   RTL-first, light theme, amber accent.
═══════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --font-sans: 'Vazirmatn', 'Tahoma', Arial, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --amber:      #F5A012;
  --amber-ink:  #B26F0F;
  --amber-dim:  rgba(245, 160, 18, 0.10);
  --amber-line: rgba(245, 160, 18, 0.40);
  --amber-glow: rgba(245, 160, 18, 0.15);

  --ink:      #09090B;
  --ink-2:    #1A1A24;
  --paper:    #FFFFFF;
  --paper-2:  #F5F6FA;
  --paper-3:  #EDF0F5;
  --border:   #D5D9E3;
  --border-2: #E4E7EF;

  --text:    #171720;
  --muted:   #5C5C6B;
  --faint:   #8A8A99;

  --success: #0E9C6E;
  --danger:  #D23B3B;
  --radius:  2px;

  --nav-h:   68px;
  --max-w:   1120px;
  --side-pad: clamp(1rem, 4vw, 2.5rem);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  direction: rtl;
}
img { display: block; max-width: 100%; }
a { color: var(--amber-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Layout helpers ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

/* latin/mono terms stay LTR inside RTL flow */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline; }

/* ── Typography ────────────────────────────────────────────────── */
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--amber-ink);
  margin-bottom: 0.9rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 0.6rem;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--amber-line);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: #e8960e;
  box-shadow: 0 0 20px rgba(245, 160, 18, 0.30);
  text-decoration: none;
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border);
  text-decoration: none;
}
.btn-lg {
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
}

/* ── Navigation ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; inset-inline: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  z-index: 1000;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-2);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--side-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo { height: 36px; width: auto; }
.nav-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}
.nav-link {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 0.15s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--text); text-decoration: none; }
.nav-link.active {
  font-weight: 600;
  color: var(--amber-ink);
}
.nav-cta { margin-inline-start: 0.5rem; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-inline-start: auto;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--amber-ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-cta.nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--border-2);
    padding: 1rem var(--side-pad) 1.5rem;
    gap: 0.25rem;
    margin-inline-start: 0;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 0.65rem 0.5rem; font-size: 1rem; }
}

/* ── Nav mega-menu ─────────────────────────────────────────────── */
.nav-item-mega { position: relative; }

.nav-mega-trigger {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-caret {
  font-size: 0.65em;
  transition: transform 0.2s ease;
}
.nav-item-mega.open .nav-caret { transform: rotate(180deg); }

.nav-mega {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  min-width: 300px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(9, 9, 11, 0.12);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 1000;
}

.nav-item-mega.open .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mega-link {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav-mega-link:hover,
.nav-mega-link:focus-visible {
  background: var(--amber-dim);
  outline: none;
}

.nav-mega-link.active { background: var(--amber-dim); }
.nav-mega-link.active .nmg-label { color: var(--amber-ink); }

.nmg-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.nmg-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--faint);
  margin-top: 0.1rem;
}

/* Mobile: real accordion, collapsed unless .nav-item-mega.open. Matches the
   drawer breakpoint above (max-width: 768px) so the two agree, and keeps
   aria-expanded truthful (panel is actually hidden until opened). */
@media (max-width: 768px) {
  .nav-mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: none;
    min-width: 0;
    padding-inline-start: 0.75rem;
    padding-block: 0;
    margin-top: 0.25rem;
    border-inline-start: 2px solid var(--border-2);
  }

  .nav-item-mega:not(.open) .nav-mega {
    display: none;
  }

  .nav-mega-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.65rem 0.5rem;
    font-size: 1rem;
  }
}

/* ── Section headers ───────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}
.section-head h2 { font-size: 1.1rem; font-weight: 700; }
.section-head .n {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber-ink);
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Feature diamond bullet ────────────────────────────────────── */
.feat h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.feat h3::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding-top: var(--nav-h);
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 120% at 96% -10%, rgba(245,160,18,0.14) 0%, transparent 62%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}
.hero .eyebrow { font-size: 0.82rem; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.hero h1 .amber { color: var(--amber-ink); }
.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.85;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 1.8rem;
  text-align: justify;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-2);
  padding-top: 1.5rem;
  gap: 0;
}
.trust-item {
  padding-inline-end: 1.2rem;
  text-align: center;
}
.trust-item + .trust-item {
  border-inline-start: 1px solid var(--border-2);
  padding-inline-start: 1.2rem;
}
.trust-k {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber-ink);
  direction: ltr;
  display: block;
  margin-bottom: 0.3rem;
}
.trust-k.fa {
  font-family: var(--font-sans);
  direction: rtl;
  font-size: 0.78rem;
}
.trust-v {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .trust-row { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .trust-item:nth-child(3) { border-inline-start: none; }
}

/* ── Features grid ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.feat {
  padding: 1.25rem 1.35rem;
  border-inline-end: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  transition: background 0.15s;
}
.feat:hover { background: var(--paper-2); }
.features-grid .feat:nth-child(3n)   { border-inline-end: none; }
.features-grid .feat:nth-last-child(-n+3) { border-bottom: none; }

.feat .ft {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--amber-ink);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
  direction: ltr;
  text-align: start;
}
.feat .ft.fa-tag {
  font-family: var(--font-sans);
  direction: rtl;
  letter-spacing: 0;
  font-weight: 600;
}
.feat p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-grid .feat:nth-child(3n)   { border-inline-end: 1px solid var(--border-2); }
  .features-grid .feat:nth-child(2n)   { border-inline-end: none; }
  .features-grid .feat:nth-last-child(-n+3) { border-bottom: 1px solid var(--border-2); }
  .features-grid .feat:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feat { border-inline-end: none !important; }
  .features-grid .feat { border-bottom: 1px solid var(--border-2) !important; }
  .features-grid .feat:last-child { border-bottom: none !important; }
}

/* ── Steps ─────────────────────────────────────────────────────── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.step {
  padding: 0 0 0 0.75rem;
  position: relative;
}
.step + .step {
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--border-2);
}
.step .num, .fc-step .num {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.step .num::after, .fc-step .num::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
}
.step h4 {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.step p { font-size: 0.75rem; line-height: 1.65; color: var(--muted); }
.step p code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber-ink);
  background: var(--amber-dim);
  padding: 0.05em 0.3em;
  border-radius: 2px;
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 900px) {
  .steps-row { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; }
  .step + .step { border-inline-start: none; padding-inline-start: 0.75rem; }
  .step:nth-child(even) { border-inline-start: 1px solid var(--border-2); }
}
@media (max-width: 480px) {
  .steps-row { grid-template-columns: 1fr; }
  .step + .step { border-inline-start: none; }
  .step { border-bottom: 1px solid var(--border-2); padding-bottom: 1rem; }
  .step:last-child { border-bottom: none; }
}

/* ── Security table ────────────────────────────────────────────── */
.servtable {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.servtable .col-head {
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ch-stores { background: var(--paper-3); color: var(--text); }
.ch-never  { background: var(--amber);   color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--amber); }
.dot-no { background: var(--ink); }
.servtable .cell {
  padding: 0.65rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  border-top: 1px solid var(--border-2);
  color: var(--text);
}
.servtable .cell.right {
  border-inline-start: 1px solid var(--border-2);
  color: var(--muted);
}
.servtable .cell .mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
  display: block;
  margin-top: 0.2rem;
  direction: ltr;
  text-align: start;
}
@media (max-width: 580px) {
  .servtable { grid-template-columns: 1fr; }
  .servtable .cell.right { border-inline-start: none; border-top: 1px solid var(--border-2); }
  .ch-never { border-top: 1px solid var(--border-2); }
}

/* ── Callout / quote ───────────────────────────────────────────── */
.callout {
  border-inline-start: 3px solid var(--amber);
  background: var(--paper-2);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p {
  font-size: 0.9rem;
  line-height: 1.95;
  font-weight: 500;
  color: var(--text);
}
.callout p b { color: var(--amber-ink); }

/* ── Specs grid ────────────────────────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}
.spec-block { margin-bottom: 0.5rem; }
.spec-block .sb-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
}
.srow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-2);
}
.srow:last-child { border-bottom: none; }
.srow .key { color: var(--muted); }
.srow .val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 700;
  direction: ltr;
  text-align: left;
  white-space: nowrap;
}
.srow .val.fa { font-family: var(--font-sans); direction: rtl; font-weight: 600; font-size: 0.78rem; }
.srow .val.thin { font-weight: 400; color: var(--muted); }

@media (max-width: 640px) {
  .specs-grid { grid-template-columns: 1fr; }
}

/* ── Philosophy strip ──────────────────────────────────────────── */
.phil-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.phil-strip::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0; inset-inline-end: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber) 50%, transparent);
}
.ps-card {
  background: var(--paper);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}
.ps-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0; inset-inline-end: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber) 50%, transparent);
}
.pc-top {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--faint);
  direction: ltr;
  margin-bottom: 0.75rem;
}
.logo-art {
  height: 64px;
  width: auto;
  margin-inline: auto;
  filter: brightness(0.1) sepia(1) saturate(5) hue-rotate(5deg);
  opacity: 0.7;
}
.pc-bot {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--faint);
  direction: ltr;
  margin-top: 0.75rem;
}
.ps-eyebrow { font-size: 0.82rem; color: var(--faint); margin-bottom: 0.75rem; }
.ps-eyebrow .am { color: var(--amber-ink); font-weight: 700; }
.phil-text { font-size: 0.9rem; line-height: 1.95; font-weight: 500; color: var(--text); text-align: justify; }
.phil-text .am { color: var(--amber-ink); }

@media (max-width: 640px) {
  .phil-strip { grid-template-columns: 1fr; }
  .ps-card { max-width: 160px; }
}

/* ── Section padding ───────────────────────────────────────────── */
.section {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.section-alt { background: var(--paper-2); }
.section-dark {
  background: var(--ink);
  color: #F7F9FA;
}

/* ── Intro text block ──────────────────────────────────────────── */
.lead {
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: justify;
}
.lead strong { color: var(--amber-ink); font-weight: 700; }

/* ── Page hero (inner pages) ────────────────────────────────────── */
.page-hero {
  padding-top: var(--nav-h);
  background: var(--paper-2);
  border-bottom: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 96% -20%, rgba(245,160,18,0.11) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 2.5rem var(--side-pad) 2.5rem;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.page-hero p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

/* ── Contact form ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
.form-card {
  background: var(--paper);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}
.form-group label .req { color: var(--amber-ink); margin-inline-start: 2px; }
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: var(--amber-line);
  box-shadow: 0 0 0 3px var(--amber-dim);
}
.form-control::placeholder { color: var(--faint); }
textarea.form-control {
  resize: vertical;
  min-height: 140px;
}
.form-hint { font-size: 0.72rem; color: var(--faint); margin-top: 0.3rem; }

/* Honeypot — invisible to humans, visible to bots */
.hp-field { display: none !important; }

.form-submit { margin-top: 1.4rem; }
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
}

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  border-width: 1px;
  border-style: solid;
}
.alert-success { background: rgba(14,156,110,0.1); color: #0a6e4b; border-color: rgba(14,156,110,0.3); }
.alert-error   { background: rgba(210,59,59,0.1);  color: #8b1f1f; border-color: rgba(210,59,59,0.3); }

.contact-info-card {
  background: var(--paper-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0; inset-inline-end: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber) 50%, transparent);
}
.ci-head {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 1rem;
  direction: ltr;
  text-align: start;
}
.ci-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-2);
}
.ci-row:last-child { border-bottom: none; }
.ci-icon {
  width: 32px;
  height: 32px;
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.ci-body .ci-label { font-size: 0.72rem; color: var(--faint); margin-bottom: 0.2rem; }
.ci-body .ci-val   { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.ci-body .ci-val a { color: var(--amber-ink); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Mono badges ───────────────────────────────────────────────── */
.mono-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  border: 1px solid var(--border);
  padding: 0.2em 0.6em;
  border-radius: var(--radius);
  direction: ltr;
}

/* ── CTA banner ────────────────────────────────────────────────── */
.cta-banner {
  background: var(--paper-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 120%, rgba(245,160,18,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  position: relative; z-index: 1;
}
.cta-banner p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  position: relative; z-index: 1;
}
.cta-banner .btn { position: relative; z-index: 1; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--border-2);
  padding-block: 3rem 1.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand { }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.footer-logo { height: 32px; width: auto; }
.footer-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.footer-contact-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber-ink);
  direction: ltr;
  display: inline-block;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber-ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-sans);
  margin-bottom: 0.75rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--text); text-decoration: none; }
.footer-datasheet-link { color: var(--amber-ink) !important; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid var(--border-2);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy { font-size: 0.78rem; color: var(--faint); }
.footer-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-end; }
}

/* ── Scroll reveal animation ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Additional detail list (features page) ─────────────────────── */
.detail-section { margin-bottom: 2.5rem; }
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text);
}
.detail-row:last-child { border-bottom: none; }
.detail-row::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--amber);
  transform: rotate(45deg);
  margin-top: 0.5em;
}
.detail-row strong { font-weight: 600; color: var(--text); }

/* ── Credential type badges ─────────────────────────────────────── */
.type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--text);
}
.type-badge .dot-amber {
  width: 5px; height: 5px;
  background: var(--amber);
  transform: rotate(45deg);
  flex: none;
}

/* ── Math CAPTCHA widget ────────────────────────────────────────── */
.captcha-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.captcha-question {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.captcha-question strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--amber-ink);
}
.captcha-icon { font-size: 0.85rem; opacity: 0.7; }
.captcha-input {
  width: 120px;
  flex-shrink: 0;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
@media (max-width: 420px) {
  .captcha-widget { flex-direction: column; align-items: stretch; }
  .captcha-input  { width: 100%; }
}

/* ── Utility ────────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* ── Signpost grid ─────────────────────────────────────────────── */
.signpost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.signpost {
  display: block;
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.signpost:hover,
.signpost:focus-visible {
  background: var(--amber-dim);
  box-shadow: inset 0 0 0 1px var(--amber);
  text-decoration: none;
  outline: none;
}
.signpost h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.signpost p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}
.signpost .sp-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--amber-ink);
  transition: transform 0.15s;
}
.signpost:hover .sp-arrow,
.signpost:focus-visible .sp-arrow {
  transform: translateX(-4px);
}
.font-mono { font-family: var(--font-mono); direction: ltr; }

/* ── Flowchain ─────────────────────────────────────────────────── */
.flowchain {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.fc-step {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
}
.fc-step .num {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 0.6rem;
}
.fc-step .num::after { margin-inline: auto; }
.fc-step .fc-label {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.fc-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0.7rem;
  inset-inline-start: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-2);
}

@media (max-width: 700px) {
  .flowchain { flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .fc-step:not(:last-child)::after {
    inset-inline-start: 50%;
    top: 100%;
    width: 2px;
    height: 1.6rem;
    margin-inline-start: -1px;
  }
}

/* ── Shamir share visual ───────────────────────────────────────── */
.shamir-viz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.sv-share {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--faint);
}
.sv-share-active {
  border-color: var(--amber);
  background: var(--amber-dim);
  color: var(--amber-ink);
}
.sv-caption {
  flex-basis: 100%;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--faint);
  line-height: 1.6;
}

/* ── Connector grid ────────────────────────────────────────────── */
.connector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.connector-card {
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  background: var(--paper);
}
.connector-card .cc-proto {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-ink);
  background: var(--amber-dim);
  padding: 0.15em 0.55em;
  border-radius: 2px;
  direction: ltr;
  margin-bottom: 0.65rem;
}
.connector-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.connector-card p {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── Boundary callout (non-zero-knowledge disclosure) ────────────── */
.callout-boundary {
  border-inline-start: 3px solid var(--muted);
  background: var(--paper-3);
}

/* ── Inline icons (sprite in includes/icons.php) ─────────────────── */
/* The sprite carries the symbol defs only; kept out of layout. A CSS class
   (not an inline style attribute) so the strict style-src CSP is honoured. */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  stroke: currentColor;
  fill: none;
  vertical-align: -0.125em;
}

/* Icon on credential type badges — replaces the diamond dot */
.type-badge .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--amber-ink);
}

/* Icon on spec-block heads (import / export columns) */
.sb-head .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--amber-ink);
  margin-inline-end: 0.45rem;
}
.sb-head {
  display: flex;
  align-items: center;
}

/* Connector card head: icon + protocol tag on one row */
.connector-card .cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.connector-card .cc-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--amber-ink);
}
.connector-card .cc-proto { margin-bottom: 0; }

/* ── Screenshot / product figure ─────────────────────────────────── */
.shot {
  margin: 0;
}
.shot-frame {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 40px -18px rgba(9, 9, 11, 0.28);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  background: var(--paper-3);
  border-bottom: 1px solid var(--border-2);
}
.shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex: none;
}
.shot-bar span:nth-child(1) { background: #E5735B; }
.shot-bar span:nth-child(2) { background: #E8B84B; }
.shot-bar span:nth-child(3) { background: #7FB77E; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--faint);
  line-height: 1.7;
  text-align: center;
}

/* ── Challenges & solutions (homepage, mirrors the business brief) ─── */
.chall-list {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
.chall-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--ink);
}
.chall-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.05em;
}
.chall-ic {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--amber-ink);
}
.chall-head h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.5;
}
.chall-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  padding-top: 1.2rem;
}
.chall-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--faint);
  margin-bottom: 0.55rem;
}
.chall-label .icon {
  width: 1.05em;
  height: 1.05em;
}
.chall-body p {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--muted);
  text-align: justify;
}
.chall-solution {
  background: var(--amber-dim);
  border-inline-start: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
}
.chall-solution .chall-label { color: var(--amber-ink); }
.chall-solution p { color: var(--text); font-weight: 500; }
.chall-solution p b { color: var(--amber-ink); font-weight: 700; }
.chall-result {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-top: 1.2rem;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  border-radius: var(--radius);
}
.chall-result .cr-k {
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
}
.chall-result .cr-v {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #E7E7EE;
}

/* Closing note: one system, not three separate tools */
.chall-why {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 2fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--paper-2);
  border-top: 2px solid var(--amber);
  border-radius: 0 0 var(--radius) var(--radius);
}
.cw-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-ink);
  margin-bottom: 0.4rem;
}
.cw-side h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.6;
}
.cw-body p {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--muted);
  text-align: justify;
}
.cw-body .btn { margin-top: 1.1rem; }
.btn-brief .icon {
  width: 1.05em;
  height: 1.05em;
  margin-inline-end: 0.45rem;
}

@media (max-width: 760px) {
  .chall-body,
  .chall-why { grid-template-columns: 1fr; }
  .chall-result { flex-direction: column; gap: 0.35rem; }
}
