:root {
  --navy-950: #0b1f33;
  --navy-900: #143350;
  --navy-800: #214965;
  --blue-700: #2f648a;
  --brand-orange: #cb5a29;
  --brand-orange-light: #df6d36;
  --brand-peach: #fff0e8;
  --warm-white: #fcfaf7;
  --gold-500: #e0a24c;
  --ink: #172331;
  --slate: #5f6e7c;
  --line: #e1e4e6;
  --soft: #f5f3ef;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(12, 35, 55, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 110px 0; }
.section-light { background: #faf9f7; }
.section-soft { background: linear-gradient(180deg, #fffaf7 0%, #f7efe8 100%); }
.section-dark { background: var(--navy-950); color: var(--white); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(252,250,247,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(20,51,80,.10);
}
.nav-wrap { height: 108px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; justify-content: center; min-width: 126px; flex: 0 0 auto; }
.brand-logo { width: 118px; height: auto; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { font-size: .92rem; color: #415162; font-weight: 600; transition: .2s ease; }
.main-nav a:hover { color: var(--brand-orange); }
.nav-toggle { display: none; border: 0; background: none; font-size: 1.5rem; margin-left: auto; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 23px;
  border-radius: 999px;
  border: 1px solid var(--brand-orange);
  background: var(--brand-orange);
  color: var(--white);
  font-weight: 700;
  font-size: .92rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(203,90,41,.24); background: #aa431d; }
.button-small { min-height: 42px; padding: 0 18px; font-size: .86rem; }
.button-outline { background: transparent; color: var(--navy-900); border-color: rgba(11,34,57,.18); }
.button-outline:hover { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.button-light { background: var(--white); border-color: var(--white); color: var(--navy-900); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 190px;
  min-height: 850px;
  background:
    radial-gradient(circle at 80% 10%, rgba(203,90,41,.12), transparent 34%),
    linear-gradient(135deg, #fffdfb 0%, #f8f3ed 52%, #ffffff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 72px; align-items: center; position: relative; z-index: 2; }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--brand-orange); font-weight: 800; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: #ffd2bd; }
h1, h2, h3, h4 { font-family: "Manrope", sans-serif; margin: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 5.8vw, 5.7rem); max-width: 760px; color: var(--navy-950); }
h2 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
h3 { font-size: 1.45rem; }
.hero-lead { margin: 28px 0 0; max-width: 650px; color: #526474; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; padding-top: 25px; border-top: 1px solid var(--line); }
.hero-proof div { display: flex; flex-direction: column; gap: 4px; }
.hero-proof strong { color: var(--navy-900); font-size: .9rem; }
.hero-proof span { color: #6d7b88; font-size: .78rem; line-height: 1.45; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero-orb-one { width: 330px; height: 330px; right: -180px; top: 120px; background: rgba(203,90,41,.09); }
.hero-orb-two { width: 180px; height: 180px; left: -100px; bottom: 60px; background: rgba(20,51,80,.07); }

.visual-shell { position: relative; overflow: hidden; padding: 26px; border-radius: 30px; background: rgba(8,26,46,.96); box-shadow: 0 35px 80px rgba(8,26,46,.24); border: 1px solid rgba(255,255,255,.08); }
.visual-label { color: rgba(255,255,255,.56); font-size: .68rem; letter-spacing: .14em; font-weight: 800; margin-bottom: 20px; }

.visual-label, .stack-node, .stack-connector { position: relative; z-index: 1; }
.stack-node { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 16px; color: white; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); }
.stack-node small { display: block; color: rgba(255,255,255,.58); font-size: .62rem; letter-spacing: .12em; margin-bottom: 3px; }
.stack-node strong { display: block; font-size: .91rem; letter-spacing: -.01em; }
.node-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: rgba(255,255,255,.09); }
.node-twin { border-color: rgba(203,90,41,.38); background: linear-gradient(90deg, rgba(203,90,41,.16), rgba(255,255,255,.035)); }
.node-reasoning { border-color: rgba(224,162,76,.42); background: linear-gradient(90deg, rgba(224,162,76,.13), rgba(255,255,255,.035)); }
.node-copilot { border-color: rgba(95,165,255,.35); background: linear-gradient(90deg, rgba(45,104,167,.16), rgba(255,255,255,.035)); }
.stack-connector { height: 24px; display: flex; justify-content: center; }
.stack-connector span { width: 2px; background: linear-gradient(var(--brand-orange-light), rgba(255,255,255,.12)); }

.section-heading { max-width: 720px; margin-bottom: 52px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading p { color: var(--slate); font-size: 1.05rem; margin-top: 18px; }
.section-dark .section-heading p { color: rgba(255,255,255,.65); }

.comparison-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; max-width: 980px; margin: 0 auto; }
.comparison-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; min-height: 290px; box-shadow: 0 14px 40px rgba(16,43,64,.05); }
.comparison-highlight { border-color: rgba(203,90,41,.35); box-shadow: var(--shadow); }
.card-kicker { display: block; color: var(--navy-900); font-family: "Manrope", sans-serif; font-weight: 800; margin-bottom: 22px; }
.comparison-arrow { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: white; font-size: 1.2rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.check-list li { position: relative; padding-left: 28px; color: #3d4c5a; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-peach); color: var(--brand-orange); font-size: .72rem; font-weight: 800; }
.muted-list li::before { background: #edf1f4; color: #8e9ba6; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card { position: relative; overflow: hidden; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; min-height: 430px; transition: transform .25s ease, box-shadow .25s ease; }
.pillar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pillar-number { position: absolute; right: 25px; top: 18px; font-family: "Manrope", sans-serif; font-size: 3.7rem; color: rgba(11,34,57,.05); font-weight: 800; }
.pillar-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 28px; }
.twin-icon { background: #edf2f6; color: var(--navy-900); }
.reasoning-icon { background: #fff3de; color: #c98417; }
.copilot-icon { background: #eaf0f9; color: #2d68a7; }
.pillar-card p { color: var(--slate); }
.pillar-outcome { padding: 17px; margin: 24px 0; border-radius: 14px; background: var(--soft); color: var(--navy-900); font-weight: 600; font-size: .9rem; }
.pillar-outcome span { display: block; color: var(--brand-orange); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-grid-reverse .feature-copy { order: 1; }
.feature-grid-reverse .feature-visual { order: 2; }
.feature-copy > p { color: var(--slate); font-size: 1.03rem; }
.section-dark .feature-copy > p { color: rgba(255,255,255,.68); }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.benefit-grid div { padding: 20px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); }
.benefit-grid strong { display: block; margin-bottom: 6px; }
.benefit-grid span { color: rgba(255,255,255,.62); font-size: .84rem; }
.twin-canvas { position: relative; width: 440px; height: 440px; margin: auto; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); background: radial-gradient(circle, rgba(203,90,41,.16), transparent 62%); }
.twin-core { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: "Manrope", sans-serif; font-size: 1.4rem; font-weight: 800; background: linear-gradient(145deg, var(--brand-orange-light), #9f3f1c); box-shadow: 0 20px 50px rgba(203,90,41,.28); }
.orbit-item { position: absolute; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .78rem; }
.orbit-a { top: 30px; left: 165px; } .orbit-b { top: 105px; right: 8px; } .orbit-c { bottom: 100px; right: 4px; } .orbit-d { bottom: 28px; left: 168px; } .orbit-e { bottom: 100px; left: 2px; } .orbit-f { top: 105px; left: 2px; }
.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { padding-left: 28px; position: relative; color: #40505f; }
.feature-list li::before { content: "•"; position: absolute; left: 8px; color: var(--brand-orange); font-size: 1.4rem; line-height: 1; }
.reason-flow { max-width: 440px; margin: auto; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); background: white; }
.reason-flow > div { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; background: var(--soft); }
.reason-flow span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--navy-900); color: white; font-size: .7rem; font-weight: 800; }
.reason-flow b { display: block; text-align: center; color: var(--brand-orange); font-size: 1.2rem; margin: 7px 0; }

.role-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.role-tab { border: 1px solid #cedade; background: white; color: #586979; border-radius: 999px; padding: 11px 18px; font-weight: 700; cursor: pointer; }
.role-tab.active { background: var(--navy-900); color: white; border-color: var(--navy-900); }
.role-panels { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: white; }
.role-panel { display: none; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 48px; }
.role-panel.active { display: grid; }
.role-tag { display: inline-block; color: var(--brand-orange); font-size: .68rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 14px; }
.role-copy p { color: var(--slate); }
.question-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.question-list li { padding: 12px 14px; border-left: 3px solid var(--brand-orange-light); background: #fbf6f2; color: #3d4d5c; font-size: .9rem; }
.chat-demo, .alert-card, .command-card { border-radius: 20px; padding: 24px; background: var(--navy-950); color: white; min-height: 330px; }
.chat-head { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 700; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #58d5a8; margin-right: 7px; }
.chat-bubble { max-width: 86%; padding: 14px 16px; border-radius: 16px; margin-top: 20px; font-size: .88rem; }
.chat-bubble.user { margin-left: auto; background: #fff0e8; color: var(--navy-900); border-bottom-right-radius: 4px; }
.chat-bubble.bot { background: rgba(255,255,255,.09); border-bottom-left-radius: 4px; }
.alert-level, .command-card > span { color: #ffcc76; font-size: .67rem; font-weight: 800; letter-spacing: .12em; }
.alert-card h4 { font-size: 1.45rem; margin: 10px 0 18px; }
.alert-card dl { margin: 0; display: grid; gap: 12px; }
.alert-card dl div { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.alert-card dt { color: rgba(255,255,255,.54); font-size: .72rem; }
.alert-card dd { margin: 4px 0 0; font-size: .9rem; }
.command-card p { font-family: "Manrope", sans-serif; font-size: 1.35rem; line-height: 1.4; margin: 28px 0; }
.command-result { padding: 15px; border-radius: 12px; background: rgba(203,90,41,.17); color: #ffe0d1; font-size: .84rem; }

.scenario-track { display: grid; grid-template-columns: 1fr 80px 1fr 80px 1fr 80px 1fr; align-items: start; }
.scenario-step { text-align: center; }
.scenario-step span { width: 44px; height: 44px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: white; font-weight: 800; }
.scenario-step strong { display: block; color: var(--navy-900); }
.scenario-step p { color: var(--slate); font-size: .87rem; }
.scenario-line { height: 1px; background: linear-gradient(90deg, var(--line), var(--brand-orange-light), var(--line)); margin-top: 22px; }

.content-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.content-card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.content-icon, .paper-index { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-peach); color: var(--brand-orange); font-size: .72rem; font-weight: 800; }
.content-card h3 { margin-top: 22px; }
.content-card p { color: var(--slate); min-height: 78px; }
.placeholder-btn { margin-top: 14px; border: 0; background: #edf2f4; color: #6c7882; padding: 10px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.whitepaper-list { border-top: 1px solid var(--line); }
.whitepaper-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 22px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.whitepaper-item p { margin: 7px 0 0; color: var(--slate); }
.whitepaper-item > span { padding: 8px 12px; background: var(--soft); border-radius: 999px; color: #6e7b86; font-size: .75rem; font-weight: 700; }

.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.resource-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 22px; }
.book-cover { min-height: 250px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 12px; box-shadow: 0 18px 34px rgba(0,0,0,.22); }
.book-cover span { font-size: .55rem; letter-spacing: .13em; }
.book-cover strong { font-family: "Manrope", sans-serif; font-size: 1.25rem; line-height: 1.18; }
.book-cover small { font-size: .65rem; opacity: .78; }
.cover-one { background: linear-gradient(160deg, var(--brand-orange) 0%, var(--navy-900) 76%); }
.cover-two { background: linear-gradient(160deg, var(--gold-500) 0%, #a74721 55%, var(--navy-900) 100%); }
.resource-copy { display: flex; flex-direction: column; align-items: flex-start; }
.resource-type { color: #ffd0ba; font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.resource-copy h3 { margin-top: 15px; }
.resource-copy p { color: rgba(255,255,255,.66); }
.resource-copy small { color: rgba(255,255,255,.46); margin-bottom: 20px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-copy p { color: var(--slate); font-size: 1rem; }
.cta-section { padding: 70px 0; background: linear-gradient(110deg, var(--brand-orange), var(--navy-900) 72%); color: white; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { max-width: 780px; }

.site-footer { background: #081725; color: white; padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo {
  display: inline-flex;
  justify-content: flex-start;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--warm-white);
}
.footer-logo .brand-logo { width: 152px; }
.footer-brand p { max-width: 370px; color: rgba(255,255,255,.58); }
.site-footer h4 { font-size: .87rem; margin-bottom: 16px; }
.site-footer a:not(.brand) { display: block; color: rgba(255,255,255,.58); margin-bottom: 9px; font-size: .85rem; }
.site-footer a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; margin-top: 44px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.4); font-size: .78rem; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 200; max-width: 330px; background: var(--navy-950); color: white; padding: 15px 18px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .main-nav { position: absolute; top: 108px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px; background: white; border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .nav-toggle { display: block; }
  .nav-wrap > .button { display: none; }
  .hero-grid, .feature-grid, .about-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { max-width: 650px; }
  .pillar-grid, .content-card-grid { grid-template-columns: 1fr; }
  .feature-grid-reverse .feature-copy, .feature-grid-reverse .feature-visual { order: initial; }
  .role-panel { grid-template-columns: 1fr; }
  .scenario-track { grid-template-columns: 1fr; gap: 14px; }
  .scenario-line { width: 1px; height: 32px; margin: 0 auto; }
  .resource-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-wrap { height: 92px; }
  .main-nav { top: 92px; }
  .brand { min-width: 94px; }
  .brand-logo { width: 92px; }
  .container { width: min(100% - 28px, 1180px); }
  .section-pad { padding: 78px 0; }
  .hero { padding-top: 130px; }
  h1 { font-size: 3rem; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-arrow { transform: rotate(90deg); margin: 0 auto; }
  .benefit-grid { grid-template-columns: 1fr; }
  .twin-canvas { width: 320px; height: 320px; }
  .orbit-a { top: 18px; left: 107px; } .orbit-b { top: 74px; right: -2px; } .orbit-c { bottom: 68px; right: -5px; } .orbit-d { bottom: 16px; left: 108px; } .orbit-e { bottom: 68px; left: -4px; } .orbit-f { top: 74px; left: -4px; }
  .role-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; }
  .role-tab { white-space: nowrap; }
  .role-panel { padding: 26px; }
  .whitepaper-item { grid-template-columns: 48px 1fr; }
  .whitepaper-item > span { grid-column: 2; justify-self: start; }
  .resource-card { grid-template-columns: 1fr; }
  .book-cover { min-height: 320px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* UX pass: compact first viewport, balanced type and predictable scrolling */
html {
  scroll-padding-top: 84px;
}

section[id] {
  scroll-margin-top: 84px;
}

.site-header {
  position: sticky;
  background: rgba(252, 250, 247, .96);
  transition: box-shadow .22s ease, background .22s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 28px rgba(11, 31, 51, .08);
  background: rgba(252, 250, 247, .985);
}

.nav-wrap {
  height: 86px;
  gap: 26px;
  transition: height .22s ease;
}

.brand {
  min-width: 102px;
}

.brand-logo {
  width: 92px;
  transition: width .22s ease;
}

.site-header.scrolled .nav-wrap {
  height: 74px;
}

.site-header.scrolled .brand-logo {
  width: 78px;
}

.main-nav {
  gap: 25px;
}

.hero {
  min-height: calc(100svh - 86px);
  padding: 50px 0 54px;
  display: flex;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
}

.hero-copy {
  min-width: 0;
}

.hero .eyebrow {
  margin-bottom: 13px;
}

h1 {
  font-size: clamp(2.75rem, 4.25vw, 3.65rem);
  line-height: 1.055;
  max-width: 690px;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.hero-lead {
  margin-top: 20px;
  max-width: 610px;
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 26px;
  gap: 22px;
}

.hero-visual {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.visual-shell {
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 26px 62px rgba(8, 26, 46, .22);
}

.visual-label {
  margin-bottom: 13px;
}

.stack-node {
  gap: 14px;
  padding: 13px 15px;
  border-radius: 14px;
}

.stack-node strong {
  font-size: .84rem;
}

.node-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.stack-connector {
  height: 15px;
}

.hero-orb-one {
  top: 24px;
}

.hero-orb-two {
  bottom: -40px;
}

.hero-proof-band {
  background: var(--white);
  border-top: 1px solid rgba(20, 51, 80, .08);
  border-bottom: 1px solid rgba(20, 51, 80, .08);
}

.hero-proof {
  margin-top: 0;
  padding: 20px 0;
  border-top: 0;
}

.hero-proof div {
  position: relative;
  padding-left: 22px;
}

.hero-proof div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 34px;
  border-radius: 99px;
  background: var(--brand-orange);
  opacity: .82;
}

@media (max-height: 720px) and (min-width: 981px) {
  .nav-wrap { height: 78px; }
  .brand-logo { width: 82px; }
  .hero {
    min-height: calc(100svh - 78px);
    padding: 34px 0 38px;
  }
  h1 { font-size: clamp(2.55rem, 3.9vw, 3.35rem); }
  .hero-lead { margin-top: 16px; font-size: .98rem; }
  .hero-actions { margin-top: 21px; }
  .visual-shell { padding: 17px; }
  .stack-node { padding: 11px 13px; }
  .stack-connector { height: 12px; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 82px; }
  section[id] { scroll-margin-top: 82px; }
  .main-nav { top: 86px; }
  .site-header.scrolled .main-nav { top: 74px; }
  .hero {
    min-height: auto;
    padding: 56px 0 70px;
  }
  .hero-grid { gap: 44px; }
  .hero-visual { justify-self: start; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  section[id] { scroll-margin-top: 76px; }
  .nav-wrap { height: 76px; }
  .site-header.scrolled .nav-wrap { height: 68px; }
  .brand { min-width: 82px; }
  .brand-logo { width: 76px; }
  .site-header.scrolled .brand-logo { width: 68px; }
  .main-nav { top: 76px; }
  .site-header.scrolled .main-nav { top: 68px; }
  .hero { padding: 42px 0 54px; }
  h1 { font-size: clamp(2.45rem, 12vw, 3rem); }
  .hero-lead { font-size: .98rem; }
  .hero-proof { grid-template-columns: 1fr; padding: 8px 0; }
  .hero-proof div { padding: 14px 0 14px 20px; }
  .hero-actions { gap: 16px; }
  .visual-shell { padding: 16px; border-radius: 20px; }
  .stack-node { padding: 12px; }
}

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

/* UX pass v4: make inner feature sections scroll as meaningful blocks */
.feature-section {
  overflow: hidden;
}

.compact-feature-grid {
  gap: 48px;
  align-items: start;
}

.feature-intro-grid {
  margin-bottom: 28px;
}

.feature-copy-compact h2 {
  max-width: 560px;
}

.feature-copy-compact > p {
  max-width: 580px;
  margin-bottom: 0;
}

.compact-twin-canvas {
  width: 360px;
  height: 360px;
}

.feature-highlight-box {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.feature-highlight-box strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.feature-highlight-box span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  line-height: 1.55;
}

.feature-highlight-light {
  background: #f8f5f1;
  border-color: var(--line);
}

.feature-highlight-light span {
  color: var(--slate);
}

.benefit-grid-wide {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}

.benefit-grid-wide div {
  min-height: 138px;
}

.compact-reason-flow {
  max-width: 430px;
  padding: 22px;
}

.compact-reason-flow > div {
  padding: 15px 16px;
}

.reason-benefits {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.reason-benefits div {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.reason-benefits strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-900);
  font-size: .95rem;
}

.reason-benefits span {
  display: block;
  color: var(--slate);
  font-size: .84rem;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .benefit-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .compact-feature-grid {
    gap: 36px;
  }

  .feature-intro-grid {
    margin-bottom: 24px;
  }

  .benefit-grid-wide,
  .reason-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .compact-twin-canvas {
    width: 330px;
    height: 330px;
  }
}

@media (max-width: 700px) {
  .compact-twin-canvas {
    width: 300px;
    height: 300px;
  }

  .benefit-grid-wide,
  .reason-benefits {
    grid-template-columns: 1fr;
  }

  .benefit-grid-wide div,
  .reason-benefits div {
    min-height: 0;
  }

  .feature-highlight-box {
    margin-top: 18px;
  }
}

/* UX pass v5: true section-by-section desktop scroll rhythm */
:root {
  --header-rest: 86px;
  --header-compact: 74px;
}

@media (min-width: 981px) {
  html {
    scroll-snap-type: y proximity;
  }

  .panel-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(100svh - var(--header-compact));
    display: flex;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .panel-section > .container {
    width: min(1180px, calc(100% - 56px));
  }

  .hero.panel-section {
    min-height: calc(100svh - var(--header-rest));
    padding-top: 40px;
    padding-bottom: 24px;
  }

  .problem.panel-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .build.panel-section {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .feature-section.panel-section,
  .copilot-section.panel-section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .panel-section .section-heading {
    margin-bottom: 30px;
  }

  .problem .section-heading {
    max-width: 780px;
    margin-bottom: 22px;
  }

  .problem .section-heading p {
    margin-top: 12px;
  }

  .comparison-grid {
    max-width: 1040px;
    gap: 18px;
  }

  .comparison-card {
    min-height: 0;
    padding: 28px 30px;
  }

  .check-list {
    gap: 12px;
  }

  .build .section-heading {
    max-width: 760px;
  }

  .pillar-grid {
    gap: 20px;
  }

  .pillar-card {
    min-height: 330px;
    padding: 24px;
  }

  .pillar-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .pillar-card p {
    font-size: .95rem;
    line-height: 1.55;
  }

  .pillar-outcome {
    margin: 18px 0 16px;
    padding: 14px;
  }

  .pillar-number {
    font-size: 3.1rem;
    top: 16px;
    right: 20px;
  }

  .compact-feature-grid {
    gap: 40px;
  }

  .compact-twin-canvas {
    width: 330px;
    height: 330px;
  }

  .twin-core {
    width: 138px;
    height: 138px;
    font-size: 1rem;
  }

  .orbit-item {
    font-size: .82rem;
    padding: 10px 14px;
  }

  .feature-copy-compact > p {
    font-size: .99rem;
    line-height: 1.6;
  }

  .feature-highlight-box {
    margin-top: 18px;
    padding: 16px 18px;
  }

  .benefit-grid-wide,
  .reason-benefits {
    gap: 12px;
    margin-top: 22px;
  }

  .benefit-grid-wide div,
  .reason-benefits div {
    min-height: 110px;
    padding: 16px 14px;
  }

  .benefit-grid-wide strong,
  .reason-benefits strong {
    font-size: .92rem;
  }

  .benefit-grid-wide span,
  .reason-benefits span {
    font-size: .8rem;
    line-height: 1.45;
  }

  .compact-reason-flow {
    max-width: 390px;
    padding: 18px;
  }

  .compact-reason-flow > div {
    padding: 13px 14px;
  }

  .copilot-section .section-heading {
    max-width: 860px;
    margin-bottom: 22px;
  }

  .role-tabs {
    margin-bottom: 18px;
  }

  .role-panels {
    min-height: 380px;
  }

  .role-panel {
    padding: 34px;
    gap: 26px;
  }

  .role-copy p {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: .98rem;
  }

  .question-list {
    margin-top: 18px;
    gap: 10px;
  }

  .question-list li {
    padding: 10px 12px;
    font-size: .88rem;
  }

  .chat-demo,
  .alert-card,
  .command-card {
    min-height: 280px;
    padding: 20px;
  }

  .chat-bubble {
    margin-top: 16px;
    font-size: .85rem;
  }

  .alert-card h4 {
    font-size: 1.25rem;
    margin: 8px 0 14px;
  }

  .command-card p {
    font-size: 1.15rem;
    margin: 20px 0;
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  .panel-section {
    min-height: auto;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .hero.panel-section {
    min-height: calc(100svh - 78px);
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .problem.panel-section,
  .build.panel-section,
  .feature-section.panel-section,
  .copilot-section.panel-section {
    min-height: calc(100svh - 68px);
  }

  .panel-section .section-heading {
    margin-bottom: 20px;
  }

  .pillar-card {
    min-height: 308px;
  }

  .compact-twin-canvas {
    width: 300px;
    height: 300px;
  }

  .compact-reason-flow {
    max-width: 365px;
  }

  .role-panel {
    padding: 28px;
  }

  .role-panels {
    min-height: 350px;
  }
}
