:root {
  color-scheme: dark;
  --bg: #080e18;
  --panel: #101c2b;
  --raised: #152438;
  --line: #243549;
  --text: #edf4fa;
  --body: #b4c4d3;
  --muted: #8197ad;
  --teal: #64ddc6;
  --orange: #edb26b;
  --purple: #b39bf1;
  --red: #f2948e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; overflow-x: clip; }
body { margin: 0; min-width: 320px; overflow-x: clip; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { opacity: .55; cursor: wait; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.wrap { width: min(100% - 48px, 1180px); margin-inline: auto; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 20; padding: 10px 14px; color: var(--bg); background: var(--teal); }
.skip-link:focus { top: 10px; }

.site-header {
  height: 76px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #172638;
  background: #080e18f5;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-size: 21px; font-weight: 760; letter-spacing: -.06em; white-space: nowrap; }
.brand > span span, .footer-inner .brand > span span { color: var(--teal); }
.brand-mark { width: 33px; height: 33px; }
.header-separator { width: 1px; height: 24px; background: #2a3c52; }
.header-label, .section-kicker, .eyebrow { font-size: 10px; letter-spacing: .18em; font-weight: 800; color: var(--teal); }
.top-nav { display: flex; gap: 23px; margin-left: auto; }
.top-nav a, .header-link { font-size: 12px; text-decoration: none; color: #9ab0c4; font-weight: 650; }
.top-nav a:hover, .header-link:hover { color: var(--text); }
.header-link { margin-left: 8px; white-space: nowrap; }
.header-link span, .footer-inner>a span { color: var(--teal); }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: 48px; align-items: center; min-height: 470px; padding-block: 66px 60px; position: relative; }
.hero:before { content: ""; position: absolute; z-index: -1; top: -160px; right: -130px; width: 750px; height: 600px; background: radial-gradient(ellipse, rgba(25, 78, 85, .25), transparent 65%); }
.eyebrow { display: flex; gap: 11px; align-items: center; margin: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #edb26b22; }
.hero h1 { font-size: clamp(39px, 4.1vw, 61px); line-height: 1.06; letter-spacing: -.06em; color: var(--text); margin: 19px 0; font-weight: 750; }
.hero h1 em, .not-found h1 em { font-style: normal; color: var(--teal); }
.hero-lead { max-width: 570px; font-size: 15px; line-height: 1.75; color: #a9bccb; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; margin-top: 27px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; border-radius: 9px; padding: 12px 17px; text-decoration: none; font-weight: 750; font-size: 12px; border: 1px solid transparent; min-height: 43px; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--teal); color: #092029; }
.button.primary:hover { background: #83ead6; }
.button.secondary { background: #101c2b; border-color: #345169; color: #dce8ee; }
.button.secondary:hover { border-color: var(--teal); }
.text-link { font-size: 12px; font-weight: 700; text-decoration: none; color: #b5c8d4; }
.text-link:hover { color: var(--teal); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.hero-notes span { font-size: 10px; color: #8197ad; border-right: 1px solid #354a5e; padding-right: 12px; }
.hero-notes span:last-child { border: 0; padding: 0; }

.hero-visual { position: relative; min-height: 310px; border: 1px solid #2a4353; border-radius: 16px; background: linear-gradient(145deg, #142638, #0c1727 68%); box-shadow: 0 25px 65px #0006; overflow: hidden; padding: 24px 20px; }
.visual-grid { position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(#365465 1px, transparent 1px), linear-gradient(90deg, #365465 1px, transparent 1px); background-size: 37px 37px; mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent); }
.visual-heading, .visual-footer { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 9px; font-weight: 750; letter-spacing: .09em; color: #9db5c3; }
.live { color: var(--teal); white-space: nowrap; }
.live i, .secure-label i, .intro-badge i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--teal); }
.crypto-flow { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 40px 0 38px; }
.flow-node { flex: 1; min-width: 0; min-height: 139px; padding: 13px 10px; border: 1px solid #31516a; border-radius: 10px; background: #102131; }
.flow-node.accent { border-color: #62beaeb0; background: #153640; }
.flow-node small { display: block; color: #83a2b3; font-size: 8px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.flow-node strong { display: block; overflow: hidden; text-overflow: ellipsis; color: #eff8f8; font-size: 14px; line-height: 1.2; letter-spacing: -.035em; margin: 11px 0 8px; }
.flow-node>span:last-child { display: block; font-size: 9px; line-height: 1.4; color: #9bb3c2; }
.file-glyph { display: block; margin-bottom: 6px; color: var(--orange); font-size: 18px; }
.file-glyph.encrypted { color: var(--teal); }
.flow-arrow { flex: 0 0 auto; color: var(--orange); font-size: 15px; font-weight: 400; }
.lock-orbit { width: 51px; height: 51px; flex: 0 0 51px; position: relative; display: grid; place-items: center; }
.lock-orbit img { width: 36px; height: 36px; position: relative; z-index: 1; }
.orbit { position: absolute; inset: 1px; border: 1px solid #6caa9b99; border-radius: 50%; transform: rotate(45deg) scaleY(.54); }
.orbit-two { transform: rotate(-45deg) scaleY(.54); border-color: #e9b87877; }
.visual-footer { justify-content: flex-start; gap: 18px; font-weight: 550; letter-spacing: 0; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; }
.legend-dot.orange { background: var(--orange); }
.legend-dot.teal { background: var(--teal); }

.tool-section { padding: 10px 0 105px; }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 25px; }
.section-kicker { margin: 0 0 11px; }
.section-intro h2 { font-size: clamp(27px, 3.3vw, 39px); line-height: 1.13; letter-spacing: -.045em; color: var(--text); margin: 0 0 11px; }
.section-intro p:not(.section-kicker) { font-size: 14px; line-height: 1.7; max-width: 680px; margin: 0; color: #9eb1c1; }
.intro-badge { font-size: 10px; color: #91b0bd; border: 1px solid #2c495b; background: #122333; border-radius: 100px; padding: 9px 12px; white-space: nowrap; }
.tool-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); border: 1px solid #26394e; border-radius: 14px; overflow: hidden; background: #0d1928; box-shadow: 0 25px 70px #0003; }
.tool-tabs { display: flex; flex-direction: column; gap: 8px; padding: 19px 13px; border-right: 1px solid var(--line); background: #0b1522; }
.tool-tab { width: 100%; display: grid; grid-template-columns: 27px 36px minmax(0, 1fr) 12px; align-items: center; gap: 8px; min-height: 73px; padding: 10px 9px; border: 1px solid transparent; border-radius: 9px; text-align: left; color: #9bb0c0; background: transparent; }
.tool-tab:hover { background: #112131; }
.tool-tab.is-active { border-color: #315361; background: #142a35; color: var(--text); }
.tab-number { align-self: start; padding-top: 5px; color: #688095; font-size: 9px; font-weight: 800; }
.tab-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #345064; border-radius: 9px; color: var(--teal); background: #14293a; font-size: 19px; }
.tool-tab:nth-child(2) .tab-icon { color: var(--orange); }
.tool-tab:nth-child(3) .tab-icon { color: var(--purple); }
.tool-tab strong, .tool-tab small { display: block; }
.tool-tab strong { color: #dce8ee; font-size: 12px; }
.tool-tab small { margin-top: 5px; color: #8299ab; font-size: 10px; }
.tab-arrow { opacity: 0; color: var(--teal); font-size: 14px; }
.tool-tab.is-active .tab-arrow { opacity: 1; }
.tool-workspace { min-width: 0; padding: 29px clamp(23px, 4vw, 48px) 25px; }
.operation-panel { max-width: 730px; margin: 0 auto; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.panel-step { color: var(--orange); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.secure-label { color: #91afa9; font-size: 9px; font-weight: 700; }
.operation-panel h3 { color: var(--text); font-size: 25px; letter-spacing: -.04em; margin: 18px 0 8px; }
.panel-description { color: #9eb1c1; max-width: 630px; font-size: 12px; line-height: 1.7; margin: 0 0 20px; }
.operation-panel code, .format-note code { padding: 2px 5px; border: 1px solid #31475c; border-radius: 4px; color: #d6e9ec; background: #132437; font-size: .92em; }
.key-explainer { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid #263c50; border-radius: 11px; background: #0f1c2b; margin: 19px 0; }
.key-card { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.key-icon { flex: 0 0 35px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: #1a3536; color: var(--teal); font-size: 20px; }
.private-key-card .key-icon { color: var(--purple); background: #2b2740; }
.key-card strong, .key-card small { display: block; }
.key-card strong { color: var(--text); font-size: 11px; }
.key-card small { margin-top: 4px; color: #8fa5b6; font-size: 9px; line-height: 1.35; }
.key-connection { color: #496578; font-size: 11px; overflow: hidden; white-space: nowrap; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid #4d3e2c; border-radius: 8px; background: #211d19; color: #c7ae8e; }
.notice-icon { flex: 0 0 16px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #604929; color: #ffe0ae; font-weight: 800; font-size: 10px; }
.notice p { margin: 0; font-size: 10px; line-height: 1.6; }
.notice strong { color: #f2d0a2; }
.action-button { margin-top: 17px; min-width: 235px; }
.action-button.is-busy { cursor: progress; }
.key-downloads { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.download-key { justify-content: flex-start; min-height: 38px; padding: 9px 12px; font-size: 10px; }
.operation-status { min-height: 16px; margin: 12px 0 0; font-size: 11px; line-height: 1.55; }
.operation-status:empty { display: none; }
.operation-status.success { color: var(--teal); }
.operation-status.error { color: var(--red); }
.operation-status.info { color: #a6bbca; }

.upload-field { display: block; margin-top: 15px; }
.field-label { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--orange); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.field-label span { color: #b6c6d1; }
.file-picker { display: flex; align-items: center; gap: 11px; position: relative; min-height: 63px; padding: 9px 11px; border: 1px dashed #3c5367; border-radius: 9px; background: #101e2d; transition: border-color .15s, background .15s; }
.file-picker:hover, .file-picker:focus-within { border-color: var(--teal); background: #122536; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.picker-icon { flex: 0 0 35px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; background: #26332f; color: var(--orange); font-size: 17px; }
.picker-icon.key-picker { color: var(--purple); background: #29253c; }
.picker-icon.encrypted-picker { color: var(--teal); background: #17323a; }
.picker-copy { flex: 1; min-width: 0; }
.picker-copy strong, .picker-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-copy strong { color: var(--text); font-size: 10px; }
.picker-copy small { margin-top: 4px; color: #859bae; font-size: 9px; }
.picker-action { flex: 0 0 auto; color: var(--teal); font-size: 10px; font-weight: 750; }
.operation-panel form .action-button { margin-top: 18px; }
.integrity-note { margin-top: 15px; }

.how-section { padding-bottom: 95px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #0e1a29; border-radius: 14px; }
.principles article { padding: 23px 25px 25px; border-right: 1px solid var(--line); }
.principles article:last-child { border-right: 0; }
.principle-index { display: block; font-size: 9px; letter-spacing: .12em; color: var(--orange); font-weight: 800; margin-bottom: 16px; }
.principle-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 10px; color: var(--teal); background: #193239; font-size: 20px; }
.principle-icon.orange-icon { color: var(--orange); background: #32291f; }
.principle-icon.purple-icon { color: var(--purple); background: #29243c; }
.principles h3 { color: var(--text); font-size: 14px; line-height: 1.35; margin: 0 0 8px; }
.principles p { font-size: 11px; line-height: 1.65; color: #93a8b9; margin: 0; }
.privacy-banner { display: flex; align-items: center; gap: 14px; margin-top: 17px; padding: 16px 19px; border: 1px solid #2c5c59; border-radius: 11px; background: linear-gradient(105deg, #102d32, #102131 66%); }
.privacy-shield { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: #1a3d41; font-size: 20px; }
.privacy-banner p { flex: 1; margin: 0; color: #9eb5c2; font-size: 11px; line-height: 1.6; }
.privacy-banner p strong { color: #d7eeeb; }
.privacy-lock { flex: 0 0 auto; color: var(--teal); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.format-note { margin: 12px 2px 0; color: #8298aa; font-size: 10px; line-height: 1.65; }

.site-footer { border-top: 1px solid #1c2c3e; background: #09111c; }
.footer-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { font-size: 16px; }
.footer-brand .brand-mark { width: 27px; height: 27px; }
.footer-inner p, .footer-inner>a:not(.brand) { color: #8094a5; font-size: 10px; }
.footer-inner>a:not(.brand) { text-decoration: none; }
.not-found { min-height: calc(100vh - 158px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found h1 { color: var(--text); font-size: clamp(38px, 5vw, 62px); letter-spacing: -.055em; margin: 17px 0 8px; }
.not-found p:not(.eyebrow) { color: #9eb1c1; font-size: 14px; margin: 0 0 22px; }

@media (max-width: 980px) {
  .site-header { gap: 14px; }
  .header-label { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(330px, .92fr); gap: 25px; }
  .hero-visual { padding-inline: 15px; }
  .visual-footer { gap: 9px; font-size: 8px; }
  .tool-layout { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .site-header { height: 65px; padding-inline: 20px; }
  .header-separator, .top-nav { display: none; }
  .header-link { margin-left: auto; }
  .wrap { width: min(100% - 36px, 600px); }
  .hero { grid-template-columns: 1fr; gap: 27px; min-height: auto; padding-block: 51px 49px; }
  .hero h1 { font-size: clamp(39px, 9vw, 56px); }
  .hero-visual { min-height: 295px; }
  .tool-section { padding-bottom: 77px; }
  .section-intro { align-items: flex-start; flex-direction: column; gap: 13px; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-tabs { flex-direction: row; gap: 5px; padding: 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tool-tab { grid-template-columns: 1fr; justify-items: center; gap: 5px; min-height: 81px; padding: 8px 4px; text-align: center; }
  .tab-number, .tab-arrow, .tool-tab small { display: none; }
  .tool-tab strong { font-size: 10px; }
  .tool-tab .tab-icon { width: 31px; height: 31px; }
  .tool-workspace { padding: 23px 20px 22px; }
  .principles article { padding-inline: 17px; }
  .privacy-banner { align-items: flex-start; flex-wrap: wrap; }
  .privacy-banner p { flex-basis: calc(100% - 55px); }
  .privacy-lock { margin-left: 50px; }
  .footer-inner { padding-block: 17px; flex-wrap: wrap; }
  .footer-inner p { order: 3; flex-basis: 100%; margin: 0; }
}
@media (max-width: 520px) {
  .site-header { padding-inline: 16px; }
  .wrap { width: min(100% - 30px, 440px); }
  .brand { font-size: 19px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-link { font-size: 10px; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 39px; }
  .hero-visual { padding: 18px 12px; }
  .visual-heading { font-size: 8px; }
  .crypto-flow { gap: 4px; margin-block: 42px 39px; }
  .flow-node { min-height: 130px; padding: 11px 7px; }
  .flow-node small { font-size: 7px; }
  .flow-node strong { font-size: 11px; }
  .flow-node>span:last-child { font-size: 8px; }
  .flow-arrow { font-size: 12px; }
  .lock-orbit { width: 38px; height: 38px; flex-basis: 38px; }
  .lock-orbit img { width: 31px; height: 31px; }
  .visual-footer { font-size: 7px; }
  .key-explainer { align-items: stretch; flex-direction: column; gap: 11px; }
  .key-connection { display: none; }
  .tool-workspace { padding-inline: 14px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .operation-panel h3 { font-size: 22px; }
  .file-picker { gap: 8px; padding-inline: 8px; }
  .picker-action { font-size: 9px; }
  .picker-copy small { font-size: 8px; }
  .action-button { width: 100%; }
  .download-key { width: 100%; }
  .principles { grid-template-columns: 1fr; }
  .principles article { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principles article:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
