/* Xandriq - hero.css
 * Telemetry-grid hero 60/40 (UNIKÁLIS) - text bal 60% + 2x4 cell grid jobb 40%.
 * Mobile: telemetry-grid STACK FIRST.
 */

.hero {
  padding: var(--s-96) 0 var(--s-80);
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: var(--c-bg);
}

.hero--small {
  min-height: auto;
  padding: var(--s-80) 0 var(--s-48);
}

.hero__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--s-64);
  align-items: center;
  width: 100%;
}

.hero__text {
  max-width: 620px;
}

.hero__kicker {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-16);
}

.hero__text h1 {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: clamp(2.125rem, 4.8vw, 3.375rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--c-text);
  margin-bottom: var(--s-24);
}

.hero__subtitle {
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--c-text-dim);
  max-width: 540px;
  margin-bottom: var(--s-32);
}

.hero__cta {
  display: flex;
  gap: var(--s-16);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--s-32);
}

.hero__paired-rule {
  margin-top: var(--s-32);
  height: 6px;
  background: linear-gradient(
    to bottom,
    var(--c-accent) 0 1px,
    transparent 1px 5px,
    var(--c-border) 5px 6px
  );
  max-width: 440px;
}

/* ===== 2x4 Telemetry grid (right column) ===== */
.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, minmax(78px, auto));
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
}

.telemetry-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.telemetry-cell:nth-child(2n) {
  border-right: none;
}

.telemetry-cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.telemetry-cell__label {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.telemetry-cell__value {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
  min-width: 0;
}

/* For especially long values (emails, URLs) — drop to smaller type automatically */
.telemetry-cell__value:has(+ :not([class])),
.telemetry-cell--long .telemetry-cell__value {
  font-size: 0.8125rem;
}

.telemetry-cell__value--positive {
  color: var(--c-accent);
}

.telemetry-cell__value--warn {
  color: var(--c-accent-sec);
}

/* prevent button inheritance on dark hero */
.hero a:not(.btn-primary):not(.btn-secondary):not(.text-link) {
  color: var(--c-accent);
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .hero {
    min-height: auto;
    padding: var(--s-64) 0 var(--s-48);
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-40);
  }
  .telemetry-grid {
    order: -1;
  }
}

@media (max-width: 600px) {
  .telemetry-grid {
    grid-template-rows: repeat(4, minmax(70px, auto));
  }
  .telemetry-cell {
    padding: 12px 14px;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
}
