:root {
  color-scheme: light;
  --ink: #09152b;
  --navy: #07142b;
  --muted: #52617a;
  --blue: #155eef;
  --blue-deep: #124bd1;
  --blue-soft: #edf4ff;
  --line: #dce5f1;
  --paper: #ffffff;
  --soft: #f5f8fd;
  --content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.58 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #6fa0ff; outline-offset: 3px; border-radius: 5px; }

/* Compact, brand-led header. Logo uses a restrained horizontal lockup. */
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid #e8edf5;
  background: rgba(255,255,255,.97);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 128px; height: auto; max-height: 43px; object-fit: contain; }
.nav nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 26px; font-size: 12px; font-weight: 700; }
.nav nav > a:not(.nav-cta) { color: #465570; transition: color .15s ease; }
.nav nav > a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { display: inline-flex; justify-content: center; align-items: center; min-height: 38px; padding: 8px 14px; border: 1px solid #cbd8eb; border-radius: 7px; color: var(--navy); background: #fff; white-space: nowrap; }

main { width: 100%; overflow: clip; }
.hero {
  position: relative;
  padding: 94px max(24px, calc((100vw - 1120px) / 2)) 66px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 82% 8%, rgba(21,94,239,.10), transparent 38%), linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  left: max(24px, calc((100vw - 1120px) / 2));
  top: 0;
  width: 52px;
  height: 3px;
  background: var(--blue);
  border-radius: 0 0 3px 3px;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: #34547e; font-size: 10px; line-height: 1.4; letter-spacing: .16em; font-weight: 850; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #e7efff; flex: 0 0 auto; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 970px;
  margin: 25px 0 22px;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 780;
  line-height: 1.055;
  letter-spacing: -.052em;
  overflow-wrap: normal;
}
h1 em, h2 em { color: var(--blue); font-style: normal; }
.lead { max-width: 760px; margin-bottom: 0; color: #4e5d76; font-size: 18px; line-height: 1.7; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 30px 0 38px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; max-width: 100%; padding: 12px 17px; border-radius: 7px; font-size: 12px; line-height: 1.35; font-weight: 780; text-align: center; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.primary { color: #fff; background: var(--blue); box-shadow: 0 5px 16px rgba(21,94,239,.16); }
.primary:hover { background: var(--blue-deep); box-shadow: 0 8px 20px rgba(21,94,239,.22); }
.secondary { border: 1px solid #d1ddec; background: #fff; color: var(--navy); }
.hero-foot { display: flex; align-items: center; gap: 12px 25px; flex-wrap: wrap; color: #566680; font-size: 11px; line-height: 1.4; font-weight: 700; }
.hero-foot span { display: inline-flex; align-items: center; gap: 8px; }
.hero-foot i { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: var(--blue); }

section:not(.hero) { padding: 78px max(24px, calc((100vw - var(--content)) / 2)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 32px; }
.section-head h2, h2 { margin: 14px 0 0; font-size: clamp(30px, 3.45vw, 46px); line-height: 1.13; letter-spacing: -.045em; font-weight: 760; }
.section-head > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; }
.flow { display: flex; align-items: stretch; gap: 10px; }
.flow-node { min-width: 0; min-height: 152px; flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; padding: 17px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.flow-node small { color: #66809f; font-size: 10px; letter-spacing: .1em; font-weight: 850; }
.flow-node strong { font-size: 13px; line-height: 1.35; }
.flow-node > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.apc-node { border-color: #a9c6ff; background: var(--blue-soft); box-shadow: inset 0 3px 0 var(--blue); }
.arrow { align-self: center; flex: 0 0 auto; color: #8798b3; font-size: 17px; }
.callout { display: flex; align-items: center; gap: 17px; margin-top: 20px; padding: 21px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.callout-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--navy); font-size: 12px; font-weight: 850; }
.callout p { margin: 0; color: #4c5a70; font-size: 13px; line-height: 1.65; }
.callout strong { color: var(--ink); }

.controls-section { border-top: 1px solid #e9eef6; border-bottom: 1px solid #e9eef6; background: #f7f9fd; }
.controls-section h2 { max-width: 660px; margin-bottom: 32px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards article { min-width: 0; min-height: 184px; padding: 22px; border: 1px solid #e0e7f1; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px rgba(15,35,70,.018); }
.num { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.cards h3 { margin: 15px 0 8px; font-size: 16px; line-height: 1.35; letter-spacing: -.02em; }
.cards p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.play-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 66px); }
.play-section > div:first-child { min-width: 0; }
.play-section p { max-width: 460px; margin: 18px 0 24px; color: var(--muted); font-size: 14px; }
.terminal { min-width: 0; overflow: hidden; border: 1px solid #152647; border-radius: 11px; color: #eaf0ff; background: var(--navy); box-shadow: 0 18px 44px rgba(7,20,43,.12); }
.term-top { height: 43px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid #24324a; }
.term-top > span { width: 7px; height: 7px; border-radius: 50%; background: #52617a; }
.term-top label { margin-left: 9px; color: #a1b1ca; font-size: 10px; }
.terminal pre { margin: 0; padding: 22px; font-size: 12px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal code i { color: #8eb4ff; font-style: normal; }
.ok { color: #69dfb1; font-weight: 800; }
.bad { color: #ff8b94; font-weight: 800; }
.term-bottom { padding: 12px 21px; border-top: 1px solid #24324a; color: #a1b1ca; font-size: 9px; letter-spacing: .12em; }

.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; border-top: 1px solid var(--line); background: #f5f8fc; }
.trust h2 { max-width: 450px; }
.trust-copy p { margin-bottom: 12px; color: #536078; font-size: 13px; line-height: 1.75; }
.trust-copy p:last-child { margin-bottom: 0; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff; background: var(--navy); }
.contact .eyebrow { color: #bbd0f6; }
.contact h2 { margin: 14px 0 10px; }
.contact p { max-width: 550px; margin: 0; color: #bdc9dc; font-size: 14px; }
.contact .btn { flex: 0 0 auto; }
footer { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; padding: 20px max(24px, calc((100vw - var(--content)) / 2)); border-top: 1px solid var(--line); color: #62718a; font-size: 10px; }
footer img { width: 86px; height: auto; max-height: 29px; object-fit: contain; }
footer span:nth-child(2) { margin-right: auto; }

@media (max-width: 980px) {
  .nav { gap: 18px; }
  .nav nav { gap: 16px; }
  .hero { padding-top: 76px; }
  .section-head { align-items: start; gap: 26px; }
  .flow { flex-wrap: wrap; }
  .flow-node { flex: 1 1 27%; }
  .arrow { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-section, .trust { gap: 32px; }
}

@media (max-width: 700px) {
  .nav { min-height: 0; flex-direction: column; align-items: stretch; gap: 11px; padding: 12px 18px 13px; }
  .brand { align-self: flex-start; }
  .brand img { width: 106px; max-height: 36px; }
  .nav nav { width: 100%; justify-content: flex-start; gap: 8px 14px; font-size: 11px; }
  .nav nav > a { min-height: 28px; display: inline-flex; align-items: center; }
  .nav-cta { min-height: 29px !important; padding: 5px 9px; }
  .hero { padding: 58px 20px 42px; }
  .hero::before { left: 20px; width: 38px; }
  h1 { max-width: 100%; margin: 22px 0 18px; font-size: clamp(31px, 8.5vw, 42px); line-height: 1.08; letter-spacing: -.046em; }
  .desktop-break { display: none; }
  .hero h1 em { display: block; margin-top: .06em; }
  .lead { max-width: 100%; font-size: 15px; line-height: 1.7; }
  .actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; margin: 24px 0 27px; }
  .actions .btn { width: 100%; min-width: 0; padding: 13px 12px; }
  .hero-foot { align-items: flex-start; flex-direction: column; gap: 10px; font-size: 11px; }
  section:not(.hero) { padding: 54px 20px; }
  .section-head { display: block; margin-bottom: 25px; }
  .section-head h2, h2 { font-size: clamp(29px, 7vw, 38px); line-height: 1.14; }
  .section-head > p { max-width: 100%; margin-top: 15px; font-size: 13px; }
  .flow { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
  .flow-node { min-height: 0; flex: 0 0 auto; gap: 7px; padding: 15px; }
  .flow-node strong { font-size: 14px; }
  .flow-node > span { font-size: 12px; }
  .arrow { display: block; align-self: center; line-height: 1; transform: rotate(90deg); }
  .callout { align-items: flex-start; gap: 12px; margin-top: 17px; padding: 15px; }
  .callout-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .callout p { font-size: 12px; }
  .controls-section h2 { margin-bottom: 25px; }
  .cards { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .cards article { min-height: 0; padding: 18px; }
  .cards h3 { margin-top: 11px; }
  .play-section, .trust { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .play-section p { font-size: 13px; }
  .terminal pre { padding: 16px; font-size: 11px; line-height: 1.85; }
  .term-bottom { padding: 11px 15px; font-size: 8px; }
  .trust-copy p { font-size: 12px; }
  .contact { align-items: stretch; flex-direction: column; gap: 22px; }
  .contact .btn { width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  footer { gap: 12px 15px; padding: 18px 20px; }
  footer img { width: 78px; max-height: 26px; }
  footer span:nth-child(2) { margin-right: 0; }
  footer span:nth-child(3) { margin-left: auto; }
}

@media (max-width: 360px) {
  .nav { padding-left: 15px; padding-right: 15px; }
  .nav nav { gap: 6px 10px; font-size: 10px; }
  .nav-cta { padding: 4px 7px; }
  .hero { padding-left: 17px; padding-right: 17px; }
  .hero::before { left: 17px; }
  section:not(.hero) { padding-left: 17px; padding-right: 17px; }
  h1 { font-size: 31px; }
  .eyebrow { letter-spacing: .12em; font-size: 9px; }
  .btn { font-size: 11px; }
  footer { padding-left: 17px; padding-right: 17px; }
}

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