:root {
  --color-primary: #082642;
  --color-primary-hover: #041a2d;
  --color-accent: #c89b4a;
  --color-accent-2: #2a8c95;
  --color-background: #f5f7fa;
  --color-surface: #ffffff;
  --color-text: #17212b;
  --color-secondary: #5d6a76;
  --color-border: rgba(8, 38, 66, 0.14);
  --color-error: #b42318;
  --color-success: #23805f;
  --shadow-soft: 0 18px 42px rgba(8, 38, 66, 0.12);
  --shadow-subtle: 0 10px 24px rgba(8, 38, 66, 0.09);
  --container: 1200px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", Arial, Helvetica, sans-serif;
}

body {
  color: var(--color-text);
  background:
    radial-gradient(circle at 8% 8%, rgba(42, 140, 149, 0.13), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, var(--color-background) 58%, #eef1f5 100%);
  font-family: var(--sans);
  line-height: 1.6;
}

.page-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 18px 0;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(245, 247, 250, 0.9);
  box-shadow: 0 8px 28px rgba(8, 38, 66, 0.08);
  backdrop-filter: blur(18px);
}

.home-page .site-header:not(.is-scrolled) .brand,
.home-page .site-header:not(.is-scrolled) .nav-link {
  color: #fff;
}

.home-page .site-header:not(.is-scrolled) .brand-mark {
  background: rgba(8, 38, 66, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--color-primary);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button:focus-visible,
.control:focus-visible,
.option-row:focus-within {
  outline: 3px solid rgba(197, 165, 106, 0.4);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 14px 28px rgba(24, 53, 47, 0.18);
}

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

.button-outline {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(24, 53, 47, 0.22);
}

.button-outline:hover {
  background: #fff;
  border-color: var(--color-primary);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.body-copy {
  color: var(--color-secondary);
  font-size: 17px;
  line-height: 1.8;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--color-primary);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.footer-inner a {
  color: #fff;
}

.notice-stack {
  position: fixed;
  right: 20px;
  top: 88px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.notice {
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: opacity 200ms ease, transform 200ms ease;
}

.notice-error {
  background: var(--color-error);
}

.notice-success {
  background: var(--color-success);
}

.notice.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .site-header {
    padding: 12px 0;
  }

  .brand {
    max-width: 190px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .nav-link {
    display: none;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 14px 18px;
  }

  .nav-actions .button {
    width: auto;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 11px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
