:root {
  --ink: #19211f;
  --ink-soft: #52605c;
  --muted: #7b8782;
  --paper: #f6f8f5;
  --paper-deep: #edf1ec;
  --card: #ffffff;
  --line: #d9e1db;
  --line-strong: #c7d2ca;
  --teal: #116d66;
  --teal-dark: #0d514d;
  --teal-pale: #e1f1ed;
  --orange: #dd704b;
  --orange-pale: #fff0ea;
  --shadow: 0 26px 70px rgba(38, 57, 49, 0.08);
  --radius-lg: 24px;
  --radius-md: 14px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-shell { overflow: hidden; }
.site-header { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 800; letter-spacing: -0.04em; }
.brand-name span, .footer-brand span { color: var(--teal); }
.brand-mark { width: 27px; height: 27px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; padding: 5px; background: var(--teal); border-radius: 8px 8px 8px 2px; }
.brand-mark span { display: block; background: #d3f0e8; border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 7px; opacity: .6; }.brand-mark span:nth-child(2) { height: 12px; opacity: .8; }.brand-mark span:nth-child(3) { height: 17px; }
.header-nav { display: flex; align-items: center; gap: 34px; margin-left: 100px; }
.header-nav a { padding: 30px 0 27px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.header-nav a:hover, .header-nav a.active { color: var(--ink); border-color: var(--teal); }
.header-status { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #67b19a; box-shadow: 0 0 0 4px #dff1e9; }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 490px; display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: 80px; padding: 74px 0 54px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--teal); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 26px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 25px; font-size: clamp(48px, 6vw, 76px); line-height: .99; letter-spacing: -.075em; font-weight: 800; }
h1 em { color: var(--teal); font-style: normal; }
.hero-intro { max-width: 460px; margin-bottom: 28px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 8px; transition: color .2s ease, border-color .2s ease; }
.text-link:hover { color: var(--teal); border-color: var(--teal); }.text-link span { color: var(--orange); font-size: 16px; }
.hero-visual { min-height: 340px; position: relative; border: 1px solid var(--line); background: var(--paper-deep); overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.72), transparent 47%), repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(104, 126, 116, .06) 50px); }
.orbit { position: absolute; border: 1px solid rgba(17,109,102,.2); border-radius: 50%; transform: rotate(-27deg); }
.orbit-one { width: 350px; height: 184px; top: 78px; left: calc(50% - 175px); }.orbit-two { width: 275px; height: 132px; top: 103px; left: calc(50% - 137px); border-color: rgba(221,112,75,.18); transform: rotate(32deg); }
.hero-lock { position: absolute; left: calc(50% - 38px); top: 92px; width: 76px; height: 104px; }
.lock-shackle { display: block; width: 40px; height: 42px; margin: 0 auto -7px; border: 8px solid var(--teal); border-bottom: 0; border-radius: 24px 24px 0 0; }
.lock-body { display: flex; position: relative; height: 61px; flex-direction: column; align-items: center; justify-content: center; background: var(--teal); border-radius: 9px; box-shadow: 0 13px 25px rgba(17,109,102,.22); }
.lock-body i { width: 9px; height: 13px; background: #fff; border-radius: 5px; opacity: .92; }.lock-body b { width: 3px; height: 8px; background: #fff; opacity: .92; }
.code-strip { position: absolute; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(255,255,255,.78); border: 1px solid rgba(190, 206, 198, .8); font-family: var(--mono); font-size: 9px; letter-spacing: .05em; }.code-strip span { color: var(--muted); }.code-strip strong { color: var(--ink-soft); font-size: 10px; font-weight: 600; }.strip-top { top: 18px; }.strip-bottom { bottom: 18px; }.strip-bottom strong { color: var(--orange); }
.visual-note { position: absolute; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; transform: rotate(-90deg); }.note-one { left: 9px; top: 145px; }.note-two { right: 0; top: 146px; }

.workspace-section, .result-section, .reference-section { padding-top: 78px; }.section-heading, .result-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }.section-heading .eyebrow, .result-heading .eyebrow { margin-bottom: 13px; }
h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.04; letter-spacing: -.06em; }.section-note { margin: 0 0 3px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.6; letter-spacing: .05em; text-align: right; text-transform: uppercase; }
.workspace-card { display: grid; grid-template-columns: 205px 1fr; min-height: 690px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.step-rail { padding: 39px 23px; background: #f0f4f0; border-right: 1px solid var(--line); }.step-item { position: relative; padding: 0 0 41px 35px; color: var(--muted); }.step-item:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 28px; width: 1px; height: 48px; background: var(--line-strong); }.step-item span { position: absolute; left: 0; top: 0; color: var(--muted); font-family: var(--mono); font-size: 9px; }.step-item strong { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 750; }.step-item small { display: block; font-family: var(--mono); font-size: 9px; line-height: 1.4; }.step-item.active { color: var(--ink); }.step-item.active span { color: var(--teal); }.step-item.active::before { content: ""; position: absolute; left: -23px; top: -8px; width: 3px; height: 34px; border-radius: 0 3px 3px 0; background: var(--teal); }
.workbench-main { padding: 39px 42px 43px; }.mode-row, .selection-heading, .panel-heading { display: flex; align-items: start; justify-content: space-between; }.mode-row { padding-bottom: 31px; border-bottom: 1px solid var(--line); }.field-label { margin: 0 0 7px; font-size: 12px; font-weight: 800; letter-spacing: -.01em; }.field-hint { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .02em; }.segmented-control { display: inline-flex; padding: 4px; background: var(--paper-deep); border-radius: 8px; }.segment { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 11px; font-weight: 750; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }.segment.active { color: var(--ink); background: var(--card); box-shadow: 0 2px 7px rgba(38,57,49,.08); }.segment-icon { color: var(--orange); font-size: 16px; line-height: 10px; }
.cipher-selection { padding: 31px 0; border-bottom: 1px solid var(--line); }.selection-count { color: var(--muted); font-family: var(--mono); font-size: 9px; }.cipher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 19px; }.cipher-option { position: relative; min-height: 139px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); text-align: left; background: var(--paper); border: 1px solid transparent; border-radius: 11px; transition: border-color .2s ease, background .2s ease, transform .2s ease; }.cipher-option:hover { transform: translateY(-2px); border-color: var(--line-strong); }.cipher-option.selected { background: var(--teal-pale); border-color: var(--teal); }.cipher-number { color: var(--muted); font-family: var(--mono); font-size: 9px; }.cipher-symbol { margin: 9px 0 6px; color: var(--teal); font-size: 20px; line-height: 1; }.cipher-name { font-size: 13px; font-weight: 800; }.cipher-description { max-width: 145px; margin-top: 6px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }.option-arrow { position: absolute; top: 15px; right: 15px; color: var(--orange); font-size: 14px; opacity: 0; transition: opacity .2s ease; }.cipher-option.selected .option-arrow { opacity: 1; }
#cipher-form { padding-top: 31px; }.input-grid { display: grid; grid-template-columns: .73fr 1.27fr; gap: 18px; }.key-panel, .text-panel { min-height: 196px; padding: 20px; background: #fbfcfb; border: 1px solid var(--line); border-radius: var(--radius-md); }.panel-heading { margin-bottom: 17px; }.required-tag { color: var(--teal); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }.text-input, textarea { width: 100%; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }.text-input { height: 54px; padding: 0 15px; font-family: var(--mono); font-size: 18px; }.text-input::-webkit-inner-spin-button { opacity: .45; } textarea { display: block; min-height: 94px; padding: 13px 14px; resize: vertical; font-size: 13px; line-height: 1.55; }.text-input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(17,109,102,.11); } textarea::placeholder { color: #aab5af; }.input-helper { display: flex; gap: 7px; margin-top: 12px; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.45; }.helper-mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 13px; height: 13px; color: var(--teal); border: 1px solid currentColor; border-radius: 50%; font-size: 8px; }.input-helper code { color: var(--teal); }
.message { margin-top: 14px; padding: 11px 14px; border-radius: 8px; font-family: var(--mono); font-size: 10px; line-height: 1.45; }.error-message { color: #a34d33; background: var(--orange-pale); border: 1px solid #f4cdbd; }.action-row { display: flex; align-items: center; gap: 17px; margin-top: 23px; }.primary-button { display: inline-flex; align-items: center; gap: 19px; padding: 14px 17px 14px 19px; color: #fff; background: var(--teal); border: 0; border-radius: 7px; font-size: 11px; font-weight: 800; box-shadow: 0 8px 16px rgba(17,109,102,.16); transition: background .2s ease, transform .2s ease; }.primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }.button-arrow { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; color: var(--teal); background: #d3f0e8; border-radius: 50%; font-size: 13px; }.clear-button { padding: 9px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid transparent; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }.clear-button:hover { color: var(--ink); border-color: var(--ink); }

.result-section { padding-top: 96px; }.result-meta { display: flex; align-items: center; gap: 20px; }.result-meta > span { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }.copy-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 6px; font-family: var(--mono); font-size: 9px; transition: border-color .2s ease, color .2s ease; }.copy-button:hover:not(:disabled) { color: var(--teal); border-color: var(--teal); }.copy-button:disabled { cursor: not-allowed; opacity: .45; }.copy-button span { color: var(--orange); font-size: 14px; }.result-card { min-height: 208px; display: flex; align-items: center; background: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }.result-placeholder { width: 100%; padding: 42px; color: #8e9c95; text-align: center; }.placeholder-mark { display: block; margin-bottom: 13px; color: var(--teal); font-size: 25px; }.result-placeholder p { margin: 0 0 8px; color: #c4d0c9; font-size: 14px; font-weight: 700; }.result-placeholder small { color: #718079; font-family: var(--mono); font-size: 9px; }.result-content { width: 100%; padding: 37px 42px 31px; }.result-output { min-height: 75px; margin: 0 0 30px; color: #e5eee9; font-family: var(--mono); font-size: clamp(17px, 2.3vw, 25px); line-height: 1.6; letter-spacing: .04em; overflow-wrap: anywhere; }.result-footer { display: flex; justify-content: space-between; align-items: center; color: #789087; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }.success-chip { display: inline-flex; align-items: center; gap: 7px; color: #98c9b8; }.success-chip span { width: 6px; height: 6px; background: #6bd0ae; border-radius: 50%; }
.reference-section { padding-bottom: 94px; }.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.reference-card { position: relative; min-height: 218px; padding: 26px 26px 21px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); }.reference-index { color: var(--teal); font-family: var(--mono); font-size: 9px; }.reference-card h3 { margin: 31px 0 10px; font-size: 18px; letter-spacing: -.04em; }.reference-card p { max-width: 260px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }.reference-rule { position: absolute; bottom: 21px; color: var(--orange); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }.site-footer { width: min(1180px, calc(100% - 48px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); }.footer-brand { color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.04em; }.site-footer p { margin: 0; font-size: 11px; }.footer-code { font-family: var(--mono); font-size: 9px !important; letter-spacing: .08em; }

@media (max-width: 900px) { .hero { gap: 38px; grid-template-columns: 1fr .8fr; }.workspace-card { grid-template-columns: 1fr; }.step-rail { display: flex; justify-content: space-between; padding: 24px 32px; border-right: 0; border-bottom: 1px solid var(--line); }.step-item { padding: 0 0 0 28px; }.step-item:not(:last-child)::after { left: auto; right: -35px; top: 5px; width: 25px; height: 1px; }.step-item.active::before { left: -32px; top: -24px; width: 100%; height: 3px; border-radius: 0; }.workbench-main { padding: 32px; } }
@media (max-width: 680px) { .site-header, main, .site-footer { width: min(100% - 32px, 560px); }.site-header { min-height: 69px; }.header-nav { display: none; }.header-status { font-size: 8px; }.hero { display: block; padding: 57px 0 26px; }.hero h1 { font-size: 52px; }.hero-intro { font-size: 14px; }.hero-visual { min-height: 270px; margin-top: 43px; }.orbit-one { width: 280px; height: 145px; top: 61px; left: calc(50% - 140px); }.orbit-two { width: 220px; height: 110px; top: 78px; left: calc(50% - 110px); }.hero-lock { top: 72px; transform: scale(.82); }.strip-top, .strip-bottom { left: 10px; right: 10px; }.workspace-section, .result-section, .reference-section { padding-top: 63px; }.section-heading, .result-heading { display: block; }.section-note { margin-top: 15px; text-align: left; }.workspace-card { border-radius: 17px; }.step-rail { display: block; padding: 28px 26px 5px; }.step-item { padding: 0 0 26px 28px; }.step-item:not(:last-child)::after { left: 4px; right: auto; top: 25px; width: 1px; height: 24px; }.step-item.active::before { left: -26px; top: -8px; width: 3px; height: 32px; }.workbench-main { padding: 27px 20px 30px; }.mode-row { display: block; }.segmented-control { margin-top: 19px; }.cipher-grid { grid-template-columns: 1fr; }.cipher-option { min-height: 106px; }.cipher-description { max-width: 230px; }.input-grid { grid-template-columns: 1fr; }.key-panel, .text-panel { min-height: auto; }.result-card { min-height: 192px; }.result-content, .result-placeholder { padding: 28px 22px; }.result-output { min-height: 85px; font-size: 15px; }.result-footer { align-items: flex-start; flex-direction: column; gap: 13px; }.reference-grid { grid-template-columns: 1fr; }.reference-card { min-height: 190px; }.site-footer { min-height: 119px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; } }
