/* Secure Chat website. Buildless, local assets, no external font requests. */
:root {
  color-scheme: dark;
  --paper: #080d13;
  --white: #101923;
  --ink: #edf4f1;
  --muted: #a2b1bc;
  --line: #26343e;
  --green: #9ae8cb;
  --green-dark: #b8f5dd;
  --mint: #9ae8cb;
  --mint-soft: #152c29;
  --night: #0d1721;
  --night-line: #283a46;
  --radius: 10px;
  --text-body: 18px;
  --text-small: 15px;
  --text-caption: 14px;
  --text-ui: 16px;
  --heading-1: clamp(60px, 5.5vw, 80px);
  --heading-2: clamp(38px, 3.6vw, 52px);
  --heading-3: 26px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Yu Gothic UI", Meiryo, Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: var(--text-body)/1.65 var(--font);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button, input, textarea {
  font: inherit;
}

button, a, input, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

:focus-visible {
  outline: 3px solid #9ae8cb;
  outline-offset: 5px;
}

img, svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

button, input, textarea {
  border-radius: 0;
}

::selection {
  color: var(--paper);
  background: var(--mint);
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 600;
}

h2 {
  line-height: 1.12;
  letter-spacing: -.03em;
}

h3 {
  line-height: 1.3;
  letter-spacing: -.025em;
}

p {
  text-wrap: pretty;
}

em {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.container {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: -80px;
  left: 20px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* Navigation and shared controls. */
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 19, .88);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 43px;
  place-items: center;
  background: transparent;
  border-radius: 10px;
}

.brand-mark .icon {
  width: 23px;
  height: 25px;
  stroke-width: 1.5;
}

.brand-byline {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .035em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  position: relative;
  color: #b2c0c8;
  text-decoration: none;
}

.nav a:hover {
  color: var(--green);
}

.nav a::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transition: transform .18s;
  transform-origin: left;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  line-height: 1.4;
  font-weight: 600;
  transition: background .18s, border-color .18s, transform .18s;
}

.button:hover {
  border-color: #6aab96;
  background: #172933;
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.button-primary:hover {
  color: var(--white);
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.button-small {
  min-height: 42px;
  padding: 9px 16px;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border: 0;
  color: var(--green);
  background: transparent;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link .icon {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  display: none;
}

/* First viewport: the real product is the visual. */
.hero {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 48px;
  min-height: 660px;
  padding-block: 72px 80px;
}

.hero h1 {
  line-height: .99;
  letter-spacing: -.04em;
}

.hero h1 em {
  display: inline-block;
  margin-top: 3px;
  letter-spacing: -.035em;
}

.hero-description {
  max-width: 390px;
  margin-top: 32px;
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}

.release-meta {
  margin-top: 16px;
  color: var(--muted);
  letter-spacing: .03em;
}

.hero-product {
  position: relative;
  min-width: 0;
  padding-top: 32px;
}

.app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid #34534e;
  border-radius: 12px;
  background: var(--night);
  box-shadow: 0 24px 55px -25px #00000085;
}

.app-window img {
  width: 100%;
}

.hero-product .app-window {
  transform: translateX(8px);
}

.hero-product figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.preview-trigger {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff30;
  border-radius: 7px;
  place-items: center;
  color: #e7fff1;
  background: #1a3029dc;
}

.preview-trigger:hover {
  background: #295640;
}

.preview-trigger .icon {
  width: 17px;
  height: 17px;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
}

.benefit-strip span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a8babf;
}

.benefit-strip .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* Section rhythm and a concrete explanation of the problem. */
.section {
  padding-block: 96px;
  scroll-margin-top: 12px;
}

.section-white {
  background: var(--white);
}

.section-heading {
  margin-bottom: 48px;
}

.split-heading {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 64px;
}

.section-heading p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.7;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chat-example {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1721;
}

.chat-example-protected {
  border-color: #36584f;
  background: #102722;
}

.comparison-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.comparison-number {
  color: #8499a6;
  font-family: var(--mono);
}

.comparison-label {
  margin-left: auto;
  color: var(--muted);
}

.chat-bubble {
  max-width: 355px;
  min-height: 80px;
  padding: 15px 16px;
  border: 1px solid #2c3d47;
  border-radius: 12px 12px 3px 12px;
  margin-left: auto;
  color: #d5e3e6;
  background: var(--white);
  line-height: 1.5;
}

.chat-time {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 5px;
  margin-top: 6px;
  color: #92a6b1;
}

.chat-time .icon {
  width: 11px;
  height: 11px;
}

.ciphertext {
  color: var(--green);
  font-family: var(--mono);
  word-break: break-all;
}

.chat-example-protected .chat-bubble {
  border-color: #335c4c;
}

.chat-file {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 355px;
  margin: 12px 0 32px auto;
  padding: 15px 16px;
  border: 1px dashed #355047;
  border-radius: 9px;
  color: #d4e3e0;
}

.chat-file .icon {
  width: 25px;
  height: 27px;
  color: var(--green);
}

.chat-file small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.chat-example > p {
  max-width: 400px;
  color: var(--muted);
}

.section-note {
  max-width: 960px;
  margin-top: 24px;
  color: #94a6af;
  line-height: 1.7;
}

/* The exchange flow. Each step adds one operation, not another marketing claim. */
.flow-section {
  color: #e3f0eb;
  background: var(--night);
}

.flow-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 80px;
}

.flow-heading > p {
  max-width: 330px;
  color: #a8bbc4;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px 0 0;
  margin: 0 0 32px;
  list-style: none;
}

.flow-steps li {
  position: relative;
  border-top: 1px solid #2b4846;
  padding-top: 32px;
}

.step-number {
  position: absolute;
  top: -12px;
  right: 0;
  padding-left: 10px;
  color: #9bc9b7;
  background: var(--night);
  font: var(--text-caption) var(--mono);
}

.step-icon {
  width: 31px;
  height: 31px;
  margin-bottom: 24px;
  color: var(--mint);
}

.flow-steps h3 {
  max-width: 230px;
  min-height: 54px;
  letter-spacing: -.02em;
}

.flow-steps p {
  margin-top: 16px;
  color: #a8bbc4;
  line-height: 1.75;
}

.text-link-light {
  color: var(--mint);
}

/* Product switches with actual application screenshots. */
.product-tabs {
  display: flex;
  gap: 9px;
  width: fit-content;
  margin-bottom: 32px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.product-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  transition: background .16s, color .16s;
}

.product-tab .icon {
  width: 17px;
  height: 17px;
}

.product-tab:hover {
  color: var(--green);
  background: var(--mint-soft);
}

.product-tab.is-active, .product-tab[aria-selected="true"] {
  color: var(--white);
  background: var(--green);
}

.product-showcase {
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111e29;
}

.small-index {
  color: #a0b4c0;
  font: var(--text-caption) var(--mono);
  letter-spacing: .08em;
}

.showcase-copy h3 {
  max-width: 260px;
  margin-top: 16px;
  line-height: 1.13;
  letter-spacing: -.03em;
}

.showcase-copy > p {
  margin-top: 24px;
  color: #a8b9c1;
  line-height: 1.8;
}

.showcase-details {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  color: #a4bbc3;
}

.showcase-details span {
  border-top: 1px solid #2c414b;
  padding-top: 9px;
}

.showcase-screen {
  align-self: center;
}

/* Cryptography summary with a separate, complete technical reference. */
.crypto-section {
  background: #0b141e;
}

.crypto-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 112px;
}

.crypto-intro {
  align-self: start;
  position: sticky;
  top: 130px;
}

.crypto-intro > p {
  max-width: 340px;
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.crypto-intro .text-link {
  margin-top: 24px;
}

.crypto-specs {
  padding: 0;
  margin: 0;
}

.crypto-specs > div {
  padding: 24px 0;
  border-top: 1px solid #293c48;
}

.crypto-specs > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.crypto-specs dt {
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.035em;
}

.crypto-specs dt span {
  display: block;
  margin-bottom: 12px;
  color: #8eaba8;
  font: var(--text-caption) var(--mono);
  letter-spacing: .1em;
}

.crypto-specs dd {
  margin: 11px 0 0;
  max-width: 450px;
  color: var(--muted);
  line-height: 1.75;
}

.limits-note {
  display: flex;
  align-items: start;
  gap: 16px;
  margin-top: 48px;
  padding: 24px 32px;
  border: 1px solid #304650;
  border-radius: 12px;
}

.limits-note > .icon {
  margin-top: 4px;
  color: var(--green);
}

.limits-note h3 {
  font-weight: 600;
}

.limits-note p {
  max-width: 990px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.8;
}

.limits-note a {
  color: var(--green);
  white-space: nowrap;
}

/* Release download and installation. */
.download-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 64px;
  border: 1px solid #31534e;
  border-radius: 20px;
  background: #112923;
}

.windows-symbol {
  display: grid;
  grid-template-columns: repeat(2, 12px);
  gap: 3px;
  width: fit-content;
  margin-bottom: 32px;
  transform: perspective(50px) rotateY(-8deg);
}

.windows-symbol i {
  width: 12px;
  height: 12px;
  background: var(--green);
}

.download-copy > p:not(.download-meta):not(.download-platform-note) {
  max-width: 350px;
  margin-top: 24px;
  color: #abc2bf;
  line-height: 1.8;
}

.download-copy > .button {
  margin-top: 24px;
}

.download-meta {
  margin-top: 15px;
  color: #a9c1bd;
}

.download-platform-note {
  max-width: 330px;
  margin-top: 16px;
  color: #a3b8b4;
}

.download-details {
  padding-top: 8px;
}

.download-details h3 {
  margin-bottom: 24px;
}

.install-steps {
  display: grid;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.install-steps li {
  display: flex;
  gap: 16px;
}

.install-steps li > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border: 1px solid #3e625b;
  border-radius: 50%;
  place-items: center;
  color: #a4ceba;
  font: var(--text-caption) var(--mono);
}

.install-steps strong {
  display: block;
  font-weight: 600;
}

.install-steps p {
  margin-top: 5px;
  color: #a9c1bd;
  line-height: 1.7;
}

.checksum-details {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #315148;
  color: #a5beb6;
}

.checksum-details summary {
  cursor: pointer;
  font-weight: 600;
}

.checksum-details code {
  display: block;
  margin: 15px 0 7px;
  color: #b3e7ce;
  font: var(--text-caption)/1.7 var(--mono);
  overflow-wrap: anywhere;
  user-select: all;
}

.checksum-details p {
  margin-top: 7px;
  color: #a3b8b4;
}

#checksum-status {
  display: block;
}

.update-note {
  display: flex;
  align-items: start;
  gap: 15px;
  max-width: 950px;
  margin: 24px auto 0;
  color: #a2b6b9;
  line-height: 1.7;
}

.update-note .icon {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  color: var(--green);
}

.update-note strong {
  color: #c3d9cd;
  font-weight: 600;
}

/* Questions and source request. No client-side Telegram credentials. */
.faq-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 88px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 32px 24px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 2px;
  top: 20px;
  color: #91b8a9;
  line-height: 1;
  font-weight: 400;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details[open] summary {
  padding-bottom: 11px;
  color: var(--green);
}

.faq-list details p {
  max-width: 560px;
  padding-bottom: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.source-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 96px;
  padding-block: 112px;
}

.source-icon {
  width: 37px;
  height: 37px;
  margin-bottom: 24px;
  color: #9ae8cb;
}

.source-copy > p {
  max-width: 350px;
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.source-copy > p.source-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #9eb1b9;
}

.source-copy .text-link {
  margin-top: 24px;
}

.source-form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 45px -35px #00000050;
}

.source-form h3 {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: 16px;
}

.field label {
  margin-bottom: 7px;
  color: #bed0d4;
  font-weight: 600;
}

.field label > span {
  color: #8e9fae;
  font-weight: 400;
}

.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #2e414e;
  border-radius: 7px;
  color: var(--ink);
  background: #0b131e;
  line-height: 1.6;
  transition: border-color .16s, box-shadow .16s;
}

.field input::placeholder, .field textarea::placeholder {
  color: #8b9ba9;
  opacity: 1;
}

.field input:focus, .field textarea:focus {
  border-color: #8ad7b9;
  outline: 2px solid #203f38;
  outline-offset: 1px;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: #e49b91;
  background: #291e24;
}

.field-error {
  display: block;
  margin-top: 5px;
  color: #f8aaa1;
  line-height: 1.5;
}

.field-error:empty {
  display: none;
}

.consent-field {
  margin-bottom: 24px;
}

.consent-field label {
  display: flex;
  align-items: start;
  gap: 10px;
  color: #a7b8c0;
  line-height: 1.7;
}

.consent-field input {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}

.consent-field a {
  color: #b0d9c9;
}

.form-submit {
  width: 100%;
  min-height: 47px;
}

.form-note {
  margin-top: 12px;
  color: #9eafb9;
  line-height: 1.7;
}

.form-status {
  margin-top: 12px;
  padding: 0;
  color: #c2d7ce;
  line-height: 1.7;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="error"] {
  color: #f8aaa1;
}

.form-status[data-state="notice"] {
  padding: 11px 13px;
  border-radius: 6px;
  background: #162c29;
}

.form-status[data-state="success"] {
  color: #a2e6c4;
}

.form-status[data-state="pending"] {
  color: #adc4bb;
}

.honeypot {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}

/* Footer and screenshot dialog. */
.site-footer {
  padding-block: 48px 24px;
  border-top: 1px solid #263a45;
  background: #111e29;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: #aec2c7;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #283e4b;
  color: #96acb8;
}

.preview-dialog {
  position: fixed;
  width: min(1360px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 48px 12px 12px;
  overflow: auto;
  border: 1px solid #436258;
  border-radius: 14px;
  color: #d5e8df;
  background: #0e1b25;
  box-shadow: 0 30px 100px #00000066;
}

.preview-dialog::backdrop {
  background: #050b11eb;
  backdrop-filter: blur(6px);
}

.preview-dialog img {
  width: 100%;
  border-radius: 6px;
}

.preview-dialog p {
  margin: 12px 0 1px;
  color: #b2d5c4;
  text-align: center;
}

.preview-close {
  position: absolute;
  top: 10px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
  border: 0;
  color: #d2e8dd;
  background: transparent;
}

.preview-close span {
  line-height: 1;
}

/* Long-form static reference pages use the same visual language. */
.doc-main {
  padding-block: 48px 88px;
}

.breadcrumb {
  color: var(--green);
  text-decoration: none;
}

.breadcrumb:hover {
  text-decoration: underline;
}

.doc-hero {
  max-width: 840px;
  padding: 40px 0 48px;
}

.doc-hero h1 {
  line-height: 1.08;
  letter-spacing: -.035em;
}

.doc-hero .lead, .lead {
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.doc-toc {
  position: sticky;
  top: 116px;
  padding-right: 16px;
  color: var(--muted);
}

.doc-toc h2, .doc-toc h3 {
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: 0;
}

.doc-toc ol, .doc-toc ul {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.doc-toc a {
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--green);
  text-decoration: underline;
}
.doc-toc > p {
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 600;
}
.doc-toc > nav {
  display: grid;
  gap: 12px;
}

.prose {
  max-width: 850px;
  min-width: 0;
  color: #bdcbd3;
  line-height: 1.85;
}

.prose section {
  scroll-margin-top: 112px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.prose section:last-child {
  border: 0;
  margin: 0;
  padding: 0;
}

.prose h2 {
  margin-bottom: 16px;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.prose h3 {
  margin: 24px 0 13px;
  color: var(--ink);
}

.prose p + p {
  margin-top: 15px;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin: 16px 0;
}

.prose li {
  padding-left: 3px;
  margin-bottom: 9px;
}

.prose a {
  color: var(--green);
}

.prose code {
  overflow-wrap: anywhere;
  color: #a9e6cb;
  font: .85em/1.7 var(--mono);
}

.prose pre {
  padding: 24px;
  overflow: auto;
  border: 1px solid #2b434d;
  border-radius: 10px;
  background: #111e29;
}

.prose pre code {
  overflow-wrap: normal;
  white-space: pre;
  line-height: 1.8;
}

.prose strong {
  color: #e0f0e9;
  font-weight: 600;
}

.table-scroll {
  overflow: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  line-height: 1.7;
}

.prose th {
  color: #c9e8db;
  background: #111e29;
  font-weight: 600;
  text-align: left;
}

.prose th, .prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose .note, .prose .callout, .doc-callout {
  padding: 16px 24px;
  border-left: 3px solid #81c9aa;
  border-radius: 0 9px 9px 0;
  background: #13272a;
}

/* Dark-only brand, ambient light and progressive motion. */
body {
  background-image: radial-gradient(ellipse at 75% 0, #16352f38, transparent 45%);
  -webkit-font-smoothing: antialiased;
}

main {
  overflow: clip;
}

.site-header {
  box-shadow: 0 6px 30px #00000018;
}

.header-inner {
  position: relative;
  gap: 16px;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.brand-byline {
  letter-spacing: .04em;
}

.beta-badge, .beta-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #36524b;
  border-radius: 5px;
  color: #b5decf;
  background: #152821;
  font: var(--text-caption)/1.4 var(--mono);
  white-space: nowrap;
}

.beta-badge::before, .beta-label::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px #9ae8cb55;
  content: "";
}

.hero-copy > .beta-label {
  margin-bottom: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.language-switcher {
  flex-shrink: 0;
}

.language-switcher select {
  max-width: 123px;
  min-height: 39px;
  padding: 7px 9px;
  border: 1px solid #2d4149;
  border-radius: 7px;
  color: #cad8de;
  background: #101b25;
  font: var(--text-caption) var(--font);
  cursor: pointer;
}

.nav {
  gap: 16px;
}

.nav a {
  white-space: nowrap;
}

.header-download {
  flex-shrink: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  padding-block: 64px 80px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 em {
  color: var(--mint);
  text-shadow: 0 0 36px #7debc021;
}

.hero-description {
  color: #adbec7;
}

.hero-product .app-window {
  border-color: #558c756b;
  box-shadow: 0 35px 75px -26px #000000cf, 0 0 60px -25px #7cdbb13b;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform .6s ease, box-shadow .6s ease;
}

.hero-product:hover .app-window {
  transform: perspective(1400px) rotateY(-2deg) rotateX(0);
  box-shadow: 0 40px 85px -26px #000000cf, 0 0 85px -25px #7cdbb145;
}

.button-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 25px #6bd9b31a;
}

.benefit-strip {
  position: relative;
}

.section-white {
  background: #0c141c;
}

.chat-example, .product-showcase, .source-form {
  box-shadow: inset 0 1px #d5ffe508;
}

.chat-example {
  transition: border-color .25s, transform .25s;
}

.chat-example:hover {
  transform: translateY(-4px);
  border-color: #4a6b61;
}

.chat-example-protected {
  background-image: radial-gradient(ellipse at top right, #63e0ae10, transparent 70%);
}

.flow-section {
  background: linear-gradient(140deg, #0d1922, #101f26);
  border-block: 1px solid #28423d;
}

.flow-steps li::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--mint);
  box-shadow: 0 0 12px #a2ebcd66;
  content: "";
}

.product-tabs {
  background: #0e1922;
}

.product-showcase {
  background-image: radial-gradient(ellipse at right bottom, #397b6130, transparent 65%);
}

.crypto-section {
  background-image: radial-gradient(ellipse at left, #193a3226, transparent 60%);
}

.download-panel {
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding: 48px;
  background: radial-gradient(ellipse at top left, #255b454a, transparent 65%), #0f211f;
  box-shadow: 0 30px 75px -45px #000000a3, inset 0 1px #bdffe60d;
}

.platform-downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.platform-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  min-height: 135px;
  min-width: 0;
  padding: 16px 15px;
  border: 1px solid #9ae8cb;
  border-radius: 9px;
  color: #0b211b;
  background: var(--mint);
  text-decoration: none;
  text-align: left;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.platform-download:not(.is-unavailable):hover {
  transform: translateY(-4px);
  background: #bcf5df;
  box-shadow: 0 12px 28px #68d8a921;
}

.platform-download.is-unavailable {
  border-color: #344b48;
  color: #9db4b3;
  background: #10211f;
  opacity: 1;
  cursor: not-allowed;
}

.platform-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: currentColor;
}

.platform-copy {
  display: block;
  min-width: 0;
}

.platform-copy strong {
  display: block;
  font-weight: 600;
  line-height: 1.4;
}

.platform-copy small {
  display: block;
  margin-top: 5px;
  line-height: 1.55;
}

.source-form h3 {
  color: var(--ink);
}

.site-footer {
  background: #0a131b;
}

html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 {
  letter-spacing: -.02em;
  line-height: 1.35;
}

html:lang(ja) em {
  font-family: var(--font);
  font-style: normal;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease var(--reveal-delay, 0ms), transform .5s ease var(--reveal-delay, 0ms);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}


@media (max-width: 1230px) {
  .header-inner { gap: 16px; }
  .header-download { display: none; }
  .nav { gap: 16px; }
}

/* Responsive layouts retain all content;
no horizontal page scroll. */
@media (min-width: 1500px) {
  .container {
    width: min(1280px, calc(100% - 100px));
  }
  .hero {
    min-height: 720px;
    gap: 64px;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    gap: 24px;
  }
  .nav {
    gap: 16px;
  }
.hero {
    gap: 24px;
    min-height: 600px;
  }
.hero-actions {
    gap: 14px;
  }
.split-heading {
    gap: 40px;
  }
  .product-showcase {
    grid-template-columns: .7fr 1.3fr;
    gap: 24px;
    padding: 24px;
  }
.crypto-layout {
    gap: 72px;
  }
  .download-panel {
    gap: 48px;
    padding: 48px;
  }
  .source-section {
    gap: 64px;
  }
  .doc-layout {
    gap: 40px;
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 850px) {
  .container {
    width: calc(100% - 44px);
  }
  .header-inner {
    min-height: 76px;
  }
.brand-mark {
    width: 35px;
    height: 38px;
    border-radius: 10px;
  }
  .header-download {
    margin-left: auto;
  }
  .menu-toggle {
    display: grid;
    gap: 6px;
    order: 3;
    width: 38px;
    height: 38px;
    padding: 12px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: transparent;
  }
  .menu-toggle span {
    width: 18px;
    height: 1px;
    background: currentColor;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .nav.is-open, .nav[data-open="true"] {
    display: grid;
  }
  .nav a {
    padding: 12px 3px;
  }
  .nav a::after {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-block: 64px;
    min-height: 555px;
  }
.hero-actions .button {
    padding: 12px 15px;
    min-height: 48px;
  }
  .hero-product .app-window {
    transform: none;
  }
.benefit-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 32px;
    padding-block: 24px;
  }
.section {
    padding-block: 72px;
  }
  .split-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-heading p {
    max-width: 540px;
  }
  .chat-example {
    padding: 24px;
  }
  .comparison-label {
    display: none;
  }
.chat-file {
    padding: 13px;
  }
  .flow-heading {
    display: block;
  }
  .flow-heading > p {
    margin-top: 24px;
    max-width: 460px;
  }
  .flow-steps {
    grid-template-columns: 1fr 1fr;
    gap: 48px 40px;
  }
  .flow-steps h3 {
    min-height: 0;
  }
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
  }
  .showcase-copy .small-index {
    grid-column: 1 / -1;
  }
  .showcase-copy h3 {
    margin: 3px 0 0;
  }
  .showcase-copy > p {
    margin: 0;
  }
  .showcase-details {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 5px;
  }
  .crypto-layout {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
.limits-note {
    width: calc(100% - 44px);
    padding: 24px;
  }
  .download-panel {
    gap: 32px;
    padding: 32px;
  }
  .download-copy > .button {
    padding-inline: 16px;
  }
  .faq-layout {
    grid-template-columns: .8fr 1.2fr;
    gap: 32px;
  }
.source-section {
    grid-template-columns: .85fr 1.15fr;
    gap: 32px;
  }
  .source-form {
    padding: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 96px;
  }
  .container {
    width: calc(100% - 36px);
  }
  .header-inner {
    min-height: 72px;
    gap: 15px;
  }
.header-download {
    display: none;
  }
  .menu-toggle {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 48px 32px;
  }
.hero-description {
    max-width: 420px;
    margin-top: 24px;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 16px;
  }
  .hero-actions .button {
    min-height: 49px;
    padding: 13px 16px;
  }
.release-meta {
    margin-top: 14px;
  }
  .hero-product {
    padding-top: 16px;
  }
.hero-product figcaption {
    margin-top: 16px;
  }
  .preview-trigger {
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }
  .benefit-strip {
    gap: 13px 14px;
    padding-block: 24px;
  }
  .benefit-strip span {
    align-items: start;
    gap: 6px;
    line-height: 1.5;
  }
  .benefit-strip .icon {
    width: 13px;
    height: 13px;
    margin-top: 1px;
  }
  .section {
    padding-block: 64px;
  }
  h2 {
    line-height: 1.13;
  }
  .section-heading {
    margin-bottom: 32px;
  }
.comparison {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .comparison-heading {
    margin-bottom: 24px;
  }
.comparison-label {
    display: inline;
  }
.chat-file {
    margin-bottom: 24px;
  }
.section-note {
    line-height: 1.8;
  }
  .flow-heading > p {
    margin-top: 24px;
  }
  .flow-steps {
    gap: 32px 24px;
    padding-top: 24px;
  }
  .flow-steps li {
    padding-top: 24px;
  }
  .step-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 16px;
  }
.flow-steps p {
    margin-top: 12px;
    line-height: 1.75;
  }
.product-tabs {
    width: 100%;
    gap: 2px;
    padding: 4px;
  }
  .product-tab {
    flex: 1;
    justify-content: center;
    gap: 5px;
    padding: 10px 7px;
    white-space: nowrap;
  }
  .product-tab .icon {
    width: 14px;
    height: 14px;
  }
  .product-showcase {
    padding: 24px 16px 16px;
    gap: 24px;
    border-radius: 12px;
  }
  .showcase-copy {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .showcase-copy h3 {
    max-width: 320px;
  }
.showcase-details {
    gap: 11px;
    margin-top: 0;
  }
.crypto-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .crypto-intro {
    position: static;
  }
.crypto-intro > p {
    max-width: none;
    margin-top: 24px;
  }
  .crypto-intro .text-link {
    margin-top: 16px;
  }
.limits-note {
    gap: 12px;
    width: calc(100% - 36px);
    padding: 16px 16px;
    margin-top: 32px;
  }
.download-panel {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 24px;
    border-radius: 13px;
  }
  .windows-symbol {
    margin-bottom: 24px;
  }
  .download-copy > p:not(.download-meta):not(.download-platform-note) {
    margin-top: 16px;
  }
  .download-copy > .button {
    width: 100%;
  }
  .download-platform-note {
    margin-top: 15px;
  }
  .install-steps {
    gap: 16px;
  }
  .download-details {
    padding-top: 24px;
    border-top: 1px solid #34534b;
  }
  .checksum-details {
    margin-top: 24px;
  }
  .update-note {
    gap: 10px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
.faq-list summary {
    padding-block: 16px;
  }
.source-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .source-copy > p {
    max-width: none;
  }
.source-icon {
    width: 31px;
    height: 31px;
    margin-bottom: 24px;
  }
  .source-form {
    padding: 24px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .field input, .field textarea {
    padding: 10px 12px;
  }
.site-footer {
    padding-block: 32px 24px;
  }
  .footer-main {
    align-items: start;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 32px;
  }
  .footer-links {
    gap: 11px;
  }
  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
  .preview-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 48px 7px 10px;
  }
.doc-main {
    padding-block: 32px 56px;
  }
  .doc-hero {
    padding-block: 24px 32px;
  }
.doc-hero .lead, .lead {
    margin-top: 16px;
  }
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .doc-toc {
    position: static;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line);
  }
  .doc-toc ol, .doc-toc ul {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }
.prose pre {
    padding: 16px;
  }
.prose th, .prose td {
    padding: 12px;
  }
}

/* Language controls and platform choices stay usable when translations grow. */
@media (min-width: 851px) and (max-width: 1230px) {
  .header-inner { gap: 12px; }
  .brand { font-size: 20px; }
  .nav { gap: 13px; }
  .nav a { font-size: 11px; }
  .site-header .beta-badge { font-size: 9px; padding: 4px 7px; }
  .language-switcher select { max-width: 108px; }
}

@media (max-width: 850px) {
  .language-switcher { margin-left: auto; }
  .menu-toggle { margin-left: 0; flex-shrink: 0; }
  .download-panel { grid-template-columns: 1fr; gap: 32px; }
  .download-details { border-top: 1px solid #304e48; padding-top: 32px; }
  .download-copy > p:not(.download-meta):not(.download-platform-note) { max-width: 520px; }
  .platform-download { min-height: 127px; }
}

@media (max-width: 700px) {
  .header-inner { gap: 10px; }
  .site-header .brand { font-size: 19px; transform: translateY(-5px); }
  .site-header .brand-byline { display: none; }
  .site-header .beta-badge {
    position: absolute;
    left: 46px;
    bottom: 9px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #96b7a8;
    background: transparent;
  }
  .site-header .beta-badge::before { width: 3px; height: 3px; }
  .language-switcher select { max-width: 102px; padding-inline: 5px; font-size: 11px; }
  .brand-mark img { width: 35px; height: 35px; }
  .hero-copy > .beta-label { margin-bottom: 24px; font-size: 9px; }
  .hero h1 { font-size: clamp(52px, 14vw, 72px); }
  html:lang(de) .hero h1, html:lang(fr) .hero h1, html:lang(es) .hero h1 { font-size: clamp(42px, 11.8vw, 65px); }
  html:lang(ja) .hero h1 { font-size: clamp(40px, 11vw, 62px); }
  .hero-product .app-window, .hero-product:hover .app-window { transform: none; }
.platform-downloads { gap: 9px; }
  .platform-download { min-height: 128px; padding: 16px 12px; }
  .platform-copy strong { font-size: 13px; }
  .platform-copy small { font-size: 10px; }
  .flow-steps p, .source-copy > p, .crypto-specs dd, .faq-list details p { font-size: 13px; }
  .section-note, .source-copy > p.source-note, .consent-field label, .form-note { font-size: 11px; }
  .prose { font-size: 15px; }
  .product-tab { white-space: normal; font-size: 11px; }
  .product-tab .icon { display: none; }
  .source-form h3 { overflow-wrap: anywhere; }
  .limits-note a { white-space: normal; }
}

@media (max-width: 450px) {
  .platform-downloads { grid-template-columns: 1fr; }
  .platform-download { min-height: 77px; flex-direction: row; align-items: center; gap: 16px; padding: 15px 16px; }
  .platform-copy strong { font-size: 15px; }
  .platform-copy small { font-size: 11px; }
  .benefit-strip span { font-size: 11px; }
  .flow-steps { grid-template-columns: 1fr; gap: 32px; }
  .flow-steps h3, .flow-steps p { max-width: none; }
  .flow-steps .step-icon { margin-bottom: 15px; }
}

@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .site-header .brand { gap: 8px; font-size: 17px; }
  .site-header .brand-mark, .site-header .brand-mark img { width: 30px; height: 32px; }
  .site-header .beta-badge { left: 38px; }
  .language-switcher select { max-width: 82px; font-size: 10px; }
}

html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after {
  animation-play-state: paused !important;
}

@media print {
  .reveal-ready { opacity: 1; transform: none; }
}

/* Typography and proportions: one scale for all three pages.
 * Adjust these selectors and the root tokens instead of shrinking individual labels.
 */
body {
  background-image: none;
}

h2 {
  font-size: var(--heading-2);
  line-height: 1.16;
  letter-spacing: -.03em;
}

h3, .flow-steps h3, .source-form h3, .download-details h3 {
  font-size: var(--heading-3);
  line-height: 1.3;
  letter-spacing: -.02em;
}

.hero h1 {
  font-size: var(--heading-1);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.hero h1 em {
  font: inherit;
  letter-spacing: inherit;
  text-shadow: none;
}

.hero-description, .section-heading p, .crypto-intro > p,
.download-copy > p:not(.download-meta):not(.download-platform-note), .source-copy > p {
  font-size: var(--text-body);
  line-height: 1.65;
}

.hero-description, .crypto-intro > p, .source-copy > p {
  max-width: 470px;
}

.brand {
  font-size: 23px;
}

.brand-byline, .beta-badge, .beta-label {
  font-size: 13px;
}

.nav a, .button-small, .language-switcher select, .benefit-strip span,
.source-copy .text-link, .limits-note p, .update-note, .footer-links,
.checksum-details, .doc-toc, .doc-toc > p, .doc-toc h2, .doc-toc h3 {
  font-size: var(--text-small);
  line-height: 1.6;
}

.button, .hero-actions .button, .text-link, .hero-actions .text-link,
.product-tab, .form-submit, .field input, .field textarea, .breadcrumb {
  font-size: var(--text-ui);
  line-height: 1.5;
}

.button-small {
  font-size: var(--text-small);
}

.release-meta, .hero-product figcaption, .comparison-label, .comparison-number,
.chat-file small, .section-note, .small-index, .showcase-details,
.crypto-specs dt span, .download-meta, .download-platform-note,
.checksum-details code, .checksum-details .text-link, .checksum-details p,
#checksum-status, .source-copy > p.source-note, .field-error,
.consent-field label, .form-note, .form-status, .footer-bottom,
.preview-dialog p, .preview-close {
  font-size: var(--text-caption);
  line-height: 1.65;
}

.chat-time, .step-number, .platform-copy small {
  font-size: 13px;
  line-height: 1.55;
}

.chat-bubble, .chat-file, .chat-example > p, .flow-steps p,
.showcase-copy > p, .crypto-specs dd, .install-steps strong,
.faq-list details p {
  font-size: 17px;
  line-height: 1.65;
}

.ciphertext {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.comparison-heading {
  flex-wrap: wrap;
}

.comparison-heading h3, .limits-note h3 {
  font-size: 22px;
  line-height: 1.35;
}

.comparison-label {
  flex-basis: 100%;
  margin-left: 28px;
}

.showcase-copy h3 {
  max-width: 350px;
  font-size: 30px;
  line-height: 1.25;
}

.crypto-specs dt {
  font-size: 26px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.platform-copy strong {
  font-size: 18px;
}

.install-steps li > span {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.install-steps p {
  font-size: 16px;
  line-height: 1.65;
}

.faq-list summary {
  font-size: 20px;
  line-height: 1.5;
}

.field label {
  font-size: var(--text-small);
  line-height: 1.5;
}

.field input::placeholder, .field textarea::placeholder {
  font-size: inherit;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.preview-close span {
  font-size: 28px;
}

.doc-hero h1 {
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.14;
}

.doc-hero .lead, .lead {
  font-size: 20px;
  line-height: 1.65;
}

.prose {
  max-width: 74ch;
  font-size: var(--text-body);
  line-height: 1.75;
}

.prose h2 {
  font-size: 38px;
  line-height: 1.25;
}

.prose h3 {
  font-size: 26px;
  line-height: 1.35;
}

.prose pre code {
  font-size: 14px;
  line-height: 1.8;
}

.prose table, .prose th, .prose td {
  font-size: 16px;
  line-height: 1.65;
}

.prose .note, .prose .callout, .doc-callout {
  font-size: 17px;
}

/* A quieter presentation puts the actual application before decoration. */
.hero {
  gap: 56px;
  min-height: 720px;
}

.hero-product .app-window, .hero-product:hover .app-window {
  transform: none;
  border-color: #425a64;
  box-shadow: 0 22px 56px -30px #000000bb;
}

.hero-product {
  padding-top: 0;
}

.button-primary {
  box-shadow: none;
}

.comparison {
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid #384e5c;
}

.chat-example, .chat-example-protected {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
}

.chat-example:hover {
  transform: none;
}

.chat-example-protected {
  padding-left: 48px;
  border-left: 1px solid #384e5c;
}

.flow-section, .crypto-section, .product-showcase {
  background-image: none;
}

.flow-steps h3 {
  max-width: none;
  min-height: 66px;
  font-size: 24px;
}

.crypto-layout, .source-section {
  gap: 72px;
}

.showcase-details, .crypto-specs dd {
  margin-top: 24px;
}

.download-panel {
  padding: 48px;
  gap: 56px;
  background: #11251f;
  box-shadow: none;
}

.platform-download {
  min-height: 158px;
  padding: 20px 16px;
  gap: 20px;
}

.source-form {
  padding: 40px;
  box-shadow: none;
}

.field {
  margin-bottom: 24px;
}

.field textarea {
  min-height: 144px;
}

.doc-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
}

.doc-toc {
  top: 128px;
}

.prose section {
  padding-bottom: 40px;
  margin-bottom: 48px;
}

.prose p + p {
  margin-top: 20px;
}

html:lang(de) .hero h1, html:lang(fr) .hero h1, html:lang(es) .hero h1 {
  font-size: clamp(50px, 4.7vw, 68px);
}

html:lang(ja) .hero h1 {
  font-size: clamp(48px, 4.6vw, 66px);
}

/* Earlier menu activation preserves readable navigation at intermediate widths. */
@media (max-width: 1230px) {
  .site-header .beta-badge, .header-download {
    display: none;
  }

  .language-switcher {
    margin-left: auto;
  }

  .language-switcher select {
    max-width: none;
    width: 124px;
    min-height: 44px;
  }

  .menu-toggle {
    display: grid;
    order: 3;
    align-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-left: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #101b25;
  }

  .menu-toggle span {
    width: 18px;
    height: 1px;
    background: currentColor;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px;
    border: 1px solid var(--line);
    margin-left: 0;
    background: #0f1c27;
  }

  .nav.is-open, .nav[data-open="true"] {
    display: grid;
  }

  .nav a {
    padding: 14px 0;
    font-size: 17px;
    white-space: normal;
  }

  .nav a::after {
    display: none;
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .flow-steps h3 {
    min-height: 0;
  }

  .download-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .download-details {
    padding-top: 32px;
    border-top: 1px solid #416052;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 40px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero h1 br, .split-heading h2 br, .crypto-intro h2 br, .source-copy h2 br {
    display: none;
  }

  .hero h1 {
    font-size: 64px;
  }

  .split-heading, .crypto-layout, .source-section, .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .crypto-intro {
    position: static;
  }

  .section-heading p, .crypto-intro > p, .source-copy > p {
    max-width: 660px;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .doc-toc {
    position: static;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
  }

  .doc-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --text-body: 17px;
    --heading-1: clamp(44px, 11vw, 60px);
    --heading-2: 34px;
    --heading-3: 24px;
  }

  html {
    scroll-padding-top: 144px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-block: 14px;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
    font-size: 20px;
    transform: none;
  }

  .site-header .brand-mark, .site-header .brand-mark img {
    width: 34px;
    height: 36px;
  }

  .site-header .beta-badge {
    position: static;
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    max-width: 150px;
    padding: 4px 7px;
    border: 1px solid #36524b;
    border-radius: 4px;
    color: #b5decf;
    background: #152821;
    font-size: 13px;
    white-space: normal;
  }

  .site-header .brand-byline {
    display: none;
  }

  .language-switcher {
    grid-column: 1;
    grid-row: 2;
    margin-left: 0;
  }

  .language-switcher select {
    width: 144px;
    max-width: none;
    font-size: 15px;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .hero {
    padding-block: 40px 48px;
    gap: 32px;
  }

  .hero h1, html:lang(de) .hero h1, html:lang(fr) .hero h1,
  html:lang(es) .hero h1, html:lang(ja) .hero h1 {
    font-size: var(--heading-1);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .hero-copy > .beta-label {
    margin-bottom: 24px;
    font-size: 13px;
    white-space: normal;
  }

  .hero-actions {
    align-items: start;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 54px;
  }

  .hero-product figcaption {
    justify-content: start;
    text-align: left;
  }

  .benefit-strip span {
    font-size: 14px;
  }

  .comparison {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .chat-example-protected {
    padding: 28px 0 0;
    border-top: 1px solid #384e5c;
    border-left: 0;
  }

  .comparison-label {
    display: inline;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-tab {
    font-size: 14px;
    min-width: 0;
    min-height: 54px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .showcase-copy h3 {
    font-size: 28px;
  }

  .showcase-details {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .download-panel {
    padding: 28px 22px;
    gap: 32px;
  }

  .platform-downloads {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platform-download {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    min-height: 88px;
    padding: 18px 20px;
  }

  .platform-copy small {
    font-size: 14px;
  }

  .source-form {
    padding: 28px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .doc-hero h1 {
    font-size: 38px;
    overflow-wrap: anywhere;
  }

  .doc-hero .lead, .lead {
    font-size: 19px;
  }

  .doc-toc nav {
    grid-template-columns: 1fr;
  }

  .prose h2 {
    font-size: 30px;
  }

  .prose h3 {
    font-size: 24px;
  }

  .prose table, .prose th, .prose td {
    font-size: 15px;
  }

  .prose section {
    scroll-margin-top: 144px;
  }
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.6;
}

.language-links a {
  text-decoration: none;
}

.language-links a:hover, .language-links a[aria-current="page"] {
  color: var(--mint);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal-ready { opacity: 1; transform: none; }
}
