:root {
  --ink: #17231d;
  --ink-soft: #4b5a52;
  --paper: #f7f4eb;
  --paper-deep: #ece8dc;
  --white: #fffef9;
  --green: #1e4d3a;
  --green-bright: #2f7558;
  --lime: #c7dc73;
  --orange: #ed7f3b;
  --orange-soft: #f8d2b8;
  --line: rgba(23, 35, 29, 0.14);
  --shadow: 0 24px 70px rgba(34, 49, 40, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family:
    "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 5% 15%, rgba(199, 220, 115, 0.2), transparent 28rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 235, 0.86);
  backdrop-filter: blur(14px);
}

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

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

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.03em;
}

.brand small {
  margin-top: -2px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50% 48% 50% 44%;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(237, 127, 59, 0.27);
}

.brand-leaf {
  position: absolute;
  top: -5px;
  width: 15px;
  height: 10px;
  border-radius: 100% 0 100% 0;
  background: var(--green-bright);
}

.brand-leaf-left {
  left: 8px;
  transform: rotate(20deg);
}

.brand-leaf-right {
  right: 8px;
  transform: rotate(70deg);
}

.preview-badge,
.sample-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(30, 77, 58, 0.25);
  border-radius: 999px;
  background: rgba(199, 220, 115, 0.22);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -45%;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(30, 77, 58, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(30, 77, 58, 0.025),
    0 0 0 140px rgba(30, 77, 58, 0.02);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--green-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 7vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

h1 span {
  color: var(--green-bright);
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.hero-status {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.62);
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(237, 127, 59, 0.15);
}

.model-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.window-bar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.55);
  font: 700 0.65rem/1 monospace;
  letter-spacing: 0.15em;
}

.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.window-bar span {
  margin-left: auto;
}

.model-stage {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(199, 220, 115, 0.18), transparent 45%),
    linear-gradient(145deg, #163e2e, #0d2a20);
}

.grid-plane {
  position: absolute;
  inset: 48% -20% -35%;
  background:
    linear-gradient(rgba(199, 220, 115, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 220, 115, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: perspective(400px) rotateX(58deg);
  transform-origin: top;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.wire-model {
  position: relative;
  width: 180px;
  height: 190px;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.3));
}

.wire-face {
  position: absolute;
  border: 2px solid var(--lime);
  background: rgba(199, 220, 115, 0.08);
}

.face-a {
  inset: 14px 36px 70px 30px;
  clip-path: polygon(50% 0, 100% 26%, 88% 100%, 17% 89%, 0 28%);
}

.face-b {
  inset: 78px 18px 5px 52px;
  clip-path: polygon(32% 0, 100% 28%, 80% 100%, 0 82%);
  border-color: var(--orange-soft);
}

.face-c {
  width: 72px;
  height: 72px;
  top: 30px;
  left: 77px;
  transform: rotate(32deg);
  border-color: rgba(255, 255, 255, 0.45);
}

.axis {
  position: absolute;
  font: 700 0.6rem/1 monospace;
  color: rgba(255, 255, 255, 0.48);
}

.axis-x {
  right: 22px;
  bottom: 22px;
}

.axis-y {
  right: 44px;
  bottom: 46px;
}

.axis-z {
  right: 62px;
  bottom: 70px;
}

.window-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.window-metrics span {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.window-metrics span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.window-metrics b {
  display: block;
  margin-top: 3px;
  color: var(--white);
  font-size: 0.88rem;
}

.section {
  padding: 104px 0;
}

.section-muted {
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-heading h2,
.limit-title h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  color: var(--ink-soft);
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 60px;
}

.split-heading > p {
  margin-bottom: 10px;
}

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

.feature-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 249, 0.68);
}

.feature-number {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--orange);
  font: 800 0.75rem/1 monospace;
}

.feature-card h3,
.placeholder-panel h3,
.limit-list h3 {
  margin-bottom: 9px;
  font-size: 1.18rem;
}

.feature-card p,
.placeholder-panel > p,
.limit-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.tool-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
}

.placeholder-panel {
  min-height: 490px;
  padding: 34px;
  border: 1px dashed rgba(23, 35, 29, 0.27);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.placeholder-icon {
  position: relative;
  width: 108px;
  height: 104px;
  margin-bottom: 28px;
}

.file-shape {
  position: absolute;
  inset: 0 18px 10px 0;
  display: grid;
  place-items: center;
  border: 2px solid rgba(30, 77, 58, 0.32);
  border-radius: 14px;
  background: rgba(199, 220, 115, 0.25);
  color: var(--green);
  font: 900 0.76rem/1 monospace;
  letter-spacing: 0.13em;
}

.lock-shape {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 38px;
  border: 4px solid var(--orange);
  border-radius: 8px;
  background: var(--white);
}

.lock-shape::before {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 27px;
  width: 20px;
  height: 22px;
  border: 4px solid var(--orange);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.disabled-control {
  min-width: 170px;
  margin: 26px 0 22px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #e7e5de;
  color: #8a8e8b;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: not-allowed;
}

.gate-list {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gate-list li {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.result-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
}

.result-placeholder::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 290px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.025);
}

.result-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.result-placeholder .panel-kicker {
  color: var(--lime);
}

.result-placeholder h3 {
  font-size: 1.55rem;
}

.sample-tag {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  white-space: nowrap;
}

.result-intro {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.62) !important;
}

.sample-meter {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin: 34px 0;
}

.sample-meter span {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.sample-meter span:first-child {
  background: var(--lime);
}

.sample-rows {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.sample-rows span {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.sample-rows i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.sample-rows b {
  font-size: 0.82rem;
}

.sample-rows em {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  font-style: normal;
}

.result-warning {
  position: relative;
  z-index: 1;
  margin: 24px 0 0 !important;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--orange-soft) !important;
  font-size: 0.82rem;
}

.limit-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
}

.limit-title {
  position: sticky;
  top: 30px;
  align-self: start;
}

.limit-list {
  display: grid;
  gap: 12px;
}

.limit-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.limit-list article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: #a94e1e;
  font-weight: 900;
}

.link-section {
  background: var(--white);
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.link-placeholders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.link-placeholders > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-soft);
  cursor: not-allowed;
}

.link-placeholders small {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-deep);
  font-size: 0.66rem;
}

.link-note {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer {
  padding: 54px 0;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.footer-disclaimer {
  max-width: 520px;
  justify-self: end;
  text-align: right;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 68px;
  }

  .hero-grid,
  .split-heading,
  .tool-grid,
  .limit-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 620px;
  }

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

  .feature-card {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 28px;
  }

  .placeholder-panel {
    min-height: 440px;
  }

  .limit-title {
    position: static;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 76px;
  }

  .preview-badge {
    display: none;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .hero {
    padding: 58px 0 72px;
  }

  .model-stage {
    min-height: 310px;
  }

  .window-metrics {
    grid-template-columns: 1fr;
  }

  .window-metrics span + span {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .section {
    padding: 76px 0;
  }

  .gate-list,
  .link-placeholders,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .placeholder-panel {
    min-height: auto;
    padding: 28px 22px;
  }

  .result-header {
    display: block;
  }

  .sample-tag {
    margin-bottom: 16px;
  }

  .footer-disclaimer {
    justify-self: start;
    text-align: left;
  }
}

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