:root {
  --bg: #ffffff;
  --bg-2: #f5f5f4;
  --panel: #eef6ff;
  --panel-2: #e9f3fd;
  --line: #cfdce8;
  --text: #1c1a17;
  --muted: #55606a;
  --faint: #5a6068;
  --accent: #2f6fb4;
  --accent-2: #1d4e79;
  --steel: #2f6fb4;
  --navy: #14304f;
  --navy-2: #1d4e79;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.85) 44%, rgba(255, 255, 255, 0.45) 78%, rgba(255, 255, 255, 0.58) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 30%);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1.4rem 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.brand {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.hero-content {
  width: min(100% - 2.5rem, var(--max));
  margin: auto auto 0;
  padding: 4rem 0 2.6rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.9rem, 8.5vw, 6.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 34rem;
  margin: 1.6rem 0 0;
  color: #3a4450;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.65;
}

.hero-copy em {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-2);
}

.button-ghost {
  border-color: rgba(20, 48, 79, 0.40);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(20, 48, 79, 0.72);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.hero-facts div {
  padding-right: 1rem;
}

.hero-facts strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero-facts span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section-heading {
  margin-bottom: 2.4rem;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.language-card {
  display: flex;
  flex-direction: column;
  min-height: 15.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}

.language-code {
  margin: 0;
  color: var(--steel);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.language-card h3 {
  margin: 0.6rem 0 1.4rem;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.15;
}

.card-links {
  display: grid;
  gap: 0.7rem;
  margin-top: auto;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.card-links a {
  display: block;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.card-links a::after {
  content: " ↗";
  color: var(--accent-2);
}

.card-links a:hover,
.card-links a:focus-visible {
  border-color: rgba(47, 111, 180, 0.55);
  background: #ffffff;
  transform: translateY(-1px);
}

.about {
  border-top: 1px solid var(--line);
}

.about-copy {
  max-width: 46rem;
  margin: 0;
  color: #3a4450;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.65;
}

.about-copy a {
  color: var(--text);
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.about-copy a:hover,
.about-copy a:focus-visible {
  color: var(--accent-2);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid #14304f;
  background: linear-gradient(135deg, #14304f 0%, #1d4e79 100%);
}

.site-footer a { color: #bcd8f5; text-decoration: underline; }
.site-footer a:hover { color: #ffffff; }

.site-footer p {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1.8rem 0;
  color: #ffffff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .language-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .language-card {
    min-height: 13.5rem;
  }
}

@media (max-width: 620px) {
  .site-nav,
  .hero-content,
  .hero-facts,
  .section,
  .site-footer p {
    width: min(100% - 2rem, var(--max));
  }

  .hero {
    min-height: 94svh;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-content {
    padding-top: 5.5rem;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .language-card {
    min-height: 0;
  }

  .hero-actions .button {
    width: 100%;
  }

  .nav-links {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .card-links a {
    transition: none;
  }
}
