:root {
  color-scheme: dark;
  --bg: #090b0f;
  --panel: rgba(15, 18, 25, 0.82);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f7f4ec;
  --muted: #aab1bd;
  --accent: #69d2c4;
  --accent-strong: #f6c85f;
  --ink: #111419;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 88px clamp(22px, 6vw, 96px) 72px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.96) 0%, rgba(9, 11, 15, 0.74) 44%, rgba(9, 11, 15, 0.25) 100%),
    url("assets/fabos-hero.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.eyebrow,
.module-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 0;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.subtitle {
  margin: 28px 0 0;
  max-width: 680px;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  font-weight: 650;
  line-height: 1.12;
}

.tagline {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 34px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(246, 200, 95, 0.22);
}

.primary-action:focus-visible,
.module-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.modules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--panel-border);
  border-top: 1px solid var(--panel-border);
}

.module-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  background: var(--panel);
}

.module-card h2 {
  margin: 12px 0 0;
  font-size: 1.3rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.module-card p:not(.module-kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.module-card-active {
  background: rgba(20, 27, 33, 0.95);
}

.module-link,
.status {
  width: fit-content;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.module-link {
  background: var(--accent);
  color: var(--ink);
}

.status {
  border: 1px solid var(--panel-border);
  color: var(--muted);
}

@media (max-width: 1050px) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 68vh;
    padding: 70px 20px 56px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(9, 11, 15, 0.9) 0%, rgba(9, 11, 15, 0.62) 52%, rgba(9, 11, 15, 0.95) 100%),
      url("assets/fabos-hero.png") center / cover no-repeat;
  }

  .modules {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 220px;
  }
}
