/* =========================================================
   EA Hub — landing page styles
   Design tokens taken from Figma:
     Primary/500 (Main): #3330FF
     Neutral 100/200/300/700: #F3F4F6 / #E5E7EB / #D1D5DB / #374151
     Secondary Gray 800/900: #262626 / #171717
     Type: Open Sans (400/600/700) + Caveat
   ========================================================= */

:root {
  --c-bg: #171717;
  --c-surface: #262626;
  --c-primary: #3330FF;
  --c-primary-deep: #3432B0;
  --c-text: #ffffff;
  --c-muted: #d1d5db;
  --c-muted-2: #e5e7eb;
  --c-muted-3: #f3f4f6;
  --c-text-dark: #374151;
  --c-border: #e5e7eb;

  --shadow-sm: 0 2px 6px rgba(16, 24, 40, 0.06);
  --radius-sm: 4px;
  --radius-md: 8px;

  --container: 1200px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 32px;
  --gap-xl: 64px;

  --font-display: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Caveat", "Open Sans", cursive;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-display);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  line-height: 1.4;
}

img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }

/* ---------- Hero / page wrapper ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--c-bg);
  overflow: hidden;
  padding: 64px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
  align-items: center;
  z-index: 1;
}

/* ---------- Top row: logo + headline ---------- */
.top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  user-select: none;
}
.logo__img {
  display: block;
  width: 330px;
  height: auto;
}
.logo__hub {
  display: block;
  margin-top: -19px;
  margin-left: 78px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: #fff;
}

/* Headline */
.headline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 590px;
}
.headline__eyebrow {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.25;
}
.headline__title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

/* ---------- Logo cloud ---------- */
.logos { width: 100%; }
.logos__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  filter: brightness(0.8);
}
.logos__row li {
  flex: 0 0 auto;
  opacity: 0.85;
  filter: grayscale(1) brightness(1.4) contrast(1.1);
  transition: opacity 200ms ease, filter 200ms ease, transform 200ms ease;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logos__row img {
  max-height: 56px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  display: block;
}
/* Per-logo tweaks so each brand reads at a similar visual weight */
.logos__row li:nth-child(1) img { max-height: 32px; }   /* FIFA wordmark */
.logos__row li:nth-child(2) img { max-height: 60px; }   /* Olympic rings */
.logos__row li:nth-child(3) img { max-height: 44px; }   /* UEFA */
.logos__row li:nth-child(4) img { max-height: 50px; }   /* BTC */
.logos__row li:nth-child(5) img { max-height: 50px; }   /* Orlen */
.logos__row li:nth-child(6) img { max-height: 64px; }   /* Das Post (tall) */
.logos__row li:nth-child(7) img { max-height: 44px; }   /* Santander */
.logos__row li:nth-child(8) img { max-height: 60px; }   /* AS Roma */

/* ---------- CTA cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  width: 100%;
}

.card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 32px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--c-surface);
  overflow: hidden;
}

.card--visit {
  /* background:
    url("../images/visit-card-bg.svg?v=20260514-3") center / cover no-repeat,
    var(--c-surface); */

  background-image: url("../images/visit-card-bg.svg");
  /* background-color: rgb(0 0 0 / 27%); */
  background-color: rgb(77 76 76);
  background-blend-mode: darken;
  background-size: cover;
}

.card--contact {
  background:
    radial-gradient(
      ellipse 110% 130% at 100% 50%,
      rgba(51, 48, 255, 0.15) 0%,
      rgba(19, 18, 70, 0.30) 40%,
      rgba(38, 38, 38, 0) 80%
    ),
    #262626;
}

.card__title {
  position: relative;
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.card--visit .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card--contact { gap: 48px; }

.card__links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.link-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.link-block__label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #fff;
}
.link-block__link {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--c-muted-3);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  transition: color 150ms ease;
  width: fit-content;
}
.link-block__link:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 18px;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  width: fit-content;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn--primary:hover { background: var(--c-primary-deep); border-color: var(--c-primary-deep); }

.btn--ghost {
  background: #fff;
  color: var(--c-text-dark);
  border-color: var(--c-border);
}
.btn--ghost:hover { background: var(--c-muted-3); }

.btn__icon { width: 20px; height: 20px; }

/* ---------- Team ---------- */
.team {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.team__title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.team__row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.member { flex: 0 0 173px; }

.member__photo {
  position: relative;
  width: 173px;
  height: 173px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-surface);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 9px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 68.5%, #000 100%);
}
.member__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #fff;
}
.member__role {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--c-muted-2);
}

/* "many more talents!" cluster */
.more { flex: 0 0 auto; }
.more__avatars { display: flex; align-items: center; }

.more__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-surface);
  border: 2px solid #fff;
  margin-right: -12px;
  display: block;
}
.more__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 6px 12px;
  background: var(--c-surface);
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}
.more__plus {
  width: 9px;
  height: 9px;
  filter: brightness(0) invert(1);
}
.more__brand {
  width: 22px;
  height: 11px;
  filter: brightness(0) invert(1);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 48px 20px; }
  .hero__inner { gap: 48px; }
  .top { gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .card__title { font-size: 32px; }
  .team__title { font-size: 32px; }
  .logos__row { gap: 24px; justify-content: center; }
  .logos__row img { height: 36px; }
  .logos__row li:nth-child(2) img,
  .logos__row li:nth-child(4) img,
  .logos__row li:nth-child(8) img { height: 44px; }
}

@media (max-width: 560px) {
  .headline__title { font-size: 28px; }
  .card { padding: 24px; min-height: auto; }
  .card__title { font-size: 26px; }
  .team__title { font-size: 26px; }
  .member, .member__photo { width: 140px; height: auto; flex-basis: 140px; }
  .member__photo { height: 140px; }
  .logo__img { width: 160px; }
  .logo__hub { font-size: 18px; margin-top: 2px; margin-left: 38px; }
}
