@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: 'Tektur';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/tektur-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

:root {
  --font-body: 'Space Grotesk', 'Segoe UI', Inter, 'Noto Sans', Arial, sans-serif;
  --font-display: 'Tektur', 'Arial Black', 'Segoe UI', sans-serif;
  --bg-a: #f6efe4;
  --bg-b: #e4ece6;
  --ink: #17201f;
  --ink-soft: #4c5a57;
  --brand-blue: #173b38;
  --brand-cyan: #335a56;
  --brand-mint: #889c7f;
  --brand-orange: #c7744b;
  --panel: rgba(255, 250, 244, 0.84);
  --panel-strong: rgba(255, 251, 247, 0.96);
  --line: rgba(23, 32, 31, 0.12);
  --line-strong: rgba(23, 32, 31, 0.24);
  --shadow-soft: 0 18px 40px rgba(25, 33, 31, 0.08);
  --shadow-strong: 0 28px 70px rgba(25, 33, 31, 0.14);
  --focus-ring: rgba(29, 103, 255, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

h1,
h2 {
  text-wrap: balance;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 12%, rgba(199, 116, 75, 0.18), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(23, 59, 56, 0.14), transparent 30%),
    radial-gradient(circle at 80% 88%, rgba(136, 156, 127, 0.16), transparent 38%),
    linear-gradient(168deg, var(--bg-a), var(--bg-b));
  overflow-x: hidden;
}

body.palette-open,
body.nav-open {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.14;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(23, 32, 31, 0.06) 0,
      rgba(23, 32, 31, 0.06) 1px,
      transparent 1px,
      transparent 56px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(23, 32, 31, 0.04) 0,
      rgba(23, 32, 31, 0.04) 1px,
      transparent 1px,
      transparent 56px
    );
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 249, 243, 0.46), rgba(255, 249, 243, 0));
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.4;
}

.shape-a {
  width: 360px;
  height: 360px;
  right: -90px;
  top: -130px;
  background: radial-gradient(circle, rgba(199, 116, 75, 0.56), rgba(199, 116, 75, 0.04));
}

.shape-b {
  width: 320px;
  height: 320px;
  left: -85px;
  bottom: -130px;
  background: radial-gradient(circle, rgba(23, 59, 56, 0.38), rgba(136, 156, 127, 0.16));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.88rem 1.2rem;
  backdrop-filter: blur(14px);
  background: rgba(249, 244, 236, 0.8);
  border-bottom: 1px solid var(--line);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(23, 32, 31, 0.16);
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
  color: #173b38;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(199, 116, 75, 0.12);
  border-color: rgba(199, 116, 75, 0.34);
  transform: translateY(-1px);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.34rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.015em;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  transform: translateY(-1px);
  background: rgba(199, 116, 75, 0.12);
  border-color: rgba(199, 116, 75, 0.3);
}

.language-wrap select {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.45rem 0.72rem;
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

main {
  width: min(1120px, 94%);
  margin: 1.8rem auto 2.9rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 5vw, 4rem);
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    linear-gradient(138deg, rgba(255, 251, 246, 0.98), rgba(244, 239, 231, 0.9)),
    var(--panel);
  box-shadow: var(--shadow-strong);
}

.hero::before {
  content: '';
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 116, 75, 0.22), rgba(199, 116, 75, 0.02) 70%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.78rem;
  border: 1px solid rgba(199, 116, 75, 0.3);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78442b;
  background: linear-gradient(130deg, rgba(199, 116, 75, 0.12), rgba(136, 156, 127, 0.08));
}

h1 {
  margin: 0 0 0.8rem;
  line-height: 1.08;
  max-width: 11ch;
  font-size: clamp(2.35rem, 6vw, 4.45rem);
  letter-spacing: -0.028em;
}

.lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.signal-row {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.signal-row li {
  padding: 0.36rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 59, 56, 0.12);
  background: rgba(255, 251, 247, 0.9);
  color: #34504b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cta-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.78rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.66rem 1.06rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 16px 30px rgba(23, 59, 56, 0.22);
}

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 251, 247, 0.84);
  border-color: var(--line-strong);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled,
button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.stats {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.82rem;
}

.stats li {
  padding: 0.66rem 0.94rem;
  min-width: 9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 247, 0.9);
}

.stats strong {
  margin-inline-end: 0.32rem;
  font-size: 1.18rem;
  color: #173b38;
}

.panel {
  margin-top: 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 251, 247, 0.95), rgba(242, 237, 230, 0.88)),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.panel h2 {
  margin: 0 0 0.42rem;
  letter-spacing: -0.02em;
}

.panel p {
  margin: 0;
  color: var(--ink-soft);
}

.grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  position: relative;
  padding: 1.02rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 247, 0.88);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(0, 207, 255, 0);
  transition: border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(23, 32, 31, 0.1);
}

.card:hover::after {
  border-color: rgba(199, 116, 75, 0.28);
}

.card h3 {
  margin: 0 0 0.3rem;
}

.mini-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.faq-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem;
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.tool-help-intro {
  margin-top: 0.4rem;
}

.tool-help-subtitle {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.tool-help-steps {
  margin: 0;
  padding-inline-start: 1.1rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.42rem;
}

.tool-help-faq {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.12rem;
}

.tool-help-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.66rem 0.8rem;
}

.tool-help-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.tool-help-faq p {
  margin-top: 0.45rem;
}

.ops-panel {
  border-top: 1px solid rgba(14, 116, 144, 0.22);
}

.ops-grid {
  margin-top: 0.9rem;
}

.ops-card {
  display: grid;
  gap: 0.34rem;
}

.ops-card h3 {
  margin: 0;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.ops-card p {
  margin: 0;
}

.ops-resource-list {
  margin-top: 0.1rem;
  display: grid;
  gap: 0.42rem;
}

.ops-resource-list li {
  margin: 0;
}

.tool-card {
  display: grid;
  gap: 0.62rem;
}

.track-card {
  display: grid;
  gap: 0.52rem;
}

.track-card .playbook-list {
  margin-top: 0.12rem;
}

.tool-meta {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7a4a36;
  font-weight: 700;
}

.tool-card .btn {
  width: fit-content;
}

.tool-explorer {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.tool-toolbar {
  display: grid;
  gap: 0.8rem;
  padding: 0.96rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.tool-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
}

.tool-search-field,
.tool-filter-field {
  display: grid;
  gap: 0.35rem;
}

.tool-search-field {
  flex: 1 1 280px;
}

.tool-filter-field {
  flex: 0 1 220px;
}

.tool-input-label,
.tool-chip-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b5f95;
  font-weight: 700;
}

.tool-search-input,
.tool-filter-select,
.tool-palette-input {
  width: 100%;
  padding: 0.7rem 0.82rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
}

.tool-search-input:focus,
.tool-filter-select:focus,
.tool-palette-input:focus,
.tool-chip:focus,
.tool-palette-item:focus,
.nav-toggle:focus {
  outline: 2px solid rgba(29, 103, 255, 0.35);
  outline-offset: 2px;
}

.tool-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tool-toolbar-actions .btn.ghost.is-active,
.tool-save-btn.is-active {
  color: #0a4e7a;
  background: rgba(29, 103, 255, 0.14);
  border-color: rgba(29, 103, 255, 0.38);
}

.tool-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
}

.tool-status-summary,
.tool-status-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.tool-chip-groups {
  display: grid;
  gap: 0.8rem;
}

.tool-chip-group {
  display: grid;
  gap: 0.45rem;
}

.tool-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 103, 255, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: #0a4e7a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.tool-chip.is-empty {
  border-style: dashed;
  color: var(--ink-soft);
  cursor: default;
}

.tool-catalog-grid {
  margin-top: 0;
}

.tool-card.is-hidden {
  display: none;
}

.tool-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.tool-card.is-favorite::after {
  border-color: rgba(29, 103, 255, 0.3);
}

.tool-save-btn {
  min-width: 6.6rem;
}

.tool-empty-state {
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(7, 18, 30, 0.2);
  background: rgba(255, 255, 255, 0.72);
}

.tool-empty-state[hidden] {
  display: none;
}

.tool-palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(7, 18, 30, 0.42);
  backdrop-filter: blur(8px);
}

.tool-palette-overlay.is-open {
  display: flex;
}

.tool-palette {
  width: min(760px, 100%);
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(247, 251, 255, 0.96);
  box-shadow: var(--shadow-strong);
}

.tool-palette-header {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
}

.tool-palette-title {
  margin: 0;
}

.tool-palette-close {
  width: auto;
}

.tool-palette-list {
  display: grid;
  gap: 0.6rem;
  max-height: min(60vh, 520px);
  overflow-y: auto;
}

.tool-palette-item {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  text-align: start;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.tool-palette-item-title {
  font-weight: 700;
}

.tool-palette-item-meta,
.tool-palette-empty {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.tool-palette-empty {
  margin: 0;
  padding: 0.8rem 0.1rem;
}

.blog-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.post-card {
  display: grid;
  gap: 0.62rem;
}

.post-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #1e5b86;
  font-weight: 600;
}

.article-hero h1 {
  max-width: 18ch;
}

.article-hero-rich h1 {
  max-width: 22ch;
}

.blog-hero-media {
  margin: 1rem 0 0;
}

.blog-hero-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}

.article-shell {
  padding: 1.05rem 1.2rem;
}

.playbook-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.playbook-side {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.playbook-list {
  margin: 0.7rem 0 0;
  padding-inline-start: 1.14rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.42rem;
}

.playbook-faq {
  margin-top: 0.8rem;
}

.visual-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.playbook-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.playbook-card {
  display: grid;
  gap: 0.58rem;
}

.playbook-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.playbook-mini-card {
  display: grid;
  gap: 0.5rem;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.breadcrumbs a {
  color: #0a5a8f;
  font-weight: 700;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.article-prose {
  max-width: 74ch;
}

.article-prose h2 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1.24rem;
  line-height: 1.3;
}

.article-prose p {
  margin: 0;
}

.article-prose ul {
  margin: 0.7rem 0 0;
  padding-inline-start: 1.14rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.42rem;
}

.drop-zone {
  margin-top: 0.82rem;
  border: 2px dashed rgba(12, 103, 173, 0.4);
  border-radius: 17px;
  padding: 1rem;
  text-align: center;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(243, 252, 255, 0.72));
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.dragover {
  border-color: var(--brand-blue);
  background: rgba(0, 207, 255, 0.12);
  outline: none;
}

.file-input-hidden {
  display: none;
}

.hint {
  margin-top: 0.66rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.options-grid {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span,
.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.textarea-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.56rem 0.62rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus,
.textarea-field textarea:focus,
.language-wrap select:focus {
  outline: 2px solid rgba(0, 207, 255, 0.45);
  outline-offset: 1px;
}

.field-inline {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.55rem;
}

.field-inline input[type='checkbox'] {
  width: auto;
  flex: 0 0 auto;
  margin-top: 0.12rem;
  transform: scale(1.15);
}

.textarea-field textarea {
  resize: vertical;
  min-height: 120px;
}

.results-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.result-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0.86rem;
  display: grid;
  gap: 0.65rem;
}

.result-card h3 {
  margin: 0;
  font-size: 0.97rem;
  word-break: break-word;
}

.result-preview {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(146deg, #ffffff, #edf8ff);
}

.result-meta {
  display: grid;
  gap: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.result-meta p {
  margin: 0;
}

.hash-output {
  width: 100%;
  min-height: 92px;
  font: 500 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.qa-source-card h3 {
  margin: 0 0 0.52rem;
}

.qa-range-wrap {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.qa-range-wrap input[type='range'] {
  width: 100%;
}

.qa-split-control {
  margin-top: 0.84rem;
}

.qa-metric-card {
  display: grid;
  gap: 0.35rem;
}

.qa-metric-card p {
  margin: 0;
}

.qa-metric-value {
  font-size: 1.25rem;
  color: #0b4f7e;
}

.qa-verdict-pass {
  color: #06714d;
}

.qa-verdict-review {
  color: #9b5d00;
}

.qa-verdict-fail {
  color: #ad1725;
}

.qa-canvas-wrap {
  background:
    linear-gradient(45deg, #e3e9ef 25%, transparent 25%, transparent 75%, #e3e9ef 75%),
    linear-gradient(45deg, #e3e9ef 25%, transparent 25%, transparent 75%, #e3e9ef 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}

#previewCanvas {
  cursor: grab;
}

#previewCanvas:active {
  cursor: grabbing;
}

.canvas-wrap {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.86);
}

.preview-canvas {
  display: block;
  width: 100%;
  max-height: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #eef7ff);
}

.color-row {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.color-chip {
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  display: inline-block;
}

.preview-grid {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.preview-block h3 {
  margin: 0 0 0.5rem;
}

.checkerboard {
  background:
    linear-gradient(45deg, #e3e9ef 25%, transparent 25%, transparent 75%, #e3e9ef 75%),
    linear-gradient(45deg, #e3e9ef 25%, transparent 25%, transparent 75%, #e3e9ef 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

.palette-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.palette-swatch {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.swatch-preview {
  border-radius: 11px;
  min-height: 84px;
  border: 1px solid rgba(7, 18, 30, 0.12);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.5rem;
}

.swatch-preview strong {
  font-size: 0.88rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  padding: 0.16rem 0.36rem;
}

.swatch-rgb,
.swatch-share {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.palette-output {
  margin-top: 0.9rem;
}

.favicon-snippet {
  margin-top: 0.9rem;
}

.table-wrap {
  margin-top: 0.8rem;
  overflow-x: auto;
}

.rename-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.rename-table th,
.rename-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.58rem 0.66rem;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.rename-table th {
  font-size: 0.9rem;
  color: #0a456f;
  background: rgba(0, 207, 255, 0.08);
}

.rename-table tr:last-child td {
  border-bottom: 0;
}

.inline-link {
  color: #8f5236;
  font-weight: 700;
}

.site-footer {
  width: min(1120px, 94%);
  margin: 0 auto 2.2rem;
  padding-top: 1.12rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-links a {
  color: #8f5236;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.browser-ai-panel {
  position: relative;
  overflow: hidden;
}

.browser-ai-panel::before {
  content: '';
  position: absolute;
  inset: 1.1rem auto auto 1.1rem;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 122, 69, 0.18), rgba(201, 122, 69, 0));
  pointer-events: none;
}

.browser-ai-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.9fr);
  align-items: start;
  position: relative;
  z-index: 1;
}

.browser-ai-field,
.browser-ai-side {
  display: grid;
  gap: 0.72rem;
}

.browser-ai-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.browser-ai-input {
  width: 100%;
  min-height: 12rem;
  resize: vertical;
  padding: 1rem 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 59, 56, 0.16);
  background: rgba(255, 250, 245, 0.95);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.browser-ai-input:focus {
  outline: 2px solid rgba(183, 98, 49, 0.26);
  border-color: rgba(183, 98, 49, 0.3);
}

.browser-ai-run {
  width: fit-content;
}

.browser-ai-run[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.browser-ai-hint,
.browser-ai-footnote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.browser-ai-result {
  gap: 0.55rem;
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.95), rgba(240, 247, 244, 0.92)),
    var(--surface);
}

.browser-ai-result h3,
.browser-ai-score,
.browser-ai-guidance {
  margin: 0;
}

.browser-ai-score {
  font-size: 1.05rem;
  font-weight: 700;
  color: #8f5236;
}

.archive-lens-panel {
  overflow: hidden;
  position: relative;
}

.archive-lens-panel::before {
  content: '';
  position: absolute;
  inset: auto -18% -32% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 231, 225, 0.44), rgba(200, 231, 225, 0));
  pointer-events: none;
}

.archive-lens-shell {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.archive-lens-field {
  display: grid;
  gap: 0.5rem;
}

.archive-lens-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #31504c;
}

.archive-lens-input {
  width: 100%;
  min-height: 9rem;
  border: 1px solid rgba(143, 82, 54, 0.18);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  background: rgba(255, 252, 248, 0.9);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.archive-lens-input:focus {
  outline: none;
  border-color: rgba(143, 82, 54, 0.42);
  box-shadow:
    0 0 0 3px rgba(143, 82, 54, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.archive-lens-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.archive-lens-run {
  min-width: 14rem;
}

.archive-lens-hint,
.archive-lens-footnote {
  margin: 0;
  color: var(--ink-soft);
}

.archive-lens-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.archive-lens-suggestion {
  border: 1px solid rgba(143, 82, 54, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.85);
  color: #6f4532;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.archive-lens-suggestion:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 82, 54, 0.34);
  background: rgba(255, 248, 242, 0.94);
}

.archive-lens-summary,
.archive-lens-card {
  gap: 0.6rem;
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.95), rgba(240, 247, 244, 0.92)),
    var(--surface);
}

.archive-lens-summary h3,
.archive-lens-score,
.archive-lens-guidance,
.archive-lens-card h3,
.archive-lens-card-copy,
.archive-lens-card-details {
  margin: 0;
}

.archive-lens-score,
.archive-lens-result-score {
  font-size: 1rem;
  font-weight: 700;
  color: #8f5236;
}

.archive-lens-results {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.archive-lens-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.archive-lens-kind {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  background: rgba(200, 231, 225, 0.52);
  color: #31504c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-lens-card-copy {
  color: var(--ink-soft);
}

.archive-lens-card-details {
  font-size: 0.92rem;
  color: #6f4532;
}

.archive-lens-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (max-width: 860px) {
  .browser-ai-grid {
    grid-template-columns: 1fr;
  }

  .browser-ai-run {
    width: 100%;
  }

  .archive-lens-actions,
  .archive-lens-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-lens-run {
    width: 100%;
  }
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: #173b38;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.995);
  animation: rise 0.72s ease forwards;
}

#tools.reveal {
  animation-delay: 0.1s;
}

#trust.reveal {
  animation-delay: 0.08s;
}

#how.reveal {
  animation-delay: 0.16s;
}

#blog.reveal {
  animation-delay: 0.22s;
}

#why.reveal {
  animation-delay: 0.28s;
}

#faq.reveal {
  animation-delay: 0.34s;
}

#governance.reveal {
  animation-delay: 0.4s;
}

#value.reveal {
  animation-delay: 0.46s;
}

#final-cta.reveal {
  animation-delay: 0.52s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html[dir='rtl'] body {
  text-align: right;
}

html[dir='rtl'] .site-header {
  flex-direction: row-reverse;
}

html[dir='rtl'] .brand {
  flex-direction: row-reverse;
}

html[dir='rtl'] .cta-row {
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-header.nav-enhanced {
    position: sticky;
    gap: 0.75rem;
    align-items: center;
  }

  .site-header.nav-enhanced .nav-toggle {
    display: inline-flex;
  }

  .site-header.nav-enhanced nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    z-index: 31;
    order: 4;
    width: auto;
    padding: 0.75rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(248, 252, 255, 0.98);
    box-shadow: var(--shadow-soft);
    justify-content: stretch;
    flex-direction: column;
  }

  .site-header.nav-enhanced.is-nav-open nav {
    display: flex;
  }

  .site-header.nav-enhanced nav a {
    width: 100%;
    text-align: center;
  }

  .tool-toolbar-row,
  .tool-status {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-toolbar-actions {
    width: 100%;
  }

  .tool-toolbar-actions .btn {
    flex: 1 1 180px;
  }

  main,
  .site-footer {
    width: min(1120px, 95%);
  }

  .playbook-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-word {
    font-size: 0.96rem;
  }

  .site-header.nav-enhanced .language-wrap,
  .site-header.nav-enhanced .nav-toggle {
    width: 100%;
  }

  .site-header.nav-enhanced .nav-toggle {
    justify-content: center;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-toolbar-actions .btn,
  .tool-card-actions .btn,
  .tool-chip,
  .tool-palette-close {
    width: 100%;
  }

  .tool-palette-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Service-home layout (index + ar/index) */
.service-home main {
  width: 100%;
  margin: 0 auto 3rem;
}

.service-home .hero {
  margin-top: 0;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  min-height: calc(100svh - 72px);
  padding: clamp(2.2rem, 8vw, 5.8rem) min(6vw, 4rem) clamp(2rem, 7vw, 4rem);
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 12% 16%, rgba(199, 116, 75, 0.24), transparent 35%),
    radial-gradient(circle at 86% 22%, rgba(23, 59, 56, 0.28), transparent 34%),
    linear-gradient(146deg, rgba(255, 250, 243, 0.99), rgba(236, 244, 239, 0.95));
  box-shadow: none;
}

.service-home .hero::before {
  width: 24rem;
  height: 24rem;
  right: -9rem;
  bottom: -9rem;
  background: radial-gradient(circle, rgba(23, 59, 56, 0.22), rgba(23, 59, 56, 0.02) 70%);
}

.service-home .hero-shell {
  width: min(1120px, 94vw);
  margin: 0 auto;
  display: grid;
  gap: 0.95rem;
}

.service-home .hero-proof {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.service-home .hero-proof li {
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 59, 56, 0.18);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
}

.service-home .hero h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
}

.service-home .hero .lead {
  max-width: 70ch;
  color: #2f3f3c;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
}

.service-home .signal-row li {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(23, 59, 56, 0.18);
}

.service-home .btn.primary {
  background: linear-gradient(132deg, #123431, #2a5d57);
}

.service-home .service-kpis {
  gap: 0.72rem;
}

.service-home .service-kpis li {
  min-width: min(100%, 19rem);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(23, 59, 56, 0.18);
}

.service-home .panel {
  width: min(1120px, 94%);
  margin: 1.05rem auto 0;
  padding: 1.5rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 620px;
}

.service-home .section-head {
  display: grid;
  gap: 0.4rem;
}

.service-home .section-head p {
  max-width: 68ch;
}

.service-home .service-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-home .service-card {
  padding-top: 1.1rem;
}

.service-home .split-band {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.service-home .check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.62rem;
}

.service-home .check-list li {
  padding: 0.62rem 0.74rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.service-home .workflow-grid .card {
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(239, 247, 243, 0.9));
}

.service-home .card {
  background: rgba(255, 255, 255, 0.86);
}

.service-home .site-footer {
  width: min(1120px, 94%);
}

@media (max-width: 920px) {
  .service-home .hero {
    min-height: calc(100svh - 124px);
    padding-top: clamp(1.7rem, 12vw, 4rem);
  }

  .service-home .hero h1 {
    max-width: 18ch;
  }

  .service-home .split-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .service-home .panel {
    padding: 1.2rem;
  }

  .service-home .hero {
    padding-inline: 1rem;
  }
}


/* =========================================
   PREMIUM GLOBAL REDESIGN - DARK MODE & GLASSMORPHISM
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --font-body: 'Inter', system-ui, -apple-system, sans-serif !important;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif !important;
  
  --bg-a: #050505 !important;
  --bg-b: #0a0a0a !important;
  --ink: #f8fafc !important;
  --ink-soft: #94a3b8 !important;
  
  --brand-blue: #3b82f6 !important;
  --brand-cyan: #06b6d4 !important;
  --brand-mint: #10b981 !important;
  --brand-orange: #f59e0b !important;
  
  --panel: rgba(255, 255, 255, 0.02) !important;
  --panel-strong: rgba(255, 255, 255, 0.04) !important;
  --line: rgba(255, 255, 255, 0.06) !important;
  --line-strong: rgba(255, 255, 255, 0.12) !important;
  
  --shadow-soft: 0 4px 24px -1px rgba(0, 0, 0, 0.5) !important;
  --shadow-strong: 0 8px 32px -4px rgba(0, 0, 0, 0.7) !important;
  --focus-ring: rgba(59, 130, 246, 0.5) !important;
}

body {
  background-color: var(--bg-a) !important;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%) !important;
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
}

body::before {
  opacity: 0.02 !important;
  background: repeating-linear-gradient( 90deg, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 1) 1px, transparent 1px, transparent 56px ), repeating-linear-gradient( 0deg, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 1) 1px, transparent 1px, transparent 56px ) !important;
}
body::after {
  display: none !important;
}

.site-header {
  background: rgba(5, 5, 5, 0.6) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

.brand-word {
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  background: linear-gradient(to right, #3b82f6, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em !important;
}

/* Glassmorphism Panels */
.panel, .card, .hero, .faq-item, .tool-toolbar {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
  border-radius: 24px !important;
}

.card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(59, 130, 246, 0.2) !important;
}

/* Buttons */
.btn {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border-radius: 14px !important;
  text-transform: capitalize !important;
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  color: #fff !important;
}

.btn.primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
  transition: 0.5s;
}

.btn.primary:hover::after {
  left: 100%;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}

.tool-chip {
  color: #dbeafe !important;
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
}

/* Typography Overrides */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display) !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

h1 {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p, span, li, .lead {
  color: var(--ink-soft) !important;
}

nav a {
  color: #cbd5e1 !important;
  font-family: var(--font-display) !important;
}

nav a:hover, nav a[aria-current="page"] {
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

.nav-toggle {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.nav-toggle:hover {
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: rgba(59, 130, 246, 0.36) !important;
}

@media (max-width: 920px) {
  .site-header.nav-enhanced nav {
    background: rgba(8, 12, 18, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
  }

  .site-header.nav-enhanced nav a {
    color: #e2e8f0 !important;
  }
}

.inline-link {
  color: #60a5fa !important;
}
.inline-link:hover {
  color: #93c5fd !important;
}

/* Inputs & Form Elements */
input, select, textarea, .language-wrap select, .tool-search-input, .tool-filter-select {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 12px !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
  outline: none !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

/* Stats / Cards */
.stats li {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.stats strong {
  color: #3b82f6 !important;
}

.tag {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
  backdrop-filter: blur(4px) !important;
}

.signal-row li {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 6px;
  border: 3px solid #050505;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Misc overrides */
.site-footer {
  border-top-color: rgba(255,255,255,0.05) !important;
}
.result-card, .canvas-wrap, .tool-palette-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.preview-canvas {
  background: rgba(0,0,0,0.5) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.qa-metric-value {
  color: #60a5fa !important;
}
