:root {
  color-scheme: dark;
  --bg: #071016;
  --surface: #101b23;
  --surface-2: #16242d;
  --line: #29404b;
  --text: #f7fafb;
  --muted: #aebcc4;
  --orange: var(--ch-brand);
  --cyan: var(--ch-cyan);
  --green: var(--ch-green);
  --gold: var(--ch-gold);
  font-family: var(--ch-font-sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20; min-height: 72px; padding: 12px clamp(20px, 5vw, 76px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  background: rgba(7, 16, 22, .9); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 20px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.icon-action { width: 42px; height: 42px; border: 1px solid var(--line); color: var(--text); background: var(--surface); cursor: pointer; }
.button { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-weight: 750; }
.button.primary { background: var(--orange); color: #101010; }
.button.secondary { border-color: var(--line); background: rgba(16,27,35,.82); }
.button:hover { filter: brightness(1.08); }

.hero {
  min-height: min(900px, 94vh); padding: 138px clamp(24px, 7vw, 112px) 72px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(350px, .75fr);
  align-items: center; gap: clamp(48px, 8vw, 130px); position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(90deg, rgba(7,16,22,.97) 0%, rgba(7,16,22,.84) 48%, rgba(7,16,22,.38) 100%), url("./faded_gallery-OfdOEdGYiuk-unsplash.webp") center/cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }
.hero-content { max-width: 730px; }
.hero > * { min-width: 0; }
.eyebrow { margin: 0 0 14px; color: var(--cyan); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: 1.4px; }
h1 { margin: 0; font-size: clamp(58px, 8vw, 116px); line-height: .92; letter-spacing: 0; }
.hero-copy { max-width: 700px; margin: 26px 0; color: #d8e1e5; font-size: clamp(18px, 2vw, 24px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.text-link { color: var(--text); font-weight: 700; }
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 54px 0 0; }
.proof-strip div { padding: 0 18px; border-left: 2px solid var(--orange); }
.proof-strip div:first-child { padding-left: 16px; }
.proof-strip dt { font-weight: 800; }
.proof-strip dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.hero-glance { align-self: center; border: 1px solid rgba(255,255,255,.16); background: rgba(7,16,22,.82); box-shadow: 0 28px 80px rgba(0,0,0,.32); backdrop-filter: blur(16px); }
.glance-head { padding: 20px 22px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.glance-head strong { color: var(--text); }
.glance-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.glance-metrics div { min-width: 0; padding: 22px 18px; border-right: 1px solid var(--line); }
.glance-metrics div:last-child { border: 0; }
.glance-metrics span, .glance-metrics small { display: block; color: var(--muted); font-size: 12px; }
.glance-metrics strong { display: block; margin: 4px 0; font-size: 30px; }
.glance-metrics small { color: var(--green); }
.pipeline-preview { padding: 22px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.pipeline-preview span { display: grid; grid-template-columns: 92px 1fr 28px; align-items: center; gap: 12px; font-size: 12px; }
.pipeline-preview span::before { content: ""; grid-column: 2; grid-row: 1; width: var(--value); height: 8px; background: var(--cyan); }
.pipeline-preview b { grid-column: 1; grid-row: 1; }
.pipeline-preview i { grid-column: 3; grid-row: 1; color: var(--muted); font-style: normal; text-align: right; }

.section { padding: 104px clamp(24px, 7vw, 112px); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading h2, .security-band h2, .closing h2 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1.06; letter-spacing: 0; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.workflow { background: #f5f8f9; color: #10181d; }
.workflow .section-heading > p:last-child { color: #5d6b72; }
.workflow-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #c9d4d9; list-style: none; }
.workflow-list li { min-height: 260px; padding: 24px; border-right: 1px solid #c9d4d9; display: flex; flex-direction: column; justify-content: space-between; }
.workflow-list li:last-child { border-right: 0; }
.workflow-list li > span { color: #78878e; font: 800 13px ui-monospace, monospace; }
.workflow-list h3 { margin: 0 0 8px; font-size: 25px; }
.workflow-list p { margin: 0; color: #5d6b72; }
.capabilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding-top: 1px; padding-bottom: 1px; background: var(--line); }
.capabilities article { padding: 42px 30px; background: var(--surface); }
.capability-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #20313a; color: var(--orange); font-weight: 900; }
.capabilities h3 { margin: 38px 0 10px; font-size: 20px; }
.capabilities p { margin: 0; color: var(--muted); }

.plans { background: #0a141a; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { min-width: 0; padding: 32px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); }
.plan.featured { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.plan-name { margin: 0 0 12px; color: var(--cyan); font-weight: 850; text-transform: uppercase; font-size: 12px; letter-spacing: 1.2px; }
.plan h3 { min-height: 64px; margin: 0; font-size: 24px; }
.recommended { float: right; margin-top: -34px; padding: 5px 8px; background: var(--gold); color: #15100a; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.price { margin: 30px 0 22px; padding: 18px 0; border-block: 1px solid var(--line); font-size: 20px; font-weight: 800; }
.plan ul { min-height: 172px; margin: 0 0 26px; padding: 0; list-style: none; color: var(--muted); }
.plan li { padding: 7px 0 7px 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; background: var(--green); }
.plan .button { margin-top: auto; }
.security-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; border-block: 1px solid var(--line); background: var(--surface-2); }
.security-band p:last-child { margin: 0; color: var(--muted); font-size: 18px; }
.closing { min-height: 380px; display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.closing h2 { max-width: 900px; }
footer { padding: 30px clamp(24px, 7vw, 112px); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); border-top: 1px solid var(--line); }
footer .brand { color: var(--text); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 126px; }
  .hero-content { max-width: 780px; }
  .hero-glance { width: min(100%, 620px); }
  .workflow-list, .capabilities { grid-template-columns: repeat(2, 1fr); }
  .workflow-list li:nth-child(2) { border-right: 0; }
  .workflow-list li { border-bottom: 1px solid #c9d4d9; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan h3, .plan ul { min-height: 0; }
  .security-band { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; padding: 10px 16px; }
  .brand { font-size: 18px; }
  .brand img { width: 34px; height: 34px; }
  .header-actions .secondary { width: 42px; overflow: hidden; color: transparent; position: relative; padding: 0; }
  .header-actions .secondary::after { content: "\2192"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); }
  .hero { padding: 112px 20px 54px; gap: 40px; background-position: 62% center; }
  h1 { font-size: 54px; }
  .hero-copy { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-glance { width: 100%; max-width: 100%; overflow: hidden; }
  .glance-head { flex-wrap: wrap; gap: 8px 14px; }
  .proof-strip { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .glance-metrics { grid-template-columns: 1fr 1fr; }
  .glance-metrics div:nth-child(2) { border-right: 0; }
  .glance-metrics div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .pipeline-preview span { grid-template-columns: 72px 1fr 24px; }
  .section { padding: 74px 20px; }
  .workflow-list, .capabilities { grid-template-columns: 1fr; }
  .workflow-list li { min-height: 210px; border-right: 0; }
  .capabilities article { padding: 32px 24px; }
  .plan { padding: 26px 22px; }
  .closing { min-height: 360px; flex-direction: column; justify-content: center; align-items: flex-start; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero-actions .button,
  .plan .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
