:root {
  --paper: #f7f7f8;
  --white: #ffffff;
  --ink: #171717;
  --muted: #62656b;
  --line: #d5d7db;
  --soft: #eef0f3;
  --red: #e4002b;
  --red-dark: #b40022;
  --max-width: 1280px;
  --page-inset: clamp(1.25rem, 4vw, 4rem);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;
  --focus-ring: 0 0 0 3px var(--paper), 0 0 0 6px var(--red);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, summary { font: inherit; }
button { color: inherit; }

.page-shell { width: min(100%, var(--max-width)); margin: 0 auto; padding-inline: var(--page-inset); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 0.75rem; left: 0.75rem; padding: 0.7rem 1rem; color: var(--white); background: var(--ink); transform: translateY(-200%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); box-shadow: var(--focus-ring); }

:where(a, button, summary):focus-visible { outline: none; box-shadow: var(--focus-ring); }

.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 5.25rem; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: -0.02em; line-height: 0.95; }
.brand__mark { display: grid; grid-template-columns: repeat(3, 0.5rem); gap: 0.2rem; align-items: end; width: 2rem; height: 1.6rem; }
.brand__mark span { display: block; background: var(--red); }
.brand__mark span:nth-child(1) { height: 0.7rem; }
.brand__mark span:nth-child(2) { height: 1.15rem; }
.brand__mark span:nth-child(3) { height: 1.6rem; }
.site-nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); padding: 0; margin: 0; list-style: none; font-size: 0.8rem; font-weight: 700; }
.site-nav__list a { text-decoration: none; }
.site-nav__list > li > a:not(.nav-cta):hover, .site-footer__actions a:hover, .text-link:hover { color: var(--red-dark); }
.nav-cta { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.7rem 0.85rem; color: var(--white); background: var(--ink); }
.nav-cta:hover { background: var(--red); }
.nav-toggle { display: none; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0.45rem 0; border: 0; background: transparent; cursor: pointer; font-size: 0.8rem; font-weight: 700; }
.nav-toggle__icon { display: grid; gap: 0.3rem; width: 1.3rem; }
.nav-toggle__icon span { display: block; height: 2px; background: currentColor; transition: transform 160ms ease; }

.hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); min-height: min(760px, calc(100vh - 5.25rem)); padding-top: var(--space-7); padding-bottom: var(--space-7); }
.eyebrow, .section-index, .workflow-step__kicker, .install-step__meta { margin: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.11em; line-height: 1.3; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 0.7rem; color: var(--muted); }
.eyebrow__rule { width: 2rem; height: 1px; background: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.05em; line-height: 0.98; }
h1 { max-width: 10ch; margin-bottom: var(--space-4); font-size: clamp(3.35rem, 7.2vw, 6.9rem); }
h1 em, h2 em { color: var(--red); font-style: normal; }
.hero__lede { max-width: 33rem; margin-bottom: var(--space-5); color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; min-height: 3.1rem; padding: 0.75rem 1.05rem; border: 1px solid var(--ink); text-decoration: none; font-size: 0.84rem; font-weight: 700; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.button--primary { color: var(--white); background: var(--red); border-color: var(--red); }
.button--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button--secondary { background: transparent; }
.button--secondary:hover { color: var(--white); background: var(--ink); }
.button--light { color: var(--ink); background: var(--white); border-color: var(--white); }
.button--light:hover { color: var(--white); background: var(--red); border-color: var(--red); }
.hero__note { max-width: 33rem; margin: var(--space-3) 0 0; color: var(--muted); font-size: 0.76rem; }

.gi-pulse { position: relative; isolation: isolate; }
.gi-pulse::after { position: absolute; z-index: -1; inset: -0.3rem; border: 1px solid rgba(228, 0, 43, 0.38); content: ""; animation: gi-pulse 2.4s ease-out infinite; }
.button--light.gi-pulse::after { border-color: rgba(255, 255, 255, 0.7); }
@keyframes gi-pulse { 0%, 100% { opacity: 0; transform: scale(0.94); } 35% { opacity: 1; } 70% { opacity: 0; transform: scale(1.07); } }

.hero-visual { min-width: 0; margin: 0; }
.hero-visual__frame { position: relative; border: 1px solid var(--ink); background: var(--white); }
.hero-visual__frame img { width: 100%; aspect-ratio: 1.78; object-fit: cover; }
.hero-visual__folio { position: absolute; right: 0.85rem; bottom: 0.75rem; padding: 0.25rem 0.4rem; color: var(--white); background: var(--ink); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; }
.hero-visual figcaption { display: grid; grid-template-columns: repeat(4, 1fr); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.hero-visual figcaption span { min-width: 0; padding: 0.55rem 0.45rem; border-right: 1px solid var(--line); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em; line-height: 1.2; }
.hero-visual figcaption span:last-child { border-right: 0; }

.signal-bar { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); }
.signal-bar__inner { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 0; min-height: 6.5rem; }
.signal-item { display: flex; align-items: center; gap: 0.85rem; min-height: 3rem; padding: 0 1.5rem; border-right: 1px solid var(--line); }
.signal-item:first-child { padding-left: 0; }
.signal-item strong { color: var(--red); font-size: 2rem; line-height: 1; }
.signal-item span { color: var(--muted); font-size: 0.72rem; font-weight: 700; line-height: 1.3; }
.text-link { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--red-dark); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.signal-bar .text-link { justify-self: end; padding-left: 1.5rem; }

.section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.section-heading { max-width: 43rem; }
.section-index { margin-bottom: var(--space-4); color: var(--red-dark); }
h2 { margin-bottom: var(--space-5); font-size: clamp(2.8rem, 5.6vw, 5.4rem); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.why-item { min-height: 16rem; padding: var(--space-4) var(--space-5) 0 0; border-right: 1px solid var(--ink); }
.why-item + .why-item { padding-left: var(--space-5); }
.why-item:last-child { border-right: 0; }
.why-item__number { margin-bottom: var(--space-6); color: var(--red); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.why-item h3, .workflow-step h3, .install-step h3 { margin-bottom: 0.85rem; font-size: clamp(1.3rem, 2vw, 1.75rem); }
.why-item p:last-child, .workflow-step p:last-child, .install-step > p { max-width: 22rem; margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }

.workflow-section { border-top: 1px solid var(--ink); background: var(--white); }
.section-heading--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.65fr); align-items: end; gap: 3rem; }
.section-intro { max-width: 25rem; margin: 0 0 var(--space-5); color: var(--muted); font-size: 1rem; }
.workflow-list { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: var(--space-7) 0 0; border-top: 1px solid var(--ink); list-style: none; }
.workflow-step { min-height: 21rem; padding: var(--space-4) var(--space-4) 0 0; border-right: 1px solid var(--ink); }
.workflow-step + .workflow-step { padding-left: var(--space-4); }
.workflow-step:last-child { border-right: 0; }
.workflow-step__index { display: block; margin-bottom: var(--space-7); color: var(--red); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.workflow-step__kicker { margin-bottom: var(--space-2); color: var(--muted); font-size: 0.6rem; }

.install-section { color: var(--white); background: var(--ink); }
.install-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(3rem, 8vw, 8rem); }
.install-intro h2 { max-width: 8ch; }
.install-intro > p:not(.section-index) { max-width: 25rem; margin-bottom: var(--space-5); color: #c9cbd0; font-size: 1rem; }
.text-link--dark { color: #ff6680; }
.text-link--dark:hover { color: var(--white); }
.bundle-details { margin-top: var(--space-7); border-top: 1px solid #55565c; border-bottom: 1px solid #55565c; }
.bundle-details summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.7rem; cursor: pointer; font-size: 0.84rem; font-weight: 700; list-style: none; }
.bundle-details summary::-webkit-details-marker { display: none; }
.bundle-details summary::after { width: 0.6rem; height: 0.6rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: rotate(45deg) translateY(-0.15rem); transition: transform 160ms ease; }
.bundle-details[open] summary::after { transform: rotate(225deg) translate(-0.15rem, -0.15rem); }
.bundle-details ul { padding: 0 0 1.2rem 1.15rem; margin: 0; color: #c9cbd0; font-size: 0.8rem; }
.bundle-details li + li { margin-top: 0.35rem; }
.bundle-details code { color: var(--white); }
.install-panel { min-width: 0; padding: 0 0 0 var(--space-5); border-left: 1px solid #55565c; }
.install-list { padding: 0; margin: 0; list-style: none; }
.install-step { padding: 0 0 var(--space-5); margin-bottom: var(--space-5); border-bottom: 1px solid #55565c; }
.install-step:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.install-step__meta { display: flex; gap: 1rem; margin-bottom: 1rem; color: #9fa1a8; }
.install-step__meta span:first-child { color: #ff6680; }
.install-step h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.install-step__note { margin-top: 0.85rem; color: #9fa1a8; font-size: 0.75rem; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; padding: 0.9rem 1rem; border: 1px solid #797b82; color: var(--white); text-decoration: none; }
.download-row:hover { border-color: var(--white); background: #25262a; }
.download-row strong, .download-row small { display: block; }
.download-row strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; overflow-wrap: anywhere; }
.download-row small { margin-top: 0.25rem; color: #9fa1a8; font-size: 0.72rem; }
.download-row__icon { display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 auto; border: 1px solid #797b82; }
.code-block { position: relative; display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid #797b82; background: #0c0c0d; }
.code-block code { min-width: 0; padding-right: 1rem; color: #f4f4f5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-button { display: inline-flex; align-items: center; align-self: flex-start; gap: 0.5rem; min-height: 2.2rem; flex: 0 0 auto; padding: 0.4rem 0.65rem; border: 1px solid #797b82; color: var(--white); background: transparent; cursor: pointer; font-size: 0.7rem; font-weight: 700; }
.copy-button:hover { background: var(--red); border-color: var(--red); }

.closing-cta { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.closing-cta__inner { padding: clamp(2rem, 5vw, 5rem); color: var(--white); background: var(--red); }
.closing-cta .section-index { color: #ffccd5; }
.closing-cta h2 { max-width: 10ch; margin-bottom: var(--space-5); }
.site-footer { border-top: 1px solid var(--ink); background: var(--white); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; }
.site-footer p, .site-footer a, .updates-button { margin: 0; font-size: 0.75rem; }
.site-footer p { color: var(--muted); }
.site-footer__actions { display: flex; align-items: center; gap: 1.4rem; }
.site-footer__actions a, .updates-button { text-decoration: none; }
.updates-button { padding: 0; border: 0; background: transparent; cursor: pointer; font-weight: 700; }
.updates-button:hover { color: var(--red-dark); }

.updates-dialog { width: min(32rem, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid var(--ink); color: var(--ink); background: var(--paper); box-shadow: 0.6rem 0.6rem 0 var(--red); }
.updates-dialog::backdrop { background: rgba(23, 23, 23, 0.58); }
.updates-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.dialog-close:hover { color: var(--white); background: var(--ink); }
.updates-dialog h2 { margin-bottom: var(--space-5); font-size: 2.5rem; }
.updates-list { padding: 0; margin: 0; list-style: none; }
.updates-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); font-size: 0.82rem; }
.updates-list time { color: var(--red-dark); font-weight: 700; }

.icon-arrow { position: relative; display: inline-block; width: 0.85rem; height: 0.85rem; flex: 0 0 auto; }
.icon-arrow::before { position: absolute; width: 0.65rem; height: 1px; background: currentColor; content: ""; }
.icon-arrow::after { position: absolute; width: 0.35rem; height: 0.35rem; border-top: 1px solid currentColor; border-right: 1px solid currentColor; content: ""; }
.icon-arrow--up-right::before { top: 0.3rem; left: 0.05rem; transform: rotate(-45deg); }
.icon-arrow--up-right::after { top: 0.08rem; right: 0.05rem; transform: rotate(0deg); }
.icon-arrow--down-right::before { top: 0.45rem; left: 0.05rem; transform: rotate(45deg); }
.icon-arrow--down-right::after { right: 0.05rem; bottom: 0.08rem; transform: rotate(90deg); }
.icon-arrow--up::before { top: 0.42rem; left: 0.08rem; transform: rotate(-90deg); }
.icon-arrow--up::after { top: 0.1rem; left: 0.24rem; transform: rotate(-45deg); }
.icon-download { position: relative; display: inline-block; width: 0.9rem; height: 0.9rem; flex: 0 0 auto; }
.icon-download::before { position: absolute; top: 0.08rem; left: 0.4rem; width: 1px; height: 0.55rem; background: currentColor; content: ""; }
.icon-download::after { position: absolute; bottom: 0.05rem; left: 0.12rem; width: 0.55rem; height: 0.55rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: rotate(45deg); }
.icon-copy { position: relative; display: inline-block; width: 0.85rem; height: 0.85rem; flex: 0 0 auto; border: 1px solid currentColor; }
.icon-copy::before { position: absolute; top: -0.22rem; left: -0.22rem; width: 0.65rem; height: 0.65rem; border: 1px solid currentColor; background: #0c0c0d; content: ""; }
.icon-close { position: relative; display: inline-block; width: 0.9rem; height: 0.9rem; }
.icon-close::before, .icon-close::after { position: absolute; top: 0.42rem; left: 0; width: 0.9rem; height: 1px; background: currentColor; content: ""; }
.icon-close::before { transform: rotate(45deg); }
.icon-close::after { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { max-width: 42rem; }
  .hero-visual { max-width: 48rem; margin-left: auto; }
  .signal-bar__inner { grid-template-columns: repeat(3, 1fr); padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .signal-bar .text-link { grid-column: 1 / -1; justify-self: start; padding: 1.2rem 0 0; }
  .install-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .install-intro h2 { max-width: none; }
  .install-panel { padding: 0; border-top: 1px solid #55565c; border-left: 0; padding-top: var(--space-6); }
}

@media (max-width: 700px) {
  .site-header__inner { min-height: 4.5rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav__list { position: absolute; z-index: 5; top: 4.5rem; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 0 var(--page-inset) 1rem; border-bottom: 1px solid var(--ink); background: var(--paper); }
  .site-nav__list.is-open { display: flex; }
  .site-nav__list li { border-top: 1px solid var(--line); }
  .site-nav__list a { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; }
  .site-nav__list .nav-cta { justify-content: center; margin-top: 0.75rem; }
  .hero { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  h1 { font-size: clamp(3.1rem, 15vw, 5.5rem); }
  .hero-visual figcaption { grid-template-columns: repeat(2, 1fr); }
  .hero-visual figcaption span:nth-child(2) { border-right: 0; }
  .hero-visual figcaption span:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .signal-bar__inner { grid-template-columns: 1fr; gap: 0; }
  .signal-item, .signal-item:first-child { min-height: 4rem; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-item:last-of-type { border-bottom: 0; }
  .signal-bar .text-link { grid-column: auto; padding: 1rem 0 0; }
  .section { padding-top: var(--space-7); padding-bottom: var(--space-7); }
  .why-grid, .workflow-list, .section-heading--split { grid-template-columns: 1fr; }
  .why-item, .why-item + .why-item, .workflow-step, .workflow-step + .workflow-step { min-height: auto; padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .why-item__number, .workflow-step__index { margin-bottom: 1.5rem; }
  .why-item:last-child, .workflow-step:last-child { border-bottom: 0; }
  .workflow-list { margin-top: var(--space-5); }
  .section-intro { margin-bottom: 0; }
  .install-section { padding-top: var(--space-7); padding-bottom: var(--space-7); }
  .closing-cta__inner { padding: 2rem 1.5rem; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .updates-list li { grid-template-columns: 1fr; gap: 0.35rem; }
}

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