:root {
  --ink: #13202c;
  --ink-soft: #3a4a5a;
  --muted: #6b7c8c;
  --paper: #eef2f5;
  --surface: #f8fafb;
  --line: rgba(19, 32, 44, 0.1);
  --accent: #1a6b5c;
  --accent-deep: #0f4a40;
  --accent-soft: rgba(26, 107, 92, 0.12);
  --wave: #c5d4de;
  --max: 1080px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1.25rem 0;
}

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

.nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--surface);
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(248, 250, 251, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: #fff;
}

.site-nav--light .nav-brand {
  color: var(--ink);
}

.site-nav--light .nav-links a {
  color: var(--ink-soft);
}

.site-nav--light .nav-links a:hover {
  color: var(--accent);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--surface);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(26, 107, 92, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(197, 212, 222, 0.15), transparent 50%),
    linear-gradient(165deg, #0d1a24 0%, #163042 48%, #1a6b5c 100%);
}

.hero-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.hero-waves svg {
  position: absolute;
  width: 140%;
  height: auto;
  left: -10%;
}

.hero-waves .w1 {
  bottom: 8%;
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-waves .w2 {
  bottom: 0;
  opacity: 0.7;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.hero-waves .w3 {
  bottom: -4%;
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-6%);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 4.5rem;
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.15s;
}

.hero-title {
  margin: 0 0 0.85rem;
  max-width: 18em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: 0.02em;
  line-height: 1.45;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.35s;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 28em;
  color: rgba(248, 250, 251, 0.82);
  font-size: 1.05rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.5s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.65s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--surface);
  color: var(--ink);
}

.btn-primary:hover {
  background: #fff;
  color: var(--accent-deep);
}

.btn-ghost {
  border-color: rgba(248, 250, 251, 0.45);
  color: var(--surface);
  background: transparent;
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--surface);
}

.section-label {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.section-desc {
  margin: 0 0 2.25rem;
  max-width: 36em;
  color: var(--ink-soft);
}

.service-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list .num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.service-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.service-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.values {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.values h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.values p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.contact-block {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  gap: 0.2rem;
}

.contact-row dt {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-row dd {
  margin: 0;
  font-size: 1.05rem;
}

.contact-row a {
  text-decoration: none;
  color: inherit;
}

.contact-row a:hover {
  color: var(--accent);
}

/* ——— Legal pages ——— */
.page-head {
  padding: 6.5rem 0 2.5rem;
  background:
    linear-gradient(180deg, #dbe5ec 0%, var(--paper) 100%);
}

.page-head h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: 0.04em;
}

.page-head .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal {
  padding: 2rem 0 4.5rem;
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.icp {
  margin-top: 0.35rem;
}

.icp a {
  color: inherit;
  text-decoration: none;
}

.icp a:hover {
  color: var(--accent);
}
