:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #15201d;
  --muted: #66716d;
  --line: #dce2de;
  --green: #1e7a55;
  --green-dark: #14523d;
  --blue: #315f96;
  --amber: #b96d21;
  --red: #b94535;
  --shadow: 0 18px 50px rgba(26, 42, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(220, 226, 222, 0.88);
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.ghost-button,
.primary-button,
.secondary-button,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 700;
}

.ghost-button {
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

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

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: stretch;
  padding: 42px 0 28px;
}

.workspace-main,
.status-panel,
.tool-card,
.toolbar,
.support {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace-main {
  min-height: 430px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.intro {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
}

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

.primary-button {
  padding: 0 20px;
  background: var(--green);
  color: #fff;
}

.primary-button:hover {
  background: var(--green-dark);
}

.secondary-button {
  padding: 0 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.status-panel {
  border-radius: 8px;
  padding: 22px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.status-row span {
  color: var(--muted);
}

.preview-window {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #cbd4cf;
  border-radius: 8px;
  background: #17211e;
  color: #ecf4ef;
}

.preview-bar {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.preview-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #df6958;
}

.preview-bar span:nth-child(2) {
  background: #dca442;
}

.preview-bar span:nth-child(3) {
  background: #57b77c;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

.metric {
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.metric small,
.metric b {
  display: block;
}

.metric small {
  color: #9fb0aa;
}

.metric b {
  margin-top: 10px;
  font-size: 28px;
}

.chart-bars {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 10px;
  height: 145px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.chart-bars i {
  display: block;
  flex: 1;
  min-width: 28px;
  border-radius: 6px 6px 0 0;
  background: #7fc49a;
}

.toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 44px;
  padding: 14px;
  border-radius: 8px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf8;
}

.search-wrap svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
  flex: 0 0 auto;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.section {
  padding: 10px 0 56px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.section-head h2,
.split-section h2,
.support h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p:last-child {
  max-width: 420px;
  color: var(--muted);
}

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

.tool-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 350px;
  padding: 20px;
  border-radius: 8px;
}

.tool-card.is-hidden {
  display: none;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.tool-icon.automation {
  background: var(--green);
}

.tool-icon.data {
  background: var(--blue);
}

.tool-icon.desktop {
  background: var(--amber);
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tool-copy h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.tool-copy p {
  color: var(--muted);
}

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  color: var(--muted);
}

.tool-meta strong {
  color: var(--ink);
}

.card-action {
  width: 100%;
  border: 1px solid var(--line);
  background: #f9faf8;
}

.card-action:hover {
  border-color: var(--green);
  color: var(--green);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.timeline h3 {
  margin-bottom: 6px;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.support {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 24px 0 42px;
  padding: 30px;
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

  .nav-links {
    display: none;
  }

  .workspace,
  .split-section {
    grid-template-columns: 1fr;
  }

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

  .section-head,
  .toolbar,
  .support,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 64px;
  }

  .ghost-button {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .workspace {
    padding-top: 22px;
  }

  .workspace-main,
  .status-panel,
  .tool-card,
  .support {
    padding: 18px;
  }

  h1 {
    font-size: 42px;
  }

  .intro {
    font-size: 16px;
  }
}
