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

:root {
  --bg: #f4fbff;
  --bg-soft: #eaf7ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --accent: #ff8c42;
  --accent-2: #ffd166;
  --text: #183247;
  --muted: #4f7089;
  --line: rgba(106, 158, 196, 0.34);
  --shadow: 0 18px 42px rgba(42, 93, 131, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 88% 16%, rgba(255, 209, 102, 0.5), rgba(255, 209, 102, 0) 34%),
    linear-gradient(132deg, rgba(228, 246, 255, 0.94), rgba(255, 244, 214, 0.9)),
    url('./wallpaper.webp') center / cover no-repeat fixed;
  min-height: 100vh;
  padding-bottom: 96px;
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.1rem 2rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(246, 252, 255, 0.72);
  border-bottom: 1px solid rgba(106, 158, 196, 0.2);
}

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

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand strong {
  letter-spacing: 0.02em;
  font-size: 1rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.18rem;
}

.lang-switch button {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
}

.lang-switch button.active {
  color: #4b2600;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  font-weight: 700;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.6rem 0 1rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  text-align: center;
  padding: 0.58rem 0.4rem;
  font-size: 0.87rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: #3e2300;
  border-color: rgba(255, 140, 66, 0.65);
  background: rgba(255, 209, 102, 0.26);
}

.hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.2vw, 1.8rem);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(246, 252, 255, 0.9));
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.2rem;
  overflow: hidden;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.1;
}

.hero-text p {
  color: var(--muted);
  margin: 1rem 0 0;
  line-height: 1.55;
}

.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #225171;
  padding: 0.3rem 0.78rem;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.btn-main,
.btn-ghost {
  text-decoration: none;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-main {
  color: #4b2600;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  background: #edf8ff;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.section {
  margin-top: 1rem;
}

.section h2 {
  font-size: 1.2rem;
  margin: 0.2rem 0 0.8rem;
}

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

.card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeup 0.75s ease both;
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.card .body {
  padding: 0.85rem;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
}

.card p {
  color: var(--muted);
  margin: 0.6rem 0 0;
  line-height: 1.45;
  font-size: 0.92rem;
}

.footer-note {
  margin-top: 1rem;
  color: #5b7890;
  text-align: center;
  font-size: 0.82rem;
  white-space: pre-line;
}

.bottom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  z-index: 50;
}

.bottom-dock a {
  text-decoration: none;
  color: #51728b;
  text-align: center;
  padding: 0.55rem 0.25rem 0.6rem;
  font-size: 0.72rem;
}

.bottom-dock a.active {
  color: #4b2600;
  background: rgba(255, 209, 102, 0.3);
}

.bottom-dock i {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.16rem;
}

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

@media (max-width: 960px) {
  .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 90px;
  }

  .main-nav {
    display: none;
  }

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

  .hero-media {
    min-height: 210px;
  }
}
