:root {
  color-scheme: light;
  --navy-950: #101a35;
  --navy-800: #22366f;
  --navy-650: #36518d;
  --coral-600: #b8452e;
  --coral-500: #d85d43;
  --cream-50: #fffaf2;
  --cream-100: #f8f0e4;
  --cream-200: #ecdfcd;
  --ink: #18213a;
  --muted: #667086;
  --line: rgba(34, 54, 111, 0.14);
  --card: rgba(255, 252, 246, 0.84);
  --shadow: 0 24px 64px rgba(39, 42, 57, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(216, 93, 67, 0.18), transparent 28rem),
    radial-gradient(circle at 4% 82%, rgba(54, 81, 141, 0.14), transparent 32rem),
    linear-gradient(145deg, var(--cream-50), var(--cream-100));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(rgba(184, 69, 46, 0.2) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: var(--navy-800);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--coral-600);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  color: white;
  background: var(--navy-950);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-950);
  font-size: 1.05rem;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

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

.language-link {
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: clamp(4rem, 10vw, 8rem) 0 5rem;
}

.eyebrow,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--coral-600);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.status-pill::before {
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  background: var(--coral-500);
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem rgba(216, 93, 67, 0.12);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy-950);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.3rem;
  font-size: clamp(3rem, 8vw, 6.25rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 42rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 25rem;
  padding: 2rem;
  color: white;
  background:
    radial-gradient(circle at 90% 4%, rgba(255, 118, 87, 0.4), transparent 14rem),
    linear-gradient(145deg, #101a35, #22366f 58%, #7b3328);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 22rem;
  height: 22rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.035), 0 0 0 8rem rgba(255, 255, 255, 0.02);
}

.hero-mark {
  width: 5.5rem;
  height: 5.5rem;
  padding: 0.6rem;
  background: #fff9ef;
  border-radius: 1.4rem;
}

.match-preview {
  position: relative;
  z-index: 1;
  margin-top: 4.5rem;
}

.match-preview small {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match-preview strong {
  display: block;
  margin: 0.8rem 0 0.3rem;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.button-primary {
  color: white;
  background: var(--navy-800);
  box-shadow: 0 10px 24px rgba(34, 54, 111, 0.2);
}

.button-primary:hover {
  color: white;
  background: var(--navy-950);
}

.button-secondary {
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
}

.section {
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading p,
.feature-card p,
.document-meta,
.support-card p {
  color: var(--muted);
}

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

.feature-card,
.support-card,
.document-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(53, 48, 43, 0.08);
  backdrop-filter: blur(16px);
}

.feature-card,
.support-card {
  padding: 1.5rem;
  border-radius: 1.4rem;
}

.feature-index {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.4rem;
  color: var(--coral-600);
  background: rgba(216, 93, 67, 0.1);
  border-radius: 0.8rem;
  place-items: center;
  font-weight: 800;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 46rem);
  align-items: start;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 0 6rem;
}

.document-aside {
  position: sticky;
  top: 1.5rem;
}

.document-aside nav {
  display: grid;
  gap: 0.65rem;
}

.document-aside a {
  text-decoration: none;
}

.document-card {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 1.75rem;
}

.document-card h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.document-card h2 {
  margin-top: 3rem;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.document-card li + li {
  margin-top: 0.5rem;
}

.notice {
  padding: 1rem 1.1rem;
  color: #6f3124;
  background: rgba(216, 93, 67, 0.1);
  border: 1px solid rgba(184, 69, 46, 0.15);
  border-radius: 1rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  font-size: 0.9rem;
}

.footer-note {
  max-width: 32rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .hero,
  .document-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .feature-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .document-aside {
    position: static;
  }

  .document-aside nav {
    display: flex;
    flex-wrap: wrap;
  }
}

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

  .nav-links > a:not(.language-link) {
    display: none;
  }

  .hero-card {
    min-height: 21rem;
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

