:root {
  --ink: #17212e;
  --muted: #667589;
  --line: #d8e1e8;
  --soft: #f1f5f7;
  --teal: #087f83;
  --teal-dark: #075f63;
  --yellow: #f1b928;
  --red: #c95858;
  --white: #ffffff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  height: 76px;
  padding: 0 clamp(24px, 5vw, 84px);
  display: flex;
  align-items: center;
  gap: 42px;
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid currentColor; font-size: 14px; font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; }
.brand small { margin-top: 2px; font-size: 11px; opacity: .72; }
.site-header nav { display: flex; gap: 28px; font-size: 14px; }
.site-header nav a { opacity: .78; }
.site-header nav a:hover { opacity: 1; }
.header-action {
  margin-left: auto; padding: 11px 18px; border: 1px solid rgba(255,255,255,.75);
  font-size: 14px; font-weight: 700;
}
.member-login-button { margin-left: auto; border: 0; background: transparent; color: white; cursor: pointer; font-weight: 700; }
.member-login-button + .header-action { margin-left: 0; }

.hero {
  min-height: min(880px, 100vh);
  padding: 150px clamp(24px, 5vw, 84px) 78px;
  display: grid;
  grid-template-columns: minmax(340px, .8fr) minmax(560px, 1.25fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  color: white;
  overflow: hidden;
  background: #132d3a;
  position: relative;
}

.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 22%;
  background: #0b222d; clip-path: polygon(0 45%, 30% 72%, 68% 20%, 100% 58%, 100% 100%, 0 100%);
  opacity: .65;
}

.hero-copy, .hero-product { position: relative; z-index: 1; }
.eyebrow { color: #5dc4c2; font-size: 12px; font-weight: 800; letter-spacing: .14em; margin: 0 0 16px; }
.hero h1 { font-size: clamp(48px, 5.5vw, 84px); line-height: 1.08; letter-spacing: 0; margin: 0; }
.hero-intro { color: #c0cdd3; font-size: 17px; line-height: 1.9; max-width: 560px; margin: 28px 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.primary-button {
  border: 0; border-radius: 3px; background: var(--teal); color: white;
  padding: 15px 22px; font-weight: 800; cursor: pointer; display: inline-flex; justify-content: center;
}
.primary-button:hover { background: var(--teal-dark); }
.text-link { color: #dce8eb; font-weight: 700; font-size: 14px; }
.text-link span { margin-left: 8px; }
.hero-metrics { display: flex; margin: 52px 0 0; gap: 0; }
.hero-metrics div { min-width: 122px; padding-right: 24px; margin-right: 24px; border-right: 1px solid rgba(255,255,255,.22); }
.hero-metrics div:last-child { border-right: 0; }
.hero-metrics dt { font-size: 20px; font-weight: 800; }
.hero-metrics dd { margin: 6px 0 0; color: #9eb1ba; font-size: 12px; }

.hero-product { background: #f7fafb; color: var(--ink); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.product-toolbar { height: 52px; padding: 0 18px; display: flex; align-items: center; gap: 24px; color: #526272; border-bottom: 1px solid var(--line); font-size: 11px; }
.product-toolbar .toolbar-logo { background: #183a48; color: white; width: 28px; height: 28px; display: grid; place-items: center; font-weight: 800; }
.product-toolbar i { flex: 1; }
.product-toolbar b { color: var(--teal); }
.product-body { display: grid; grid-template-columns: 1fr 205px; gap: 14px; padding: 14px; }
.spectrum-panel, .recipe-panel { background: white; border: 1px solid var(--line); }
.panel-heading { display: flex; justify-content: space-between; padding: 18px 20px 8px; font-size: 13px; }
.panel-heading span { color: var(--muted); font-size: 10px; }
.spectrum-chart { padding: 0 12px; }
.spectrum-chart svg { width: 100%; display: block; }
.grid-lines { stroke: #e7edf0; stroke-width: 1; }
.target-line, .sample-line { fill: none; stroke-width: 4; stroke-linecap: round; }
.target-line { stroke: #e2a81d; }
.sample-line { stroke: #118a8b; }
.chart-legend { display: flex; gap: 22px; padding: 8px 20px 16px; color: var(--muted); font-size: 10px; }
.chart-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 7px; vertical-align: middle; background: currentColor; }
.target-key { color: #d69c0a; }
.sample-key { color: var(--teal); }
.recipe-panel { padding: 18px; }
.color-swatch { width: 44px; height: 44px; background: #c38a67; border: 1px solid #a86f50; }
.recipe-panel p { color: var(--muted); font-size: 10px; margin: 18px 0 5px; }
.recipe-panel > strong { font-size: 18px; }
.recipe-panel ul { list-style: none; padding: 0; margin: 18px 0; }
.recipe-panel li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.recipe-panel button { width: 100%; border: 0; padding: 11px; background: var(--teal); color: white; font-weight: 700; font-size: 11px; }

.trust-strip { min-height: 82px; padding: 0 clamp(24px, 5vw, 84px); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; border-bottom: 1px solid var(--line); color: #526272; font-size: 13px; font-weight: 700; }
.trust-strip span { padding-left: 22px; position: relative; }
.trust-strip span::before { content: ""; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; background: var(--teal); }

.section { padding: 118px clamp(24px, 8vw, 150px); opacity: 0; transform: translateY(20px); transition: .6s ease; }
.section.visible, .workflow-section.visible, .membership-section.visible { opacity: 1; transform: none; }
.section-heading { max-width: 740px; }
.section-heading h2, .workflow-copy h2, .membership-copy h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.2; letter-spacing: 0; margin: 0 0 20px; }
.section-heading > p:last-child, .workflow-copy > p:last-child, .membership-copy > p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.capability-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.capability-grid article { min-height: 300px; padding: 30px; border-right: 1px solid var(--line); }
.capability-grid article:last-child { border-right: 0; }
.feature-number { color: var(--teal); font-weight: 800; font-size: 12px; }
.capability-grid h3 { margin: 72px 0 14px; font-size: 21px; }
.capability-grid p { color: var(--muted); font-size: 14px; line-height: 1.8; }

.workflow-section {
  padding: 118px clamp(24px, 8vw, 150px);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 10vw, 170px);
  background: var(--soft); opacity: 0; transform: translateY(20px); transition: .6s ease;
}
.workflow-copy { align-self: start; position: sticky; top: 30px; }
.workflow-list { list-style: none; padding: 0; margin: 0; }
.workflow-list li { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid #cbd7dd; }
.workflow-list li > span { width: 40px; height: 40px; display: grid; place-items: center; background: var(--teal); color: white; font-weight: 800; }
.workflow-list strong { font-size: 19px; }
.workflow-list p { color: var(--muted); line-height: 1.7; margin: 8px 0 0; font-size: 14px; }

.membership-section {
  padding: 118px clamp(24px, 8vw, 150px);
  display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 8vw, 140px);
  opacity: 0; transform: translateY(20px); transition: .6s ease;
}
.membership-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.membership-points span { padding: 8px 10px; background: #e5f2f2; color: var(--teal-dark); font-size: 12px; font-weight: 700; }
form { padding: 34px; background: var(--soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; color: #526272; font-size: 12px; font-weight: 700; margin-bottom: 18px; }
input, textarea, select { width: 100%; margin-top: 8px; border: 1px solid #cbd7dd; border-radius: 3px; background: white; color: var(--ink); padding: 13px 14px; outline: 0; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(8,127,131,.12); }
textarea { resize: vertical; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.form-footer p { color: var(--muted); font-size: 12px; margin: 0; }
.form-footer p.success { color: var(--teal-dark); font-weight: 700; }
.form-footer p.error { color: var(--red); font-weight: 700; }
.form-footer button { min-width: 155px; }
.form-footer button:disabled { opacity: .65; cursor: wait; }

footer { min-height: 190px; padding: 44px clamp(24px, 5vw, 84px); display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; color: white; background: #102733; }
.footer-brand { color: white; }
footer > p { color: #aebdc4; font-size: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; color: #aebdc4; font-size: 11px; }

dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 4px; padding: 0; box-shadow: 0 28px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(7,28,38,.72); }
dialog form { background: white; padding: 30px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.dialog-heading h2 { margin: 0; font-size: 28px; }
.dialog-heading button { border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
#login-status { color: var(--muted); font-size: 12px; line-height: 1.6; }
#login-status.success { color: var(--teal-dark); font-weight: 700; }
#login-status.error { color: var(--red); font-weight: 700; }
dialog .primary-button { width: 100%; }

@media (max-width: 1100px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 700px; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid article:nth-child(2) { border-right: 0; }
  .capability-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workflow-section, .membership-section { grid-template-columns: 1fr; }
  .workflow-copy { position: static; }
}

@media (max-width: 680px) {
  .site-header { height: 64px; padding: 0 16px; }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: 16px; }
  .header-action { padding: 9px 12px; }
  .member-login-button { display: none; }
  .hero { padding: 112px 16px 48px; gap: 44px; }
  .hero h1 { font-size: 46px; }
  .hero-intro { font-size: 15px; }
  .hero-actions, .hero-metrics { flex-wrap: wrap; }
  .hero-metrics { margin-top: 36px; }
  .product-toolbar span:not(.toolbar-logo), .product-toolbar b { display: none; }
  .product-body { grid-template-columns: 1fr; }
  .recipe-panel { display: none; }
  .trust-strip { padding: 20px 16px; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .section, .workflow-section, .membership-section { padding: 76px 16px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-grid article:last-child { border-bottom: 0; }
  .capability-grid h3 { margin-top: 42px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  form { padding: 22px 16px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  footer { grid-template-columns: 1fr; padding: 40px 16px; }
  .footer-links { align-items: flex-start; }
}
