:root {
  color-scheme: dark;
  --bg: #0e1116;
  --bg-elevated: #11161e;
  --surface: #151922;
  --surface-raised: #1c2230;
  --surface-soft: #11151c;
  --border: #2a3140;
  --border-strong: #3a4355;
  --text: #f4f7fb;
  --text-muted: #a9b2c3;
  --text-subtle: #7f899b;
  --primary: #6875f5;
  --primary-hover: #7e89ff;
  --primary-soft: rgba(104, 117, 245, 0.14);
  --success: #5ee6a8;
  --success-ink: #092117;
  --warning: #f5c451;
  --danger: #ff6b7a;
  --danger-soft: rgba(255, 107, 122, 0.12);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 18px 52px rgba(0, 0, 0, 0.24);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --bg-elevated: #eef1f8;
  --surface: #ffffff;
  --surface-raised: #f7f8fc;
  --surface-soft: #eef1f7;
  --border: #d9deea;
  --border-strong: #b6bfd2;
  --text: #182033;
  --text-muted: #556176;
  --text-subtle: #748096;
  --primary: #5362e8;
  --primary-hover: #4452d2;
  --primary-soft: rgba(83, 98, 232, 0.1);
  --success: #168356;
  --success-ink: #ffffff;
  --warning: #9a6800;
  --danger: #c83c50;
  --danger-soft: rgba(200, 60, 80, 0.1);
  --shadow-sm: 0 10px 28px rgba(30, 42, 72, 0.09);
  --shadow-md: 0 18px 52px rgba(30, 42, 72, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(104, 117, 245, 0.14), transparent 28rem),
    radial-gradient(circle at 10% 28%, rgba(94, 230, 168, 0.06), transparent 22rem);
  content: "";
  pointer-events: none;
}

::selection {
  background: rgba(104, 117, 245, 0.42);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

button,
select,
a {
  touch-action: manipulation;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary-hover);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(127, 137, 155, 0.17);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand {
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-name {
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-tagline {
  overflow: hidden;
  color: var(--text-subtle);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.desktop-nav a,
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.desktop-nav a {
  padding: 9px 12px;
  border-radius: 8px;
}

.desktop-nav a:hover,
.footer-nav a:hover {
  color: var(--text);
}

.desktop-nav a:hover {
  background: var(--surface);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-menu {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms var(--ease), background 180ms ease;
}

.language-trigger::-webkit-details-marker {
  display: none;
}

.language-trigger:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.language-icon,
.language-chevron {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.language-chevron {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  transition: transform 180ms var(--ease);
}

.language-menu[open] .language-chevron {
  transform: rotate(180deg);
}

.language-current {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 154px;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.language-options a {
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.language-options a:hover,
.language-options a[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--text);
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms var(--ease), background 180ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-moon,
:root[data-theme="light"] .icon-sun {
  display: none;
}

:root[data-theme="light"] .icon-moon {
  display: block;
}

.mobile-menu {
  position: relative;
  display: none;
}

.mobile-menu summary {
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 190px;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.mobile-menu nav a {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu nav a:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.hero-section {
  padding: 42px 0 20px;
}

.hero-content {
  max-width: 820px;
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(104, 117, 245, 0.34);
  border-radius: 999px;
  background: var(--primary-soft);
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(94, 230, 168, 0.1);
  content: "";
}

.hero-content h1 {
  max-width: 780px;
  margin: 17px auto 12px;
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.hero-lead {
  max-width: 690px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.5;
}

.hero-supporting {
  max-width: 650px;
  margin: 10px auto 0;
  color: var(--text-subtle);
  font-size: 0.96rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--text-subtle);
  font-family: var(--mono);
  font-size: 0.72rem;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-check {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(94, 230, 168, 0.45);
  border-radius: 50%;
  background: rgba(94, 230, 168, 0.12);
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 800;
}

.tool-section {
  padding: 12px 0 72px;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

.section-intro h2,
.section-heading h2,
.prose-block h2,
.privacy-layout h2 {
  margin: 8px 0 10px;
  color: var(--text);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-intro p:last-child,
.section-heading > p:last-child {
  margin: 0;
  color: var(--text-muted);
}

.generator-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.generator-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.83fr) minmax(0, 1.17fr);
}

.input-panel,
.result-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
}

.input-panel {
  border-right: 1px solid var(--border);
  background: var(--surface-soft);
}

.result-panel {
  background: var(--surface-raised);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 25px;
}

.panel-heading h2,
.panel-heading h3,
.panel-heading h4 {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.step-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid rgba(104, 117, 245, 0.45);
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
}

.field-group {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}

.field-group label {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.field-group input,
.filter-control select,
.fallback-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field-group input {
  padding: 10px 12px;
}

.field-group input:hover,
.filter-control select:hover,
.fallback-row input:hover {
  border-color: var(--primary);
}

.field-group input:focus,
.filter-control select:focus,
.fallback-row input:focus {
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.field-group input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.field-hint,
.field-error,
.input-tip,
.inline-status,
.result-status,
.preview-context {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.field-hint,
.preview-context {
  color: var(--text-subtle);
}

.field-error,
.tool-error {
  color: var(--danger);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 12px;
}

.button,
.copy-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button {
  padding: 10px 14px;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.button:active,
.copy-button:active {
  transform: translateY(0);
}

.button:disabled,
.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.button-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(104, 117, 245, 0.2);
}

.button-primary:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  box-shadow: 0 10px 24px rgba(104, 117, 245, 0.28);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: var(--primary);
  color: var(--text);
}

.button-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--text-subtle);
}

.generate-button {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  font-size: 0.96rem;
}

.button-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.input-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 17px;
  color: var(--text-subtle);
}

.input-tip span {
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
}

.inline-status {
  min-height: 20px;
  margin-top: 8px;
  color: var(--success);
}

.result-heading {
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(94, 230, 168, 0.32);
  border-radius: 999px;
  background: rgba(94, 230, 168, 0.1);
  color: var(--success);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill.is-invalid {
  border-color: rgba(255, 107, 122, 0.34);
  background: var(--danger-soft);
  color: var(--danger);
}

.unix-card,
.featured-result,
.format-row,
.copy-fallback,
.edge-card,
.info-panel,
.step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.unix-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.result-label,
.preview-label {
  margin: 0 0 4px;
  color: var(--text-subtle);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.unix-card code {
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.copy-button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.copy-button:hover {
  border-color: var(--primary);
  color: var(--text);
}

.featured-result {
  margin-top: 14px;
  padding: 16px;
  border-color: rgba(104, 117, 245, 0.55);
  background: linear-gradient(135deg, rgba(104, 117, 245, 0.12), var(--surface));
}

.featured-topline,
.code-row,
.format-toolbar,
.format-name-line,
.fallback-row {
  display: flex;
  align-items: center;
}

.featured-topline,
.format-toolbar {
  justify-content: space-between;
  gap: 12px;
}

.featured-topline h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.format-token {
  display: inline-grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border: 1px solid rgba(104, 117, 245, 0.42);
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
}

.code-row {
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.code-row code,
.format-copy code {
  overflow-wrap: anywhere;
  color: var(--success);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.featured-code-row code {
  font-size: 0.88rem;
}

.preview-label {
  margin-top: 15px;
}

.featured-preview {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.preview-context {
  margin-top: 3px;
}

.format-toolbar {
  margin: 20px 0 10px;
}

.format-toolbar h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.87rem;
  font-weight: 700;
}

.filter-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 600;
}

.filter-control select {
  min-height: 36px;
  width: auto;
  padding: 6px 28px 6px 9px;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.format-list {
  display: grid;
  gap: 7px;
}

.format-row {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
}

.format-row.is-featured {
  border-color: rgba(104, 117, 245, 0.35);
}

.format-copy {
  min-width: 0;
}

.format-name-line {
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin-bottom: 3px;
}

.format-name-line strong {
  color: var(--text);
  font-size: 0.78rem;
}

.format-name-line span {
  color: var(--text-subtle);
  font-size: 0.7rem;
}

.format-preview {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.result-actions .button {
  flex: 1 1 140px;
  font-size: 0.74rem;
}

.copy-fallback {
  margin-top: 13px;
  padding: 12px;
  border-color: rgba(245, 196, 81, 0.4);
  background: rgba(245, 196, 81, 0.08);
}

.copy-fallback label {
  display: block;
  margin-bottom: 7px;
  color: var(--warning);
  font-size: 0.74rem;
  font-weight: 600;
}

.fallback-row {
  gap: 8px;
}

.fallback-row input {
  min-height: 40px;
  padding: 7px 9px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.73rem;
}

.fallback-row .copy-button {
  min-height: 40px;
}

.result-status {
  min-height: 20px;
  margin-top: 9px;
  color: var(--success);
}

.empty-result {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.tool-error {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 107, 122, 0.36);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  font-size: 0.78rem;
}

.tool-error p {
  margin: 0;
}

.tool-error .button {
  justify-self: start;
  min-height: 38px;
  padding: 8px 10px;
  border-color: rgba(255, 107, 122, 0.4);
  background: transparent;
  color: var(--danger);
  font-size: 0.73rem;
}

.tool-error .button:hover {
  background: rgba(255, 107, 122, 0.12);
}

.dst-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-section {
  padding: 78px 0;
  border-top: 1px solid rgba(127, 137, 155, 0.14);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading p {
  margin: 0;
}

.compact-heading {
  margin-bottom: 28px;
}

.steps-grid,
.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card,
.edge-card {
  padding: 22px;
}

.step-card:hover,
.edge-card:hover,
.info-panel:hover {
  border-color: var(--border-strong);
}

.step-card h3,
.edge-card h3,
.info-panel h3,
.prose-block h3 {
  margin: 16px 0 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-card p,
.edge-card p,
.info-panel p,
.info-panel li,
.prose-block p,
.privacy-copy p,
.faq-answer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.formats-section {
  background: var(--bg-elevated);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--text-muted);
  font-size: 0.86rem;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface-raised);
  color: var(--text-subtle);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  color: var(--text);
  font-weight: 700;
}

td code {
  color: var(--success);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: start;
  gap: clamp(28px, 6vw, 80px);
}

.prose-block {
  max-width: 710px;
}

.prose-block h2,
.privacy-layout h2 {
  margin-top: 8px;
}

.prose-block h3 {
  margin-top: 25px;
}

.prose-block p + p,
.privacy-copy p + p {
  margin-top: 16px;
}

.info-panel {
  position: sticky;
  top: 96px;
  padding: 23px;
  transition: border-color 180ms ease;
}

.info-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(94, 230, 168, 0.35);
  border-radius: 11px;
  background: rgba(94, 230, 168, 0.1);
  color: var(--success);
}

.info-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.info-panel ul {
  display: grid;
  gap: 8px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.info-panel li {
  position: relative;
  padding-left: 17px;
  font-size: 0.84rem;
}

.info-panel li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.edge-section {
  background: var(--bg-elevated);
}

.edge-card {
  position: relative;
  overflow: hidden;
}

.edge-index {
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 7vw, 100px);
}

.privacy-copy {
  max-width: 720px;
}

.reference-note {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.reference-note a {
  color: var(--primary-hover);
  font-weight: 700;
  text-decoration: none;
}

.reference-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-section {
  padding-bottom: 94px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(28px, 7vw, 100px);
  align-items: start;
}

.faq-layout .section-heading {
  position: sticky;
  top: 96px;
  margin: 0;
  text-align: left;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 17px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 180ms var(--ease);
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 17px 17px;
}

.legal-section {
  min-height: calc(100vh - 68px);
  padding-top: 72px;
}

.legal-heading {
  max-width: 820px;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.legal-heading h1 {
  margin: 8px 0 14px;
  color: var(--text);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.legal-heading > p:last-child {
  max-width: 760px;
}

.legal-copy {
  max-width: 860px;
  margin: 0;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-copy h2 {
  margin: 32px 0 10px;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.legal-copy h2:first-of-type {
  margin-top: 8px;
}

.legal-copy p,
.legal-copy li {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

.legal-copy p {
  margin: 0;
}

.legal-copy p + p {
  margin-top: 16px;
}

.legal-copy ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 21px;
}

.legal-copy li::marker {
  color: var(--success);
}

.legal-copy a {
  color: var(--primary-hover);
  font-weight: 700;
  text-decoration: none;
}

.legal-copy a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-copy code {
  color: var(--success);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.legal-meta {
  margin-bottom: 24px !important;
  color: var(--text-subtle) !important;
  font-family: var(--mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer {
  padding: 38px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.7fr) minmax(220px, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
}

.footer-logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer-brand p,
.footer-note {
  max-width: 390px;
  margin: 13px 0 0;
  color: var(--text-subtle);
  font-size: 0.79rem;
  line-height: 1.65;
}

.footer-nav {
  display: grid;
  gap: 9px;
}

.footer-note {
  margin: 0;
  justify-self: end;
  text-align: right;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.error-section {
  display: grid;
  min-height: calc(100vh - 68px);
  padding: 80px 0;
  place-items: center;
}

.error-card {
  max-width: 560px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.error-card h1 {
  margin: 15px 0 8px;
  color: var(--text);
  font-size: clamp(4rem, 12vw, 7rem);
  letter-spacing: -0.09em;
  line-height: 0.95;
}

.error-title {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.error-copy {
  margin: 10px auto 22px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .generator-grid,
  .two-column-layout,
  .privacy-layout,
  .faq-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .input-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .info-panel,
  .faq-layout .section-heading {
    position: static;
  }

  .footer-note {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(100% - 28px, 1160px);
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-tagline {
    display: none;
  }

  .hero-section {
    padding-top: 34px;
  }

  .hero-content h1 {
    font-size: clamp(2.42rem, 12vw, 3.7rem);
  }

  .tool-section {
    padding-top: 8px;
  }

  .input-panel,
  .result-panel {
    padding: 20px 16px;
  }

  .generator-card {
    border-radius: var(--radius-lg);
  }

  .quick-actions .button {
    flex: 1 1 145px;
  }

  .content-section {
    padding: 60px 0;
  }

  .steps-grid,
  .edge-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .edge-card {
    padding: 19px;
  }

  .format-row {
    grid-template-columns: 29px minmax(0, 1fr);
    align-items: start;
  }

  .format-row .copy-button {
    grid-column: 2;
    justify-self: start;
  }

  .format-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-control,
  .filter-control select {
    width: 100%;
  }

  .filter-control {
    justify-content: space-between;
  }

  .filter-control select {
    max-width: 190px;
  }

  .result-actions .button {
    flex-basis: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .error-card {
    padding: 28px 20px;
  }
}

@media (max-width: 390px) {
  .brand-name {
    font-size: 0.9rem;
  }

  .header-actions {
    gap: 5px;
  }

  .language-trigger {
    gap: 5px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .language-current {
    max-width: 66px;
  }

  .hero-content h1 {
    font-size: 2.28rem;
  }

  .trust-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    width: max-content;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .code-row,
  .fallback-row {
    align-items: stretch;
    flex-direction: column;
  }

  .code-row .copy-button,
  .fallback-row .copy-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
