:root {
  --cream: #fff8ec;
  --paper: #ffffff;
  --mint: #e7f4df;
  --peach: #ffe2c6;
  --butter: #ffd95f;
  --orange: #f06423;
  --green: #1f684f;
  --blue: #284a7a;
  --ink: #171914;
  --muted: #62685f;
  --line: #e4dacb;
  --deep: #14231c;
  --shadow: 0 20px 56px rgba(23, 25, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

p {
  line-height: 1.82;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: 74px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 24px;
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.25;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  color: #fff;
  background: rgba(20, 35, 28, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
}

.brand-name,
.brand-sub {
  display: block;
  line-height: 1.05;
}

.brand-name {
  font-size: 18px;
}

.brand-sub {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
}

.nav-global {
  color: var(--butter);
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 35, 28, 0.94) 0%, rgba(20, 35, 28, 0.74) 48%, rgba(20, 35, 28, 0.18) 100%),
    linear-gradient(0deg, rgba(20, 35, 28, 0.72) 0%, rgba(20, 35, 28, 0.08) 62%),
    url("assets/capsulife-hero.jpg") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-inner {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: 82vh;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.58fr);
  gap: 52px;
  align-items: end;
  padding: 128px 0 58px;
}

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

.hero .eyebrow {
  color: var(--butter);
}

.hero-line {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: var(--orange);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  padding: 24px;
  background: rgba(15, 26, 21, 0.58);
}

.hero-panel span,
.split-bar span,
.system-list span,
.scene-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.66);
}

.hero-panel strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 21px;
  line-height: 1.28;
}

.split-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.split-bar div {
  min-height: 150px;
  padding: 30px 40px;
  border-right: 1px solid var(--line);
}

.split-bar div:last-child {
  border-right: 0;
}

.split-bar strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--green);
  font-size: 24px;
}

.split-bar p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  border-top: 1px solid var(--line);
}

.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0;
}

.position {
  background: var(--cream);
}

.position-layout,
.scene-layout,
.global-layout,
.contact-layout,
.notice-layout {
  display: grid;
  gap: 64px;
  align-items: start;
}

.position-layout {
  grid-template-columns: 0.88fr 1.12fr;
}

.position-copy p,
.section-heading p,
.system-list p,
.scene-grid p,
.global p,
.contact p,
.notice p,
.site-footer p,
address {
  color: var(--muted);
}

.position-copy a,
.global a,
.notice a {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(31, 104, 79, 0.28);
  text-underline-offset: 5px;
}

.systems {
  background: var(--paper);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 42px;
}

.systems-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 42px;
  align-items: stretch;
}

.product-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.system-list,
.scene-grid {
  display: grid;
  gap: 14px;
}

.system-list article,
.scene-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.system-list article {
  min-height: 156px;
  border-left: 8px solid var(--orange);
}

.system-list article:nth-child(2) {
  border-left-color: var(--green);
}

.system-list article:nth-child(3) {
  border-left-color: var(--butter);
}

.system-list span,
.scene-grid span {
  margin-bottom: 22px;
  color: var(--orange);
}

.scenes {
  background: #fff7e6;
}

.scene-layout {
  grid-template-columns: 0.82fr 1.18fr;
}

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

.scene-grid article {
  min-height: 290px;
}

.scene-grid article:nth-child(1) {
  background: var(--mint);
}

.scene-grid article:nth-child(2) {
  background: var(--peach);
}

.scene-grid article:nth-child(3) {
  background: #eef4ff;
}

.global {
  color: #fff;
  background: var(--deep);
}

.global .eyebrow {
  color: var(--butter);
}

.global h2 {
  color: #fff;
}

.global-layout {
  grid-template-columns: 0.82fr 1.18fr;
}

.global p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.contact {
  color: #fff;
  background: var(--blue);
}

.contact .eyebrow {
  color: var(--butter);
}

.contact h2 {
  color: #fff;
}

.contact-layout {
  grid-template-columns: 1fr 0.86fr;
  align-items: end;
}

.contact p,
.contact address {
  color: rgba(255, 255, 255, 0.78);
}

address {
  display: grid;
  gap: 12px;
  font-size: 18px;
  font-style: normal;
}

address a {
  color: #fff;
  font-weight: 900;
}

.notice {
  background: var(--paper);
}

.notice-layout {
  grid-template-columns: 0.84fr 1.16fr;
}

.notice p {
  margin-bottom: 0;
  font-size: 17px;
}

.site-footer {
  padding: 38px 0;
  background: #111512;
}

.footer-inner {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 48px;
  align-items: start;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.site-footer a {
  display: inline-block;
  margin-right: 18px;
  color: #fff;
  font-weight: 900;
}

.legal-main {
  padding-top: 72px;
}

.legal-hero {
  background: var(--mint);
  border-bottom: 1px solid var(--line);
}

.legal-inner {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-hero .legal-inner {
  padding: 86px 0 68px;
}

.legal-hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: 58px;
}

.legal-updated {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.legal-body {
  background: var(--paper);
}

.legal-body .legal-inner {
  padding: 76px 0 88px;
}

.legal-body h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  font-size: 30px;
}

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

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

.legal-body a {
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 1020px) {
  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 42px;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  .hero-inner,
  .position-layout,
  .systems-grid,
  .scene-layout,
  .global-layout,
  .contact-layout,
  .notice-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 33px;
  }

  h3 {
    font-size: 20px;
  }

  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 16px;
  }

  .nav {
    gap: 12px;
    font-size: 12px;
  }

  .nav a:nth-child(1),
  .nav a:nth-child(2) {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 86vh;
  }

  .hero-media {
    background:
      linear-gradient(0deg, rgba(20, 35, 28, 0.94) 0%, rgba(20, 35, 28, 0.68) 60%, rgba(20, 35, 28, 0.3) 100%),
      url("assets/capsulife-hero.jpg") center / cover no-repeat;
  }

  .hero-inner,
  .section-inner,
  .footer-inner,
  .legal-inner {
    width: min(100% - 32px, 680px);
  }

  .hero-inner {
    gap: 28px;
    padding: 104px 0 34px;
  }

  .hero-line {
    font-size: 17px;
  }

  .hero-panel,
  .split-bar,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    padding: 18px;
  }

  .split-bar div {
    min-height: 0;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .split-bar div:last-child {
    border-bottom: 0;
  }

  .section-inner {
    padding: 74px 0;
  }

  .position-layout,
  .systems-grid,
  .scene-layout,
  .global-layout,
  .contact-layout,
  .notice-layout {
    gap: 36px;
  }

  .product-frame img {
    min-height: 0;
    aspect-ratio: 1200 / 709;
  }

  .system-list article,
  .scene-grid article {
    min-height: 0;
    padding: 22px;
  }

  .button {
    width: 100%;
  }

  .legal-main {
    padding-top: 66px;
  }

  .legal-hero h1 {
    font-size: 42px;
  }
}
