/* Electro Motion Plus — design system
   Dark "high-voltage" chrome (header, hero, CTA, footer) around light, readable content sections. */

:root {
  --ink-950: #070b12;
  --ink-900: #0b111b;
  --ink-800: #111a28;
  --ink-700: #1a2638;
  --ink-600: #26354c;
  --steel-400: #8b9bb2;
  --steel-200: #c9d3e0;
  --paper: #f4f6f9;
  --white: #ffffff;
  --text: #0f1724;
  --text-muted: #506079;
  --volt: #ffc21a;
  --volt-deep: #8a6400; /* darkened from #e0a500 for WCAG AA text contrast on paper/white (a11y pass) */
  --arc: #2ad4f5;
  --line: #dde3eb;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 36, .06), 0 8px 24px rgba(15, 23, 36, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 36, .14);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
/* Halo focus ring: a light outline framed by a dark ring so it meets 3:1 contrast
   against both the dark chrome and the light content sections (a11y pass). */
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink-900);
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--volt); color: var(--ink-950); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--volt); color: var(--ink-950); box-shadow: 0 0 0 0 rgba(255, 194, 26, .5); }
.btn-primary:hover { background: #ffcd45; box-shadow: 0 8px 28px rgba(255, 194, 26, .35); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: var(--arc); color: var(--arc); }
.btn-dark { background: var(--ink-900); color: var(--white); }
.btn-dark:hover { background: var(--ink-700); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  display: flex; align-items: center;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-solid, .site-header.is-open {
  background: rgba(7, 11, 18, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand svg { width: 38px; height: 38px; }
.brand-name { font: 700 19px/1 var(--font-display); letter-spacing: -.01em; }
.brand-name span { color: var(--volt); }
.brand-name .brand-plus { color: var(--arc); margin-left: 1px; }
.brand-tag { display: block; font: 500 10.5px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel-400); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--steel-200); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav .btn { margin-left: 10px; padding: .7em 1.15em; }
.lang-switch { font-size: 13px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .45em 1em; margin-inline-start: 4px; }
.lang-switch:hover, .lang-switch:focus-visible { border-color: var(--volt); color: var(--white); background: rgba(255, 255, 255, .07); }
.nav a.btn-primary { color: var(--ink-950); background: var(--volt); }
.nav a.btn-primary:hover { background: #ffcd45; color: var(--ink-950); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15);
  background: transparent; color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px; background: rgba(7, 11, 18, .97);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .is-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; border-radius: 10px; font-size: 17px; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(42, 212, 245, .14), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(255, 194, 26, .10), transparent 60%),
    var(--ink-950);
  padding: calc(var(--header-h) + clamp(48px, 9vw, 110px)) 0 clamp(64px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--volt);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); font-weight: 700; margin-bottom: 22px; }
.hero h1 .spark {
  background: linear-gradient(90deg, var(--volt), #ffe28a 45%, var(--arc));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--steel-200); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--steel-400); font-size: 14.5px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; color: var(--arc); flex: none; }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 80px rgba(42, 212, 245, .06);
  overflow: hidden;
}
.hero-visual svg { width: 100%; height: 100%; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(7, 11, 18, .72); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; color: var(--steel-200);
}
.hero-badge strong { color: var(--white); display: block; font-size: 14.5px; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* animated current along the catenary + power lines */
.flow { stroke-dasharray: 6 26; animation: flow 1.6s linear infinite; }
.flow-slow { animation-duration: 2.6s; }
@keyframes flow { to { stroke-dashoffset: -64; } }
.twinkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ---------- Spec strip ---------- */
.spec-strip { background: var(--ink-900); border-block: 1px solid rgba(255, 255, 255, .06); color: var(--steel-400); overflow: hidden; }
.spec-track { display: flex; gap: 48px; width: max-content; padding: 18px 0; animation: marquee 40s linear infinite; }
.spec-track span { white-space: nowrap; font: 500 14px/1 var(--font-display); letter-spacing: .04em; display: inline-flex; align-items: center; gap: 48px; }
.spec-track span::after { content: "◆"; color: var(--volt); font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { color: var(--volt-deep); }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--text-muted); font-size: 18px; margin: 0; }

.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); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* sector cards */
.sector {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-900); color: var(--white); padding: 30px 28px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate; transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sector .sector-art { position: absolute; inset: 0; z-index: -1; opacity: .9; }
.sector .sector-art svg { width: 100%; height: 100%; }
.sector::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(7, 11, 18, .95) 75%); }
.sector h3 { font-size: 22px; margin-bottom: 8px; }
.sector p { color: var(--steel-200); font-size: 15px; margin: 0; }
.sector .tag { position: absolute; top: 22px; left: 28px; font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--volt); }

/* product cards */
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
}
.product:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink-900), var(--ink-700)); color: var(--volt); margin-bottom: 6px;
}
.product .icon svg { width: 24px; height: 24px; }
.product h3 { font-size: 18px; margin: 0; }
.product p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.product .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.product .more svg { width: 14px; height: 14px; transition: transform .2s; }
.product:hover .more svg { transform: translateX(3px); }

/* why us */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.feature { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature .num { font: 700 14px/1 var(--font-display); color: var(--volt-deep); min-width: 32px; padding-top: 5px; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--text-muted); margin: 0; }

.panel {
  background: var(--ink-900); color: var(--white); border-radius: 20px; padding: 32px;
  position: relative; overflow: hidden;
}
.panel::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(255, 194, 26, .22), transparent 65%); }
.panel h3 { font-size: 24px; position: relative; }
.panel p { color: var(--steel-200); position: relative; }
.checklist { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; position: relative; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--steel-200); font-size: 15px; }
.checklist svg { width: 18px; height: 18px; color: var(--volt); flex: none; margin-top: 3px; }

/* process */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--volt) 0 10px, transparent 10px 20px); opacity: .5; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step .dot {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-900); color: var(--volt); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--line);
  font: 700 18px/1 var(--font-display); position: relative;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process::before { display: none; }
}
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; color: var(--white);
  background: linear-gradient(120deg, var(--ink-900), var(--ink-700));
  padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 240px at 90% 0%, rgba(255, 194, 26, .25), transparent 70%), radial-gradient(400px 240px at 0% 100%, rgba(42, 212, 245, .18), transparent 70%);
}
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; position: relative; }
.cta p { color: var(--steel-200); margin: 0; position: relative; }
.cta .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--ink-900); color: var(--volt); display: grid; place-items: center; flex: none; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--text-muted); font-size: 13px; }
.contact-list a, .contact-list strong { font-weight: 600; text-decoration: none; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-900); background: var(--white); box-shadow: 0 0 0 3px rgba(11, 17, 27, .22); }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--text-muted); margin: 12px 0 0; text-align: center; }
.form-status { margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; min-height: 1.2em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  color: var(--white); background:
    radial-gradient(700px 360px at 90% 0%, rgba(42, 212, 245, .14), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(255, 194, 26, .10), transparent 60%),
    var(--ink-950);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(48px, 7vw, 80px);
}
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 820px; }
.page-hero p { color: var(--steel-200); font-size: 18px; max-width: 680px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--steel-400); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; color: var(--steel-200); }
.breadcrumb a:hover { color: var(--volt); }

/* ---------- Catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--text); border-radius: 999px;
  padding: 9px 16px; font: 600 14px/1 var(--font-body); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink-600); }
.chip[aria-pressed="true"] { background: var(--ink-900); color: var(--volt); border-color: var(--ink-900); }

.catalog { display: grid; gap: 22px; }
.cat-item {
  display: grid; grid-template-columns: 280px 1fr; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.cat-item[hidden] { display: none; }
.cat-item .cat-visual { background: var(--ink-900); display: grid; place-items: center; padding: 24px; position: relative; }
.cat-item .cat-visual svg { width: 100%; max-width: 200px; height: auto; }
.cat-item .cat-visual .tag { position: absolute; top: 16px; left: 16px; font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--volt); }
.cat-body { padding: clamp(22px, 3vw, 34px); }
.cat-body h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.cat-body > p { color: var(--text-muted); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0 18px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; color: var(--text-muted); font-weight: 600; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.pill-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.cat-body .btn { padding: .7em 1.2em; font-size: 14px; }
@media (max-width: 760px) {
  .cat-item { grid-template-columns: 1fr; }
  .cat-item .cat-visual { min-height: 180px; }
  .spec-table th { width: 42%; }
}
.disclaimer { font-size: 13.5px; color: var(--text-muted); margin-top: 28px; }

/* ---------- Quote checklist (products.html cards) ---------- */
.quote-list { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; }
.quote-list h3 { font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
.quote-list ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; }
.quote-list li { display: flex; align-items: flex-start; gap: 7px; font-size: 13.5px; }
.quote-list li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--volt); }
@media (max-width: 520px) {
  .quote-list ul { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font: 600 16px/1.4 var(--font-display); color: var(--ink-900); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; top: 50%; right: 2px; width: 11px; height: 11px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: translateY(-65%) rotate(45deg); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq-item p { margin: 0 0 18px; color: var(--text-muted); font-size: 15px; }
[dir="rtl"] .faq-item summary { padding: 16px 0 16px 28px; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 2px; }

/* ---------- Glossary ---------- */
.glossary-list { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.glossary-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 28px; display: grid; grid-template-columns: 200px 1fr; gap: 6px 28px; }
.glossary-item dt { font: 600 18px/1.3 var(--font-display); color: var(--ink-900); }
.glossary-item dd { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 640px) {
  .glossary-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--steel-400); padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.site-footer a { text-decoration: none; color: var(--steel-400); transition: color .2s; }
.site-footer a:hover { color: var(--volt); }
.site-footer .about { font-size: 14.5px; max-width: 340px; margin-top: 16px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }

/* ---------- 404 ---------- */
.notfound {
  position: relative; overflow: hidden; min-height: 100vh; display: grid; place-items: center;
  text-align: center; color: var(--white); padding: 24px;
  background:
    radial-gradient(900px 520px at 82% 12%, rgba(42, 212, 245, .16), transparent 60%),
    radial-gradient(700px 480px at 12% 88%, rgba(42, 212, 245, .07), transparent 60%),
    var(--ink-950);
}
.notfound::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
}
.notfound-inner { position: relative; max-width: 520px; }
.notfound .brand { display: flex; justify-content: center; margin-bottom: 36px; }
.notfound .eyebrow { display: flex; justify-content: center; color: var(--arc); }
.notfound .eyebrow::before { display: none; }
.notfound .code { font: 700 clamp(84px, 16vw, 150px)/1 var(--font-display); background: linear-gradient(90deg, var(--arc), var(--steel-200)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: clamp(24px, 3.4vw, 34px); margin-top: 6px; }
.notfound .lede { color: var(--steel-200); margin: 14px auto 32px; max-width: 420px; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- RTL (Arabic) ----------
   Flex/grid rows already reverse automatically under dir="rtl" (eyebrow line,
   hero grid, footer grid, contact grid). This section covers what does not:
   the Arabic font stack, directional arrow icons, and physical text-align. */
[dir="rtl"] body { font-family: "Cairo", var(--font-body); }
[dir="rtl"] .nav .btn { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .btn svg, [dir="rtl"] .more svg { transform: scaleX(-1); }
[dir="rtl"] .spec-table th, [dir="rtl"] .spec-table td { text-align: right; }
[dir="rtl"] .breadcrumb { direction: rtl; }
