:root {
  --ink: #14201f;
  --muted: #65716f;
  --line: #dbe3df;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --teal: #0b746b;
  --teal-dark: #07524c;
  --amber: #c87816;
  --rust: #a5452d;
  --blue: #315d8f;
  --shadow: 0 24px 60px rgba(17, 32, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  color: #fff;
  background: rgba(12, 22, 21, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand,
.nav-links,
.hero-actions,
.risk-actions,
.site-footer,
.contact-stack div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark,
.icon-box {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  gap: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.nav-links a:hover,
.header-action:hover {
  color: #fff;
}

.header-action {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 132px 36px 92px;
  overflow: hidden;
  background: #10201f;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 15, 14, 0.92), rgba(5, 15, 14, 0.72) 42%, rgba(5, 15, 14, 0.12) 78%),
    linear-gradient(0deg, rgba(5, 15, 14, 0.78), rgba(5, 15, 14, 0) 54%);
}

.hero-content {
  position: relative;
  max-width: 840px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.primary-button,
.secondary-button,
.demo-form button,
.risk-actions button {
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button,
.demo-form button,
.risk-actions button {
  color: #fff;
  background: var(--teal);
}

.primary-button:hover,
.demo-form button:hover,
.risk-actions button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 1px;
  max-width: 560px;
  margin: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-metrics div {
  padding: 18px;
  background: rgba(9, 26, 24, 0.72);
}

.hero-metrics dt {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.command-band {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: -56px auto 0;
  padding: 0 24px;
}

.command-panel,
.task-card,
.risk-tool,
.allow-list,
.deny-list,
.demo-form,
.pay-panel,
.join-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.command-panel {
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 900;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2da66d;
  box-shadow: 0 0 0 5px rgba(45, 166, 109, 0.14);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfa;
}

select,
input {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.risk-result {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #edf8f5;
  color: var(--teal-dark);
}

.risk-result.medium {
  background: #fff4df;
  color: #86500d;
}

.risk-result.high {
  background: #fff0ed;
  color: #96351f;
}

.section,
.split-section,
.risk-lab,
.demo-band,
.join-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 24px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading p:not(.eyebrow),
.risk-lab p,
.demo-band p,
.join-section p,
.timeline p,
.task-card p {
  color: var(--muted);
}

.align-left {
  margin-left: 0;
  text-align: left;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.task-card {
  padding: 22px;
  min-height: 245px;
  box-shadow: none;
}

.icon-box {
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border-radius: 8px;
  font-weight: 900;
}

.task-card:nth-child(2) .icon-box {
  background: var(--blue);
}

.task-card:nth-child(3) .icon-box {
  background: var(--amber);
}

.task-card:nth-child(4) .icon-box {
  background: var(--rust);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.timeline {
  border-left: 2px solid var(--teal);
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 0 0 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 8px rgba(11, 116, 107, 0.12);
}

.timeline-item span {
  color: var(--amber);
  font-weight: 900;
}

.control-section {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.control-section .section-heading {
  padding: 0 24px;
}

.control-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.allow-list,
.deny-list {
  padding: 30px;
  box-shadow: none;
}

.allow-list {
  border-top: 6px solid var(--teal);
}

.deny-list {
  border-top: 6px solid var(--rust);
}

ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.deny-list li::before {
  background: var(--rust);
}

.risk-lab,
.demo-band {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 44px;
  align-items: center;
}

.risk-tool,
.demo-form {
  padding: 24px;
}

.risk-actions {
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.risk-actions span {
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
  color: var(--teal-dark);
  background: #edf8f5;
}

.risk-actions span.medium {
  color: #86500d;
  background: #fff4df;
}

.risk-actions span.high {
  color: #96351f;
  background: #fff0ed;
}

#briefAdvice {
  margin: 14px 0 0;
  color: var(--muted);
}

.case-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.case-strip div {
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.case-strip div:last-child {
  border-right: 0;
}

.case-strip strong,
.case-strip span {
  display: block;
}

.case-strip span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.demo-band {
  padding-bottom: 96px;
}

.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.contact-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-stack div {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.contact-stack span {
  color: var(--muted);
  font-size: 14px;
}

.contact-stack b {
  color: var(--teal-dark);
  font-size: 15px;
}

.join-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
}

.pay-panel,
.join-form {
  padding: 24px;
  box-shadow: none;
}

.pay-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.pay-grid div {
  padding: 16px;
  border-radius: 8px;
  background: #f4f7f4;
  border: 1px solid var(--line);
}

.pay-grid strong,
.pay-grid span {
  display: block;
}

.pay-grid span {
  margin-top: 6px;
  color: var(--teal-dark);
  font-weight: 900;
}

.join-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide-field,
.join-form button,
.demo-form button,
.form-note {
  grid-column: 1 / -1;
}

.join-form button {
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
  cursor: pointer;
}

.join-form button:hover {
  background: var(--teal-dark);
}

.form-note {
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  background: #f4f7f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}

.form-note.success {
  color: var(--teal-dark);
  background: #edf8f5;
  border-color: rgba(11, 116, 107, 0.25);
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px 36px;
  color: rgba(255, 255, 255, 0.74);
  background: #101b1a;
}

.site-footer span:first-child {
  color: #fff;
  font-weight: 900;
}

@media (max-width: 920px) {
  .site-header {
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 860px;
    padding: 116px 22px 72px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 15, 14, 0.92), rgba(5, 15, 14, 0.68)),
      linear-gradient(0deg, rgba(5, 15, 14, 0.8), rgba(5, 15, 14, 0) 58%);
  }

  .hero-metrics,
  .field-grid,
  .task-grid,
  .split-section,
  .control-layout,
  .risk-lab,
  .case-strip,
  .demo-band,
  .demo-form,
  .join-layout,
  .join-form {
    grid-template-columns: 1fr;
  }

  .command-band {
    margin-top: -40px;
  }

  .section,
  .split-section,
  .risk-lab,
  .demo-band {
    padding-top: 72px;
  }

  .case-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-strip div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
  }
}

@media (max-width: 560px) {
  .header-action {
    display: none;
  }

  .hero {
    min-height: 900px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions a,
  .risk-actions button,
  .demo-form button,
  .join-form button {
    width: 100%;
    text-align: center;
  }

  .risk-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
