@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --bg: #f5f6f8;
  --text: #0f172a;
  --muted: #4c5567;
  --brand: #1f6feb;
  --brand-soft: #d6e3ff;
  --card: #ffffff;
  --stroke: #e2e8f0;
  --success: #0fbc8a;
  --soon: #f97316;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  background: rgba(245, 246, 248, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10;
  border-bottom: 1px solid var(--stroke);
}

.logo {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.logo img {
  width: 220px;
  height: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.cta-outline {
  border: 1px solid var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-outline:hover {
  background: var(--text);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 4rem clamp(1.5rem, 4vw, 4rem);
  justify-items: start;
}

.hero-copy {
  max-width: 640px;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: 0.4rem 0 1.2rem;
}

.hero p {
  color: var(--muted);
  line-height: 1.5;
}

.hero-subtext {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta,
.cta-secondary {
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta {
  background: var(--brand);
  color: white;
  box-shadow: 0 10px 30px rgba(31, 111, 235, 0.25);
}

.cta-secondary {
  border: 1px solid var(--stroke);
  color: var(--text);
}

.formations {
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.formation-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formation-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.formation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.formation-card--soon {
  opacity: 0.85;
}

.card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-body h3 {
  margin: 0;
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chip {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.chip-live {
  background: rgba(15, 188, 138, 0.12);
  color: var(--success);
}

.chip-soon {
  background: rgba(249, 115, 22, 0.14);
  color: var(--soon);
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .site-nav,
  .cta-outline {
    display: none;
  }

  .site-header {
    justify-content: center;
  }
}
