:root {
  --text: #17202a;
  --muted: #5d6b7a;
  --line: #d9e1e8;
  --bg: #f6f8f9;
  --panel: #ffffff;
  --teal: #009f8f;
  --teal-dark: #007f73;
  --red: #e5534b;
  --amber: #d98b16;
  --ink: #26313d;
  --soft: #eef3f2;
  --warm: #f7f3ed;
  --shadow: 0 20px 50px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 225, 232, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #2bb7a7);
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: calc(88svh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
  background: #eef4f5;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 248, 249, 0.98) 0%, rgba(246, 248, 249, 0.88) 36%, rgba(246, 248, 249, 0.2) 76%),
    linear-gradient(180deg, rgba(246, 248, 249, 0.18), rgba(246, 248, 249, 0.56));
}

.hero-content {
  position: relative;
  max-width: 690px;
}

.page-hero {
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(0, 159, 143, 0.08), rgba(217, 139, 22, 0.08)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  padding-bottom: clamp(48px, 7vw, 80px);
}

.page-hero p {
  max-width: 790px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: #344150;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(0, 127, 115, 0.22);
}

.button.primary:hover {
  background: #006d64;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.button.ghost {
  color: var(--teal-dark);
  background: transparent;
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.hero-note,
.form-tip {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.product-section,
.compliance-section {
  background: #fff;
}

.apps-preview-section {
  background: var(--warm);
}

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

.feature-card,
.plain-panel,
.trial-form,
.app-card,
.note-item,
.tool-panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-card {
  min-height: 190px;
  padding: 24px;
}

.feature-card p,
.plain-panel p,
.section p,
.timeline p,
.trial-list,
.app-card p,
.note-item p,
.plain-list p {
  color: var(--muted);
}

.card-tag,
.status,
.note-date {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 800;
}

.card-tag.teal {
  color: var(--teal-dark);
}

.card-tag.amber {
  color: var(--amber);
}

.card-tag.red {
  color: var(--red);
}

.card-tag.gray {
  color: #536171;
}

.status {
  margin-bottom: 16px;
  padding: 3px 8px;
  border-radius: 6px;
}

.status.live {
  color: var(--teal-dark);
  background: rgba(0, 159, 143, 0.1);
}

.status.planned {
  color: var(--amber);
  background: rgba(217, 139, 22, 0.12);
}

.status.draft {
  color: #536171;
  background: #edf1f3;
}

.workflow-section {
  background: var(--soft);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.timeline article {
  min-height: 210px;
  padding: 22px;
  border-top: 4px solid var(--teal);
  background: rgba(255, 255, 255, 0.74);
}

.timeline span {
  display: block;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

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

.app-grid.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
}

.app-card.featured {
  grid-column: span 2;
}

.app-card .button {
  margin-top: auto;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.plain-panel {
  padding: 26px;
  border-left: 4px solid var(--teal);
}

.plain-panel.warning {
  border-left-color: var(--red);
}

.plain-list {
  display: grid;
  gap: 14px;
}

.plain-list p {
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.note-list {
  display: grid;
  gap: 18px;
}

.note-item {
  padding: 28px;
}

.note-date {
  color: var(--teal-dark);
}

.trial-section {
  background: #f6f8f9;
}

.trial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.trial-list {
  padding-left: 20px;
}

.trial-form,
.tool-panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.trial-form label,
.tool-panel label {
  display: block;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 700;
}

.trial-form input,
.trial-form select,
.trial-form textarea,
.tool-panel input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.trial-form textarea {
  resize: vertical;
}

.tool-section {
  background: #fff;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.tool-output {
  min-width: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 16px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 72px);
  color: #dce5e6;
  background: #1f2a32;
}

.site-footer p {
  margin: 0;
  color: #aebec3;
}

.icp-link {
  color: #dce5e6;
}

.icp-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .app-grid,
  .app-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 82svh;
    padding-top: 78px;
  }

  .hero-image {
    object-position: 60% center;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(246, 248, 249, 0.98) 0%, rgba(246, 248, 249, 0.88) 58%, rgba(246, 248, 249, 0.34) 100%);
  }

  .two-column,
  .trial-layout,
  .tool-layout {
    grid-template-columns: 1fr;
  }

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

  .timeline article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 15px;
  }

  .feature-grid,
  .compliance-grid,
  .app-grid,
  .app-grid.wide,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .app-card.featured {
    grid-column: auto;
  }

  .hero-actions,
  .section-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
