:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --surface-strong: #101827;
  --text: #152033;
  --heading: #111827;
  --muted: #657287;
  --line: #d8e0ea;
  --accent: #0f8b7f;
  --accent-strong: #0b5f59;
  --blue: #2457a7;
  --amber: #b7791f;
  --shadow: 0 24px 70px rgba(18, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(216, 224, 234, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 740;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 820;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 640;
}

.nav a {
  white-space: nowrap;
}

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

.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(30px, 4.6vw, 62px);
  min-height: min(620px, calc(100vh - 180px));
  padding: clamp(40px, 5vw, 76px) clamp(20px, 5vw, 64px) 46px;
}

.hero-page {
  min-height: 520px;
}

.hero-home {
  padding-top: clamp(34px, 4vw, 56px);
  padding-bottom: 28px;
}

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

h1 {
  max-width: 840px;
  color: var(--heading);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 790;
  line-height: 1.01;
  letter-spacing: 0;
}

.hero-copy p,
.lead {
  max-width: 640px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.64;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 740;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.product-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(113, 128, 150, 0.28);
  border-radius: 8px;
  background: #0c1321;
  box-shadow: var(--shadow);
}

.product-mock {
  min-height: 360px;
  padding: 18px;
  color: #e7eef8;
}

.mock-topbar,
.diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #152033;
  font-size: 13px;
  font-weight: 760;
}

.mock-topbar span:last-child,
.diagram-header span:last-child {
  color: #87d4c9;
  font-size: 12px;
}

.mock-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mock-metrics div,
.mock-panel,
.architecture-card {
  border: 1px solid rgba(216, 224, 234, 0.14);
  border-radius: 8px;
  background: #101a2c;
}

.mock-metrics div {
  min-height: 88px;
  padding: 14px;
}

.mock-metrics strong,
.mock-metrics span {
  display: block;
}

.mock-metrics strong {
  color: #ffffff;
  font-size: 19px;
  line-height: 1.18;
}

.mock-metrics span {
  margin-top: 8px;
  color: #9fb0c5;
  font-size: 12px;
  line-height: 1.36;
}

.mock-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 12px;
  margin-top: 12px;
}

.evidence-preview {
  grid-template-columns: 1.05fr 0.95fr;
}

.mock-panel {
  min-height: 174px;
  padding: 16px;
}

.mock-label {
  display: block;
  color: #9fb0c5;
  font-size: 12px;
  font-weight: 780;
}

.mock-bars {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mock-bars i {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f8b7f 0%, #2b6cb0 62%, #334155 62%);
}

.mock-bars i:nth-child(2) {
  background: linear-gradient(90deg, #b7791f 0%, #b7791f 48%, #334155 48%);
}

.mock-bars i:nth-child(3) {
  background: linear-gradient(90deg, #0f8b7f 0%, #0f8b7f 74%, #334155 74%);
}

.workflow-map,
.system-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.workflow-map span,
.system-flow span {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(216, 224, 234, 0.14);
  border-radius: 8px;
  background: #101a2c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}

.workflow-map span:not(:last-child)::after,
.system-flow span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-top: 2px solid #87d4c9;
  border-right: 2px solid #87d4c9;
  transform: translateY(-50%) rotate(45deg);
}

.mock-panel ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.mock-panel li {
  color: #e7eef8;
  font-size: 14px;
  line-height: 1.35;
}

.mock-panel li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.section {
  padding: clamp(76px, 9vw, 128px) clamp(20px, 5vw, 64px);
}

.intro {
  padding-top: clamp(44px, 6vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

h2 {
  max-width: 760px;
  color: var(--heading);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 770;
  line-height: 1.04;
}

h3 {
  color: var(--heading);
  font-size: 21px;
  font-weight: 740;
  line-height: 1.2;
}

.section-heading p,
.split-section p,
.band-copy p,
.page-copy p,
.timeline p,
.contact-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.66;
}

.feature-grid,
.module-grid,
.principle-grid,
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 46px auto 0;
}

.feature-grid article,
.module-card,
.principle-card,
.scope-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-grid article,
.module-card,
.principle-card,
.scope-card {
  min-height: 248px;
  padding: 28px;
}

.feature-grid p,
.module-card p,
.principle-card p,
.scope-card p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.scope-card span,
.decision-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 820;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  max-width: 1308px;
  margin: 0 auto;
}

.split-section > div:first-child p {
  max-width: 600px;
  margin-top: 22px;
}

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

.proof-list div {
  padding: 22px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(18, 32, 51, 0.07);
}

.proof-list span,
.timeline span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
}

.proof-list strong,
.timeline strong {
  display: block;
  margin-top: 8px;
  color: var(--heading);
  font-size: 19px;
}

.proof-list p {
  margin-top: 8px;
  font-size: 15px;
}

.dark-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  background: var(--surface-strong);
  color: #f8fafc;
}

.light-band {
  background: #eef4f8;
}

.dark-band h2 {
  color: #ffffff;
}

.dark-band p {
  color: #a9b7ca;
  margin-top: 22px;
}

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

.capability-strip span {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #172236;
  color: #ffffff;
  font-size: 16px;
  font-weight: 730;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 120px) clamp(20px, 5vw, 64px);
}

.page-copy {
  max-width: 760px;
}

.page-copy p {
  margin-top: 20px;
}

.architecture-board {
  display: grid;
  gap: 14px;
  margin-top: 44px;
  padding: 18px;
  border-radius: 8px;
  background: #0c1321;
  color: #e7eef8;
  box-shadow: var(--shadow);
}

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

.architecture-card {
  min-height: 150px;
  padding: 18px;
}

.architecture-card h3 {
  color: #ffffff;
  font-size: 18px;
}

.architecture-card p {
  margin-top: 14px;
  color: #a9b7ca;
  font-size: 15px;
  line-height: 1.58;
}

.timeline {
  display: grid;
  gap: 18px;
  margin-top: 46px;
}

.timeline article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline p {
  margin-top: 10px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 46px auto 0;
}

.decision-grid article {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.decision-grid h3 {
  font-size: 18px;
}

.decision-grid p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.policy-page {
  max-width: 980px;
}

.policy-list {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.policy-list article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.policy-list h2 {
  font-size: 28px;
}

.policy-list p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.policy-list a {
  color: var(--accent-strong);
  font-weight: 760;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.contact-card {
  padding: 30px;
  box-shadow: 0 14px 42px rgba(18, 32, 51, 0.08);
}

.contact-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-strong);
  font-size: 19px;
  font-weight: 760;
  word-break: break-word;
}

.contact-topics {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.contact-topics li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--text);
  font-weight: 740;
  word-break: break-word;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
  }

  .hero,
  .section-heading,
  .split-section,
  .dark-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .module-grid,
  .principle-grid,
  .scope-grid,
  .decision-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    display: block;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 16px;
    font-size: 13px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy p,
  .lead,
  .section-heading p,
  .split-section p,
  .band-copy p,
  .page-copy p {
    font-size: 16px;
  }

  .mock-metrics,
  .mock-layout,
  .workflow-map,
  .system-flow,
  .capability-strip,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .workflow-map span:not(:last-child)::after,
  .system-flow span:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -8px;
    transform: translateX(50%) rotate(135deg);
  }

  .timeline article {
    gap: 12px;
  }

  .footer {
    display: block;
  }

  .footer a {
    display: inline-block;
    margin-top: 10px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
