:root {
  --navy: #1c3564;
  --navy-deep: #0b1a36;
  --teal: #21b7cb;
  --teal-deep: #03707d;
  --purple: #7c5297;
  --orange: #d35420;
  --ink: #091324;
  --muted: #5a6a85;
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.96);
  --ready: #0f8d9d;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(33, 183, 203, 0.28), transparent 55%),
    radial-gradient(820px 420px at 92% 0%, rgba(124, 82, 151, 0.22), transparent 50%),
    radial-gradient(700px 360px at 70% 100%, rgba(211, 84, 32, 0.14), transparent 55%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 42%, #15284d 100%);
  min-height: 100vh;
}

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

.shell {
  width: min(1040px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.25rem 0 3.5rem;
}

.hero {
  display: grid;
  gap: 1.15rem;
  padding: 1.5rem 0 2rem;
  color: #f4f7fb;
  animation: rise 0.7s ease-out both;
}

.brand-mark {
  width: min(320px, 72vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

.hero h1 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16ch;
}

.hero p {
  margin: 0;
  max-width: 48ch;
  color: rgba(244, 247, 251, 0.82);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin-top: 0.15rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 19, 36, 0.28);
  color: rgba(244, 247, 251, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(33, 183, 203, 0.25);
}

.section-label {
  margin: 0 0 0.85rem;
  color: rgba(244, 247, 251, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lang-grid--single {
  grid-template-columns: minmax(0, 380px);
  justify-content: start;
}

@media (max-width: 860px) {
  .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-grid--single { grid-template-columns: minmax(0, 380px); }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 1.5rem, 1040px); }
  .lang-grid,
  .lang-grid--single { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

.lang-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(5, 12, 28, 0.28);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.65s ease-out both;
}

.lang-card:nth-child(1) { animation-delay: 0.05s; }
.lang-card:nth-child(2) { animation-delay: 0.1s; }
.lang-card:nth-child(3) { animation-delay: 0.15s; }
.lang-card:nth-child(4) { animation-delay: 0.2s; }
.lang-card:nth-child(5) { animation-delay: 0.25s; }
.lang-card:nth-child(6) { animation-delay: 0.3s; }

.lang-card:hover,
.lang-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(5, 12, 28, 0.36);
  outline: none;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #132849 center/cover no-repeat;
  overflow: hidden;
}

.thumb img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.lang-card:hover .thumb img.cover {
  transform: scale(1.06);
}

.thumb-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(9, 19, 36, 0.55) 100%),
    linear-gradient(120deg, rgba(33, 183, 203, 0.18), transparent 45%);
  pointer-events: none;
}

.figures {
  position: absolute;
  right: 0.6rem;
  bottom: 0.45rem;
  width: 38%;
  max-width: 120px;
  opacity: 0.92;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.card-body {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.05rem 1.1rem;
}

.lang-code {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-name {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.lang-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ready);
  background: rgba(33, 183, 203, 0.14);
}

.cta {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}

.cta span { color: var(--teal-deep); }

.footer {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: rgba(244, 247, 251, 0.68);
  font-size: 0.88rem;
  line-height: 1.5;
  animation: rise 0.7s ease-out 0.2s both;
}

.footer a {
  color: #9fe4ef;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
