/* ============================================================
   Noetix Security — public corporate website
   Noetix Sentinel  SOC. Static, no build step.
   Dark enterprise theme, orange accents.
   ============================================================ */

:root {
  --bg: #07080c;
  --bg-alt: #0c0e14;
  --card: #11141c;
  --card-hover: #151926;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9ebf1;
  --muted: #9aa1ae;
  --accent: #ff7a18;
  --accent-strong: #ff8c33;
  --accent-soft: rgba(255, 122, 24, 0.12);
  --accent-border: rgba(255, 122, 24, 0.35);
  --success: #3ecf8e;
  --error: #ff5c5c;
  --warn: #ffb020;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Tajawal", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, Menlo, monospace;
  --max-w: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }

/* ---------- Eyebrow / lead ---------- */
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.lead { color: var(--muted); font-size: 18px; max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-align: center;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #14100b;
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent-border); color: var(--accent-strong); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.brand-mark {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(255, 122, 24, 0.7);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 16px;
}
.brand-accent { color: var(--accent); }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: -260px;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 122, 24, 0.16) 0%, rgba(255, 122, 24, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner { position: relative; margin-bottom: 64px; }

.hero-title {
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 800;
  max-width: 900px;
  margin-inline: auto;
}
.title-accent { color: var(--accent); }

.hero-kicker {
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 740px;
  margin: 14px auto 0;
}

.hero-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 24px;
}

/* ---------- Console panel (stylized product overview) ---------- */
.console {
  position: relative;
  text-align: left;
  background: #0a0c12;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(255, 122, 24, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(255, 122, 24, 0.07);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.console-dots { display: flex; gap: 6px; }
.console-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.console-title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex: 1;
}

.console-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap;
}

.console-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.console-left {
  padding: 22px;
  border-inline-end: 1px solid var(--border);
}

/* stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.stat-value { font-size: 24px; font-weight: 800; line-height: 1; }
.stat-dim { color: var(--muted); font-size: 15px; font-weight: 600; }
.stat-warn { color: var(--warn); }
.stat-risk { color: var(--error); }

/* device table */
.device-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

.device-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}
.device-row:last-child { border-bottom: none; }

.device-head {
  font-family: var(--font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.device-os { color: var(--muted); }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-inline-end: 8px;
  vertical-align: middle;
}
.dot-on { background: var(--success); box-shadow: 0 0 6px rgba(62, 207, 142, 0.7); }
.dot-off { background: #4b5260; }

.risk { display: flex; align-items: center; gap: 10px; }
.risk-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}
.risk-fill { display: block; height: 100%; border-radius: 99px; }
.risk-high { background: var(--error); }
.risk-med { background: var(--warn); }
.risk-low { background: var(--success); }

/* live feed */
.console-right { padding: 22px; display: flex; flex-direction: column; min-width: 0; }

.feed-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 122, 24, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(255, 122, 24, 0); }
}

.feed { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.feed-item.feed-enter { animation: feedIn 0.45s ease; }

@keyframes feedIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.feed-text { min-width: 0; overflow-wrap: anywhere; }

.sev {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 5px;
  padding: 2px 8px;
  margin-top: 1px;
}
.sev-high { color: var(--error); background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); }
.sev-med { color: var(--warn); background: rgba(255, 176, 32, 0.1); border: 1px solid rgba(255, 176, 32, 0.3); }
.sev-low { color: var(--success); background: rgba(62, 207, 142, 0.1); border: 1px solid rgba(62, 207, 142, 0.3); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  max-width: 840px;
  margin-bottom: 16px;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--accent-border);
  background: var(--card-hover);
  box-shadow: 0 0 24px rgba(255, 122, 24, 0.06);
}

.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.card-compact { padding: 22px 20px; }
.card-compact h3 { font-size: 15.5px; margin-bottom: 7px; }
.card-compact p { font-size: 13.5px; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.card-tag {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

/* ---------- Architecture flow ---------- */
.arch-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.arch-node {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 18px;
  min-width: 0;
}
.arch-node h4 { font-size: 15px; margin-bottom: 6px; }
.arch-node p { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.arch-step {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.arch-core {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(255, 122, 24, 0.08), var(--card) 60%);
  box-shadow: 0 0 28px rgba(255, 122, 24, 0.08);
}

.arch-arrow {
  flex: 0 0 34px;
  position: relative;
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-border), var(--accent));
}
.arch-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 7px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.arch-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.fact {
  border: 1px solid var(--border-strong);
  background: var(--card);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.fact::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* ---------- Trust / value ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-item {
  padding: 28px;
  border-inline-end: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.trust-item:nth-child(3n) { border-inline-end: none; }
.trust-item:nth-child(n+4) { border-bottom: none; }

.trust-item h4 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.trust-item h4::before { content: "▸ "; color: var(--accent); }
.trust-item p { color: var(--muted); font-size: 14px; }

/* ---------- Target customers ---------- */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tag {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 20px 18px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.25s ease;
}
.tag:hover { border-color: var(--accent-border); }

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 36px 40px;
}

.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  padding-block: 11px;
  border-bottom: 1px solid var(--border);
}
.cap-grid .check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ---------- Why Noetix ---------- */
.why-block { text-align: center; max-width: 860px; margin-inline: auto; }
.why-block .lead { margin-inline: auto; }

.why-slogan {
  margin-top: 40px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
}

.why-motto {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 700;
}
.why-motto span { color: var(--muted); margin-inline: 4px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-intro h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 16px; }

.contact-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.contact-direct { margin-top: 32px; }
.contact-direct p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.contact-direct a {
  display: block;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  width: fit-content;
}
.contact-direct a:hover { text-decoration: underline; }

.contact-form { padding: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #5a6170; }

.form-field select { appearance: none; cursor: pointer; }

.form-field textarea { resize: vertical; min-height: 110px; }

/* honeypot: visually removed, still in DOM for bots */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  display: none;
  border-radius: 9px;
  padding: 12px 14px;
}
.form-status.is-success { display: block; color: var(--success); background: rgba(62, 207, 142, 0.1); border: 1px solid rgba(62, 207, 142, 0.3); }
.form-status.is-error { display: block; color: var(--error); background: rgba(255, 92, 92, 0.08); border: 1px solid rgba(255, 92, 92, 0.3); }

.form-privacy { color: #6b7280; font-size: 12.5px; margin-top: 14px; }

button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  background: var(--bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer-brand { max-width: 420px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: #6b7280; font-size: 13px; max-width: 640px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feed-title::before { animation: none; }
  .feed-item.feed-enter { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-burger { display: flex; }

  .arch-flow { flex-direction: column; }
  .arch-arrow {
    flex-basis: 30px;
    width: 2px;
    height: 30px;
    align-self: center;
    background: linear-gradient(180deg, var(--accent-border), var(--accent));
  }
  .arch-arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%);
    border-top: 7px solid var(--accent);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: none;
  }
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .tag-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3n) { border-inline-end: 1px solid var(--border); }
  .trust-item:nth-child(2n) { border-inline-end: none; }
  .trust-item:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .trust-item:nth-child(n+5) { border-bottom: none; }

  .console-body { grid-template-columns: 1fr; }
  .console-left { border-inline-end: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero { padding: 76px 0 64px; }
  .hero-inner { margin-bottom: 44px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-inline-end: none !important; border-bottom: 1px solid var(--border) !important; }
  .trust-item:last-child { border-bottom: none !important; }
  .tag-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; gap: 0; padding: 24px 22px; }
  .cap-grid .check-list:first-child li:last-child { border-bottom: 1px solid var(--border); }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-value { font-size: 19px; }
  .device-row { grid-template-columns: 1.3fr 1fr; }
  .device-row span:nth-child(2) { display: none; }
  .nav .btn-sm { display: none; }
}

/* ============================================================
   Language toggle
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-ar);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn + .lang-btn { border-inline-start: 1px solid var(--border-strong); }
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* ============================================================
   Social links (contact + footer)
   ============================================================ */
.social-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-link:hover { color: var(--accent-strong); border-color: var(--accent-border); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.contact-social { margin-top: 32px; }

.footer-social { max-width: 360px; }
.footer-social .social-link { padding: 7px 12px; font-size: 13px; }

/* ============================================================
   Founder mentions
   ============================================================ */
.why-founder {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-founder {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 10px;
}

/* ============================================================
   RTL (Arabic) support
   Activated via body.rtl + dir="rtl" on <html>.
   Most of the layout mirrors automatically thanks to logical
   properties; the rules below cover fonts, letter-spacing,
   and the few physical-direction details left.
   ============================================================ */
body.rtl { font-family: var(--font-ar); }

/* Arabic script connects between letters — letter-spacing breaks it */
.rtl h1, .rtl h2, .rtl h3, .rtl h4,
.rtl .eyebrow,
.rtl .hero-note,
.rtl .card-tag,
.rtl .stat-label,
.rtl .device-head,
.rtl .fact,
.rtl .why-founder { letter-spacing: 0; }

/* Mono-styled console text: keep the technical look but render Arabic cleanly */
.rtl .console-title,
.rtl .console-badge,
.rtl .feed-title,
.rtl .sev {
  font-family: var(--font-ar);
  letter-spacing: 0;
}
.rtl .feed-item { font-size: 12.5px; }

.rtl .why-motto {
  font-family: var(--font-ar);
  letter-spacing: 0.1em;
  font-size: 17px;
}

.rtl .lead,
.rtl .card p,
.rtl .trust-item p,
.rtl .arch-node p { line-height: 1.85; }

/* Architecture arrows: flip direction on the horizontal (desktop) layout */
@media (min-width: 1021px) {
  .rtl .arch-arrow {
    background: linear-gradient(-90deg, var(--accent-border), var(--accent));
  }
  .rtl .arch-arrow::after {
    right: auto;
    left: -1px;
    border-left: none;
    border-right: 7px solid var(--accent);
  }
}
/* On mobile the arrows are vertical (top→down) in both directions — no change needed */
