:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --ink: #111a31;
  --navy: #071b4e;
  --muted: #545f75;
  --quiet: #667085;
  --line: #d9e0ec;
  --line-strong: #c8d1e2;
  --surface: #ffffff;
  --soft: #f4f6fb;
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --indigo-soft: #eeefff;
  --green: #117956;
  --green-soft: #e9f8f1;
  --amber: #8a4b0f;
  --amber-soft: #fff6e8;
  --danger: #9f2f39;
  --danger-soft: #fff1f2;
  --shadow: 0 28px 80px rgba(25, 36, 68, .11);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: #f3f6fb; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(79, 70, 229, .09), transparent 28rem),
    linear-gradient(180deg, #fbfcff 0%, #f2f5fa 100%);
  font-size: 1rem;
  line-height: 1.65;
}
button, input, textarea, select { font: inherit; }
a { color: var(--indigo-dark); text-underline-offset: .18em; }
a:hover { color: var(--indigo); }
img, svg { max-width: 100%; }
code { padding: .08em .32em; border-radius: .3em; background: #e9edf5; font-family: "SFMono-Regular", Consolas, monospace; font-size: .9em; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--navy);
  font-weight: 750;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #675ff0;
  outline-offset: 3px;
}

.site-frame { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(200, 209, 226, .78);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.03rem;
  font-weight: 850;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--navy);
  font-size: .84rem;
  letter-spacing: -.02em;
  box-shadow: 0 7px 18px rgba(7, 27, 78, .18);
}
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); }
.primary-nav a { color: #404c65; text-decoration: none; font-size: .88rem; font-weight: 700; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--indigo); }
.nav-cta, .button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid var(--indigo);
  border-radius: 10px;
  color: white;
  background: var(--indigo);
  box-shadow: 0 10px 24px rgba(79, 70, 229, .17);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 780;
  line-height: 1.25;
}
.primary-nav .nav-cta { color: white; }
.nav-cta:hover, .button:hover { border-color: var(--indigo-dark); color: white; background: var(--indigo-dark); }
.button.secondary { border-color: var(--line-strong); color: #28334c; background: white; box-shadow: none; }
.button.secondary:hover { border-color: #9aa5bb; color: var(--ink); background: var(--soft); }
.button.slack { border-color: #4a154b; background: #4a154b; }
.button.slack:hover { border-color: #611f69; background: #611f69; }
.mobile-nav { display: none; position: relative; }
.mobile-nav-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 10px; color: #303a52; background: white; cursor: pointer; font-size: .82rem; font-weight: 760; list-style: none; }
.mobile-nav-toggle::-webkit-details-marker { display: none; }
.mobile-nav-toggle::marker { content: ""; }
.mobile-nav-icon { width: 19px; display: grid; gap: 4px; }
.mobile-nav-icon > span { height: 2px; border-radius: 2px; background: currentColor; transition: transform .16s ease, opacity .16s ease; }
.mobile-nav[open] .mobile-nav-icon > span:first-child { transform: translateY(6px) rotate(45deg); }
.mobile-nav[open] .mobile-nav-icon > span:nth-child(2) { opacity: 0; }
.mobile-nav[open] .mobile-nav-icon > span:last-child { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav-menu { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: min(280px, calc(100vw - 28px)); display: grid; gap: 4px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 20px 50px rgba(25, 35, 63, .18); }
.mobile-nav-menu a { min-height: 44px; display: flex; align-items: center; padding: 9px 12px; border-radius: 8px; color: #303a52; text-decoration: none; font-size: .88rem; font-weight: 720; }
.mobile-nav-menu a:hover, .mobile-nav-menu a[aria-current="page"] { color: var(--indigo-dark); background: #f1f2ff; }

main { display: block; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .75fr);
  gap: clamp(50px, 8vw, 104px);
  align-items: center;
  padding: clamp(76px, 10vw, 124px) 0 clamp(72px, 10vw, 116px);
}
.eyebrow {
  margin: 0 0 17px;
  color: var(--indigo);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 790px; margin: 0; font-size: clamp(3rem, 6.6vw, 5.6rem); letter-spacing: -.06em; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { margin: 0; font-size: 1.08rem; }
.hero h1 span, .muted-heading { color: #657089; }
.hero-copy > p:not(.eyebrow) { max-width: 670px; margin: 27px 0 0; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.2rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.microcopy { margin: 17px 0 0; color: var(--quiet); font-size: .77rem; }

.bridge-visual {
  position: relative;
  margin: 0;
  min-height: 440px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 29px;
  overflow: hidden;
  border: 1px solid rgba(203, 212, 229, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}
.bridge-visual::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -150px;
  right: -100px;
  border-radius: 50%;
  background: rgba(79, 70, 229, .1);
}
.flow-card { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 13px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.flow-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: white; background: var(--navy); font-size: .72rem; font-weight: 850; }
.flow-card strong, .flow-card span { display: block; }
.flow-card strong { font-size: .88rem; }
.flow-card span { color: var(--quiet); font-size: .73rem; }
.flow-state { color: var(--green); font-size: .72rem; font-weight: 800; }
.flow-line { width: 2px; height: 27px; margin: -3px 0 -3px 34px; background: linear-gradient(var(--line-strong), var(--indigo)); }
.cipher-strip { position: relative; padding: 16px; border-radius: 14px; color: #dce3ff; background: var(--navy); }
.cipher-strip span { display: block; margin-bottom: 5px; color: #9facd0; font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.cipher-strip code { padding: 0; color: inherit; background: none; font-size: .76rem; overflow-wrap: anywhere; }
.flow-note { margin: 5px 0 0; color: var(--quiet); font-size: .73rem; text-align: center; }

.section { padding: clamp(70px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid rgba(200, 209, 226, .7); }
.section-head { max-width: 730px; margin-bottom: 42px; }
.section-head > p:not(.eyebrow) { margin: 19px 0 0; color: var(--muted); font-size: 1.06rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255, 255, 255, .82); }
.info-card .number { display: inline-grid; width: 31px; height: 31px; margin-bottom: 24px; place-items: center; border-radius: 8px; color: var(--indigo-dark); background: var(--indigo-soft); font-size: .69rem; font-weight: 850; }
.info-card p { margin: 9px 0 0; color: var(--muted); font-size: .9rem; }
.info-card a { display: inline-block; margin-top: 14px; font-size: .84rem; font-weight: 750; }

.security-band {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(480px, 1fr);
  gap: clamp(42px, 8vw, 96px);
  align-items: center;
  padding: clamp(40px, 7vw, 76px);
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, .45), transparent 35%),
    linear-gradient(135deg, #071a47, #102868 64%, #193989);
  box-shadow: 0 28px 74px rgba(7, 27, 78, .18);
}
.security-band h2 { color: white; }
.security-band .eyebrow { color: #aab5ff; }
.security-band p { color: #d7dff7; }
.security-band .button.secondary { border-color: rgba(255, 255, 255, .35); color: white; background: rgba(255, 255, 255, .08); }
.security-band .button.secondary:hover { background: rgba(255, 255, 255, .16); }
.boundary-list { display: grid; gap: 12px; }
.boundary-item { display: grid; grid-template-columns: 33px 1fr; gap: 13px; padding: 15px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 13px; background: rgba(255, 255, 255, .075); }
.boundary-item > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; color: #071b4e; background: #a7f3d0; font-weight: 900; }
.boundary-item strong { display: block; font-size: .88rem; }
.boundary-item p { margin: 2px 0 0; font-size: .77rem; line-height: 1.5; }

.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.integration-card { display: flex; gap: 20px; min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.platform-mark { flex: 0 0 auto; display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: white; background: var(--navy); font-size: .73rem; font-weight: 850; }
.platform-mark.slack-mark { background: #4a154b; }
.integration-card p { margin: 9px 0 0; color: var(--muted); font-size: .9rem; }
.integration-card a { display: inline-block; margin-top: 16px; font-size: .84rem; font-weight: 760; }

.plain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 82px); }
.check-list, .limit-list { display: grid; gap: 15px; margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li, .limit-list li { position: relative; padding-left: 31px; color: var(--muted); }
.check-list li::before, .limit-list li::before { position: absolute; left: 0; top: .1em; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; font-size: .67rem; font-weight: 900; }
.check-list li::before { content: "✓"; color: white; background: var(--green); }
.limit-list li::before { content: "!"; color: var(--amber); background: var(--amber-soft); border: 1px solid #f0d2a2; }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(32px, 6vw, 60px); border: 1px solid #d4d8f3; border-radius: 24px; background: linear-gradient(135deg, #f8f8ff, #eef0ff); }
.cta-panel h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-panel p { margin: 10px 0 0; color: var(--muted); }

.page-hero { max-width: 860px; padding: clamp(68px, 9vw, 112px) 0 60px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero > p:not(.eyebrow) { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 1.12rem; }
.content-layout { display: grid; grid-template-columns: minmax(180px, .3fr) minmax(0, 1fr); gap: clamp(38px, 8vw, 100px); padding-bottom: 100px; }
.side-nav { align-self: start; position: sticky; top: 22px; display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .86); }
.side-nav strong { margin: 0 7px 5px; color: var(--quiet); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.side-nav a { min-height: 38px; display: flex; align-items: center; padding: 5px 8px; border-radius: 7px; color: #465169; text-decoration: none; font-size: .79rem; font-weight: 680; }
.side-nav a:hover { color: var(--indigo); background: var(--indigo-soft); }
.prose { min-width: 0; max-width: 790px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 48px 0 14px; font-size: clamp(1.55rem, 3vw, 2.1rem); scroll-margin-top: 25px; }
.prose h3 { margin: 28px 0 9px; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 8px; }
.prose .lede { color: #354159; font-size: 1.08rem; }
.updated { color: var(--quiet); font-size: .82rem; }
.notice { margin: 25px 0; padding: 18px 20px; border-left: 4px solid var(--indigo); border-radius: 9px; color: #3f4960; background: var(--indigo-soft); }
.notice strong { color: var(--ink); }
.notice.warning { border-color: #c4771d; background: var(--amber-soft); }
.notice.success { border-color: var(--green); background: var(--green-soft); }
.prose-card { margin: 26px 0; padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.prose-card h3 { margin-top: 0; }

.step-list { display: grid; gap: 12px; margin: 30px 0; padding: 0; list-style: none; counter-reset: steps; }
.step-list li { counter-increment: steps; display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.step-list li::before { content: counter(steps, decimal-leading-zero); display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; color: var(--indigo-dark); background: var(--indigo-soft); font-size: .69rem; font-weight: 850; }
.step-list strong { display: block; color: var(--ink); }
.step-list p { margin: 3px 0 0; font-size: .88rem; }

.comparison-wrap { width: 100%; overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 15px; background: white; }
.comparison { width: 100%; border-collapse: collapse; min-width: 620px; }
.comparison caption { padding: 18px; color: var(--ink); font-weight: 780; text-align: left; }
.comparison th, .comparison td { padding: 14px 17px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: #344057; background: var(--soft); font-size: .77rem; }
.comparison td { color: var(--muted); font-size: .82rem; }
.comparison tbody th { color: var(--ink); background: white; }

.install-panel { max-width: 760px; margin: clamp(60px, 9vw, 110px) auto 100px; padding: clamp(28px, 6vw, 58px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); }
.install-panel h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
.install-panel .lede { color: var(--muted); font-size: 1.05rem; }
.install-panel .button { margin: 15px 0 10px; }
.install-status { margin: 24px 0; padding: 17px; border-radius: 11px; }
.install-status.ok { color: #165f47; background: var(--green-soft); border: 1px solid #b7decf; }
.install-status.err { color: var(--danger); background: var(--danger-soft); border: 1px solid #efc3c7; }
.install-status.warn { color: #74420e; background: var(--amber-soft); border: 1px solid #efd5a7; }
.hidden { display: none !important; }
.scope-list { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }

.site-footer { margin-top: 36px; border-top: 1px solid rgba(200, 209, 226, .8); }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, .6fr)); gap: 35px; padding: 52px 0 44px; }
.footer-brand p { max-width: 300px; margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.footer-column { display: grid; align-content: start; gap: 9px; }
.footer-column strong { margin-bottom: 4px; color: var(--ink); font-size: .73rem; letter-spacing: .04em; }
.footer-column a { min-height: 30px; color: var(--muted); text-decoration: none; font-size: .78rem; }
.footer-column a:hover { color: var(--indigo); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .72rem; }

@media (max-width: 920px) {
  .primary-nav { display: none; }
  .mobile-nav { display: block; }
  .hero, .security-band { grid-template-columns: 1fr; }
  .bridge-visual { min-height: 390px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .site-frame { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding: 58px 0 72px; }
  h1 { font-size: 3.25rem; }
  .bridge-visual { min-height: 0; padding: 18px; border-radius: 20px; }
  .flow-card { grid-template-columns: 34px 1fr; }
  .flow-state { grid-column: 2; }
  .flow-line { margin-left: 27px; }
  .card-grid, .integration-grid, .plain-grid { grid-template-columns: 1fr; }
  .security-band { min-width: 0; padding: 29px 21px; border-radius: 20px; }
  .integration-card { min-height: 0; padding: 22px; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
  .content-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .page-hero { padding-top: 55px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand-mark { width: 35px; height: 35px; }
  .brand { font-size: .95rem; }
  h1 { font-size: 2.75rem; }
  .actions, .actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
  .brand-mark, .platform-mark, .flow-icon, .check-list li::before { border: 1px solid ButtonText; }
  .security-band { border: 1px solid CanvasText; }
  .button, .nav-cta { border: 1px solid ButtonText; }
}
