:root {
  --ink: #11111a;
  --muted: #5f6674;
  --paper: #fffdf8;
  --card: #fffaf1;
  --line: #eadfcf;
  --accent: #cc4b1f;
  --accent-dark: #9f3815;
  --glow: #ffd3b7;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ea 0%, #fffdf8 38%, #fffaf0 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.page-bg {
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 22%, #ffe0bf 0%, transparent 45%),
    radial-gradient(circle at 84% 8%, #ffd3b7 0%, transparent 40%),
    radial-gradient(circle at 50% 95%, #ffeacc 0%, transparent 45%);
}

.topbar,
main,
.footer {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

.topbar {
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: min(60vw, 280px);
  height: auto;
  transform-origin: 50% 50%;
  animation: logoFloat 3.8s ease-in-out infinite;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: #fff7eb;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.hero {
  padding: 3.8rem 0 3rem;
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
}

h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  line-height: 0.95;
}

.lead {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 26px -14px #8a2100;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  color: var(--ink);
  background: #fff4df;
  border: 1px solid var(--line);
}

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

.stats article {
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ea 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.value {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  color: var(--accent-dark);
}

.label {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.section {
  padding: 1.2rem 0 2.2rem;
}

.section-head h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.55rem, 3.2vw, 2.4rem);
}

.cards {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 20px 30px -34px #c06f41;
}

.card h3 {
  font-size: 1.45rem;
}

.card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.process ol {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.process li {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  color: var(--muted);
}

.process li span {
  display: inline-block;
  min-width: 7.5rem;
  color: var(--ink);
  font-weight: 800;
}

.footer {
  margin: 2rem auto 3.2rem;
  background: #141116;
  color: #fff3e9;
  border-radius: 22px;
  padding: clamp(1.3rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.footer .eyebrow {
  color: var(--glow);
}

.footer h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.footer p {
  margin: 0.65rem 0 0;
}

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

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 2.1rem;
  }

  .stats,
  .cards {
    grid-template-columns: 1fr;
  }

  .process li span {
    display: block;
    margin-bottom: 0.35rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.08));
  }
  50% {
    transform: translateY(-2px) scale(1.01);
    filter: drop-shadow(0 12px 18px rgb(0 0 0 / 0.12));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo {
    animation: none;
  }
}
