:root {
  color-scheme: light dark;
  --navy: #071a36;
  --teal: #0aa994;
  --coral: #ff6542;
  --gold: #ffd56a;
  --paper: #fffaf3;
  --ink: #13253d;
  --muted: #607086;
  --line: rgba(19, 37, 61, 0.14);
  --card: rgba(255, 255, 255, 0.86);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 213, 106, 0.28), transparent 24rem),
    radial-gradient(circle at 8% 76%, rgba(10, 169, 148, 0.16), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
}

a { color: #08796d; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.13em; }

.site-header,
.site-footer,
main {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  border: 0.32rem solid var(--teal);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
}

.brand-mark::before {
  left: -0.38rem;
  bottom: -0.15rem;
  background: var(--coral);
  border-radius: 0.2rem;
}

.brand-mark::after {
  right: -0.28rem;
  top: -0.24rem;
  background: var(--gold);
  border-radius: 50%;
}

nav { display: flex; flex-wrap: wrap; gap: 0.9rem; }
nav a { color: var(--muted); font-size: 0.92rem; font-weight: 650; }

.hero {
  min-height: 68vh;
  display: grid;
  align-content: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #08796d;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

h1, h2, h3 { line-height: 1.3; letter-spacing: -0.025em; }
h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 5.8rem); max-width: 10ch; }
h2 { margin-top: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { margin: 2rem 0 0.5rem; font-size: 1.18rem; }

.lead {
  max-width: 42rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.5vw, 1.32rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 720;
  text-decoration: none;
}
.button.secondary { background: var(--card); color: var(--ink); }

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

.feature,
.document {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--card);
  box-shadow: 0 1rem 3rem rgba(7, 26, 54, 0.07);
}

.feature { padding: 1.35rem; }
.feature p { margin-bottom: 0; color: var(--muted); }

.document {
  max-width: 50rem;
  margin: 3rem auto 5rem;
  padding: clamp(1.35rem, 5vw, 3.4rem);
}
.document h1 { max-width: none; font-size: clamp(2rem, 6vw, 3.5rem); }
.meta { color: var(--muted); font-size: 0.92rem; }
.document section { padding-top: 1rem; }
.document li + li { margin-top: 0.55rem; }

.notice {
  margin-block: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 0.32rem solid var(--teal);
  border-radius: 0.45rem;
  background: rgba(10, 169, 148, 0.09);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 46rem) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #071326;
    --ink: #f5f7fb;
    --muted: #b6c1d0;
    --line: rgba(255, 255, 255, 0.15);
    --card: rgba(18, 38, 65, 0.86);
  }
  body {
    background:
      radial-gradient(circle at 88% 8%, rgba(255, 213, 106, 0.15), transparent 24rem),
      radial-gradient(circle at 8% 76%, rgba(10, 169, 148, 0.15), transparent 28rem),
      var(--paper);
  }
  a, .eyebrow { color: #66dccd; }
  .button { background: #ecf3ff; color: #071a36; }
  .button.secondary { background: var(--card); color: var(--ink); }
}
