:root {
  --page: #faf9fc;
  --surface: #ffffff;
  --surface-soft: #f3f1f6;
  --ink: #17141c;
  --ink-muted: #66616d;
  --line: #e5e1e8;
  --brand: #590fe5;
  --brand-hover: #4709bd;
  --brand-soft: #eee8ff;
  --dark: #111014;
  --dark-muted: #beb8c7;
  --shell: 1220px;
  --gutter: clamp(22px, 4vw, 56px);
  --focus: 0 0 0 3px #faf9fc, 0 0 0 6px #590fe5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
a { color: var(--brand); text-underline-offset: 4px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.shell { width: min(100% - (2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 16px;
  padding: 10px 14px;
  color: var(--surface);
  background: var(--dark);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin-bottom: 28px; font-size: clamp(3.75rem, 5.15vw, 4.5rem); font-weight: 750; }
h2 { margin-bottom: 24px; font-size: clamp(2.4rem, 3.65vw, 3rem); font-weight: 720; }
h3 { margin-bottom: 12px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
p { margin-bottom: 24px; color: var(--ink-muted); }
.lead { max-width: 680px; margin-bottom: 0; font-size: clamp(1.18rem, 1.65vw, 1.34rem); line-height: 1.55; }
.eyebrow {
  margin-bottom: 18px;
  color: var(--brand);
  font-size: .92rem;
  font-weight: 700;
}
.eyebrow-light { color: #d9caff; }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.button-primary:hover { color: #fff; background: var(--brand-hover); border-color: var(--brand-hover); }
.button-secondary { color: var(--ink); background: var(--surface); border-color: #cbc5cf; }
.button-secondary:hover { color: var(--brand); background: var(--brand-soft); border-color: #c5b3f4; }
.button-light { color: var(--dark); background: #fff; border-color: #fff; }
.button-light:hover { color: var(--brand-hover); background: var(--brand-soft); border-color: var(--brand-soft); }
.button-wide { width: 100%; margin-top: 22px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; text-decoration-thickness: 1px; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 76px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; height: 100%; align-items: center; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--ink); font-weight: 780; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-wrap { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: clamp(20px, 3vw, 38px); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.site-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--brand);
}
.nav-download { min-width: 130px; }
.menu-button, .mobile-resources { display: none; }

.hero { display: flex; min-height: 710px; align-items: center; overflow: hidden; background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(350px, .75fr); align-items: center; gap: clamp(56px, 8vw, 108px); padding-block: 74px 82px; }
.hero-copy { max-width: 690px; }
.hero-copy > p:first-of-type { max-width: 650px; font-size: clamp(1.18rem, 1.65vw, 1.34rem); line-height: 1.55; }
.hero-copy .requirement { margin: 18px 0 0; font-size: .9rem; }
.hero-visual { display: flex; justify-content: center; }
.device-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fbfaff;
  border: 1px solid #dcd6e2;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(23, 20, 28, .12);
}
.device-frame img { width: 100%; }
.crop-appbar img { width: calc(100% + 2px); max-width: none; margin: -58px -1px 0; }
.device-hero { width: min(100%, 386px); max-height: 730px; }
.device-medium { width: min(100%, 330px); max-height: 620px; }
.device-small { width: min(100%, 250px); max-height: 470px; }

.section { padding-block: clamp(112px, 10vw, 142px); background: var(--page); }
.section.surface-soft { background: var(--surface-soft); }
.section + .section:not(.surface-soft, .section-dark) { border-top: 1px solid var(--line); }
.page-hero { padding-block: clamp(96px, 10vw, 132px) clamp(76px, 8vw, 104px); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 820px; }
.editorial { min-height: 520px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); align-items: center; gap: clamp(62px, 9vw, 124px); }
.split.reverse { grid-template-columns: minmax(320px, .85fr) minmax(0, 1fr); }
.split > div > p:not(.eyebrow) { max-width: 640px; font-size: 1.1rem; }
.split > div:has(.device-frame) { display: flex; justify-content: center; }

.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit-grid article { min-height: 210px; padding: 44px clamp(28px, 4vw, 54px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit-grid p { max-width: 470px; margin-bottom: 0; }
.media-pair { display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.media-pair .device-small { margin-bottom: 34px; }
.section-dark { color: #fff; background: var(--dark); }
.section-dark h2 { color: #fff; }
.section-dark p { color: var(--dark-muted); }
.security-band { display: flex; align-items: end; justify-content: space-between; gap: 64px; }
.security-band > div { max-width: 760px; }
.security-band .button { flex: 0 0 auto; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.final-cta p { margin-bottom: 0; }
.final-cta .button-row { margin-top: 0; }

.plain-sequence { border-top: 1px solid #cdc7d1; }
.plain-sequence div { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid #cdc7d1; }
.plain-sequence span { color: var(--ink-muted); }
.security-layout { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr); gap: clamp(64px, 9vw, 128px); align-items: start; }
.security-visual { position: sticky; top: 118px; display: flex; flex-direction: column; align-items: flex-start; padding: 34px; background: var(--dark); border-radius: 16px; }
.security-visual span { width: 100%; padding: 15px 18px; color: #fff; border: 1px solid #39343f; border-radius: 10px; }
.security-visual i { width: 1px; height: 42px; margin-left: 25px; background: #8260cd; }
.security-list article { padding: 0 0 42px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.security-list article:last-child { margin-bottom: 0; }
.security-list h2 { font-size: clamp(1.8rem, 2.5vw, 2.25rem); }
.considerations { max-width: 760px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.inline-actions a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }

.use-case-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .7fr); gap: clamp(64px, 10vw, 140px); align-items: center; }
.use-case-list article { padding: 0 0 30px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.use-case-list h2 { margin-bottom: 12px; font-size: clamp(1.7rem, 2.4vw, 2.15rem); }
.use-case-list article p { margin-bottom: 0; }
.scope-note { margin: 38px 0 0; font-weight: 650; }
.use-case-layout > div:last-child { display: flex; justify-content: center; }

.pricing-layout { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(0, 1fr); gap: clamp(64px, 9vw, 130px); align-items: center; }
.pricing-panel { padding: clamp(32px, 5vw, 52px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pricing-panel label { display: block; margin-bottom: 38px; font-weight: 700; }
.price-output strong { display: block; font-size: clamp(2.7rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.price-output span { display: block; margin-top: 14px; color: var(--ink-muted); }
.pricing-panel input { width: 100%; min-height: 44px; margin-top: 38px; accent-color: var(--brand); }
.pricing-panel p { margin-bottom: 0; }
.pricing-copy > p { max-width: 590px; }

.download-options { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; max-width: 930px; margin-inline: auto; }
.download-options article { display: flex; min-height: 310px; flex-direction: column; align-items: flex-start; padding: clamp(30px, 5vw, 50px); border: 1px solid var(--line); border-radius: 16px; }
.download-primary { background: var(--surface); }
.download-secondary { background: var(--surface-soft); }
.download-options article > p { margin-bottom: 28px; color: var(--brand); font-weight: 700; }
.download-options h2 { margin-bottom: 10px; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.download-options article > span { color: var(--ink-muted); }
.download-options .button { margin-top: auto; }
.choice-help { max-width: 640px; margin: 32px auto 0; text-align: center; }
.download-links { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.download-links a { min-height: 44px; display: inline-flex; align-items: center; }

.verify-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(44px, 8vw, 110px); }
.verify-layout aside { display: flex; flex-direction: column; gap: 4px; color: var(--ink-muted); }
.verify-layout aside strong { color: var(--ink); font-size: 1.2rem; }
.verify-content { max-width: 800px; }
.verify-content h2 { margin-top: 54px; font-size: 1.65rem; }
.verify-content h2:first-child { margin-top: 0; }
.hash-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; margin: 12px 0; padding: 18px; background: var(--surface-soft); border-radius: 10px; }
.hash-block span { grid-column: 1 / -1; color: var(--ink-muted); font-size: .9rem; }
.hash-block code { overflow-wrap: anywhere; font-size: .88rem; }
.hash-block button { min-width: 72px; min-height: 44px; color: var(--brand); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.artifact-list { columns: 2; padding-left: 20px; }
.artifact-list li { margin-bottom: 12px; break-inside: avoid; }
.artifact-list a { overflow-wrap: anywhere; }
.fine-print { font-size: .9rem; }

.install-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); gap: clamp(60px, 9vw, 130px); align-items: start; }
.install-list { margin: 0; padding: 0; list-style: none; counter-reset: install; }
.install-list li { display: grid; grid-template-columns: 58px minmax(0, 1fr); padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); counter-increment: install; }
.install-list li::before { content: counter(install); width: 42px; height: 42px; display: grid; place-items: center; color: var(--brand); border: 1px solid #c6b4f2; border-radius: 50%; font-weight: 750; }
.install-list h2 { margin-bottom: 10px; font-size: 1.65rem; }
.install-list p { margin-bottom: 0; }
.install-note { padding: 30px; background: var(--surface-soft); border-left: 3px solid var(--brand); }
.install-note h2 { font-size: 1.55rem; }

.release-note { max-width: 780px; }
.release-note header { display: flex; flex-direction: column-reverse; }
.release-note header span { margin-bottom: 16px; color: var(--ink-muted); font-size: .9rem; }
.release-note ul { padding-left: 22px; margin: 32px 0; }
.release-note li { margin-bottom: 15px; }
.privacy-sections, .whitepaper { max-width: 790px; }
.privacy-sections article { padding-bottom: 40px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.privacy-sections h2, .whitepaper h2 { font-size: clamp(1.8rem, 2.6vw, 2.25rem); }
.whitepaper nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; margin-bottom: 72px; padding: 26px 0; border-block: 1px solid var(--line); }
.whitepaper nav a { min-height: 44px; display: inline-flex; align-items: center; }
.whitepaper h2 { margin-top: 64px; scroll-margin-top: 110px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr); gap: clamp(60px, 9vw, 130px); align-items: start; }
.contact-label { margin-bottom: 10px; font-size: .9rem; }
.contact-email { color: var(--ink); font-size: clamp(1.65rem, 4vw, 3.2rem); font-weight: 720; letter-spacing: -.035em; overflow-wrap: anywhere; }
.inquiry-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.inquiry-list strong { padding: 20px 0; border-bottom: 1px solid var(--line); }
.email-caution { max-width: 760px; margin-top: 64px; font-size: .94rem; }

.join-layout { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; align-items: center; }
.join-layout aside { padding: 28px; background: var(--surface); border-left: 3px solid var(--brand); }
.join-layout code { display: block; margin: 18px 0; overflow-wrap: anywhere; }
.not-found { min-height: calc(100vh - 76px); display: grid; place-items: center; padding-block: 100px; text-align: center; }
.not-found span { display: block; color: var(--brand); font-size: 1rem; font-weight: 800; }
.not-found h1 { margin: 16px 0 20px; }
.not-found p { margin-inline: auto; }

.site-footer { padding: 76px 0 26px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(36px, 6vw, 84px); }
.footer-mark p { margin: 12px 0 0; font-size: .92rem; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-column strong { margin-bottom: 8px; font-size: .9rem; }
.footer-column a { min-height: 36px; color: var(--ink-muted); text-decoration: none; }
.footer-column a:hover { color: var(--brand); }
.footer-bottom { padding-top: 26px; margin-top: 54px; color: var(--ink-muted); border-top: 1px solid var(--line); font-size: .84rem; }

@media (max-width: 920px) {
  :root { --gutter: 32px; }
  .site-header { height: 72px; }
  .menu-button { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; margin-left: auto; background: transparent; border: 0; cursor: pointer; }
  .menu-button span, .menu-button span::before, .menu-button span::after { width: 22px; height: 2px; display: block; background: var(--ink); content: ""; transition: transform .18s ease; }
  .menu-button span { position: relative; }
  .menu-button span::before { position: absolute; top: -7px; }
  .menu-button span::after { position: absolute; top: 7px; }
  .menu-button[aria-expanded="true"] span { background: transparent; }
  .menu-button[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .js .nav-wrap { position: fixed; inset: 72px 0 0; display: none; overflow-y: auto; padding: 28px var(--gutter) 42px; background: var(--page); }
  .js .nav-wrap[data-open="true"] { display: block; }
  .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { min-height: 54px; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .mobile-resources { display: grid; margin-top: 28px; }
  .mobile-resources strong { margin-bottom: 8px; font-size: .86rem; }
  .mobile-resources a { min-height: 46px; display: flex; align-items: center; color: var(--ink-muted); text-decoration: none; }
  .nav-download { width: 100%; margin-top: 28px; }
  .hero { min-height: auto; }
  .hero-grid, .split, .split.reverse, .security-layout, .use-case-layout, .pricing-layout, .install-layout, .contact-layout, .join-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 68px; padding-block: 78px 86px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { justify-content: flex-start; }
  .hero-visual .device-hero { width: min(100%, 410px); }
  .split, .split.reverse { gap: 62px; }
  .split.reverse > :first-child { order: 2; }
  .editorial { min-height: 0; }
  .security-layout, .use-case-layout, .pricing-layout, .install-layout, .contact-layout { gap: 72px; }
  .security-visual { position: static; }
  .final-cta, .security-band { align-items: flex-start; flex-direction: column; gap: 30px; }
  .final-cta .button-row { margin-top: 0; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-mark { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(2.65rem, 12.4vw, 3rem); }
  h2 { font-size: clamp(2rem, 9.2vw, 2.3rem); }
  .page-hero { padding-block: 76px 70px; }
  .section { padding-block: 78px; }
  .hero-grid { gap: 58px; padding-block: 68px 78px; }
  .hero-copy > p:first-of-type, .lead { font-size: 1.1rem; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .hero-visual { justify-content: center; }
  .hero-visual .device-hero { width: min(100%, 350px); }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: auto; padding: 30px 24px; }
  .media-pair { gap: 12px; }
  .media-pair .device-medium { width: 58%; }
  .media-pair .device-small { width: 42%; margin-bottom: 24px; }
  .download-options { grid-template-columns: 1fr; }
  .download-options article { min-height: 280px; }
  .download-links { flex-direction: column; align-items: center; gap: 4px; }
  .verify-layout { grid-template-columns: 1fr; }
  .artifact-list { columns: 1; }
  .hash-block { grid-template-columns: minmax(0, 1fr); }
  .hash-block button { justify-self: start; }
  .whitepaper nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-column:last-child { grid-column: 1 / -1; }
  .footer-column:last-child a { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  :root { --gutter: 20px; }
  h1 { font-size: 2.58rem; }
  .media-pair { align-items: center; flex-direction: column; }
  .media-pair .device-medium, .media-pair .device-small { width: min(100%, 300px); margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-column:last-child { grid-column: auto; }
}

@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; }
}
