:root {
  --ink: #172033;
  --muted: #5d687a;
  --line: #d8e1ea;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --teal: #0f766e;
  --green: #2f7d32;
  --purple: #6d28d9;
  --shadow: 0 16px 36px rgba(23, 32, 51, 0.12);
  --hero-image: url("route_tracker_home_ko.png");
}

html[lang="en"] {
  --hero-image: url("route_tracker_home_en.png");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  color: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.92;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.language-button {
  min-width: 42px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-button.is-active {
  color: var(--teal);
  background: #ffffff;
}

main {
  flex: 1;
}

.hero {
  min-height: 430px;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(13, 21, 34, 0.95) 0%, rgba(13, 21, 34, 0.84) 48%, rgba(13, 21, 34, 0.36) 100%),
    var(--hero-image);
  background-position: center right;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  padding: 124px 0 66px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #99f6e4;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

section {
  padding: 62px 0;
}

main > section:not(.hero):nth-child(odd) {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.document-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.document-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.document-card span {
  display: block;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

.document-card .card-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  margin-bottom: 16px;
  color: #ffffff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.card-label.secondary {
  background: var(--purple);
}

.point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.point-grid li {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
}

.point-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.32;
}

.point-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.support-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.support-link {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
}

.support-link strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.support-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer a {
  margin: 0 8px;
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

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

  .nav-right {
    justify-content: flex-start;
  }

  .hero {
    min-height: 480px;
    background-position: center right 28%;
    padding-top: 154px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .document-grid,
  .point-grid,
  .support-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .nav-right {
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(13, 21, 34, 0.95) 0%, rgba(13, 21, 34, 0.88) 52%, rgba(13, 21, 34, 0.64) 100%),
      var(--hero-image);
    background-position: center bottom;
    padding-top: 170px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  section {
    padding: 46px 0;
  }
}
