:root {
  color-scheme: light;
  --ink: #10222b;
  --muted: #5b6c75;
  --soft: #edf5f4;
  --paper: #fbfcf9;
  --line: rgba(16, 34, 43, 0.14);
  --blue: #1769cf;
  --cyan: #13a6b7;
  --teal: #0f8f72;
  --lime: #d6ea68;
  --amber: #e7b148;
  --shadow: 0 22px 70px rgba(16, 34, 43, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 18px clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(251, 252, 249, 0.9);
  box-shadow: 0 12px 34px rgba(16, 34, 43, 0.1);
  padding-bottom: 12px;
  padding-top: 12px;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(6, 24, 31, 0.18);
  display: inline-flex;
  padding: 7px 10px;
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-header[data-elevated="true"] .brand {
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 34, 43, 0.08);
}

.brand img {
  height: auto;
  width: 148px;
}

.desktop-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.site-header[data-elevated="true"] .desktop-nav {
  color: var(--muted);
}

.desktop-nav a,
.nav-cta,
.button,
.role-tabs button {
  min-height: 42px;
}

.nav-cta,
.button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  white-space: nowrap;
}

.nav-cta {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 10px 16px;
}

.site-header[data-elevated="true"] .nav-cta {
  background: var(--ink);
  color: #fff;
}

.hero-section {
  min-height: 94vh;
  overflow: hidden;
  position: relative;
  color: #fff;
}

.hero-bg,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 24, 31, 0.9), rgba(6, 24, 31, 0.58) 48%, rgba(6, 24, 31, 0.24)),
    linear-gradient(180deg, rgba(6, 24, 31, 0.2), rgba(6, 24, 31, 0.84));
}

.hero-content {
  display: grid;
  gap: clamp(28px, 5vw, 78px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: 94vh;
  padding: 132px clamp(20px, 4vw, 34px) 56px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.trust-copy h2,
.demo-copy h2 {
  letter-spacing: 0;
  line-height: 1.06;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 84px);
  max-width: 820px;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  margin: 24px 0 0;
  max-width: 720px;
}

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

.button {
  border: 1px solid transparent;
  padding: 13px 18px;
}

.button-primary {
  background: var(--lime);
  color: #132127;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.command-panel {
  align-self: center;
  background: rgba(10, 31, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2vw, 28px);
  backdrop-filter: blur(18px);
}

.panel-topline {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 18px;
}

.panel-topline span,
.card-header span,
.task-row span,
.metric-grid span,
.live-list span,
.panel-kicker {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-topline strong {
  font-size: 24px;
}

.metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
}

.metric-grid div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  padding: 14px;
}

.metric-grid strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  margin: 8px 0 2px;
}

.metric-grid small,
.live-list small {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 12px;
}

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

.live-list li {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--lime);
  border-radius: 7px;
  padding: 14px 16px;
}

.live-list strong {
  display: block;
  margin: 2px 0;
}

.section-pad {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px);
}

.section-heading {
  margin: 0 auto clamp(28px, 4vw, 46px);
  max-width: 880px;
  text-align: center;
}

.section-heading .eyebrow,
.trust-copy .eyebrow,
.demo-copy .eyebrow {
  color: var(--teal);
}

.section-heading h2,
.trust-copy h2,
.demo-copy h2 {
  font-size: clamp(32px, 4.6vw, 56px);
}

.problem-grid,
.capability-grid,
.proof-grid {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 1180px;
}

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

.problem-grid article,
.capability-grid article,
.proof-card,
.role-panel,
.demo-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(16, 34, 43, 0.07);
}

.problem-grid article,
.capability-grid article {
  padding: 24px;
}

.problem-grid span,
.loop-rail span {
  color: var(--blue);
  font-weight: 900;
}

h3 {
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 10px 0 10px;
}

p {
  color: var(--muted);
}

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

.loop-rail {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1240px;
}

.loop-rail article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 34, 43, 0.1);
  border-radius: var(--radius);
  min-height: 260px;
  padding: 24px;
}

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

.capability-grid article {
  min-height: 210px;
}

.capability-grid h3::before {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 3px;
  content: "";
  display: block;
  height: 7px;
  margin-bottom: 14px;
  width: 42px;
}

.roles-section {
  background: #f4f0e7;
}

.role-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: 310px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1080px;
}

.role-tabs {
  display: grid;
  gap: 10px;
}

.role-tabs button {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 34, 43, 0.12);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 13px 16px;
  text-align: left;
}

.role-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.role-panel {
  min-height: 360px;
  padding: clamp(24px, 4vw, 46px);
}

.role-panel .panel-kicker {
  color: var(--teal);
}

.role-panel h3 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 24px;
}

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

.role-panel div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 90px 1fr;
  padding-top: 14px;
}

.role-panel dt {
  color: var(--blue);
  font-weight: 900;
}

.role-panel dd {
  color: var(--muted);
  margin: 0;
}

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

.proof-card {
  padding: 22px;
}

.proof-card.wide {
  grid-column: span 2;
}

.card-header {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.card-header span {
  color: var(--teal);
}

.card-header strong {
  font-size: 21px;
}

.task-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 13px 0;
}

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

.task-row strong {
  font-size: 28px;
}

.task-row small {
  color: var(--muted);
  grid-column: 1 / -1;
}

.trust-section,
.demo-section {
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  margin: 0 auto;
  max-width: 1180px;
}

.trust-list {
  align-self: center;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li {
  background: var(--ink);
  border-radius: 7px;
  color: #fff;
  font-weight: 800;
  padding: 18px;
}

.demo-section {
  background: var(--ink);
  color: #fff;
  max-width: none;
}

.demo-section .demo-copy {
  align-self: center;
  justify-self: end;
  max-width: 560px;
}

.demo-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.demo-form {
  align-self: center;
  color: var(--ink);
  display: grid;
  gap: 14px;
  justify-self: start;
  max-width: 520px;
  padding: 24px;
  width: 100%;
}

.demo-form label {
  display: grid;
  gap: 8px;
}

.demo-form label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.demo-form input,
.demo-form select {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.demo-form .button-primary {
  border: 0;
  cursor: pointer;
  width: 100%;
}

.demo-form .button-primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-note,
.demo-output small {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.demo-output {
  background: var(--soft);
  border: 1px solid rgba(15, 143, 114, 0.26);
  border-radius: 7px;
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
}

.demo-output[data-status="error"] {
  background: #fff4f0;
  border-color: rgba(190, 79, 50, 0.34);
  color: #8a2b19;
}

.demo-output[hidden] {
  display: none;
}

.demo-output span,
.demo-output small {
  display: block;
}

.site-footer {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
  padding: 28px 20px;
}

.site-footer img {
  width: 118px;
}

.site-footer span,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-content,
  .trust-section,
  .demo-section {
    grid-template-columns: 1fr;
  }

  .command-panel,
  .demo-section .demo-copy,
  .demo-form {
    justify-self: stretch;
  }

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

  .loop-rail {
    grid-template-columns: 1fr;
  }

  .loop-rail article {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .brand img {
    width: 128px;
  }

  .hero-section,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding-top: 112px;
  }

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

  .metric-grid,
  .problem-grid,
  .capability-grid,
  .proof-grid,
  .role-layout {
    grid-template-columns: 1fr;
  }

  .proof-card.wide {
    grid-column: auto;
  }

  .role-panel div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-cta {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
