/* ============================================================
   FONTLIX — Complete Design System v3.0
   Built from scratch — No legacy code
   Brand: Orange #E8620A | Footer: Midnight Blue #0A1628
   ============================================================ */

/* ── FONTS ── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/dm-sans-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('/assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('/assets/fonts/dm-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('/assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── VARIABLES ── */
:root {
  /* Brand */
  --orange:       #E8620A;
  --orange-hover: #D4550A;
  --orange-light: #FFF3EE;
  --orange-mid:   #FDE8DA;

  /* Surfaces */
  --bg:       #F5F5F7;
  --surface:  #FFFFFF;
  --surface-2:#F9F9FB;
  --surface-3:#F2F2F5;

  /* Borders */
  --border:   #E5E5EA;
  --border-2: #D1D1D6;
  --border-3: #C7C7CC;

  /* Text */
  --text:     #1C1C1E;
  --text-2:   #48484A;
  --text-3:   #8E8E93;
  --text-4:   #AEAEB2;

  /* Footer */
  --footer-bg:      #0A1628;
  --footer-bg-dark: #06101E;
  --footer-border:  rgba(255,255,255,0.07);
  --footer-text:    rgba(255,255,255,0.55);
  --footer-muted:   rgba(255,255,255,0.25);
  --footer-title:   rgba(255,255,255,0.15);

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md:  0 2px 8px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-lg:  0 4px 20px rgba(0,0,0,0.09), 0 8px 32px rgba(0,0,0,0.06);
  --shadow-xl:  0 8px 40px rgba(0,0,0,0.12), 0 16px 56px rgba(0,0,0,0.08);

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  18px;
  --r-pill:100px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-word {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-word em {
  font-style: normal;
  font-weight: 300;
  color: var(--text-2);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: var(--r-md);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface-3);
}
.nav-link.active {
  color: var(--orange);
  background: var(--orange-light);
  font-weight: 600;
}

/* Nav CTA */
.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}
.btn-try {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-try:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}
.btn-try svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--footer-bg);
  margin-top: 80px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid var(--footer-border);
}

/* Footer brand */
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-logo-word {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.footer-logo-word em {
  font-style: normal;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
}
.footer-tagline {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 240px;
}
.footer-stats {
  display: flex;
  gap: 20px;
}
.footer-stat {}
.footer-stat-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.5px;
}
.footer-stat-lbl {
  display: block;
  font-size: 11px;
  color: var(--footer-muted);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* Footer columns */
.footer-col {}
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--footer-title);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  font-size: 13px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
}
.footer-col a:hover {
  color: #fff;
}

/* Footer popular searches */
.footer-popular {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px;
  border-bottom: 1px solid var(--footer-border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-popular-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--footer-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.footer-popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-popular-links a {
  font-size: 12px;
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.15s;
  padding: 2px 0;
}
.footer-popular-links a:hover { color: #fff; }
.footer-popular-links span {
  color: var(--footer-border);
  font-size: 10px;
}

/* Footer bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: var(--footer-muted);
}
.footer-copy strong {
  color: var(--orange);
  font-weight: 600;
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
}
.footer-bottom-links a {
  font-size: 12px;
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 0 0;
  margin-bottom: 8px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
}
.breadcrumb li::after {
  content: '/';
  color: var(--border-3);
  font-size: 12px;
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb li:last-child { color: var(--text-2); font-weight: 500; }

/* ── TOOL PAGE LAYOUT ── */
.tool-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Tool header */
.tool-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.tool-header-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.tool-headline {}
.tool-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 7px;
}
.tool-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  letter-spacing: 0.1px;
}
.badge-orange {
  background: var(--orange-light);
  color: var(--orange);
}
.badge-gray {
  background: var(--surface-3);
  color: var(--text-2);
}

/* Tool input */
.tool-input-wrap {
  position: relative;
}
.tool-input {
  width: 100%;
  padding: 15px 48px 15px 18px;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  border: 2px solid var(--border-2);
  border-radius: var(--r-lg);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  line-height: 1.5;
}
.tool-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,98,10,0.1);
}
.tool-input::placeholder { color: var(--text-4); }
.tool-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-4);
  display: none;
  padding: 4px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.tool-clear:hover {
  color: var(--text-2);
  background: var(--surface-3);
}
.tool-meta {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tool-count {
  font-size: 12.5px;
  color: var(--text-3);
}
.tool-count strong { color: var(--orange); font-weight: 700; }
.platform-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.platform-name { color: var(--text-3); font-weight: 500; }
.platform-num { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--text-2); }
.platform-num.warn { color: #B45309; }
.platform-num.over { color: #DC2626; }

/* ── OUTPUT CARDS ── */
.output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 20px 0 4px;
}
.output-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  display: flex;
  flex-direction: column;
  gap: 9px;
  animation: cardReveal 0.25s ease-out both;
}
.output-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 16px rgba(232,98,10,0.1);
  transform: translateY(-1px);
}
.output-card.copied {
  border-color: #22C55E;
  background: #F0FDF4;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-copy {
  flex-shrink: 0;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  letter-spacing: 0.1px;
}
.card-copy:hover { background: var(--orange-hover); }
.card-preview {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-all;
  min-height: 26px;
}
.card-preview.empty { opacity: 0.38; }

/* Stats mode */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 20px 0 4px;
}
.stat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  text-align: center;
}
.stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ── AD SLOT ── */
.ad-slot {
  margin: 16px 0;
  min-height: 90px;
}

/* ── TOOL ARTICLE ── */
.tool-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
}
.tool-article h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin: 32px 0 12px;
  line-height: 1.3;
}
.tool-article h2:first-child { margin-top: 0; }
.tool-article h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 9px;
  line-height: 1.4;
}
.tool-article p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.78;
  margin-bottom: 14px;
}
.tool-article p:last-child { margin-bottom: 0; }
.tool-article ul,
.tool-article ol {
  padding-left: 22px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tool-article li {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
}
.tool-article li::marker { color: var(--orange); font-weight: 700; }
.tool-article strong, .tool-article b {
  color: var(--text);
  font-weight: 700;
}
.tool-article code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--orange);
}
.tool-article a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(232,98,10,0.3);
  transition: border-color 0.15s;
}
.tool-article a:hover { border-color: var(--orange); }

/* ── FAQ ── */
.faq-section { margin: 32px 0 0; }
.faq-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
details.faq {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.18s;
}
details.faq:hover { border-color: var(--border-2); }
details.faq[open] {
  border-color: var(--orange);
  background: var(--surface);
}
details.faq summary {
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  line-height: 1.4;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary { color: var(--orange); }
.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-3);
  font-weight: 400;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
}
details.faq[open] .faq-icon {
  background: var(--orange);
  color: #fff;
}
details.faq .faq-body {
  padding: 4px 18px 16px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.72;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

/* ── RELATED TOOLS ── */
.related-section {
  margin: 12px 0;
}
.related-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.related-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(232,98,10,0.08);
  transform: translateY(-1px);
}
.related-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.related-info {}
.related-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}
.related-desc {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1C1C1E;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  letter-spacing: 0.1px;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,98,10,0.25);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--border-3);
}

/* ── HOMEPAGE HERO ── */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 64px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}
.hero-title {
  font-size: 54px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1.06;
  margin-bottom: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title .highlight {
  color: var(--orange);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-style {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 10px 18px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
}
.hero-style-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 3px;
}
.hero-style-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  display: block;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
}
.hero-stat strong {
  font-weight: 800;
  color: var(--text);
  font-size: 14px;
}
.hero-stat-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-2);
}

/* ── HOME SECTIONS ── */
.home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Popular tools grid */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.popular-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  box-shadow: var(--shadow-sm);
}
.popular-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.popular-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.popular-info {}
.popular-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
  display: block;
}
.popular-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.popular-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px 22px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-card:hover {
  border-color: var(--cat-color, var(--orange));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-icon { font-size: 28px; display: block; }
.cat-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--cat-color, var(--orange));
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.cat-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.cat-desc {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.why-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 14px;
}
.why-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.why-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Home CTA band */
.cta-band {
  background: var(--orange);
  padding: 56px 40px;
  text-align: center;
}
.cta-band-title {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.cta-band-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}
.btn-white {
  background: #fff;
  color: var(--orange);
}
.btn-white:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

/* ── BLOG ── */
.blog-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.blog-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.blog-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.blog-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--orange);
  background: var(--orange-light);
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.blog-date, .blog-read {
  font-size: 12px;
  color: var(--text-3);
}
.blog-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin-bottom: 9px;
}
.blog-excerpt {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Blog article */
.article-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.article-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.article-excerpt {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 9px;
}
.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
}
.author-name { font-size: 13px; font-weight: 700; color: var(--text); }
.author-role { font-size: 11px; color: var(--text-3); }
.article-stat { font-size: 12.5px; color: var(--text-3); }

/* Article content */
.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.article-body h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  margin: 34px 0 13px;
  line-height: 1.3;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.article-body p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 15px;
}
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}
.article-body li::marker { color: var(--orange); font-weight: 700; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(232,98,10,0.3);
  transition: border-color 0.15s;
}
.article-body a:hover { border-color: var(--orange); }
.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--orange);
}

/* Tool CTA in blog */
.tool-cta-box {
  background: var(--orange-light);
  border: 1.5px solid rgba(232,98,10,0.25);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.tool-cta-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}

/* ── SITEMAP PAGE ── */
.sitemap-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
}
.sitemap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 40px;
}
.sitemap-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
}
.sitemap-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  display: block;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.sitemap-stat-lbl {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.sitemap-cat { margin-bottom: 36px; }
.sitemap-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.sitemap-cat-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
}
.sitemap-cat-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-light);
  padding: 2px 9px;
  border-radius: var(--r-pill);
}
.sitemap-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.sitemap-tool {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color 0.15s;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.sitemap-tool:hover { border-color: var(--orange); color: var(--text); }
.sitemap-tool-icon { font-size: 15px; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-header { padding: 0 16px; height: 58px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 199;
  }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero { padding: 48px 16px 44px; }
  .hero-title { font-size: 36px; letter-spacing: -1.5px; }
  .home-section { padding: 44px 16px; }
  .footer-main { grid-template-columns: 1fr 1fr; padding: 40px 20px 32px; gap: 28px; }
  .footer-popular { padding: 14px 20px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; align-items: center; text-align: center; }
  .tool-layout { padding: 0 16px 60px; }
  .tool-header { padding: 24px 22px; }
  .tool-title { font-size: 21px; }
  .tool-article { padding: 28px 22px; }
  .article-header, .article-body { padding: 28px 22px; }
  .blog-card { padding: 22px 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .sitemap-stats { grid-template-columns: repeat(2, 1fr); }
  .sitemap-layout { padding: 0 16px 60px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .output-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Platform Counters ── */
.platform-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.platform-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .15s;
  background: var(--surface);
}
.platform-tag:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.platform-tag.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.platform-num.warn { color: #D97706; }
.platform-num.over { color: #DC2626; font-weight: 800; }
.platform-name { color: var(--text-3); }

/* ── Accessibility: Focus States ── */
.tool-input:focus {
  outline: 2.5px solid var(--orange);
  outline-offset: 0;
  box-shadow: 0 0 0 4px var(--orange-mid);
}
.card-copy:focus-visible,
.nav-cta:focus-visible,
button:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--orange);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus {
  top: 8px;
}

/* ── Print styles ── */
@media print {
  .site-header, .ad-slot, .site-footer, .tool-input-wrap, #outputGrid { display: none; }
  .tool-article { font-size: 12pt; line-height: 1.6; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
