:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background-color: var(--background);
}

body::before {
  position: fixed;
  top: 160px;
  left: -140px;
  z-index: -2;
  width: 280px;
  height: 280px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

body::after {
  position: fixed;
  top: 0;
  right: 7vw;
  z-index: -1;
  width: 1px;
  height: 100vh;
  pointer-events: none;
  content: "";
  background: rgba(255, 255, 255, 0.09);
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  content: "";
  background: var(--accent);
}

.brand-mark::before {
  width: 12px;
  height: 2px;
  transform: translateY(-4px);
}

.brand-mark::after {
  width: 12px;
  height: 2px;
  transform: translateY(4px);
}

.brand-mark span:first-child {
  width: 2px;
  height: 12px;
}

.brand-mark span:last-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--background);
}

.privacy-chip {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: clamp(40px, 8vw, 112px);
  align-items: end;
  min-height: 490px;
  padding: clamp(80px, 11vw, 138px) 0 78px;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--accent);
}

.hero h1 {
  max-width: 860px;
  min-height: 1.84em;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.45rem, 8vw, 7.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-tagline {
  max-width: 700px;
  margin: 30px 0 0;
  color: var(--accent);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero-description {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-row span::before {
  margin-right: 8px;
  color: var(--accent);
  content: "✓";
}

.hero-aside {
  position: relative;
  padding: 27px 0 6px 28px;
  border-left: 1px solid var(--accent);
}

.aside-index {
  margin: 0 0 34px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-aside h2 {
  margin: 0 0 13px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.hero-aside p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.tool-workbench {
  margin-bottom: 110px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
}

.workbench-heading {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  min-height: 142px;
  padding: 31px 38px 29px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.workbench-heading .eyebrow {
  margin-bottom: 12px;
}

.workbench-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.workbench-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.tool-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tool-tab {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 22px 38px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.tool-tab:last-child {
  border-right: 0;
}

.tool-tab:hover {
  background: rgba(255, 255, 255, 0.035);
}

.tool-tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--background);
}

.tab-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.tool-tab strong,
.tool-tab small {
  display: block;
}

.tool-tab strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.tool-tab small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.tool-tab[aria-selected="true"] small {
  color: currentColor;
  opacity: 0.72;
}

.tool-panel {
  padding: 34px 38px 40px;
}

.tool-description {
  min-height: 24px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.drop-zone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 190px;
  padding: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  outline: none;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--accent);
  background: rgba(32, 217, 166, 0.055);
}

.drop-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.drop-symbol::before {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-top: 0;
  content: "";
}

.drop-symbol::after {
  position: absolute;
  width: 2px;
  height: 25px;
  content: "";
  background: var(--accent);
  transform: translateY(-7px);
}

.drop-symbol span::before,
.drop-symbol span::after {
  position: absolute;
  top: 21px;
  width: 10px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.drop-symbol span::before {
  left: 28px;
  transform: rotate(-45deg);
}

.drop-symbol span::after {
  right: 28px;
  transform: rotate(45deg);
}

.drop-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.drop-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.file-control {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 150px;
  min-height: 48px;
  padding: 12px 19px;
  overflow: hidden;
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.file-control:hover {
  color: var(--background);
  background: var(--accent);
}

.file-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.status-line {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 16px 0 0;
}

.status-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-line p[role="alert"] {
  color: var(--accent);
}

.busy-indicator {
  display: flex;
  gap: 5px;
  align-items: center;
}

.busy-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.busy-indicator span:nth-child(2) {
  opacity: 0.65;
}

.busy-indicator span:nth-child(3) {
  opacity: 0.32;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(310px, 1fr);
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.13);
}

.result-preview-wrap {
  position: relative;
  display: grid;
  min-height: 330px;
  overflow: hidden;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background-color: var(--background);
}

.result-preview {
  display: block;
  width: 100%;
  height: 330px;
  padding: 24px;
  object-fit: contain;
}

.result-stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 6px 9px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.result-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 54px);
}

.result-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.result-details h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.13);
}

.metrics div {
  min-width: 0;
  padding: 17px 12px 17px 0;
}

.metrics div + div {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.metrics dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metrics dd {
  margin: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.86rem, 2vw, 1.05rem);
  font-weight: 720;
  text-overflow: ellipsis;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  display: inline-grid;
  min-height: 48px;
  padding: 12px 19px;
  place-items: center;
  border: 1px solid var(--accent);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-action {
  color: var(--background);
  background: var(--accent);
}

.secondary-action {
  color: var(--accent);
  background: transparent;
}

.primary-action:hover,
.secondary-action:hover {
  box-shadow: inset 0 0 0 2px var(--background);
}

.explain {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(40px, 9vw, 120px);
  padding: 28px 0 108px;
}

.explain-heading h2,
.plain-proof h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.steps > li > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 750;
}

.steps h3 {
  margin: -4px 0 6px;
  font-size: 1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.plain-proof {
  position: relative;
  display: grid;
  grid-template-columns: 0.55fr 1fr 1fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 108px;
  padding: 50px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.14);
}

.plain-proof::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 90px;
  height: 3px;
  content: "";
  background: var(--accent);
}

.proof-label {
  margin: 5px 0 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plain-proof > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.noscript {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 10;
  margin: 0;
  padding: 16px;
  border: 1px solid currentColor;
  color: CanvasText;
  background: Canvas;
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.file-control:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

button:disabled,
input:disabled {
  cursor: wait;
  opacity: 0.58;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 78px;
  }

  .hero-aside {
    max-width: 580px;
  }

  .result-card,
  .explain,
  .plain-proof {
    grid-template-columns: 1fr;
  }

  .result-preview-wrap {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .plain-proof {
    gap: 24px;
  }
}

@media (max-width: 650px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .privacy-chip {
    max-width: 150px;
    border: 0;
    padding-right: 0;
    text-align: right;
  }

  .hero {
    padding: 64px 0 58px;
  }

  .hero h1 {
    min-height: 2.76em;
    font-size: clamp(3rem, 17vw, 5.1rem);
  }

  .workbench-heading,
  .tool-panel {
    padding-inline: 20px;
  }

  .workbench-heading {
    display: block;
  }

  .workbench-heading > p {
    margin-top: 14px;
  }

  .tool-tabs {
    grid-template-columns: 1fr;
  }

  .tool-tab {
    min-height: 86px;
    padding: 17px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .tool-tab:last-child {
    border-bottom: 0;
  }

  .drop-zone {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 30px 20px;
    text-align: center;
  }

  .file-control {
    width: 100%;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics div,
  .metrics div + div {
    padding: 13px 0;
    border-left: 0;
  }

  .metrics div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
