:root {
  --ink: #1f1c18;
  --muted: #6b6257;
  --paper: #fbf4e7;
  --card: rgba(255, 252, 244, .92);
  --charcoal: #101317;
  --gold: #c99845;
  --gold-2: #edcb88;
  --line: rgba(43, 35, 25, .14);
  --shadow: 0 26px 70px rgba(39, 30, 20, .18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 251, 241, .94), rgba(244, 232, 211, .92)),
    url("https://images.unsplash.com/photo-1559339352-11d035aa65de?auto=format&fit=crop&w=1900&q=82") center top / cover fixed;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  color: #f7eddc;
  background: rgba(13, 14, 17, .92);
  border-bottom: 1px solid rgba(237, 203, 136, .26);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #19120b;
  background: linear-gradient(135deg, #fff0bf, #c99845);
  border-radius: 14px;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
}

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

.brand strong {
  font-size: 17px;
  font-weight: 900;
}

.brand small {
  color: #d9c6a6;
  font-size: 12px;
  font-weight: 800;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 900;
}

.topbar nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #f4ead8;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 86px;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 34px;
  align-items: center;
  padding: clamp(26px, 5vw, 54px);
  color: #fff8ea;
  border: 1px solid rgba(237, 203, 136, .34);
  border-radius: 34px;
  background:
    linear-gradient(100deg, rgba(10, 12, 16, .98), rgba(20, 19, 18, .86) 54%, rgba(96, 61, 29, .48)),
    url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1900&q=84") center / cover no-repeat;
  box-shadow: 0 34px 95px rgba(0, 0, 0, .34);
  overflow: hidden;
}

.hero-copy,
.dashboard-preview,
.script-layout > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.14;
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: #eadcc8;
  font-size: 20px;
  line-height: 1.75;
  font-weight: 800;
}

.hero-actions,
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: #17120c;
  background: linear-gradient(135deg, #fff1bd, #cf9a3f);
  box-shadow: 0 16px 34px rgba(201, 152, 69, .28);
}

.button.secondary {
  color: #fff8ea;
  border: 1px solid rgba(255, 248, 234, .34);
  background: rgba(255, 248, 234, .08);
}

.hero-points {
  margin-top: 22px;
}

.hero-points span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 248, 234, .24);
  border-radius: 999px;
  background: rgba(255, 248, 234, .08);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-preview {
  padding: 24px;
  border: 1px solid rgba(237, 203, 136, .38);
  border-radius: 28px;
  color: #f9efd9;
  background: linear-gradient(180deg, rgba(15, 17, 21, .94), rgba(22, 24, 28, .82));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
}

.preview-head,
.metric-row {
  display: grid;
  gap: 14px;
}

.preview-head {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(237, 203, 136, .18);
  font-weight: 900;
}

.preview-head b {
  color: var(--gold-2);
  font-size: 12px;
}

.metric-row {
  grid-template-columns: repeat(3, 1fr);
}

.metric-row div,
.ai-card,
.insight-card,
.module-grid article,
.training-grid article,
.script-layout aside {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.metric-row div {
  padding: 16px;
  color: #fbf3e4;
  border-color: rgba(237, 203, 136, .2);
  background: rgba(255, 248, 234, .08);
}

.metric-row small,
.metric-row em {
  display: block;
  color: #d6c4a5;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.metric-row strong {
  display: block;
  margin: 8px 0 4px;
  color: #fff5da;
  font-size: 34px;
  line-height: 1;
}

.ai-card {
  margin-top: 16px;
  padding: 22px;
  color: #201914;
}

.ai-card h2 {
  font-family: "Noto Sans TC", system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.45;
}

.ai-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  color: var(--muted);
  font-weight: 800;
}

.ai-card li {
  display: flex;
  gap: 10px;
}

.ai-card li span {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--gold);
  flex: 0 0 auto;
}

.owner-board,
.modules,
.training,
.demo-script {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(201, 152, 69, .24);
  border-radius: 34px;
  background: rgba(255, 252, 245, .88);
  box-shadow: 0 24px 60px rgba(53, 42, 26, .12);
  backdrop-filter: blur(12px);
}

.section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.insight-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.insight-card h3,
.module-grid h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.insight-card p,
.module-grid p,
.training-grid p,
.script-layout li,
.script-layout p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
}

.insight-card b {
  color: #7f4c10;
  font-size: 15px;
}

.chart {
  min-height: 116px;
  border-radius: 20px;
  background: linear-gradient(180deg, #181b20, #2a2117);
}

.chart.donut {
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(#d4a34b 0 72%, rgba(212, 163, 75, .18) 72% 100%);
}

.chart.donut::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--card);
}

.chart.donut span {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 900;
}

.chart.bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  padding: 18px;
}

.chart.bars i {
  width: 22px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #f3d28a, #9d6a24);
}

.chart.line {
  position: relative;
  overflow: hidden;
}

.chart.line::before {
  content: "";
  position: absolute;
  inset: 24px 18px;
  background:
    linear-gradient(135deg, transparent 0 22%, #d6a74d 22% 25%, transparent 25% 44%, #d6a74d 44% 47%, transparent 47% 63%, #d6a74d 63% 66%, transparent 66%),
    linear-gradient(180deg, rgba(255,255,255,.09), transparent);
}

.module-grid,
.training-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.module-grid article,
.training-grid article {
  padding: 20px;
}

.module-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #18120d;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1bd, #c99845);
  font-weight: 900;
}

.training-grid {
  grid-template-columns: repeat(4, 1fr);
}

.training-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.script-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.script-layout ol {
  display: grid;
  gap: 14px;
  padding-left: 24px;
  margin: 0;
}

.script-layout li {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.script-layout li::marker {
  color: #a46d24;
  font-weight: 900;
}

.script-layout aside {
  padding: 24px;
}

.script-layout aside .button {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .script-layout {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .module-grid,
  .training-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  main {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .topbar nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .topbar nav a {
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 248, 234, .08);
  }

  .hero,
  .owner-board,
  .modules,
  .training,
  .demo-script {
    border-radius: 24px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions .button,
  .metric-row,
  .insight-grid,
  .module-grid,
  .training-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }
}
