:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #102033;
  --muted: #526276;
  --line: #d9e1ea;
  --soft: #f5f8fb;
  --blue: #0b56d0;
  --blue-dark: #0643a7;
  --green: #158047;
  --green-soft: #eaf7ef;
  --yellow: #b97800;
  --yellow-soft: #fff7e6;
  --red: #d92f2f;
  --red-soft: #fff0f0;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.08);
  --radius: 8px;
}

* {
  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", Arial, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--blue);
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  color: #1d2f45;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}

.header-action,
.button.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(11, 86, 208, 0.22);
}

.header-action:hover,
.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue);
  border-color: transparent;
}

.button.secondary:hover {
  border-color: var(--line);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 78px 40px 58px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 660px;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 22px;
  color: #192d44;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 650;
  line-height: 1.18;
}

.hero-text {
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.flow-visual {
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: var(--shadow);
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 30px minmax(116px, 1fr) 30px minmax(96px, 1fr) 30px minmax(130px, 1.1fr);
  gap: 10px;
  align-items: stretch;
}

.flow-node {
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: center;
  min-height: 180px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  text-align: center;
}

.flow-node strong {
  font-size: 15px;
  line-height: 1.2;
}

.boundary-node {
  border-color: rgba(21, 128, 71, 0.55);
  background: #f9fffb;
  color: var(--green);
}

.node-icon,
.mini-icon {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  color: var(--blue);
}

.user-icon::before {
  position: absolute;
  inset: 5px 9px auto;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 999px;
  content: "";
}

.user-icon::after {
  position: absolute;
  right: 3px;
  bottom: 4px;
  left: 3px;
  height: 16px;
  border: 3px solid currentColor;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom: 0;
  content: "";
}

.lock-icon::before {
  position: absolute;
  inset: 15px 6px 4px;
  border: 3px solid currentColor;
  border-radius: 5px;
  content: "";
}

.lock-icon::after {
  position: absolute;
  top: 3px;
  left: 10px;
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  content: "";
}

.llm-icon {
  border: 3px solid currentColor;
  border-radius: 999px;
}

.llm-icon::before,
.llm-icon::after {
  position: absolute;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.llm-icon::before {
  top: 16px;
  left: -5px;
  width: 48px;
  height: 3px;
}

.llm-icon::after {
  top: -5px;
  left: 16px;
  width: 3px;
  height: 48px;
}

.shield-icon {
  color: var(--green);
}

.shield-icon::before {
  position: absolute;
  inset: 2px 6px;
  border: 3px solid currentColor;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 18px;
  clip-path: polygon(50% 0, 100% 16%, 100% 62%, 50% 100%, 0 62%, 0 16%);
  content: "";
}

.flow-arrow {
  position: relative;
  min-width: 30px;
  height: 2px;
  margin: auto 0;
  background: #33465e;
}

.flow-arrow::after {
  position: absolute;
  top: -5px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #33465e;
  border-right: 2px solid #33465e;
  transform: rotate(45deg);
  content: "";
}

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

.decision {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.decision > span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.decision strong {
  display: block;
}

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

.decision.low {
  border-color: rgba(21, 128, 71, 0.35);
}

.decision.low > span {
  background: var(--green);
}

.decision.medium {
  border-color: rgba(185, 120, 0, 0.38);
}

.decision.medium > span {
  background: #f0b11a;
}

.decision.high {
  border-color: rgba(217, 47, 47, 0.38);
}

.decision.high > span {
  background: var(--red);
}

.section,
.demo-panel,
.split-section,
.pilot-section,
.cta-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 30px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.section-heading p,
.demo-copy > p,
.split-section p,
.pilot-section p,
.cta-section p {
  color: var(--muted);
  font-size: 17px;
}

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

.measure-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.measure-grid h3 {
  margin: 20px 0 10px;
  font-size: 18px;
}

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

.mini-icon {
  border: 2px solid currentColor;
  border-radius: 8px;
}

.fingerprint {
  border-radius: 999px;
}

.sliders::before,
.sliders::after,
.document::before,
.audit::before {
  position: absolute;
  content: "";
}

.sliders::before {
  inset: 8px 10px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.sliders::after {
  top: 18px;
  right: 7px;
  left: 7px;
  height: 3px;
  background: currentColor;
}

.document::before {
  inset: 10px 8px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.audit {
  border-radius: 999px;
}

.audit::before {
  top: 9px;
  left: 17px;
  width: 3px;
  height: 14px;
  background: currentColor;
  box-shadow: 7px 7px 0 currentColor;
  transform-origin: bottom;
}

.demo-panel {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 34px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.role-frame,
.risk-card,
.fit-diagram,
.pilot-table,
.cta-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.role-frame {
  margin-top: 28px;
  padding: 22px;
}

.role-frame h3 {
  font-size: 18px;
}

.role-frame dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.role-frame dl div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 14px;
}

.role-frame dt {
  color: var(--muted);
  font-weight: 700;
}

.role-frame dd {
  margin: 0;
}

.risk-card {
  padding: 24px;
}

.risk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.message-block {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
}

.message-block span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
}

.message-block p {
  margin-bottom: 0;
}

.message-block.unsafe {
  border: 1px solid rgba(217, 47, 47, 0.3);
  background: var(--red-soft);
}

.message-block.unsafe span {
  color: var(--red);
}

.message-block.safe {
  border: 1px solid rgba(21, 128, 71, 0.3);
  background: var(--green-soft);
}

.message-block.safe span {
  color: var(--green);
}

.toggle-details {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue);
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.toggle-details:hover {
  border-color: var(--blue);
}

.detail-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 22px;
  height: 22px;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  content: "✓";
  font-size: 14px;
  font-weight: 900;
  line-height: 18px;
  place-items: center;
}

.fit-diagram {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--soft);
}

.fit-diagram div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  font-weight: 800;
}

.fit-diagram div:nth-child(4) {
  border-color: rgba(21, 128, 71, 0.44);
  color: var(--green);
  background: #f8fffb;
}

.pilot-section {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.pilot-table {
  overflow: hidden;
  box-shadow: none;
}

.pilot-table > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.pilot-table > div:last-child {
  border-bottom: 0;
}

.pilot-table span {
  color: var(--muted);
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 54px;
  padding: 28px 30px;
}

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

.cta-section p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

  .nav {
    display: none;
  }

  .hero,
  .demo-panel,
  .split-section,
  .pilot-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .flow-visual {
    max-width: 760px;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .brand {
    font-size: 17px;
  }

  .header-action {
    display: none;
  }

  .hero,
  .section,
  .demo-panel,
  .split-section,
  .pilot-section,
  .cta-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .flow-row {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    width: 2px;
    height: 26px;
    margin: 0 auto;
  }

  .flow-arrow::after {
    top: auto;
    right: -4px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .flow-node {
    min-height: 132px;
  }

  .decision-stack,
  .measure-grid,
  .pilot-table > div,
  .role-frame dl div {
    grid-template-columns: 1fr;
  }

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