/* ==========================================================================
   Technology Horizon — stylesheet

   Organised as:
     1. Design tokens      — the only place raw colours/sizes are written
     2. Base               — reset and element defaults
     3. Layout             — container, section rhythm, responsive grids
     4. Typography         — fluid type scale
     5. Components         — header, hero, cards, forms, footer …
     6. Utilities

   Breakpoints (mobile-first overrides applied at max-width):
     1024px  tablet   — 3-up grids become 2-up, hero stacks
      860px  compact  — nav collapses to a drawer, split rows stack
      620px  phone    — everything single column

   Direction: all spacing uses logical properties (margin-inline,
   padding-inline, inset-inline) so the RTL Arabic layout mirrors for free.
   ========================================================================== */

/* ── 1. Design tokens ───────────────────────────────────────────────────── */
:root {
  /* Brand */
  --c-primary: #7c3aed;
  --c-primary-deep: #6d28d9;
  --c-primary-bright: #9333ea;
  --c-accent: #0891b2;
  --c-accent-bright: #06b6d4;
  --c-blue: #2563eb;

  /* Surfaces */
  --c-bg: #faf9f7;
  --c-surface: #ffffff;
  --c-surface-sunken: #fbfaf8;
  --c-deep: #2a1b52;

  /* Text */
  --c-ink: #231c3a;
  --c-ink-muted: #5f5876;
  --c-ink-soft: #7d7591;
  --c-ink-faint: #8b81a0;
  --c-ink-on-deep: #eef6fc;
  --c-ink-on-deep-muted: #cfe0ef;
  --c-ink-on-deep-soft: #a8bdd2;
  --c-ink-footer: #b1a7cc;
  --c-lilac: #c4b5fd;

  /* Lines */
  --c-border: #e9e4f0;
  --c-border-soft: #ece7f4;
  --c-border-field: #e2dcec;
  --c-border-dashed: #cfc6de;

  /* Tinted fills */
  --c-tint: #efe9f9;
  --c-tint-strong: #ece5fb;
  --c-tint-hover: #f1ecfa;

  /* Feedback */
  --c-success-bg: #e9fbf3;
  --c-success-border: #b3ead0;
  --c-success-ink: #0d7a4f;

  /* Gradients */
  --g-brand: linear-gradient(135deg, var(--c-primary), var(--c-primary-bright));
  --g-text: linear-gradient(90deg, var(--c-primary-deep), var(--c-accent));

  /* Spacing — fluid where it affects layout rhythm */
  --sp-gutter: clamp(18px, 4.5vw, 28px);
  --sp-card: clamp(22px, 3vw, 30px);
  --sp-card-lg: clamp(24px, 4vw, 44px);
  --sp-grid: clamp(16px, 2.2vw, 24px);
  --sp-section: clamp(48px, 7vw, 84px);
  --sp-section-sm: clamp(44px, 6vw, 72px);

  /* Radii */
  --r-sm: 14px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-3xl: clamp(20px, 3vw, 32px);
  --r-pill: 999px;

  /* Elevation */
  --sh-card: 0 16px 36px rgba(42, 27, 82, 0.09);
  --sh-panel: 0 12px 40px rgba(42, 27, 82, 0.06);
  --sh-brand: 0 6px 24px rgba(124, 58, 237, 0.4);
  --sh-brand-sm: 0 4px 14px rgba(124, 58, 237, 0.35);
  --sh-brand-lg: 0 10px 30px rgba(124, 58, 237, 0.55);

  /* Layout */
  --w-page: 1200px;

  /* Motion */
  --t-fast: 0.15s ease;
  --t-base: 0.2s ease;
}

/* ── 2. Base ────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

a { color: var(--c-primary-deep); text-decoration: none; }
a:hover { color: var(--c-primary); }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.4px; }
p { margin: 0; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 3. Layout ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--sp-gutter);
}

.section { padding-block: var(--sp-section); }
.section--sm { padding-block: var(--sp-section-sm); }
.section--flush-top { padding-block-start: 0; }

.page { flex: 1; }
.page[hidden] { display: none; }

/* Responsive grids — the single source of column behaviour */
.grid { display: grid; gap: var(--sp-grid); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--stats { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid--hero { grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 4.5vw, 56px); align-items: center; }
.grid--contact { grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.grid--media { grid-template-columns: auto 1fr; gap: clamp(18px, 2.6vw, 28px); align-items: start; }
.grid--fields { grid-template-columns: repeat(2, 1fr); gap: 16px; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack--lg { gap: clamp(18px, 2.6vw, 28px); }
.stack--xl { gap: clamp(36px, 5vw, 56px); }

@media (max-width: 1024px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--hero,
  .grid--contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .grid--2,
  .grid--media { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid--3,
  .grid--4,
  .grid--fields { grid-template-columns: 1fr; }
  .grid--stats { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
}

/* ── 4. Typography ──────────────────────────────────────────────────────── */
.t-hero    { font-size: clamp(30px, 6.2vw, 52px); line-height: 1.12; letter-spacing: -0.5px; text-wrap: pretty; }
.t-title   { font-size: clamp(27px, 5.2vw, 44px); letter-spacing: -0.5px; text-wrap: balance; }
.t-heading { font-size: clamp(23px, 4.2vw, 38px); text-wrap: balance; }
.t-subhead { font-size: clamp(22px, 3.6vw, 32px); text-wrap: pretty; }
.t-card-title { font-size: clamp(19px, 2.6vw, 26px); text-wrap: balance; }

.t-lead { font-size: clamp(15.5px, 2.1vw, 18.5px); line-height: 1.65; color: var(--c-ink-muted); text-wrap: pretty; }
.t-body { font-size: clamp(14.5px, 2vw, 15.5px); line-height: 1.65; color: var(--c-ink-muted); text-wrap: pretty; }
.t-small { font-size: 14px; line-height: 1.6; color: var(--c-ink-muted); text-wrap: pretty; }

.t-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-primary-deep);
}
.t-kicker--on-deep { color: var(--c-lilac); }
.t-kicker--soft { color: var(--c-ink-faint); letter-spacing: 1px; font-weight: 600; }

.t-gradient {
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── 5. Components ──────────────────────────────────────────────────────── */

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-pill);
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn--primary {
  color: #fff;
  background: var(--g-brand);
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--sh-brand-lg); }

.btn--ghost {
  color: #4c3f6e;
  background: transparent;
  border: 1.5px solid rgba(109, 40, 217, 0.3);
  font-weight: 600;
}
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-deep); }

.btn--sm { padding: 10px 20px; font-size: 14.5px; }
.btn--link {
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary-deep);
  background: transparent;
  border: 1.5px solid rgba(109, 40, 217, 0.35);
  align-self: flex-start;
  margin-block-start: auto;
}
.btn--link:hover { background: var(--c-tint); }

.btn--block { width: 100%; }

/* Header ----------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  min-width: 0;
  color: inherit;
  text-align: start;
}
.brand > span { display: block; line-height: 1.15; min-width: 0; }
.brand__logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand__name { display: block; font-weight: 700; font-size: clamp(14px, 2.6vw, 16px); white-space: nowrap; }
.brand__sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--c-ink-soft); white-space: nowrap; }

.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav__link {
  border: none;
  background: transparent;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: #4a4460;
  white-space: nowrap;
  transition: background var(--t-fast);
}
.nav__link:hover { background: var(--c-tint-hover); }
.nav__link[aria-current='page'] {
  font-weight: 700;
  color: var(--c-primary-deep);
  background: var(--c-tint-strong);
}

.lang-toggle {
  margin-inline-start: auto;
  flex-shrink: 0;
  border: 1.5px solid #d4e2ee;
  background: var(--c-surface);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: #4a4460;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.lang-toggle:hover { border-color: var(--c-primary); color: var(--c-primary-deep); }

/* Hamburger + drawer */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid var(--c-border-field);
  background: var(--c-surface);
  border-radius: var(--r-sm);
}
.burger__box { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.burger__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #4a4460;
  transition: transform var(--t-base), opacity var(--t-base);
}
.burger[aria-expanded='true'] .burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  display: none;
  border-top: 1px solid var(--c-border-soft);
  background: rgba(255, 255, 255, 0.97);
  padding-block: 12px 18px;
  animation: drawer-in 0.18s ease;
}
.drawer[data-open='true'] { display: block; }
.drawer__list { display: flex; flex-direction: column; gap: 4px; }
.drawer__list .nav__link {
  text-align: start;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  font-size: 16px;
}
.drawer .btn { margin-block-start: 10px; }

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .nav,
  .header__cta { display: none; }
  .burger { display: inline-flex; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 500px at 70% -10%, rgba(124, 58, 237, 0.1), transparent 60%),
    radial-gradient(800px 500px at 15% 110%, rgba(124, 58, 237, 0.1), transparent 55%),
    var(--c-bg);
}
.hero__inner { padding-block: clamp(48px, 7vw, 88px) clamp(52px, 7.5vw, 96px); }
.hero__copy { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 24px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 8px; }

.hero__art { display: flex; justify-content: center; }
.hero__orb {
  position: relative;
  width: clamp(200px, 32vw, 340px);
  height: clamp(200px, 32vw, 340px);
}
.hero__orb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 70%);
}
.hero__orb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(124, 58, 237, 0.25));
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--c-primary-deep);
  font-size: clamp(12px, 2.4vw, 13.5px);
  font-weight: 600;
  text-wrap: pretty;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
}
.dot--lg { width: 10px; height: 10px; }
.dot--accent { background: var(--c-accent); }

@media (max-width: 1024px) {
  .hero__art { order: -1; }
}
@media (max-width: 620px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* Stats ------------------------------------------------------------------ */
.stats { border-top: 1px solid var(--c-border-soft); }
.stats__inner { padding-block: 28px; }
.stats__inner { align-items: center; }
.stat { text-align: center; }
.stat__n { font-size: clamp(26px, 4.6vw, 34px); font-weight: 700; }
.stat__label { font-size: 14px; color: #7a7290; margin-block-start: 2px; }

/* A stat with no figure — the label itself is the value. Without this it would
   render as a small grey caption under an empty gap, reading as a broken cell. */
.stat:has(.stat__n:empty) .stat__n { display: none; }
.stat:has(.stat__n:empty) .stat__label {
  font-size: clamp(17px, 2.6vw, 20px);
  font-weight: 700;
  color: var(--c-ink);
  margin-block-start: 0;
}

/* Cards ------------------------------------------------------------------ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card--interactive {
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  text-align: start;
}
.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card);
  border-color: #bfe9f2;
}
.card--flush { padding: 0; overflow: hidden; }
.card--roomy { border-radius: var(--r-2xl); padding: var(--sp-card-lg); }
.card--sunken { background: var(--c-surface-sunken); }
.card--value { border-radius: var(--r-lg); padding: 26px; gap: 10px; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

/* Card art. Source photos arrive at assorted aspect ratios; a fixed ratio plus
   object-fit:cover crops them to a common shape so the cards align in a row. */
.card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--c-border-soft);
}
/* Product cards run slightly taller, matching the placeholder they replace. */
.card__media--product { aspect-ratio: 16 / 10; }
.card__cta { margin-block-start: auto; font-size: 14px; font-weight: 600; color: var(--c-primary-deep); }

/* Chips (service tags) --------------------------------------------------- */
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.chip--lg {
  width: clamp(52px, 8vw, 64px);
  height: clamp(52px, 8vw, 64px);
  border-radius: 20px;
  font-size: 14px;
}
.chip--ai   { background: linear-gradient(135deg, var(--c-accent-bright), var(--c-accent)); }
.chip--iot  { background: linear-gradient(135deg, var(--c-accent), var(--c-blue)); }
.chip--pay  { background: linear-gradient(135deg, var(--c-blue), var(--c-primary)); }
.chip--city { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-bright)); }
.chip--home { background: linear-gradient(135deg, var(--c-accent-bright), var(--c-primary)); }
.chip--gov  { background: var(--c-primary-deep); }

/* Pills (feature tags / sector labels) ----------------------------------- */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 6px; }
.pill {
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--c-tint);
  color: var(--c-primary-deep);
}
.pill--sector {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  background: #f0e9fd;
}

/* Placeholders (images / map / partner logos) ---------------------------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #f0edf6, #f0edf6 10px, #e8e4f0 10px, #e8e4f0 20px);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--c-ink-faint);
}
.placeholder--product { aspect-ratio: 16 / 10; min-height: 140px; }

/* Office map ------------------------------------------------------------- */
.map {
  position: relative;
  height: 190px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border-dashed);
}
.map__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.map__open {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* Partner / customer logos ----------------------------------------------- */
.partners__row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 84px;
  padding: 16px 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}

/* Logos differ in aspect ratio, so contain them in a fixed box rather than
   sizing each one: whichever dimension binds first wins, and every mark ends
   up optically similar without per-logo tweaking. */
.partner__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 620px) {
  /* Narrower side padding here: the tile is already tight, and wide wordmarks
     become width-constrained before tall ones become height-constrained. */
  .partner { width: calc(50% - 9px); height: 76px; padding: 14px 10px; }
}

/* Section headers -------------------------------------------------------- */
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--wide { max-width: 720px; }
.section-head + * { margin-block-start: clamp(30px, 4.5vw, 48px); }

.rule-head { display: flex; align-items: center; gap: 14px; }
.rule-head__line { flex: 1; height: 1px; background: var(--c-border); }

/* Deep panels (mission / vision / CTA band) ------------------------------ */
.panel {
  border-radius: var(--r-2xl);
  padding: var(--sp-card-lg);
  background: var(--c-deep);
  color: var(--c-ink-on-deep);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel--mission { background: radial-gradient(500px 260px at 80% 0%, rgba(124, 58, 237, 0.25), transparent 60%), var(--c-deep); }
.panel--vision  { background: radial-gradient(500px 260px at 20% 0%, rgba(124, 58, 237, 0.28), transparent 60%), var(--c-deep); }
.panel__text { font-size: clamp(15.5px, 2.1vw, 18px); line-height: 1.75; color: var(--c-ink-on-deep-muted); text-wrap: pretty; }

.band {
  border-radius: var(--r-3xl);
  padding: clamp(32px, 5.5vw, 64px);
  background: radial-gradient(700px 300px at 80% 0%, rgba(124, 58, 237, 0.3), transparent 60%), var(--c-deep);
  color: var(--c-ink-on-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.band__copy { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.band__sub { font-size: clamp(15px, 2vw, 16.5px); line-height: 1.6; color: var(--c-ink-on-deep-soft); text-wrap: pretty; }

@media (max-width: 620px) {
  .band { flex-direction: column; align-items: flex-start; }
  .band .btn { width: 100%; }
}

/* Surface band (case studies section) ------------------------------------ */
.surface-band {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border-soft);
}

/* Contact + form --------------------------------------------------------- */
.info-list { display: flex; flex-direction: column; gap: 12px; margin-block-start: 12px; }
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.info-row__text {
  font-size: clamp(14px, 2vw, 15px);
  color: #4a4460;
  min-width: 0;
  overflow-wrap: anywhere;
}

.form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-card-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--sh-panel);
  max-width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4a4460;
}
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--c-border-field);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 400;
  color: var(--c-ink);
  background: var(--c-surface);
  outline: none;
  transition: border-color var(--t-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--c-primary); }
.field textarea { resize: vertical; }

.form__notice {
  background: var(--c-success-bg);
  border: 1px solid var(--c-success-border);
  color: var(--c-success-ink);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
}

/* Legal pages ------------------------------------------------------------ */
.legal {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.4vw, 38px);
  max-width: 760px;
}
.legal__updated {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-ink-faint);
}
.legal__section { display: flex; flex-direction: column; gap: 12px; }
.legal__h {
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.4;
  text-wrap: balance;
}
.legal__body { display: flex; flex-direction: column; gap: 12px; }
.legal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-inline-start: 20px;
  list-style: none;
}
.legal__list li {
  position: relative;
  font-size: clamp(14.5px, 2vw, 15.5px);
  line-height: 1.65;
  color: var(--c-ink-muted);
  text-wrap: pretty;
}
/* Logical inset keeps the marker on the correct side in both LTR and RTL. */
.legal__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: -18px;
  inset-block-start: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}

/* Product detail --------------------------------------------------------- */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--c-ink-soft);
  margin-block-end: clamp(20px, 3vw, 30px);
}
.crumbs__link {
  border: none;
  background: none;
  color: var(--c-primary-deep);
  font-weight: 600;
  padding: 0;
  transition: color var(--t-fast);
}
.crumbs__link:hover { color: var(--c-primary); }
.crumbs__sep { color: var(--c-border-dashed); }
.crumbs__here { color: var(--c-ink); font-weight: 600; }

.grid--pd-hero {
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.pd-hero__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-3xl);
  box-shadow: var(--sh-card);
}
.pd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 8px; }

.pd-highlights__inner { padding-block: clamp(30px, 4vw, 44px); }
.pd-highlight { text-align: center; }
.pd-highlight__n { font-size: clamp(24px, 4.2vw, 34px); font-weight: 700; line-height: 1.15; }
.pd-highlight__label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink-muted);
  margin-block-start: 6px;
  max-width: 26ch;
  margin-inline: auto;
}

.grid--pd-split {
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.pd-uses { gap: 16px; }
.pd-uses__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pd-uses__list li {
  position: relative;
  /* Logical inline padding keeps the marker on the correct side in RTL. */
  padding-inline-start: 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-ink-muted);
}
.pd-uses__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
}

.pd-feature { gap: 10px; }

.pd-steps { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pd-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-card);
  border-radius: var(--r-lg);
  background: var(--c-surface-sunken);
  border: 1px solid var(--c-border-soft);
}
.pd-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--g-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--sh-brand-sm);
}

.pd-specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(24px, 4vw, 48px);
  border-block-start: 1px solid var(--c-border);
}
.pd-spec {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-block: 18px;
  border-block-end: 1px solid var(--c-border);
}
.pd-spec__k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}
.pd-spec__v { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c-ink); }

/* Three short numbers and a three-step sequence both read badly as 2+1, so
   they override the generic .grid--3 breakpoints and go straight to one row
   or one column. */
.pd-highlights__inner .grid--3,
.pd-steps.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .pd-steps.grid--3 { grid-template-columns: 1fr; }
  .grid--pd-hero { grid-template-columns: 1fr; }
  /* Art follows the copy on narrow screens — the headline earns the fold. */
  .pd-hero__media { order: 2; aspect-ratio: 16 / 9; }
  .grid--pd-split { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .pd-highlights__inner .grid--3 { grid-template-columns: 1fr; }
  .pd-specs { grid-template-columns: 1fr; }
  .pd-highlight { text-align: start; }
  .pd-highlight__label { margin-inline: 0; }
}

/* Footer ----------------------------------------------------------------- */
.footer {
  margin-block-start: auto;
  background: var(--c-deep);
  color: var(--c-ink-footer);
  /* A brand hairline across the top edge stops the deep block from reading as
     a flat slab dropped under the page. */
  border-block-start: 3px solid transparent;
  border-image: var(--g-text) 1;
}
.footer__inner {
  padding-block: clamp(44px, 6vw, 68px);
  display: grid;
  /* Identity column takes roughly twice the width of each link column. */
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* Identity column */
.footer__about { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 38px; height: 38px; }
.footer__brand > span { display: block; line-height: 1.35; }
.footer__name { display: block; font-weight: 700; font-size: 16px; color: var(--c-ink-on-deep); }
.footer__tag { display: block; font-size: 12.5px; }
.footer__blurb {
  font-size: 14px;
  line-height: 1.7;
  max-width: 38ch;
}
.footer__cta {
  padding: 11px 22px;
  border: 1px solid rgba(196, 181, 253, 0.4);
  border-radius: var(--r-pill);
  background: rgba(196, 181, 253, 0.08);
  color: var(--c-ink-on-deep);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer__cta:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateY(-1px);
}

/* Link + contact columns */
.footer__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-ink-on-deep);
}
.footer__links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
/* Inside a column the nav reads as a list, not a row. */
.footer__links--stack { flex-direction: column; align-items: flex-start; gap: 11px; }
.footer__link {
  border: none;
  background: none;
  color: var(--c-ink-footer);
  font-size: 14px;
  padding: 2px 0;
  text-align: start;
  transition: color var(--t-fast);
}
.footer__link:hover { color: var(--c-lilac); }
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
}
.footer__mail {
  color: var(--c-ink-on-deep);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--t-fast);
}
.footer__mail:hover { color: var(--c-lilac); text-decoration: underline; }

/* Bottom bar */
.footer__bar { border-block-start: 1px solid rgba(196, 181, 253, 0.16); }
.footer__bar-inner {
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
}
.footer__legal { font-size: 13px; }
.footer__links--legal { gap: 6px 18px; }
.footer__links--legal .footer__link { font-size: 13.5px; }

@media (max-width: 860px) {
  /* Identity spans the full width; the two link columns pair beneath it. */
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__bar-inner { justify-content: flex-start; }
}

/* ── 6. Utilities ───────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .hide-phone { display: none; }
}

/* Touch devices: comfortable targets, and 16px inputs so iOS won't zoom */
@media (hover: none) {
  button { min-height: 44px; }
  input, textarea, select { font-size: 16px; }
}
