/* DXHero base — reset, type roles, layout primitives.
   Logical properties (inline/block) throughout, so /ar/ mirrors automatically with dir="rtl". */

*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius); }

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

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-heading);
  text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--c-electric); outline-offset: 3px; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.start-8 { grid-column-start: 8; }
.start-9 { grid-column-start: 9; }
@media (max-width: 900px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .start-8, .start-9 { grid-column-start: auto; }
}

/* ---------- Sections: three grounds, alternated for rhythm ---------- */

.section { padding-block: var(--section-pad); position: relative; }
.section--paper { background: var(--c-paper); }
.section--wash  { background: var(--c-wash); }
.section--dark  { background: var(--grad-still); color: var(--c-on-dark-body); }
.section--band  { background: var(--grad-band); color: var(--c-on-dark-body); }
.section--dark :is(h1, h2, h3, h4),
.section--band :is(h1, h2, h3, h4) { color: var(--c-on-dark); }

/* Section head: eyebrow → assertion title → DS 64×4 rule. Always start-aligned. */
.section-head { display: grid; gap: var(--sp-3); max-width: 46rem; margin-block-end: var(--sp-6); }
.section-head--split {
  max-width: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-3) var(--grid-gap);
  align-items: end;
}
.section-head--split > :first-child { grid-column: span 7; display: grid; gap: var(--sp-3); }
.section-head--split > :last-child { grid-column: 9 / span 4; justify-self: start; }
@media (max-width: 900px) {
  .section-head--split > :first-child, .section-head--split > :last-child { grid-column: span 12; }
}

/* ---------- Type roles ---------- */

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--c-secondary);
}
.section--dark .eyebrow, .section--band .eyebrow, .hero .eyebrow { color: var(--c-on-dark-muted); }
/* section tags below the hero carry the accent blue */
.section .eyebrow { color: var(--c-tag); }
.section--dark .eyebrow, .section--band .eyebrow { color: var(--c-tag-on-dark); }

.hero-title {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-hero);
  font-weight: 700;
  color: var(--c-on-dark);
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--c-accent-on-dark); }
/* Hero accent line: crisp electric blue; a single, sharp band of white light sweeps across the
   words, left to right (once as the entrance settles, then every 7 s; off under reduced motion).
   No halo or text-shadow: the light stays crisp. */
.hero .hero-title .accent {
  --shine: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, 0.9) 48.5%, #fff 50%, rgba(255, 255, 255, 0.9) 51.5%, transparent 56%);
  background: var(--shine) -150% 0 / 250% 100% no-repeat, linear-gradient(90deg, #5F7BFF, #A3AEFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  inline-size: fit-content;    /* gradient spans the words, not the whole column */
  padding-block-end: 0.06em;   /* keeps descenders inside the clipped background */
}

.section-title { font-size: var(--fs-section); font-weight: 700; letter-spacing: var(--tr-section); }
.title { font-size: var(--fs-title); letter-spacing: -0.01em; }

.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 36rem; }

.mono { font-family: var(--font-mono); font-size: var(--fs-small); }
.num { font-variant-numeric: tabular-nums; }

/* DS "reset mark": 64×4 rule under titles */
.rule { inline-size: 4rem; block-size: 4px; background: var(--c-secondary); border: 0; margin: var(--sp-2) 0 0; }
.section--dark .rule, .section--band .rule, .hero .rule { background: var(--c-accent-on-dark); }

/* DS dash bullet (never dots, squares or checks) */
.dash-list { display: grid; gap: var(--sp-2); }
.dash-list li { position: relative; padding-inline-start: 1.5rem; }
.dash-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.8em;
  inline-size: 0.75rem; block-size: 2px; background: currentColor; opacity: 0.8;
}

.footnote { font-size: 0.8125rem; color: var(--c-hint); margin-block-start: var(--sp-4); }
