:root {
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #23211e;
  --muted: #726d65;
  --green: #1f7a5c;
  --mint: #29a37a;
  --amber: #ffc84a;
  --indigo: #6474f7;
  --coral: #f25c46;
  --line: rgba(35, 33, 30, 0.16);
  --line-strong: rgba(35, 33, 30, 0.34);
  --shadow: #23211e;
  --max: 1240px;
  --pad: clamp(22px, 4vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection {
  background: var(--amber);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: top 0.2s ease;
}

.skip-link:focus { top: 16px; }

a:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(35, 33, 30, 0.075) 1px, transparent 1px);
  background-size: 22px 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid var(--ink);
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.hero,
.product-section,
.principles-section,
.about-section,
.site-footer {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-mark {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover { color: var(--green); }

.header-cta {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
  background: var(--amber);
  box-shadow: 5px 5px 0 var(--shadow);
  transform: translate(-2px, -2px);
}

.hero {
  min-height: min(780px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(30px, 4vw, 70px);
  padding-block: clamp(76px, 11vw, 150px);
  border-bottom: 2px solid var(--ink);
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
}

.eyebrow span {
  width: 34px;
  height: 4px;
  border-radius: 99px;
  background: var(--coral);
}

.hero h1 {
  max-width: 800px;
  margin: 27px 0;
  font-size: clamp(54px, 5.7vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  color: var(--green);
  font-style: normal;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: -0.02em;
  bottom: -0.04em;
  left: -0.03em;
  z-index: -1;
  height: 0.22em;
  border-radius: 99px;
  background: var(--amber);
  transform: rotate(-1.5deg);
}

.hero-lead {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.85;
}

.hero-actions {
  margin-top: 41px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 18px 10px 18px 10px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  box-shadow: 7px 7px 0 var(--shadow);
  transform: translate(-2px, -2px);
}

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

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.text-link:hover { color: var(--green); }

.signal-field {
  position: relative;
  aspect-ratio: 1;
  isolation: isolate;
}

.field-grid {
  position: absolute;
  inset: 2%;
  border: 2px solid var(--ink);
  border-radius: 43% 57% 48% 52% / 53% 44% 56% 47%;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(35, 33, 30, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 33, 30, 0.1) 1px, transparent 1px);
  background-size: 36px 36px;
  box-shadow: 11px 11px 0 var(--amber), 13px 13px 0 var(--ink);
  animation: grid-breathe 8s ease-in-out infinite;
}

.signal-field::before,
.signal-field::after {
  content: "";
  position: absolute;
  z-index: 3;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.signal-field::before {
  top: 8%;
  right: 7%;
  width: 60px;
  height: 60px;
  background: var(--coral);
}

.signal-field::after {
  bottom: 9%;
  left: 6%;
  width: 34px;
  height: 34px;
  background: var(--indigo);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-23deg);
}

.orbit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
}

.orbit-a { width: 82%; height: 35%; animation: orbit-one 13s linear infinite; }
.orbit-b { width: 59%; height: 76%; transform: translate(-50%, -50%) rotate(37deg); animation: orbit-two 17s linear infinite reverse; }
.orbit-b::before { top: 18%; left: auto; right: -6px; width: 9px; height: 9px; background: var(--amber); }

.signal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 42%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 7px 7px 0 var(--shadow);
  transform: translate(-50%, -50%);
}

.signal-core svg { width: 72%; fill: none; stroke: var(--ink); stroke-width: 2; }
.signal-core path { stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

.field-label,
.field-index {
  position: absolute;
  z-index: 4;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.field-label-a { top: 12%; right: 3%; }
.field-label-b { bottom: 13%; left: -1%; }
.field-index { right: 2%; bottom: 16%; background: var(--amber); }

@keyframes orbit-one { to { transform: translate(-50%, -50%) rotate(337deg); } }
@keyframes orbit-two { to { transform: translate(-50%, -50%) rotate(397deg); } }
@keyframes grid-breathe { 50% { transform: scale(1.025) rotate(0.7deg); } }

.product-section,
.principles-section,
.about-section {
  padding-block: clamp(92px, 11vw, 150px);
  border-bottom: 2px solid var(--ink);
  scroll-margin-top: 76px;
}

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

.section-heading h2,
.about-copy h2 {
  margin: 15px 0 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 340px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.product-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 620px;
  border: 2px solid var(--ink);
  border-radius: 30px 18px 30px 18px;
  background: var(--indigo);
  box-shadow: 12px 12px 0 var(--shadow);
}

.product-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 72px);
  border-right: 2px solid var(--ink);
  background: var(--amber);
  color: var(--ink);
}

.product-status {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.product-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.product-brand { margin: 33px 0 0; font-size: 22px; font-weight: 900; letter-spacing: -0.035em; }
.product-brand span { margin-left: 9px; color: rgba(35, 33, 30, 0.6); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.product-copy h3 { margin: 25px 0 22px; font-size: clamp(39px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.06em; }
.product-description { max-width: 480px; margin: 0; color: rgba(35, 33, 30, 0.76); font-size: 16px; line-height: 1.8; }

.product-meta { margin: 32px 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.product-meta span { padding-right: 20px; border-right: 2px solid rgba(35, 33, 30, 0.25); color: rgba(35, 33, 30, 0.65); font-size: 12px; font-weight: 800; }
.product-meta span:last-child { padding-right: 0; border-right: 0; }
.product-meta strong { margin-right: 4px; color: var(--ink); font-size: 15px; }

.button-dark { width: fit-content; margin-top: 4px; background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--green); }

.product-preview {
  position: relative;
  align-self: center;
  width: calc(100% - clamp(35px, 5vw, 76px));
  margin-left: clamp(20px, 4vw, 60px);
  padding: clamp(25px, 3vw, 42px);
  border: 2px solid var(--ink);
  border-radius: 25px 0 0 25px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(35, 33, 30, 0.9);
  transform: rotate(-1.5deg) translateX(5%);
}

.preview-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; }
.preview-logo { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 17px; font-weight: 900; }
.preview-logo svg { width: 21px; fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.preview-tabs { margin-top: 29px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 5px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--muted); font-size: 11px; text-align: center; }
.preview-tabs b { padding: 12px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--coral); color: white; }
.preview-search { margin-top: 16px; padding: 18px; border: 2px solid var(--ink); border-radius: 15px 9px 15px 9px; background: var(--paper); color: var(--muted); font-size: 12px; box-shadow: 3px 3px 0 var(--amber); }
.preview-board { margin-top: 21px; }
.preview-board div { min-height: 72px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; border-top: 2px solid var(--line); }
.preview-board i { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 900; }
.preview-board b { font-size: 13px; }
.preview-board span { font-size: 13px; font-weight: 900; }
.preview-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.preview-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.section-heading.compact { margin-bottom: 58px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.principles-grid article {
  min-height: 315px;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 22px 12px 22px 12px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--shadow);
}

.principles-grid article:nth-child(2) { background: #edf0ff; box-shadow: 7px 7px 0 var(--indigo); }
.principles-grid article:nth-child(3) { background: #fff0eb; box-shadow: 7px 7px 0 var(--coral); }
.principles-grid article > span { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; }
.principles-grid h3 { margin: 105px 0 16px; font-size: 21px; letter-spacing: -0.035em; }
.principles-grid p { max-width: 320px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.about-section { display: grid; grid-template-columns: 0.7fr 1.3fr; align-items: center; gap: clamp(45px, 9vw, 140px); }

.about-mark {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 43% 57% 52% 48% / 54% 44% 56% 46%;
  background: var(--green);
  color: var(--paper);
  font-size: clamp(64px, 9vw, 125px);
  font-weight: 900;
  letter-spacing: -0.1em;
  box-shadow: 12px 12px 0 var(--amber), 14px 14px 0 var(--ink);
  transform: rotate(-2deg);
}

.about-mark span { color: var(--amber); }
.about-copy > p:not(.section-kicker) { max-width: 670px; margin: 27px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.about-copy .about-note { margin-top: 34px; padding: 20px 22px; border: 2px solid var(--ink); border-radius: 14px 8px 14px 8px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.7; box-shadow: 5px 5px 0 var(--coral); }

.site-footer { min-height: 290px; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 50px; padding-block: 62px 36px; }
.footer-brand > p { margin: 17px 0 0; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(145px, 1fr)); gap: 50px; }
.footer-links > div { display: grid; gap: 12px; }
.footer-links strong { margin-bottom: 4px; color: var(--green); font-size: 9px; letter-spacing: 0.16em; }
.footer-links a { min-height: 30px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; align-self: end; margin: 30px 0 0; padding-top: 25px; border-top: 2px solid var(--ink); color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-copy { max-width: 720px; }
  .signal-field { width: min(620px, 100%); margin: -35px auto -25px; }
  .product-card { grid-template-columns: 1fr; }
  .product-copy { border-right: 0; border-bottom: 2px solid var(--ink); }
  .product-preview { width: calc(100% - 38px); margin: 55px 0 55px 38px; transform: rotate(-1deg) translateX(3%); }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid article { min-height: 250px; }
  .principles-grid h3 { margin-top: 52px; }
}

@media (min-width: 721px) { .hero h1 em { white-space: nowrap; } }

@media (max-width: 720px) {
  :root { --pad: 18px; }
  .header-inner { min-height: 68px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 24px; height: 24px; }
  .header-cta { min-height: 39px; padding-inline: 13px; font-size: 13px; }
  .hero { min-height: auto; padding-block: 78px 45px; }
  .hero h1 { font-size: clamp(42px, 10vw, 56px); }
  .hero-lead { font-size: 15px; }
  .signal-field { margin-top: -10px; }
  .field-label { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 38px; }
  .product-card { min-height: auto; border-radius: 22px 12px 22px 12px; box-shadow: 7px 7px 0 var(--shadow); }
  .product-copy { padding: 38px 27px 43px; }
  .product-copy h3 { font-size: clamp(39px, 11vw, 54px); }
  .product-meta { gap: 11px; }
  .product-meta span { width: calc(50% - 11px); padding-right: 0; border-right: 0; }
  .button-dark { width: 100%; }
  .product-preview { width: calc(100% - 19px); margin: 40px 0 40px 19px; padding: 23px 19px; }
  .preview-board div { min-height: 62px; }
  .about-section { grid-template-columns: 1fr; }
  .about-mark { width: min(330px, 82vw); justify-self: center; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { gap: 30px; }
}

@media (max-width: 420px) {
  .header-cta { width: 41px; padding: 0; overflow: hidden; white-space: nowrap; color: var(--ink); font-size: 0; }
  .header-cta span { margin: 0; color: var(--ink); font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .button-primary { width: 100%; }
  .hero h1 { font-size: 36px; }
  .preview-tabs { font-size: 9px; }
  .footer-links { grid-template-columns: 1fr; }
}

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