/* ==========================================================================
   AgileRoad — site.css
   Hand-written, no build step, no external fonts or CDNs.
   Structure: tokens → base → utilities → header → hero → sections →
              footer → product pages → responsive
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --paper: #f7f5f0;
  --paper-2: #efece3;
  --surface: #fffefb;
  --ink: #15171a;
  --ink-soft: #2f3237;
  --muted: #6b6e74;
  --line: #e2ddd3;
  --line-strong: #cec7b9;

  --accent: #1c5f4f;
  --accent-dark: #14493d;
  --accent-soft: #e3efe9;

  --warm: #b8572f;
  --warm-soft: #f5e6dd;
  --slate: #3d5580;
  --slate-soft: #e6eaf3;

  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;

  --max: 1120px;
  --gutter: 28px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC",
    "Noto Serif SC", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  font-weight: 550;
  line-height: 1.2;
  margin: 0;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h3 {
  font-size: 19px;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- utilities ---------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

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

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

.skip-link:focus {
  left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.actions.center {
  justify-content: center;
}

.muted {
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--accent);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn-light {
  background: #fff;
  color: var(--accent-dark);
}

.btn-light:hover {
  background: var(--paper);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-left: 2px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

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

.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--ink);
}

.nav .nav-external {
  color: var(--muted);
}

.nav .lang-switch {
  margin-left: 6px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav .lang-switch:hover {
  border-color: var(--ink);
  background: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-bar {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-bar:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-bar:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 20px 0 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  max-width: 38ch;
  margin: 0;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--muted);
}

.hero-art {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}

.hero-art img {
  width: 100%;
  height: auto;
}

.hero-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-caption .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- sections ---------- */
.section {
  padding: clamp(60px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.section-tight {
  padding: clamp(48px, 6vw, 72px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin-top: 12px;
}

.section-head > p {
  max-width: 36ch;
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- product cards ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--card-accent, transparent);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -32px rgba(21, 23, 26, 0.35);
}

.card:hover::before {
  opacity: 1;
}

.card-mystock {
  --card-accent: var(--warm);
}

.card-gopress {
  --card-accent: var(--accent);
}

.card-trip {
  --card-accent: var(--slate);
}

.card-next {
  border-style: dashed;
  background: transparent;
}

.card-next::before {
  display: none;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-mark {
  width: 48px;
  height: 48px;
}

.card h3 {
  margin: 22px 0 2px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.card-en {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-desc {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 550;
  color: var(--ink);
  transition: color 0.15s var(--ease);
}

.link-arrow span {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow:hover span {
  transform: translateX(3px);
}

.link-quiet {
  color: var(--muted);
}

.link-quiet:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-soft {
  background: var(--paper-2);
  color: var(--muted);
}

/* ---------- service cards ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -32px rgba(21, 23, 26, 0.35);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.service-card h3 {
  margin: 14px 0 4px;
  font-size: clamp(21px, 2.1vw, 26px);
  letter-spacing: -0.012em;
}

.service-card .card-en {
  margin-bottom: 16px;
}

.service-card > p:not(.card-en) {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.service-card .chips {
  margin-top: 22px;
}

.service-card .chips li {
  padding: 5px 10px;
  font-size: 12px;
}

.service-card .link-arrow {
  margin-top: 24px;
  font-size: 14px;
}

/* ---------- dark band (about) ---------- */
.band {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border-radius: calc(var(--radius-lg) + 8px);
  background: var(--ink);
  color: #efede6;
}

.band::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 95, 79, 0.55), transparent 66%);
  pointer-events: none;
}

.band-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
}

.band .eyebrow {
  color: #9fc7b9;
}

.band h2 {
  margin: 14px 0 20px;
  color: #fffdf7;
}

.band p {
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.85;
  color: #b3b1a9;
}

.band .band-lead {
  font-size: 17px;
  color: #dedbd2;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}

.band .chips {
  margin-top: 26px;
}

.band .chips li {
  border-color: rgba(255, 255, 255, 0.16);
  color: #c9c6bd;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.principles li:first-child {
  border-top: 0;
  padding-top: 4px;
}

.principles .num {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8fbcae;
}

.principles h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  color: #fffdf7;
}

.principles p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #a8a69f;
}

/* ---------- blog strip ---------- */
.blog-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.blog-band h2 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.blog-band p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- contact ---------- */
.contact {
  text-align: center;
}

.contact .eyebrow {
  justify-content: center;
}

.contact h2 {
  margin: 14px 0 10px;
}

.contact-text {
  margin: 0;
  color: var(--muted);
}

.contact .email {
  display: inline-block;
  margin: 20px 0 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: -0.015em;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.contact .email:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1.7fr;
  gap: 48px;
}

.footer-brand p {
  max-width: 30ch;
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-cols h4 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-cols a {
  display: block;
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- product detail pages ---------- */
.product-hero {
  padding: clamp(44px, 6vw, 72px) 0 clamp(44px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--muted);
}

.back-link:hover {
  color: var(--ink);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.product-hero h1 {
  margin: 14px 0 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 76px);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.product-tagline {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.3;
  color: var(--accent);
}

.product-hero .lede {
  max-width: 42ch;
  font-size: 16.5px;
}

.product-art {
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--tint, var(--paper-2));
}

.product-art img {
  width: clamp(96px, 12vw, 132px);
  height: auto;
}

.tint-warm {
  --tint: var(--warm-soft);
}

.tint-green {
  --tint: var(--accent-soft);
}

.tint-slate {
  --tint: var(--slate-soft);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.feature {
  padding: 28px 26px;
  background: var(--surface);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.feature h3 {
  margin: 14px 0 8px;
  font-size: 17.5px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.feature ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.feature ul li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.feature ul li:last-child {
  margin-bottom: 0;
}

.feature ul li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.split h2 {
  font-size: clamp(24px, 2.8vw, 32px);
}

.split p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.note {
  margin-top: 20px !important;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: var(--paper-2);
  font-size: 13.5px !important;
  line-height: 1.75 !important;
  color: var(--muted);
}

.timeline {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.timeline li:first-child {
  padding-top: 4px;
  border-top: 0;
}

.timeline .num {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.timeline h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.timeline p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.cta-section {
  padding: 0 0 clamp(64px, 8vw, 96px);
  border-top: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #f4fbf8;
}

.cta-band .eyebrow {
  color: #b7ddd1;
}

.cta-band h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(24px, 3.2vw, 36px);
}

.cta-band .actions {
  margin-top: 0;
  flex-shrink: 0;
}

/* ---------- prose (about page) ---------- */
.prose {
  max-width: 68ch;
}

.prose .lead {
  margin: 0 0 1.3em;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.8;
  color: var(--ink);
}

.prose p {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.prose h2 {
  margin: 44px 0 16px;
  font-size: clamp(24px, 2.8vw, 32px);
}

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

.pull-quote {
  margin: 36px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.5;
  color: var(--ink);
}

.prose ul:not(.chips) {
  margin: 0 0 1.4em;
  padding-left: 1.15em;
}

.prose ul:not(.chips) > li {
  margin-bottom: 0.5em;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 排除 .btn：按钮有自己的配色，不能被正文链接样式覆盖成「同色不可见」。 */
.prose a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:not(.btn):hover {
  color: var(--accent-dark);
}

.email-lg {
  display: inline-block;
  margin: 22px 0 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: -0.015em;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.email-lg:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 404 ---------- */
/* 404 正文很短：让 main 撑满视口，页脚才能落在底部，而不是悬在半空。 */
.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-404 main {
  display: flex;
  flex: 1 0 auto;
}

.notfound {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 62vh;
  padding: 80px 0;
  text-align: center;
}

.notfound .code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.notfound h1 {
  margin: 16px 0 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -0.02em;
}

.notfound p {
  color: var(--muted);
}

.notfound .actions {
  justify-content: center;
  margin-top: 26px;
}

/* ---------- reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid,
  .product-hero-grid,
  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 560px;
  }

  .product-art {
    justify-self: start;
    padding: 40px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-head > p {
    max-width: 52ch;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 24px 40px -30px rgba(21, 23, 26, 0.45);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .nav .lang-switch {
    margin: 6px 0 0;
    text-align: center;
  }

  body.nav-open {
    overflow: hidden;
  }

  .header-inner {
    height: 64px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  .products,
  .services,
  .feature-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .products,
  .services {
    gap: 16px;
  }

  .card,
  .service-card {
    padding: 24px 22px 22px;
  }

  .blog-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand-sub {
    display: none;
  }

  .hero-caption {
    font-size: 10px;
  }
}
