/* cache-bust 2026-06-08 */
/* ==========================================================================
   Trylify v4 — Light Theme
   Clean, premium, minimal — Linear.app × Vercel.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Google Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors — Light Theme */
  --color-bg:            #ffffff;
  --color-bg-alt:        #f3f4f6;
  --color-surface:       #ffffff;
  --color-text:          #111111;
  --color-text-secondary:#6b7280;
  --color-text-muted:    #9ca3af;
  --color-border:        #e5e7eb;
  --color-border-light:  #f3f4f6;
  --color-accent:        #1A4B8C;
  --color-accent-hover:  #14305e;
  --color-accent-light:  #e8f0fa;
  --color-accent-subtle: #f4f7fc;
  --color-footer-bg:     #0a0a0a;
  --color-footer-text:   #d1d5db;
  --color-footer-muted:  #6b7280;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', Consolas, monospace;
  --weight-normal:  400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;

  /* Font sizes */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.8125rem; /* 13px */
  --text-base: 0.875rem;  /* 14px */
  --text-md:   1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  2.25rem;   /* 36px */
  --text-4xl:  3rem;      /* 48px */

  /* Spacing */
  --space-section: 5rem;  /* 80px */
  --space-lg:      3rem;  /* 48px */
  --space-md:      2rem;  /* 32px */
  --space-sm:      1rem;  /* 16px */
  --space-xs:      0.5rem; /* 8px */

  /* Layout */
  --max-width:      1152px;
  --max-width-tool: 960px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg:  0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-card:0 1px 3px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

strong { font-weight: var(--weight-semibold); }

/* --------------------------------------------------------------------------
   4. Layout Containers
   -------------------------------------------------------------------------- */
.header-inner,
.footer-inner,
.section,
.hero,
.tool-layout,
.breadcrumb {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

/* --------------------------------------------------------------------------
   5. Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  height: 60px;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   6. Logo & Brand
   -------------------------------------------------------------------------- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 101;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--color-accent);
  color: #ffffff;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

.wordmark {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo:hover .wordmark {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   7. Hamburger (Mobile Toggle)
   -------------------------------------------------------------------------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 101;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. Main Navigation
   -------------------------------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
}

.main-nav__link:hover {
  color: var(--color-accent);
  background-color: var(--color-accent-subtle);
}

/* --------------------------------------------------------------------------
   9. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  font-size: var(--text-sm);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb__separator {
  color: var(--color-border);
  user-select: none;
  font-size: 0.875rem;
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: var(--weight-medium);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
  10. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 4.5rem 1rem 4rem;
  background: linear-gradient(180deg, #e8f0fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero h1, .hero__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subhead, .hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
  11. Search
   -------------------------------------------------------------------------- */
.search-wrapper, .search {
  position: relative;
  max-width: 540px;
  margin: var(--space-md) auto 0;
}

.search-wrapper .search-input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 44px;
  font-size: var(--text-md);
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.search-wrapper .search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.search-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
  z-index: 1;
}

.search-input, .search__input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-size: var(--text-md);
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.search-input::placeholder, .search__input::placeholder {
  color: var(--color-text-muted);
}

.search-input:focus, .search__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* --------------------------------------------------------------------------
  12. Section
   -------------------------------------------------------------------------- */
.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section-header, .section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title, .section__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.section-description, .section__subtitle {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
  13. Tool Grid & Tool Cards
   -------------------------------------------------------------------------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.tool-card__category {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.125rem;
}

.tool-card__name, .tool-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: 1.25;
}

.tool-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.tool-card__meta, .tool-card__usage {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
  14. Category Grid & Cards
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.category-card__name {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: 1.3;
}

.category-card__count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
  15. Why Grid & Cards
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
}

.why-card {
  padding: 1.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.why-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.why-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.why-card p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
  16. Tool Page Layout
   -------------------------------------------------------------------------- */
.tool-layout {
  max-width: var(--max-width-tool);
  padding-top: var(--space-md);
  padding-bottom: var(--space-section);
}

/* --------------------------------------------------------------------------
  17. Tool Forms
   -------------------------------------------------------------------------- */
.tool-form {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.tool-form label {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

.tool-form label + label {
  margin-top: var(--space-sm);
}

/* Text, Number, Select Inputs */
.tool-form input[type="text"],
.tool-form input[type="number"],
.tool-form input[type="url"],
.tool-form input[type="email"],
.tool-form input[type="password"],
.tool-form input[type="search"],
.tool-form select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.tool-form input[type="text"]:focus,
.tool-form input[type="number"]:focus,
.tool-form input[type="url"]:focus,
.tool-form input[type="email"]:focus,
.tool-form input[type="password"]:focus,
.tool-form input[type="search"]:focus,
.tool-form select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.tool-form input::placeholder {
  color: var(--color-text-muted);
}

.tool-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

/* Range Slider */
.tool-form input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin: 0.75rem 0;
}

.tool-form input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.tool-form input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--color-accent-hover);
  transform: scale(1.1);
}

.tool-form input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.tool-form input[type="range"]::-moz-range-thumb:hover {
  background: var(--color-accent-hover);
}

.tool-form input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
}

/* Checkbox */
.checkbox-label input[type="checkbox"], .tool-form input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-surface);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  margin-right: 0.5rem;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.tool-form input[type="checkbox"]:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.tool-form input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tool-form input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  border-color: var(--color-accent);
}

.tool-form input[type="checkbox"]:hover {
  border-color: var(--color-accent);
}

/* Textarea */
.tool-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-base);
  font-family: var(--font-mono);
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tool-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Form field groups */
.tool-form .form-group {
  margin-bottom: var(--space-sm);
}

.tool-form .form-group:last-child {
  margin-bottom: 0;
}

.tool-form .form-row {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-end;
}

.tool-form .form-row > * {
  flex: 1;
}

/* --------------------------------------------------------------------------
  18. Buttons
   -------------------------------------------------------------------------- */
.tool-form button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  font-family: var(--font-sans);
  line-height: 1.4;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: background-color var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast), box-shadow var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.tool-form button:hover,
.btn:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-text-muted);
}

.tool-form button:active,
.btn:active {
  transform: scale(0.98);
}

.btn.btn-primary, .btn.btn--primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.btn.btn-primary:hover, .btn.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #ffffff;
}

.btn.btn-primary:focus, .btn.btn--primary:focus {
  box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.25);
}

.btn.btn-lg, .btn.btn--lg {
  padding: 0.75rem 1.75rem;
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
}

.btn.btn-sm, .btn.btn--sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--text-sm);
}

.btn.btn-ghost, .btn.btn--ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-text-secondary);
}

.btn.btn-ghost:hover, .btn.btn--ghost:hover {
  background-color: var(--color-bg-alt);
  border-color: transparent;
  color: var(--color-text);
}

.btn:disabled,
.btn-primary:disabled, .btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
  19. Tool Results
   -------------------------------------------------------------------------- */
.tool-result {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-sm);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.tool-result__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-variant-caps: all-small-caps;
}

.tool-result__value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.6;
  word-break: break-all;
  white-space: pre-wrap;
}

.tool-result--empty {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.tool-result--empty .tool-result__value {
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-base);
}

/* --------------------------------------------------------------------------
  20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-top: var(--space-section);
  padding-bottom: var(--space-md);
  margin-top: var(--space-section);
}

.footer-inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-md);
}

.footer-col__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: #ffffff;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.footer-col__desc {
  font-size: var(--text-base);
  color: var(--color-footer-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.footer-col a {
  display: block;
  font-size: var(--text-base);
  color: var(--color-footer-text);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom__text {
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
  21. Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.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;
}

/* --------------------------------------------------------------------------
  22. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --------------------------------------------------------------------------
  23. Responsive — Tablet (< 1024px)
   -------------------------------------------------------------------------- */

/* ---- Index.php HTML alignment ---- */

/* Hero actions container */
.hero__actions {
  margin-top: var(--space-md);
}

/* Search icon inside wrapper */
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Featured tools grid */
.featured-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* Section label (small overline) */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

/* Section header centering */
.section-header--centered,
.section__header--centered {
  text-align: center;
}


/* ---- Tool page output / results styling ---- */

.output-section {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius-md);
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.output-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.btn-copy {
  font-size: var(--text-xs);
  padding: 4px 12px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-accent);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-copy:hover {
  background: var(--color-accent);
  color: white;
}

.password-output-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.password-output {
  flex: 1;
  font-family: "SF Mono", "Monaco", "Menlo", "Consolas", monospace;
  font-size: 18px;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  letter-spacing: 0.025em;
}

.password-output:focus {
  border-color: var(--color-accent);
  outline: none;
}

.btn-toggle-vis {
  padding: 8px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast);
  display: flex;
  align-items: center;
}

.btn-toggle-vis:hover {
  border-color: var(--color-accent);
}

/* Strength meter */
.strength-meter {
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.strength-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.strength-value {
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.strength-value.strength-weak { color: #dc2626; }
.strength-value.strength-medium { color: #d97706; }
.strength-value.strength-strong { color: #16a34a; }
.strength-value.strength-very-strong { color: #059669; }

.strength-bar {
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.strength-fill-weak { background: #dc2626; }
.strength-fill-medium { background: #d97706; }
.strength-fill-strong { background: #16a34a; }
.strength-fill-very-strong { background: #059669; }

@media (max-width: 1024px) {
  :root {
    --space-section: 4rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
  24. Responsive — Mobile (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --text-4xl: 2.25rem;  /* 36px */
    --text-3xl: 1.75rem;  /* 28px */
    --text-2xl: 1.375rem; /* 22px */
    --space-section: 3rem;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Hide desktop nav, show mobile nav on open */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-surface);
    padding: 5rem var(--space-md) var(--space-md);
    z-index: 100;
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav__link {
    font-size: var(--text-lg);
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: var(--radius-md);
  }

  /* Stack everything */
  .tool-grid,
  .category-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .hero h1, .hero__title {
    font-size: var(--text-3xl);
  }

  .search-input, .search__input {
    font-size: var(--text-base);
    padding: 0.75rem 1rem;
  }

  .tool-form {
    padding: var(--space-sm);
  }

  .tool-form .form-row {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .section-title, .section__title {
    font-size: var(--text-xl);
  }
}

/* --------------------------------------------------------------------------
  25. Responsive — Small Mobile (< 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --text-4xl: 1.875rem; /* 30px */
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .tool-card,
  .category-card,
  .why-card {
    padding: 1.25rem;
  }

  .search-wrapper, .search {
    max-width: 100%;
  }

  .btn.btn-lg, .btn.btn--lg {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
  26. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .hamburger,
  .search,
  .breadcrumb {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .tool-card,
  .category-card,
  .why-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

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

/* --------------------------------------------------------------------------
  28. Focus Styles (Global)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
  29. Selection
   -------------------------------------------------------------------------- */
::selection {
  background-color: var(--color-accent-light);
  color: var(--color-accent-hover);
}

::-moz-selection {
  background-color: var(--color-accent-light);
  color: var(--color-accent-hover);
}

/* --------------------------------------------------------------------------
  30. Scrollbar (subtle, light-theme)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}
