:root {
  --ink: #18212d;
  --ink-soft: #4a5563;
  --mist: #e8eef4;
  --paper: #f7f9fc;
  --line: #d5dde6;
  --sea: #2f6f6a;
  --sea-deep: #1f524e;
  --glow: #c9d7e4;
  --header-h: 72px;
  --font-display: "Cormorant Garamond", "Songti SC", "Noto Serif SC", serif;
  --font-body: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #dfe9f2 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 20%, #d4e4df 0%, transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 28%, #eef3f7 100%);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand small {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  font-weight: 400;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--mist) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

#site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
}

#site-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

#site-nav a:hover,
#site-nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
  background: color-mix(in srgb, #fff 70%, transparent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.nav-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 12% 18%, #cfe0ea 0%, transparent 58%),
    radial-gradient(760px 420px at 88% 12%, #c7ddd6 0%, transparent 52%),
    linear-gradient(165deg, #eef4f8 0%, #e3ece8 48%, #d9e4ec 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.28;
  mask-image: linear-gradient(180deg, #000 20%, transparent 88%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 0 clamp(20px, 4vw, 56px);
  padding: clamp(72px, 12vh, 140px) 0 clamp(56px, 9vh, 96px);
  animation: rise 0.9s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow-mark {
  width: 18px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--sea) 45%, var(--line));
  border-radius: 50%;
  position: relative;
}

.eyebrow-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--sea);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  color: var(--sea-deep);
}

.hero-desc {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--sea-deep);
  color: #f4faf8;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--sea);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--sea-deep);
  opacity: 0.92;
  border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  padding-bottom: 2px;
  transition: opacity 0.25s ease;
}

.text-link:hover,
.text-link:focus-visible {
  opacity: 1;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 12vh, 120px) 0;
}

.section-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.section-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section h2 span,
.contact-copy h2 span {
  color: var(--sea);
  font-style: italic;
}

.section-intro p,
.about-copy p,
.contact-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 300;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px 56px;
  margin-bottom: 56px;
}

.about-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 10px;
}

.about-copy .text-link {
  justify-self: start;
  color: var(--sea-deep);
  margin-top: 8px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principles li {
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.principles span {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #7d8b99;
}

.principles h3,
.service h3,
.steps h3,
.contact-aside h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.principles p,
.service p,
.steps p,
.contact-aside p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 300;
}

.service {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service-index {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: #8aa0b0;
}

.service-kicker {
  margin: 0 0 10px !important;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #7f93a3;
}

.service ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.service li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: color-mix(in srgb, #fff 55%, transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.steps li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.steps span {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #7f93a3;
}

.contact {
  padding-bottom: clamp(88px, 14vh, 140px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--sea-deep);
  border-bottom: 1px solid color-mix(in srgb, var(--sea) 35%, transparent);
}

.copy-email {
  padding: 0;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.copy-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 13px;
  color: var(--sea);
}

.contact-aside {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(160deg, #ffffffd9, #edf3f7cc),
    var(--paper);
}

.qr-button {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin: 18px 0;
  text-align: left;
}

.qr-button img {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  background: #fff;
}

.qr-button span {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(20px, 4vw, 56px) 48px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, #fff 50%, var(--mist));
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-brand p,
.footer-meta {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--ink);
}

dialog {
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid #fff;
  border-radius: 24px;
  background: #fbfcfe;
  color: var(--ink);
  box-shadow: 0 30px 80px #18212d33;
}

dialog::backdrop {
  background: #18212d66;
  backdrop-filter: blur(6px);
}

dialog .eyebrow {
  color: var(--ink-soft);
}

dialog h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
}

dialog p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

dialog img {
  width: 240px;
  height: 240px;
  margin: 0 auto 18px;
  border-radius: 18px;
}

dialog a {
  color: var(--sea-deep);
  font-size: 14px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-soft);
}

body.nav-open {
  overflow: hidden;
}

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

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

  .hero-copy {
    animation: none;
  }
}

@media (max-width: 900px) {
  .section-intro,
  .about-grid,
  .contact-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    z-index: 60;
  }

  #site-nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 88px 28px 40px;
    background: color-mix(in srgb, var(--mist) 94%, #fff);
  }

  body.nav-open #site-nav {
    display: flex;
  }

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

  .hero-copy {
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }
}
