:root {
  --bg: #0b081b;
  --bg-soft: #15102d;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8f5ff;
  --muted: rgba(248, 245, 255, 0.69);
  --orange: #ff9b59;
  --orange-soft: #ffd0ad;
  --max: 1180px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 138, 61, 0.14), transparent 22%),
    radial-gradient(circle at 90% 16%, rgba(109, 69, 197, 0.25), transparent 25%),
    linear-gradient(180deg, #150e30 0%, var(--bg) 48%, #070514 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 6, 19, 0.78);
  backdrop-filter: blur(18px);
}
.brand img { width: auto; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 0.84rem; color: var(--muted); }
.site-nav a:hover { color: var(--orange-soft); }
.nav-cta { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  min-height: min(720px, calc(100svh - 64px));
  padding-block: 76px 62px;
}
.hero-grid { position: absolute; inset: 0; opacity: 0.17; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size: 70px 70px; mask-image: radial-gradient(circle at center, black 25%, transparent 82%); }
.hero-copy, .workflow-card { position: relative; z-index: 1; }
.eyebrow, .card-kicker { margin: 0 0 11px; color: var(--orange-soft); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Space Grotesk", sans-serif; letter-spacing: -0.045em; line-height: 1; }
h1 { max-width: 12ch; font-size: clamp(3rem, 6vw, 5.4rem); }
.hero-text { max-width: 620px; margin: 20px 0 0; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.62; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.model-ribbon { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.model-ribbon span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); font-size: .68rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 999px; font-weight: 800; transition: transform 0.18s ease; }
.button:hover { transform: translateY(-2px); }
.primary { color: #180c2a; background: linear-gradient(135deg, #ffe0c6, var(--orange)); }
.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.04); }

.workflow-card, .engagement-card, .example-card, .operator-panel, .cta-panel { border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-strong), var(--panel)); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.workflow-card { padding: 22px; border-radius: var(--radius); }
.flow-lane > small { display: block; margin-bottom: 7px; color: var(--orange-soft); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.flow { display: grid; grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr) 16px minmax(0,1fr); align-items: stretch; gap: 4px; }
.flow span { display: grid; place-items: center; min-height: 64px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.05); text-align: center; font-size: 0.76rem; font-weight: 700; line-height: 1.3; }
.flow i { display: grid; place-items: center; color: var(--orange); font-style: normal; }
.feedback-loop { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 8px; margin: 15px 0; padding: 10px 12px; border-block: 1px solid var(--line); color: var(--muted); font-size: .66rem; line-height: 1.35; }
.feedback-loop span:last-child { text-align: right; }
.feedback-loop i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #180c2a; background: var(--orange); font-style: normal; font-size: 1rem; font-weight: 800; }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.proof-strip div { padding: 18px; border-left: 1px solid var(--line); }
.proof-strip div:first-child { border-left: 0; }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { margin-bottom: 4px; font-size: 0.86rem; }
.proof-strip span { color: var(--muted); font-size: 0.76rem; }

.fit-board { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.fit-board div { min-height: 145px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fit-board div:nth-child(3n) { border-right: 0; }
.fit-board div:nth-child(n+4) { border-bottom: 0; }
.fit-board span, .fit-board strong, .fit-board small { display: block; }
.fit-board span { margin-bottom: 24px; color: var(--orange-soft); font-size: .7rem; font-weight: 800; }
.fit-board strong { margin-bottom: 5px; font-size: .88rem; }
.fit-board small { color: var(--muted); line-height: 1.5; }

.section { padding-top: clamp(70px, 9vw, 105px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr); align-items: end; gap: 40px; }
.section-head h2, .operator-panel h2, .cta-panel h2 { max-width: 15ch; font-size: clamp(2.1rem, 4vw, 3.6rem); }
.section-head > p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.6; }

.engagement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.engagement-card { display: flex; flex-direction: column; min-height: 330px; padding: 22px; border-radius: var(--radius); }
.engagement-card.featured { border-color: rgba(255,155,89,.48); background: linear-gradient(180deg, rgba(255,155,89,.12), var(--panel)); }
.engagement-card.cloudflare-card { border-color: rgba(99, 179, 237, .34); background: linear-gradient(180deg, rgba(61, 128, 191, .11), var(--panel)); }
.engagement-card.private-card { border-color: rgba(126, 224, 177, .28); background: linear-gradient(180deg, rgba(72, 164, 124, .09), var(--panel)); }
.number { align-self: flex-end; color: rgba(255,255,255,.35); font-family: "Space Grotesk", sans-serif; font-size: 0.8rem; }
.engagement-card h3 { min-height: 2.4em; margin: 7px 0 11px; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.15; }
.engagement-card > p:not(.card-kicker) { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.deliverables { display: grid; gap: 7px; margin: 18px 0; padding: 0; list-style: none; color: rgba(248,245,255,.61); font-size: 0.76rem; }
.deliverables li { position: relative; padding-left: 13px; }
.deliverables li::before { content: ""; position: absolute; top: .48em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.engagement-card a { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--orange-soft); font-size: 0.83rem; font-weight: 800; }

.example-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.example-card { padding: 20px; border-radius: 18px; }
.example-card > span { color: var(--orange-soft); font-size: 0.72rem; font-weight: 800; }
.example-card h3 { margin: 24px 0 18px; font-size: 1.08rem; }
.example-card.intelligence { border-color: rgba(255,155,89,.4); background: linear-gradient(135deg, rgba(255,155,89,.1), var(--panel)); }
.example-card > p { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; line-height: 1.55; }
.mini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mini-flow b { padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 0.72rem; font-weight: 600; }
.mini-flow i { color: var(--orange); font-style: normal; font-size: 0.7rem; }

.compliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.compliance-grid article { min-height: 285px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); }
.compliance-grid article:nth-child(2) { border-color: rgba(255,155,89,.4); background: linear-gradient(180deg, rgba(255,155,89,.09), var(--panel)); }
.compliance-grid > article > span { color: var(--orange-soft); font-size: .7rem; font-weight: 800; }
.compliance-grid h3 { margin: 30px 0 10px; font-size: 1.12rem; }
.compliance-grid p { margin: 0 0 18px; color: var(--muted); font-size: .82rem; line-height: 1.62; }

.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 14px; }
.practice-grid article { min-height: 225px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); }
.practice-grid article:nth-child(2) { border-color: rgba(255,155,89,.42); }
.practice-grid > article > span { color: var(--orange-soft); font-size: .7rem; font-weight: 800; }
.practice-grid h3 { margin: 34px 0 10px; font-size: 1.12rem; }
.practice-grid p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.62; }

.operator-panel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(35px, 7vw, 90px); padding: clamp(25px, 4vw, 46px); border-radius: var(--radius); }
.operator-lead, .operator-details p { color: var(--muted); line-height: 1.68; }
.operator-lead { max-width: 490px; margin: 17px 0 0; }
.operator-details > p:first-child { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; border-block: 1px solid var(--line); }
.steps span { padding: 13px 8px; border-left: 1px solid var(--line); font-size: 0.77rem; }
.steps span:first-child { border-left: 0; }
.steps b { display: block; margin-bottom: 3px; color: var(--orange-soft); }
.lab-note { margin-bottom: 0; font-size: 0.83rem; }
.lab-note strong { color: var(--text); }

.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.control-grid article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.control-grid h3 { margin: 0 0 15px; font-size: 1.25rem; }
.control-grid article > p:not(.card-kicker) { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.chip-cloud, .platform-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-cloud span, .platform-row span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; }
.platform-row { margin-top: 18px; }

.section:last-of-type { padding-bottom: 76px; }
.cta-panel { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 45px; padding: clamp(26px, 5vw, 52px); border-radius: var(--radius); }
.cta-panel p:not(.eyebrow) { max-width: 600px; margin: 16px 0 0; color: var(--muted); line-height: 1.65; }
.assessment-grid { display: grid; grid-template-columns: repeat(3, max-content); gap: 7px; margin-top: 20px; }
.assessment-grid span { padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.055); color: var(--muted); font-size: .72rem; }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-action > a:not(.button) { color: var(--orange-soft); font-weight: 700; }
.cta-action small { color: var(--muted); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
footer .brand img { height: 25px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 300px; gap: 32px; min-height: auto; padding-block: 64px 50px; }
  h1 { font-size: clamp(2.8rem, 7vw, 4.5rem); }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .proof-strip div:nth-child(4) { border-top: 1px solid var(--line); }
  .engagement-grid, .example-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engagement-card { min-height: 310px; padding: 17px; }
  .engagement-card h3 { font-size: 1.18rem; }
  .mini-flow { display: grid; grid-template-columns: 1fr; }
  .mini-flow i { transform: rotate(90deg); width: 10px; margin-left: 8px; }
  .operator-panel, .cta-panel { grid-template-columns: 1fr; gap: 28px; }
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-grid article { min-height: 240px; padding: 17px; }
  .compliance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compliance-grid article { min-height: 315px; padding: 17px; }
  .fit-board { grid-template-columns: repeat(2, 1fr); }
  .fit-board div, .fit-board div:nth-child(3n), .fit-board div:nth-child(n+4) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .fit-board div:nth-child(2n) { border-right: 0; }
  .fit-board div:nth-child(n+5) { border-bottom: 0; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 62px; }
  .site-header { min-height: 58px; }
  .site-nav { gap: 12px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .brand img { height: 27px; }
  .hero { grid-template-columns: 1fr; padding-block: 52px 38px; }
  h1 { font-size: clamp(2.65rem, 13vw, 3.8rem); }
  .workflow-card { display: none; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div { padding: 13px 10px; }
  .section { padding-top: 62px; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .section-head h2, .operator-panel h2, .cta-panel h2 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .engagement-grid, .example-grid, .practice-grid, .compliance-grid { grid-template-columns: 1fr; }
  .practice-grid article { min-height: 0; }
  .practice-grid h3 { margin-top: 15px; }
  .compliance-grid article { min-height: 0; }
  .compliance-grid h3 { margin-top: 15px; }
  .fit-board, .control-grid { grid-template-columns: 1fr; }
  .fit-board div, .fit-board div:nth-child(2n), .fit-board div:nth-child(n+5) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fit-board div:last-child { border-bottom: 0; }
  .fit-board span { margin-bottom: 12px; }
  .engagement-card { min-height: 0; }
  .engagement-card h3 { min-height: 0; }
  .example-card h3 { margin: 14px 0; }
  .mini-flow { display: flex; }
  .mini-flow i { transform: none; width: auto; margin: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps span:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .steps span:nth-child(4) { border-top: 1px solid var(--line); }
  .cta-action .button { width: 100%; }
  .assessment-grid { grid-template-columns: repeat(2, max-content); }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
