:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --paper: #f5f5f3;
  --white: #ffffff;
  --text: #171717;
  --muted: #66707a;
  --line: rgba(23, 23, 23, 0.08);
  --line-strong: rgba(23, 23, 23, 0.14);
  --jade: #1bd629;
  --jade-dim: rgba(27, 214, 41, 0.14);
  --gold: #d6b25e;
  --header: 72px;
  --max: 1120px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

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

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

button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--jade);
  color: #062006;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header);
  padding: 0 28px;
  color: #fafafa;
  background: rgba(10, 10, 10, 0.86);
  border-bottom: 2px solid var(--jade);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-name span { color: var(--jade); }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.site-nav a {
  position: relative;
  color: rgba(250, 250, 250, 0.82);
  font-size: 15px;
}

.site-nav a[aria-current="page"] { color: var(--jade); }

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--jade);
}

.nav-cta {
  margin-left: auto;
  color: #fafafa;
  font-size: 15px;
}

.nav-cta span { color: var(--jade); margin-left: 4px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header));
  display: flex;
  align-items: flex-end;
  color: #fafafa;
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(27, 214, 41, 0.16), transparent 60%),
    radial-gradient(700px 380px at 10% 90%, rgba(214, 178, 94, 0.12), transparent 55%),
    var(--ink);
}

.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--jade);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 560px) auto;
  gap: 32px;
  align-items: end;
  margin-top: 28px;
}

.hero p {
  margin: 0;
  max-width: 560px;
  color: rgba(250, 250, 250, 0.72);
  font-size: 17px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--jade); color: #062006; font-weight: 600; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }

.section { padding: 88px 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: #fafafa; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.section-head h2,
.block-title {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p,
.lead {
  margin: 0;
  color: var(--muted);
}

.case-intro { margin-top: 16px; max-width: 640px; }
.cases-list { padding-top: 28px; }

.section-ink .section-head p { color: rgba(250, 250, 250, 0.62); }

.kicker {
  margin: 0;
  color: #98a2ab;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.section-ink .kicker { color: rgba(27, 214, 41, 0.8); }

.biz-grid,
.card-grid,
.case-grid {
  display: grid;
  gap: 16px;
}

.biz-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(4, 1fr); }
.case-grid { grid-template-columns: 1fr 1fr; }

.biz,
.value,
.case-card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.biz, .value { padding: 28px; }
.biz { min-height: 240px; display: flex; flex-direction: column; }
.biz .num, .step .num {
  color: var(--jade);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.biz h3, .value h3, .case-card h3 { margin: 14px 0 8px; font-size: 22px; }
.value h3 { margin-top: 0; }
.biz p, .value p, .case-card p { margin: 0; color: var(--muted); }
.biz .more { margin-top: auto; padding-top: 24px; color: #111; font-weight: 600; }
.biz .more span { color: var(--jade); }

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

.step {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.step h3 { margin: 10px 0 8px; font-size: 20px; }
.step p { margin: 0; color: rgba(250, 250, 250, 0.62); }

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.tl-item {
  width: calc(50% - 36px);
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #161616;
  position: relative;
}

.tl-item:nth-child(odd) { justify-self: start; }
.tl-item:nth-child(even) { justify-self: end; }

.tl-item::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 6px rgba(27, 214, 41, 0.15);
}

.tl-item:nth-child(odd)::after { right: -42px; }
.tl-item:nth-child(even)::after { left: -42px; }

.tl-item .num { color: var(--jade); font-size: 13px; letter-spacing: 0.14em; }
.tl-item h3 { margin: 6px 0; }
.tl-item p { margin: 0; color: rgba(250, 250, 250, 0.62); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

.filters button {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
}

.filters button.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.case-card { overflow: hidden; }
.case-card a { display: block; color: inherit; }
.case-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.case-cover::before,
.case-cover::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.case-cover::before {
  width: 160px;
  height: 160px;
  right: -36px;
  top: -48px;
  border-radius: 50%;
}
.case-cover::after {
  width: 92px;
  height: 92px;
  left: 22px;
  bottom: -28px;
  transform: rotate(18deg);
}
.tone-jade { background: linear-gradient(145deg, #102416, #1bd629 140%); }
.tone-gold { background: linear-gradient(145deg, #2a2416, #d6b25e 150%); }
.tone-ink { background: linear-gradient(160deg, #1b1b1b, #3a3a3a 40%, #123018); }
.tone-mix { background: linear-gradient(135deg, #101410, #1a3a22 45%, #d6b25e); }
.case-body { padding: 22px 22px 26px; }
.case-kind { color: #12851a; font-size: 13px; letter-spacing: 0.08em; }
.case-card.is-hidden { display: none; }
.section-action { margin-top: 22px; }

.empty-note {
  display: none;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
}

.empty-note.is-on { display: block; }

.page-hero { padding: 72px 0 20px; }
.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.contact-side h2 { margin: 8px 0 12px; font-size: 36px; }
.contact-side p { color: var(--muted); }
.meta-list { list-style: none; padding: 0; margin: 28px 0 0; }
.meta-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.meta-list span { display: block; color: #98a2ab; font-size: 12px; letter-spacing: 0.12em; }

.panel { padding: 28px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field span { font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { min-height: 1.5em; margin: 12px 0 0; color: #12851a; }
.form-status.is-error { color: #b42318; }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
}

.cta-band h2 { margin: 0 0 8px; font-size: 32px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.68); }

.site-footer {
  background: #070807;
  color: rgba(250, 250, 250, 0.78);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
  padding-bottom: 36px;
}

.site-footer h2 { margin: 0 0 14px; color: #fff; font-size: 15px; }
.footer-grid > div > a { display: block; padding: 4px 0; }
.site-footer a { color: rgba(250, 250, 250, 0.72); }
.site-footer a:hover { color: var(--jade); }
.site-footer .brand { display: flex; color: #fafafa; }
.site-footer .brand-name span { color: var(--jade); }
.footer-brand p { max-width: 320px; }

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: rgba(250, 250, 250, 0.55);
  font-size: 14px;
}

.copyright p { margin: 0; }
.copyright a { display: inline; color: inherit; }
.copyright a:hover { color: var(--jade); }

:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
}

[id] { scroll-margin-top: 88px; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav, .nav-cta { display: none; }
  .site-header.is-open .site-nav,
  .site-header.is-open .nav-cta {
    display: flex;
  }
  .site-header.is-open {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 16px;
  }
  .site-header.is-open .site-nav {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
  }
  .site-header.is-open .nav-cta { order: 4; margin-left: 0; }
  .hero-foot,
  .section-head,
  .biz-grid,
  .card-grid,
  .case-grid,
  .steps,
  .contact-grid,
  .footer-grid,
  .form-row,
  .cta-band {
    grid-template-columns: 1fr;
    display: grid;
  }
  .cta-band { display: grid; }
  .timeline::before { left: 8px; }
  .tl-item,
  .tl-item:nth-child(odd),
  .tl-item:nth-child(even) {
    width: auto;
    margin-left: 32px;
    justify-self: stretch;
  }
  .tl-item:nth-child(odd)::after,
  .tl-item:nth-child(even)::after { left: -29px; right: auto; }
  .section { padding: 64px 0; }
  .wrap, .hero-inner { width: min(var(--max), calc(100% - 32px)); }
}

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