/* Everything below the hero: calm, white, generous. */

.section { padding: clamp(80px, 11vw, 152px) 0; }
.section + .section { padding-top: 0; }
.band { background: var(--mist); }
.section.band, .band + .section { padding-top: clamp(80px, 11vw, 152px); }
.h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; line-height: 1.35; }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }

/* the three problem lines: a quiet typographic moment */
.problems { padding: clamp(96px, 13vw, 176px) 0 clamp(72px, 9vw, 120px); }
.problems ol { list-style: none; display: grid; gap: clamp(14px, 1.8vw, 24px); }
.problems li { font-size: clamp(24px, 3.4vw, 46px); font-weight: 300; line-height: 1.35; color: rgba(12, 35, 48, .38); letter-spacing: -.005em; }
.problems li:last-child { color: var(--ink); }
.problems .answer { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 8px 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.problems .answer span + span::before { content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 20px; background: var(--line); vertical-align: -.1em; }

/* the five lines */
.line { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line-2); }
.line:first-of-type { border-top: 0; }
.line .grid { align-items: start; row-gap: 40px; }
.line-text { grid-column: 1 / span 4; position: sticky; top: 112px; }
.line-media { grid-column: 6 / -1; display: grid; gap: clamp(24px, 3vw, 40px); }
.line.flip .line-text { grid-column: 9 / -1; grid-row: 1; }
.line.flip .line-media { grid-column: 1 / span 7; grid-row: 1; }
.line-no { display: flex; align-items: baseline; gap: 14px; color: var(--sky-deep); font-size: 15px; font-weight: 500; }
.line-no .n { font-family: "Manrope", sans-serif; font-weight: 300; font-size: 15px; letter-spacing: .04em; }
.line h3 { margin-top: 14px; }
.line .sub { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.points { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.7; }
.points li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--sky-deep); }

/* screenshots: soft rounded frame, neutral shadow, never tilted */
.shot { margin: 0; }
.shot .frame { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-shot); outline: 1px solid var(--line-2); }
.shot img { width: 100%; }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.shot.small { width: min(100%, 520px); justify-self: end; }
.flip .shot.small { justify-self: start; }

/* AI: the one sky band */
.ai-head { text-align: center; max-width: 820px; margin: 0 auto; }
.ai-head .line-no { justify-content: center; }
.ai-head .h2 { margin-top: 16px; }
.ai-head .lede { margin: 20px auto 0; }
.guarantees { list-style: none; margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.guarantees li { padding: 28px 28px 0 0; }
.guarantees li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.guarantees b { display: block; font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.guarantees p { color: var(--ink-2); font-size: 15px; }
.ai-shots { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 3vw, 40px); align-items: start; }

/* five-up row for governance */
.trio { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }

/* three bases, explained */
.bases-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); align-items: end; row-gap: 24px; }
.bases-head > div { grid-column: 1 / span 7; }
.bases-head .total { grid-column: 9 / -1; text-align: right; }
.total .fig { font-family: "Manrope", var(--font-cjk); font-weight: 200; font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.03em; color: var(--pink); }
.total .fig small { font-size: .5em; margin-right: 4px; }
.total p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.basis-cols { list-style: none; margin: clamp(40px, 5vw, 64px) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.basis-cols li { padding: 24px 28px 0 0; }
.basis-cols li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.basis-cols b { display: block; font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.basis-cols p { color: var(--ink-2); font-size: 15px; }
.basis-note { margin-top: 20px; font-size: 15px; color: var(--ink-2); }

/* deployment and security: text grid with hairlines */
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.facts li { padding: 26px 0; border-top: 1px solid var(--line); }
.facts b { display: block; font-size: 19px; font-weight: 400; margin-bottom: 6px; }
.facts p { color: var(--ink-2); font-size: 15px; }
.deploy .grid { row-gap: 48px; }
.deploy-text { grid-column: 1 / span 5; }
.deploy-facts { grid-column: 7 / -1; }
.deploy-text .link-more { display: inline-block; margin-top: 28px; }

/* the promo video */
.video-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #04060c; box-shadow: var(--shadow-shot); }
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .92; transition: opacity .4s var(--ease), transform .8s var(--ease); }
.video-card:hover img { opacity: 1; transform: scale(1.01); }
.video-card .play-big { position: absolute; left: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 36px); width: 72px; height: 72px; border-radius: 999px; display: grid; place-items: center; color: var(--ink);
  background: rgba(252, 255, 255, .9); box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .5); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.video-card:hover .play-big { transform: scale(1.05); box-shadow: 0 20px 50px -10px rgba(216, 57, 149, .55); }
.video-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }

/* closing CTA: the glass returns, quietly (CSS flutes) */
.closing { padding: 0 12px 12px; }
.closing-panel {
  position: relative; overflow: hidden; border-radius: var(--radius-panel); color: var(--white);
  padding: clamp(72px, 10vw, 136px) var(--gutter); text-align: center;
  background:
    repeating-linear-gradient(90deg, rgba(4, 50, 75, .14) 0, rgba(252, 255, 255, .12) 3px, rgba(252, 255, 255, .02) 8px, rgba(252, 255, 255, 0) 14px, rgba(4, 50, 75, .08) 20px, rgba(4, 50, 75, .14) 21px),
    radial-gradient(22% 60% at 78% 30%, rgba(255, 141, 116, .55), transparent 70%),
    radial-gradient(30% 80% at 72% 40%, rgba(216, 57, 149, .75), transparent 72%),
    radial-gradient(60% 90% at 20% 0%, rgba(252, 255, 255, .22), transparent 70%),
    linear-gradient(180deg, #0A86B8 0%, #05679A 55%, #044A70 100%);
}
.closing-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(56% 46% at 50% 42%, rgba(4, 34, 56, .55), rgba(4, 34, 56, .2) 70%, transparent 100%); pointer-events: none; }
.closing-panel > * { position: relative; z-index: 1; }
.closing .h2 { font-size: clamp(30px, 4.4vw, 60px); }
.closing p { margin: 20px auto 0; max-width: 32em; color: rgba(252, 255, 255, .94); }
.closing .hero-actions { justify-content: center; }

/* sub-pages */
.page-head { padding: clamp(140px, 16vw, 200px) 0 clamp(48px, 6vw, 80px); }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 300; }
.page-head .lede { margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .line-text, .line.flip .line-text { grid-column: 1 / -1; grid-row: auto; position: static; }
  .line-media, .line.flip .line-media { grid-column: 1 / -1; grid-row: auto; }
  .deploy-text, .deploy-facts { grid-column: 1 / -1; }
  .bases-head > div, .bases-head .total { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 760px) {
  .guarantees, .basis-cols, .trio, .ai-shots, .facts { grid-template-columns: 1fr; }
  .guarantees li, .guarantees li + li, .basis-cols li, .basis-cols li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .guarantees, .basis-cols { border-top: 0; }
  .shot.small { width: 100%; }
}

/* product: roles, alternating */
.role { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 28px; align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line-2); }
.role:first-child { border-top: 0; padding-top: 0; }
.role-text { grid-column: 1 / span 4; }
.role .shot { grid-column: 6 / -1; }
.role:nth-child(even) .role-text { grid-column: 9 / -1; grid-row: 1; }
.role:nth-child(even) .shot { grid-column: 1 / span 7; grid-row: 1; }
.role .points { margin-top: 20px; }
.role-note { margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 44em; font-size: 15px; }
@media (max-width: 1000px) {
  .role-text, .role .shot, .role:nth-child(even) .role-text, .role:nth-child(even) .shot { grid-column: 1 / -1; grid-row: auto; }
}

/* sub-page closing: quiet, no glass (the glass returns only on the home page) */
.closing.quiet .closing-panel { background: var(--mist); color: var(--ink); }
.closing.quiet .closing-panel::after { display: none; }
.closing.quiet p { color: var(--ink-2); }
.closing.quiet .btn-light { background: var(--ink); color: var(--white); }
.closing.quiet .btn-light:hover { box-shadow: 0 10px 30px -10px rgba(216, 57, 149, .55); }
.closing.quiet :focus-visible { outline-color: var(--sky-deep); }

/* text pages: deploy, docs, contact */
.prose-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 24px; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.prose-grid > h2 { grid-column: 1 / span 4; }
.prose-grid > .body { grid-column: 5 / -1; display: grid; gap: 20px; }
.prose-grid .body p, .prose-grid .body li { color: var(--ink-2); }
.prose-grid .body b { color: var(--ink); font-weight: 500; }
.prose-grid .body ul { list-style: none; display: grid; gap: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 500; color: var(--ink); white-space: nowrap; }
.table td { color: var(--ink-2); }
@media (max-width: 760px) { .prose-grid > h2, .prose-grid > .body { grid-column: 1 / -1; } }

/* docs: download centre behind a password (js/downloads.js) */
.dl-page { min-height: 60vh; transition: filter .4s var(--ease), opacity .4s var(--ease); }
.dl-locked .dl-page { filter: blur(8px); opacity: .5; pointer-events: none; user-select: none; }
.dl-locked body { overflow: hidden; }
/* Nothing but the dialog while locked: the empty page would pull the footer up. */
.dl-locked .site-footer { visibility: hidden; }
.dl-locked .dl-page { min-height: 100vh; }
.dl-gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: rgba(238, 246, 250, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dl-card { width: min(100%, 440px); background: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 40px);
  box-shadow: var(--shadow-shot); outline: 1px solid var(--line-2); display: grid; gap: 18px; }
.dl-card .muted { font-size: 15px; margin-top: -6px; }
.dl-error { min-height: 1.5em; margin-top: -6px; font-size: 14px; color: var(--pink-deep); }
.dl-error:empty { min-height: 0; margin-top: -18px; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.dl-actions .link-quiet { font-size: 15px; font-weight: 400; color: var(--sky-deep); }
.dl-noscript { padding: 40px 0; }
.dl-body { display: grid; gap: clamp(40px, 5vw, 64px); padding-bottom: clamp(80px, 10vw, 140px); }
.dl-rec { background: var(--mist); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 12px; justify-items: start; }
.dl-rec-label { font-size: 14px; font-weight: 500; color: var(--sky-deep); }
.dl-rec .muted { max-width: 40em; }
.dl-rec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 8px; }
.dl-group { display: grid; gap: 8px; }
.dl-list { list-style: none; border-top: 1px solid var(--line); }
.dl-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.dl-item-text { display: grid; gap: 4px; min-width: 0; }
.dl-name { font-size: 18px; font-weight: 500; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dl-tag { font-size: 13px; font-weight: 400; color: var(--sky-deep); }
.dl-item .muted { font-size: 15px; }
.dl-meta { font-size: 14px; color: var(--ink-2); }
.dl-sha { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.dl-sha-label { flex: none; }
.dl-sha code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--ink); }
.dl-copy { flex: none; font: inherit; font-size: 13px; color: var(--sky-deep); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.dl-copy:hover { border-color: var(--sky-deep); }
.dl-foot { display: grid; gap: 10px; justify-items: start; }
.dl-foot .muted { font-size: 14px; max-width: 44em; }
.dl-foot .link-quiet { font-size: 14px; font-weight: 400; color: var(--sky-deep); }
@media (max-width: 640px) {
  .dl-item { grid-template-columns: 1fr; }
  .dl-item > .btn { justify-self: start; }
}

/* contact */
.contact { padding-bottom: clamp(80px, 10vw, 140px); row-gap: 56px; align-items: start; }
.demo-form { grid-column: 1 / span 7; display: grid; gap: 22px; }
.contact-side { grid-column: 9 / -1; display: grid; gap: 20px; padding-top: 4px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:hover, .field textarea:hover { border-color: rgba(12, 35, 48, .28); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky-deep); box-shadow: 0 0 0 3px rgba(5, 147, 198, .18); }
.field textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.form-help { font-size: 14px; flex: 1 1 260px; }
.form-note { font-size: 14px; color: var(--pink-deep); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.contact-list.big dd { font-size: 17px; }
.side-note { font-size: 15px; }
@media (max-width: 900px) { .demo-form, .contact-side { grid-column: 1 / -1; } }
