/* =========================================================
   UP2Digital — Cégünkről oldal
   ========================================================= */

/* Hero */
.ab-hero {
  background: var(--up2-black);
  color: var(--on-dark);
  padding: 140px var(--pad-x) 80px;
  position: relative;
  overflow: hidden;
}
.ab-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 75%);
  pointer-events: none;
}
.ab-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.ab-hero__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--up2-yellow);
  margin: 18px 0 22px;
}
.ab-hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
  margin-bottom: 24px;
}
.ab-hero__title .accent { color: var(--up2-yellow); }
.ab-hero__sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 64ch;
  text-wrap: pretty;
  margin-bottom: 48px;
}

/* Hero stats */
.ab-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  max-width: 720px;
}
@media (max-width: 720px) {
  .ab-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
}
.ab-stat strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--up2-yellow);
  margin-bottom: 8px;
}
.ab-stat strong span { color: var(--up2-red); }
.ab-stat > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  line-height: 1.4;
  display: block;
}

/* =========================================================
   TIMELINE
   ========================================================= */
.ab-timeline {
  list-style: none;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}
.ab-timeline::before {
  content: '';
  position: absolute;
  left: calc(var(--pad-x) + 96px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}
@media (max-width: 720px) {
  .ab-timeline::before { left: calc(var(--pad-x) + 22px); }
}
.ab-timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  position: relative;
  padding: 28px 0;
}
.ab-timeline__item + .ab-timeline__item { border-top: 1px solid var(--hairline); }
@media (max-width: 720px) {
  .ab-timeline__item { grid-template-columns: 50px 1fr; gap: 16px; }
}
.ab-timeline__year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding-top: 6px;
  position: relative;
}
.ab-timeline__year::after {
  content: '';
  position: absolute;
  right: -32px;
  top: 14px;
  width: 12px; height: 12px;
  background: var(--paper);
  border: 2px solid var(--up2-yellow-deep);
  border-radius: 50%;
  z-index: 2;
}
@media (max-width: 720px) {
  .ab-timeline__year::after { right: -16px; width: 10px; height: 10px; }
}
.ab-timeline__item.is-highlight .ab-timeline__year::after {
  background: var(--up2-yellow);
  border-color: var(--up2-yellow);
  box-shadow: 0 0 0 4px var(--up2-yellow-soft);
}
.ab-timeline__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.ab-timeline__body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.ab-timeline__body strong { color: var(--ink); font-weight: 600; }
.ab-timeline__body em { color: var(--ink-2); }
.ab-timeline__item.is-highlight .ab-timeline__body h3 { color: var(--up2-yellow-deep); }

/* =========================================================
   LEARNING grid (4 cards)
   ========================================================= */
.ab-learning__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) { .ab-learning__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ab-learning__grid { grid-template-columns: 1fr; } }
.ab-learning__item {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 26px 24px;
  transition: border-color .2s, transform .2s;
}
.ab-learning__item:hover { border-color: var(--up2-yellow); transform: translateY(-3px); }
.ab-learning__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--up2-yellow-soft);
  color: var(--up2-yellow-deep);
  border-radius: 10px;
  margin-bottom: 18px;
}
.ab-learning__icon svg { width: 22px; height: 22px; }
.ab-learning__item h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.ab-learning__item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* =========================================================
   SYSTEM section (dark)
   ========================================================= */
.ab-system__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.ab-system__quote {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 4.8vw, 70px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
  margin: 0 auto 32px;
  max-width: 16ch;
  text-wrap: balance;
}
.ab-system__quote .ammo { position: relative; display: inline-block; }
.ab-system__quote .ammo::after {
  content: '';
  position: absolute;
  left: -3%; right: -3%; top: 50%;
  height: 6px;
  background: var(--up2-red);
  transform: translateY(-50%) rotate(-3deg);
  border-radius: 3px;
}
.ab-system__quote .y { color: var(--up2-yellow); }
.ab-system__lead {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--on-dark-muted);
  max-width: 64ch;
  margin: 0 auto 64px;
  text-align: center;
  text-wrap: pretty;
}
.ab-system__lead strong { color: var(--on-dark); font-weight: 500; }
.ab-rules {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .ab-rules { grid-template-columns: 1fr; } }

/* =========================================================
   Founder on light background (override the dark default)
   ========================================================= */
.founder__photo--light {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
}
.founder__photo--light .silhouette::after {
  color: rgba(15,15,15,0.06);
}
.founder__photo--light .founder__motto { color: var(--ink); }
.founder__photo--light .founder__placeholder-note { color: var(--ink-faint); }
.founder__bio--light h3 { color: var(--ink); }
.founder__bio--light h3 .y { color: var(--up2-yellow-deep); }
.founder__bio--light p { color: var(--ink-muted); }
.founder__bio--light p strong { color: var(--ink); }
.founder__bio--light .founder__skills { border-top-color: var(--hairline); }
.founder__bio--light .founder__skills h4 { color: var(--ink-muted); }
.founder__bio--light .founder__skills li { color: var(--ink-2); }
.founder__bio--light .founder__skills li::before { color: var(--up2-yellow-deep); }

/* =========================================================
   CTA closing
   ========================================================= */
.ab-cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .ab-cta__inner { grid-template-columns: 1fr; gap: 28px; } }
.ab-cta__copy h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 16px;
  text-wrap: balance;
}
.ab-cta__copy h2 .accent { color: var(--up2-yellow-deep); }
.ab-cta__copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 56ch;
}
.ab-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  justify-self: end;
}
@media (max-width: 880px) { .ab-cta__actions { align-items: flex-start; justify-self: start; } }
