/* CODR landing — Hero structure & copy (L5). Requires tokens/base/primitives/navbar.
   Product mock + feature tiles come in L6, motion in L7. Direction stays LTR in every language. */

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: min(46rem, calc(100svh - var(--header-h)));
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 4.5rem) var(--section-y);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
}
.hero__copy { max-width: 52rem; }

/* Copy beside the product mock only when there is room; below 1200px the mock stacks under the copy */
@media (min-width: 1200px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-7); }
  .hero__title { font-size: clamp(2.75rem, 1.6rem + 2.6vw, 4.25rem); }
}

/* Eyebrow reuses the section-head eyebrow (orange rule + mono caps; tracking is 0 in Arabic) */
.hero__eyebrow { margin-bottom: var(--space-5); }

.hero__title {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: var(--tracking-tight);
}
/* Geometric orange bar: decorative, so no word has to be split across translation keys */
.hero__title::after {
  content: '';
  display: block;
  width: clamp(4rem, 10vw, 7rem);
  height: 0.5rem;
  margin-top: var(--space-5);
  background: var(--orange);
}
:root:lang(ar) .hero__title { line-height: 1.3; }   /* Arabic needs more vertical room */

.hero__subtitle {
  max-width: 40rem;
  margin-top: var(--space-5);
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 479px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
}
