:root {
  --bg: #f4f2ed;
  --paper: #fffdf8;
  --ink: #1f2b2a;
  --muted: #5a6867;
  --line: #d5d3cc;
  --accent: #8a4b2c;
  --accent-soft: #d9bda0;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, #ece6dc 0, rgba(236, 230, 220, 0) 35%),
    radial-gradient(circle at 100% 20%, #ebe1d4 0, rgba(235, 225, 212, 0) 28%),
    var(--bg);
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: "Noto Serif SC", "Times New Roman", serif;
  line-height: 1.3;
  margin: 0;
}

.wide-shell {
  width: min(1400px, 97vw);
  margin: 0 auto;
}

.narrow-shell {
  width: min(920px, 90vw);
  margin: 0 auto;
}

.footer-shell {
  width: min(1400px, 97vw);
  margin: 0 auto;
}

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background-image: url("assets/images/home/header-banner.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "brand"
    "nav";
  align-items: center;
  gap: 30px;
  padding: 112px 0 34px;
  min-height: 300px;
}

.brand-block {
  grid-area: brand;
  text-align: center;
}

.brand-tag {
  margin: 8px 0 0;
  letter-spacing: 0.03em;
  font-size: clamp(16px, 1.45vw, 22px);
  color: rgba(220, 224, 230, 0.92);
}

#groupName {
  font-size: clamp(28px, 3.2vw, 44px);
  color: #ffffff;
}

.molecule-icon {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 10px;
  animation: molecule-float 3.2s ease-in-out infinite;
}

.molecule-icon svg {
  width: clamp(74px, 8vw, 110px);
  height: auto;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 2;
  fill: rgba(202, 223, 255, 0.92);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
}

.top-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
}

.top-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 160ms ease;
}

.top-nav a:hover,
.top-nav a.active {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px) saturate(130%);
}

.top-nav a.nav-disabled,
.subpage-nav a.nav-disabled {
  pointer-events: none;
  opacity: 0.58;
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-link.nav-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.language-switcher {
  position: absolute;
  top: 24px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

#languageSelect {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  padding: 6px 10px;
  font: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-bottom: none;
}

.hero-inner {
  width: min(920px, 90vw);
  margin: 0 auto;
  padding: 72px 0 78px;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

#heroTitle {
  font-size: clamp(28px, 4.4vw, 58px);
  margin-top: 0;
  max-width: 22ch;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-slide-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 100ms forwards;
}

.hero-desc {
  max-width: 68ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0;
  transform: translateY(14px);
  animation: hero-slide-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 220ms forwards;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(138, 75, 44, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 75, 44, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to top, transparent 0, black 52%);
}

.feature-section {
  background: #fafafe;
}

.feature-list {
  padding: 40px 0 62px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  background: transparent;
}

.feature-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transform: translateY(10px);
  opacity: 0;
  animation: rise-in 520ms ease forwards;
}

.feature-item:nth-child(2) { animation-delay: 90ms; }
.feature-item:nth-child(3) { animation-delay: 180ms; }

.feature-item-reverse .feature-media {
  grid-column: 2;
}

.feature-item-reverse .feature-content {
  grid-column: 1;
}

.feature-item .feature-media {
  grid-column: 1;
}

.feature-item .feature-content {
  grid-column: 2;
}

.feature-media {
  height: 220px;
  border-radius: 12px;
  border: 1px solid #d7e4f0;
  background: linear-gradient(135deg, #f7fbff, #eef5fc);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
}

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

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-content h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  margin: 0;
  color: #1f2f44;
}

.feature-content p {
  margin: 12px 0 0;
  color: #4a5b6d;
}

.feature-link {
  margin-top: 16px;
  align-self: flex-start;
  text-decoration: none;
  color: #123a63;
  background: #edf5ff;
  border: 1px solid #c9dcf0;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.feature-link:hover {
  background: #dfeeff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(121, 156, 191, 0.25);
}

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background-image: url("assets/images/home/footer-banner.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.95);
}

.footer-text {
  text-align: left;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.96);
}

.footer-icon-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  transition: transform 140ms ease, background 140ms ease;
}

.footer-contact-link:hover .footer-icon-link {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.34);
}

.footer-link-text {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.footer-icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-icon-link text {
  fill: #000000;
  font-size: 8px;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
}

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

@keyframes molecule-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes hero-slide-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 560ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms),
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #heroTitle,
  .hero-desc,
  .js-reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

@media (max-width: 1000px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav";
    gap: 12px;
    min-height: 270px;
  }

  .top-nav {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .feature-list {
    padding: 32px 0 48px;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-item .feature-media,
  .feature-item .feature-content,
  .feature-item-reverse .feature-media,
  .feature-item-reverse .feature-content {
    grid-column: 1;
  }

  .feature-media {
    height: 180px;
  }

  .hero-inner {
    padding: 48px 0;
  }

  .footer-shell {
    width: min(800px, 90vw);
  }

  .footer-links {
    margin-left: 0;
  }

  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav";
    padding: 80px 0 24px;
    min-height: 220px;
  }

  .language-switcher {
    top: 16px;
    right: 0;
  }
}