:root {
  color-scheme: light;
  --page-bg: #ffffff;
  --panel-bg: #ffffff;
  --text: #202938;
  --muted: #687386;
  --border: #e5e9f0;
  --primary: #315fce;
  --primary-hover: #244eaf;
  --soft-bg: #f5f7fb;
  --danger: #c03939;
  --success: #23845b;
  --radius: 12px;
  --shadow: 0 3px 16px rgba(24, 39, 75, 0.045);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(49, 95, 206, 0.25);
  outline-offset: 3px;
}

.container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 200px;
  height: 50px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #465267;
  font-size: 14px;
  font-weight: 550;
}

.header-nav a {
  transition: color 0.15s ease;
}

.header-nav a:hover,
.site-footer a:hover {
  color: var(--primary);
}

/* Product introduction */

.page-intro {
  padding: 46px 0 31px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.2px;
}

.page-title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.2;
  letter-spacing: -1.2px;
}

.free-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  color: #18764d;
  background: #eaf7ef;
  border: 1px solid #d2eddd;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.5px;
}

.intro-description {
  max-width: 690px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.trust-points {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-top: 20px;
  color: #536176;
  font-size: 13px;
}

.trust-points span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--success);
  font-weight: 800;
}

/* Main workspace */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding-bottom: 25px;
}

.workspace-panel {
  min-width: 0;
  padding: 25px 27px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.field-description {
  margin: 10px 0 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.workspace-panel > label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
}

/* Text input */

textarea {
  display: block;
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 14px 15px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #d8deea;
  border-radius: 8px;
  outline: none;
  line-height: 1.65;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea:focus,
input:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49, 95, 206, 0.12);
}

textarea::placeholder {
  color: #a0a9b7;
}

.input-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.input-actions,
.generate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.button-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.button-secondary {
  color: #43516a;
  background: #ffffff;
  border-color: #dce2eb;
}

.button-secondary:hover:not(:disabled) {
  background: #f5f7fb;
  border-color: #bdc9dc;
}

.generate-actions {
  margin-top: 21px;
}

.generate-actions .button {
  min-width: 165px;
  min-height: 44px;
}

/* Algorithm selection */

.algorithm-section {
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.algorithm-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.algorithm-option {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.algorithm-option:has(input:checked) {
  background: #f5f8ff;
  border-color: #a9bee9;
}

.algorithm-option input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: var(--primary);
}

.algorithm-option-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.algorithm-option-copy strong {
  font-size: 13px;
}

.algorithm-option-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Processing status */

.status-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.error-message {
  min-height: 0;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.error-message:empty {
  display: none;
}

/* Hash results */

.results-workspace {
  min-height: 230px;
}

.results-workspace .section-heading {
  flex-wrap: wrap;
}

.empty-results {
  margin-top: 18px;
  padding: 33px 16px;
  color: #8993a3;
  background: #fafbfd;
  border: 1px dashed #dce2eb;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
}

.results-list {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.result-card {
  min-width: 0;
  padding: 15px;
  background: #fafbfd;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.result-algorithm {
  font-size: 13px;
  font-weight: 750;
}

.result-bits {
  color: var(--muted);
  font-size: 11px;
}

.result-value {
  display: block;
  overflow-wrap: anywhere;
  padding: 11px 12px;
  color: #34445e;
  background: #f0f3f8;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.75;
  user-select: text;
}

.result-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.copy-button {
  min-height: 32px;
  padding: 5px 12px;
  color: var(--primary);
  background: #ffffff;
  border: 1px solid #d6e0f2;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
}

.copy-button:hover {
  background: #f1f5ff;
}

/* Privacy notice */

.privacy-notice {
  position: relative;
  margin: 2px 0 30px;
  padding: 17px 42px 17px 0;
  background: #f7f9fc;
  border-top: 1px solid #e9edf3;
  border-bottom: 1px solid #e9edf3;
}

.privacy-icon {
  position: absolute;
  top: 18px;
  right: 6px;
  display: flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  color: #18764d;
  background: #e5f5ec;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.privacy-notice-content strong {
  display: block;
  margin-bottom: 4px;
  color: #263448;
  font-size: 14px;
}

.privacy-notice-content p {
  margin: 0;
  color: #596579;
  font-size: 13px;
  line-height: 1.75;
}

/* Instructions and privacy content */

.content-section {
  width: 100%;
  padding: 0 0 48px;
  text-align: left;
}

.content-section > article {
  width: 100%;
  margin: 0;
  padding: 21px 0 23px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.content-section > article:first-child {
  border-top: 1px solid var(--border);
}

.content-section h2 {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.25px;
}

.content-section p,
.content-section li {
  color: #596579;
  font-size: 14px;
  line-height: 1.8;
}

.content-section p {
  margin: 9px 0;
}

.content-section ol,
.content-section ul {
  padding-left: 22px;
  margin: 10px 0;
}

.content-section li {
  margin: 7px 0;
}

.content-section li strong {
  color: #34445e;
}

/* FAQ */

.faq-section {
  width: 100%;
  margin-top: 30px;
  text-align: left;
}

.faq-section > h2 {
  margin-bottom: 13px;
}

.faq-section details {
  padding: 15px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.faq-section details:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-section summary {
  position: relative;
  padding-right: 25px;
  color: #283548;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
  list-style-position: outside;
}

.faq-section summary::marker {
  color: var(--primary);
}

.faq-section details p {
  margin: 11px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Footer */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-inner a {
  transition: color 0.15s ease;
}

/* Copy notification */

.toast {
  position: fixed;
  z-index: 10;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100% - 44px));
  padding: 12px 17px;
  color: #ffffff;
  background: #273449;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.16);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */

@media (max-width: 760px) {
  .header-inner {
    min-height: 70px;
  }

  .page-intro {
    padding-top: 37px;
  }

  .workspace-panel {
    padding: 22px;
  }

  .content-section h2 {
    font-size: 18px;
  }
}

/* Mobile */

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, 1080px);
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .brand-logo {
    width: 155px;
    height: auto;
  }

  .header-nav {
    gap: 12px;
    font-size: 12px;
  }

  .page-intro {
    padding: 32px 0 25px;
  }

  .page-intro h1 {
    font-size: 31px;
  }

  .page-title-row {
    gap: 8px;
  }

  .intro-description {
    font-size: 14px;
  }

  .trust-points {
    gap: 8px 14px;
    font-size: 12px;
  }

  .workspace {
    gap: 14px;
  }

  .workspace-panel {
    padding: 18px;
  }

  .section-heading h2 {
    font-size: 18px;
  }

  .algorithm-options {
    grid-template-columns: 1fr;
  }

  .input-meta {
    font-size: 11px;
  }

  .privacy-notice {
    margin-bottom: 24px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .privacy-icon {
    top: 16px;
  }

  .content-section {
    padding-bottom: 35px;
  }

  .content-section > article {
    padding: 18px 0 20px;
  }

  .content-section p,
  .content-section li {
    font-size: 13px;
  }

  .faq-section {
    margin-top: 24px;
  }

  .faq-section summary {
    font-size: 13px;
  }

  .footer-inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .footer-inner nav {
    gap: 10px 15px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
  }
}
