:root {
  --blue: #005BFF;
  --cyan: #007fff;
  --ink: #020814;
  --text: #333333;
  --muted: #676767;
  --line: #e8edf6;
  --soft: #f5f7fa;
  --soft-blue: #f5f9ff;
  --green: #19b36b;
  --amber: #f5a524;
  --navy: #0b1633;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}



.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 91, 255, 0.22);
}

.btn-ghost {
  background: #fff;
  color: var(--blue);
  border-color: #cfdcff;
}

.btn-dark {
  background: #101828;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.hero {
  min-height: 640px;
  position: relative;
  overflow: hidden;
  color: #020814;
  background: #eaf2ff url("../images/cli-hero-bg.png") center right / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(240, 246, 255, 0.98) 0%, rgba(240, 246, 255, 0.92) 46%, rgba(240, 246, 255, 0.28) 100%);
}

.hero-inner {
  position: relative;
  width: min(1200px, calc(100% - 40px));
  min-height: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 72px 0 92px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(0, 91, 255, 0.14);
  border-radius: 4px;
  background: rgba(0, 91, 255, 0.08);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

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

.hero h1 {
  margin-bottom: 22px;
  font-size: 50px;
  line-height: 1.14;
  letter-spacing: 0;
  font-weight: 820;
}

.hero-desc {
  max-width: 660px;
  margin-bottom: 32px;
  color: #333333;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
}

.fact {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid #dfe8f6;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
}

.fact strong {
  display: block;
  color: #202945;
  font-size: 18px;
  margin-bottom: 4px;
}

.fact span {
  display: block;
  color: #676767;
  font-size: 13px;
}

.section {
  padding: 86px 0;
}

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

.section.navy {
  background: #0f1b35;
  color: #fff;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  max-width: 820px;
  margin-bottom: 46px;
}

#bridge .section-head {
  max-width: 980px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.28;
  letter-spacing: 0;
  font-weight: 800;
}

.section.navy .section-head h2 {
  color: #fff;
}

#bridge .section-head h2 {
  white-space: nowrap;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.section.navy .section-head p {
  color: rgba(255, 255, 255, 0.70);
}

.bridge {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 36px rgba(32, 41, 69, 0.05);
}

.bridge-col {
  min-height: 340px;
  padding: 40px 32px 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.bridge-col:last-child {
  border-right: 0;
}

.bridge-label {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 26px;
  border-radius: 4px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
}

.bridge-label-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.icon-input {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v10H4z'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v10H4z'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}

.icon-brain {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3'/%3E%3Cpath d='M15 18a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3'/%3E%3Cpath d='M12 5a3 3 0 0 1 3 3v8a3 3 0 0 1-6 0V8a3 3 0 0 1 3-3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3'/%3E%3Cpath d='M15 18a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3'/%3E%3Cpath d='M12 5a3 3 0 0 1 3 3v8a3 3 0 0 1-6 0V8a3 3 0 0 1 3-3Z'/%3E%3C/svg%3E");
}

.icon-exec {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 21 3l-8.5 18-2.5-7-7-2.5Z'/%3E%3Cpath d='M21 3 10.5 13.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 21 3l-8.5 18-2.5-7-7-2.5Z'/%3E%3Cpath d='M21 3 10.5 13.5'/%3E%3C/svg%3E");
}

.bridge-col h3 {
  margin-left: 12px;
  margin-bottom: 12px;
  color: #17233d;
  font-size: 23px;
  line-height: 1.35;
}

.bridge-col p {
  margin-left: 12px;
  color: var(--muted);
  font-size: 15px;
  min-height: 78px;
}

.mini-list {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  padding-left: 12px;
  margin-top: auto;
}

.mini-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #3b4558;
  font-size: 14px;
}

.mini-list span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}

.workflow {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 40px;
  align-items: stretch;
}

.timeline {
  display: grid;
  gap: 16px;
  height: 100%;
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  min-height: 118px;
  padding: 23px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.step-no {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 4px;
  color: #17233d;
  font-size: 20px;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.command-board {
  min-height: 100%;
  padding: 26px;
  border-radius: 4px;
  background: #101828;
  color: #dbeafe;
  box-shadow: 0 22px 54px rgba(16, 24, 40, 0.20);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  align-self: stretch;
}

.command-head {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.command-head i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.command-head i:nth-child(1) {
  background: #ff6b6b;
}

.command-head i:nth-child(2) {
  background: #f7c948;
}

.command-head i:nth-child(3) {
  background: #2ed47a;
}

.cmd-line {
  margin: 0 0 13px;
  color: #cbd5e1;
  font-size: 14px;
  word-break: break-word;
}

.cmd-user {
  color: #005BFF;
}

.cmd-cli {
  color: #007fff;
}

.cmd-ai {
  color: #2a4cdc;
}

.result-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.result-panel h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

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

.result-grid div {
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

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

.scenario {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.scenario-top {
  min-height: 138px;
  padding: 26px;
  color: #fff;
  background: #0b1633;
}

.scenario:nth-child(2) .scenario-top {
  background: #005BFF;
}

.scenario:nth-child(3) .scenario-top {
  background: #007fff;
}

.scenario-top span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
  font-size: 13px;
}

.scenario-top h3 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.35;
}

.scenario-body {
  flex: 1;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.scenario-body p {
  color: var(--muted);
  font-size: 15px;
  min-height: 78px;
}

.prompt {
  padding: 14px 15px;
  margin: 18px 0;
  border-left: 3px solid var(--blue);
  background: #f8fbff;
  color: #17233d;
  font-size: 14px;
  min-height: 76px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  background: #edf4ff;
  color: #3551a4;
  font-size: 12px;
  font-weight: 700;
}

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

.matrix-card {
  min-height: 218px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.matrix-card strong {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #9ec5ff;
  font-size: 19px;
}

.matrix-card h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
}

.matrix-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.governance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

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

.rule {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.rule h3 {
  margin-bottom: 6px;
  color: #17233d;
  font-size: 20px;
}

.rule p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.manual-box {
  padding: 34px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.manual-box h3 {
  margin-bottom: 12px;
  color: #17233d;
  font-size: 24px;
}

.manual-box p {
  color: var(--muted);
  font-size: 15px;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 4px;
}

@media (max-width: 980px) {
  .hero,
  .hero-inner {
    min-height: 660px;
  }

  .hero::before {
    background: rgba(5, 13, 31, 0.72);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-facts,
  .bridge,
  .workflow,
  .scenario-grid,
  .matrix,
  .governance {
    grid-template-columns: 1fr;
  }

  #bridge .section-head {
    max-width: 820px;
  }

  #bridge .section-head h2 {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 34px;
  }

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

  .section {
    padding: 64px 0;
  }

  .section-head h2 {
    font-size: 28px;
  }

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