/* ObfuscatorJS UX refresh: responsive, accessible, lightweight */
:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #ccfbf1;
  --accent: #0d9488;
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #102a2a;
  --text-light: #425466;
  --text-muted: #64748b;
  --border: #dbe5e8;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, .08);
  --focus-ring: 0 0 0 3px rgba(13, 148, 136, .22);
  --surface-2-color: #f1f5f9;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { color: var(--text-color, var(--text)); background: var(--background-color, var(--bg)); }
a { text-underline-offset: .18em; }
a:hover { color: var(--primary, #0f766e); }
:focus-visible { outline: 3px solid #14b8a6; outline-offset: 3px; box-shadow: var(--focus-ring); }
.skip-link {
  position: fixed; z-index: 10000; left: 1rem; top: .75rem; padding: .75rem 1rem;
  border-radius: .75rem; background: #0f172a; color: #fff; transform: translateY(-160%);
  box-shadow: var(--shadow-md); font-weight: 700;
}
.skip-link:focus { transform: translateY(0); color: #fff; }
.container { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
  border-bottom: 1px solid var(--border, #dbe5e8);
}
.header-wrapper { min-height: 4.5rem; gap: 1.25rem; }
.logo-image { max-height: 2.35rem; width: auto; }
.logo-title { letter-spacing: -.035em; }
.main-navigation a, .nav-menu a { border-radius: .65rem; transition: background .18s ease, color .18s ease; }
.main-navigation a:hover, .nav-menu a:hover { background: var(--surface-2, #f1f5f9); }
button, .btn, input[type="button"], input[type="submit"] {
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
button:not(:disabled):hover, .btn:hover, input[type="button"]:hover, input[type="submit"]:hover {
  transform: translateY(-1px);
}
button:disabled { cursor: not-allowed; opacity: .6; }
input, textarea, select {
  max-width: 100%; border-radius: .7rem; border-color: var(--border, #dbe5e8);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary, #0f766e); box-shadow: var(--focus-ring); }
textarea, pre, code, .code-editor, .code-output { font-family: var(--font-mono); }
.card, .tool-card, .category-card, .feature-card, .content-card {
  border-color: var(--border, #dbe5e8); border-radius: 1rem;
  box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.tool-card:hover, .category-card:hover, .feature-card:hover {
  border-color: color-mix(in srgb, var(--primary, #0f766e) 38%, white);
  box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.hero, .home-hero, .tool-hero {
  isolation: isolate;
}
.hero h1, .home-hero h1, .tool-hero h1 {
  letter-spacing: -.04em; line-height: 1.12; text-wrap: balance;
}
p { text-wrap: pretty; }
main { min-height: 55vh; }
section { scroll-margin-top: 6rem; }
pre, .code-output {
  max-width: 100%; overflow: auto; border-radius: .85rem;
}
footer { border-top: 1px solid var(--border, #dbe5e8); }
.footer-links a { display: inline-flex; padding-block: .18rem; }
img { height: auto; }
@media (min-width: 768px) {
  .container { width: min(100% - 3rem, 1180px); }
}
@media (max-width: 768px) {
  .container { width: min(100% - 1.25rem, 1180px); }
  .header-wrapper { min-height: 4rem; }
  .hero h1, .home-hero h1, .tool-hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  button, .btn, input[type="button"], input[type="submit"] { min-height: 2.7rem; }
  .card, .tool-card, .category-card, .feature-card, .content-card { border-radius: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
