:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #0b1628;
  --muted: #63717d;
  --line: #d7dfdf;
  --soft: #edf2f1;
  --accent: #1b4f4d;
  --accent-soft: #dce9e7;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 8%, rgba(180, 211, 207, .42), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell {
  width: min(calc(100% - 56px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 70px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(245,247,246,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(11,22,40,.08);
}
.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: #3f4e5b; }
.nav a:hover { color: var(--ink); }
.menu-button { display: none; border: 0; background: transparent; color: var(--ink); padding: 8px 0; }

.hero {
  min-height: calc(100vh - 70px);
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: 1.07;
  letter-spacing: -.045em;
  font-weight: 590;
}
.hero-description {
  max-width: 650px;
  margin: 26px 0 0;
  color: #566474;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover { background: #26384d; }
.button.ghost { background: rgba(255,255,255,.55); border-color: var(--line); }
.button.ghost:hover { background: #fff; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: #596a76; font-size: 13px; }
.hero-notes span::before { content: "•"; color: var(--accent); margin-right: 7px; }

.hero-panel { perspective: 1000px; }
.ecosystem-window {
  overflow: hidden;
  border: 1px solid #dce3e5;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 30px 80px rgba(25,45,55,.14);
  transform: rotateY(-3deg) rotateX(1.5deg);
}
.window-top {
  height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #edf1f2;
  color: #7a8892;
  font-size: 12px;
}
.window-top i { width: 9px; height: 9px; border-radius: 50%; background: #bec8ca; }
.window-top span { margin-left: 8px; }
.window-body { padding: 30px; }
.window-label { margin: 0 0 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.mini-product {
  padding: 17px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.mini-product:last-child { border-bottom: 1px solid var(--line); }
.mini-product strong, .mini-product small { display: block; }
.mini-product strong { font-size: 18px; letter-spacing: -.02em; }
.mini-product small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.mini-product > span { color: var(--accent); }
.mini-product:hover strong { color: var(--accent); }
.mini-product.quiet { opacity: .72; }

.section-kicker {
  padding: 16px 0 14px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 12px;
}
.section-kicker span:first-child { color: var(--ink); font-weight: 700; }

.featured,
.products,
.principles,
.latest,
.about,
.archive { padding-bottom: 104px; }
.featured-card {
  padding: 48px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 38px rgba(25,45,55,.045);
}
.featured-card h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.13;
  letter-spacing: -.04em;
  font-weight: 590;
}
.featured-copy { align-self: end; }
.featured-copy > p { margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.text-link { display: inline-flex; gap: 8px; align-items: center; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 700; }

.section-heading {
  padding: 34px 0 42px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: end;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.12;
  letter-spacing: -.04em;
  font-weight: 590;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.section-heading.small h2 { font-size: clamp(30px, 3.5vw, 44px); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  min-height: 310px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: #c4d0d0; box-shadow: 0 16px 38px rgba(25,45,55,.07); }
.product-top { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.status { color: var(--accent); font-weight: 700; }
.status.experimental { color: #7c7061; }
.product-card h3 { margin: 58px 0 14px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.035em; font-weight: 600; }
.product-card p { margin: 0; max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.product-card > a { margin-top: auto; padding-top: 28px; font-size: 14px; font-weight: 700; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.principle-grid article {
  padding: 28px;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.58);
}
.principle-number { color: var(--accent); font-size: 12px; font-weight: 800; }
.principle-grid h3 { margin: 66px 0 12px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; letter-spacing: -.025em; }
.principle-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.latest-list { border-top: 1px solid var(--line); }
.latest-list article {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 100px 1.1fr 1fr;
  gap: 34px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.latest-list article > span { color: var(--muted); font-size: 12px; }
.latest-list h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.latest-list p { margin: 0; color: var(--muted); font-size: 14px; }

.about-grid {
  padding: 42px 0 0;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: start;
}
.about-grid h2 { margin: 0; font-size: clamp(34px, 4.1vw, 52px); line-height: 1.14; letter-spacing: -.04em; font-weight: 590; }
.about-grid p { margin: 3px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }

.archive-row {
  padding: 26px 0;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.archive-row span { color: var(--muted); font-size: 12px; }
.archive-row h2 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.03em; }
.archive-row p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.site-footer { padding: 32px 0 36px; border-top: 1px solid var(--ink); }
.footer-main { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.footer-main p { margin: 0; }
.footer-brand { font-size: 30px; font-weight: 650; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(120px,1fr)); gap: 30px; }
.footer-columns div { display: flex; flex-direction: column; gap: 7px; }
.footer-columns p { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.footer-columns a { font-size: 14px; }
.copyright { margin: 60px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 36px), var(--max)); }
  .site-header { padding: 0 18px; }
  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: #f7f9f8;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-button { display: block; justify-self: end; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 64px; }
  .hero-copy { max-width: 760px; }
  .hero-panel { max-width: 640px; }
  .ecosystem-window { transform: none; }
  .featured-card,
  .section-heading,
  .about-grid,
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .product-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { min-height: 220px; }
  .principle-grid h3 { margin-top: 42px; }
  .latest-list article { grid-template-columns: 90px 1fr; gap: 18px 26px; }
  .latest-list p { grid-column: 2; }
  .archive-row { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 600px) {
  .hero { padding: 52px 0 72px; }
  .hero h1 { font-size: clamp(38px, 11vw, 50px); }
  .hero-description { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .window-body { padding: 22px; }
  .featured,
  .products,
  .principles,
  .latest,
  .about,
  .archive { padding-bottom: 78px; }
  .featured-card { padding: 26px; }
  .section-heading { padding-top: 28px; }
  .product-card { min-height: 280px; }
  .latest-list article { grid-template-columns: 1fr; gap: 6px; }
  .latest-list p { grid-column: 1; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}
