/* ============================================================
   MYQUICKTOOL.COM — GLOBAL STYLESHEET
   
   HOW TO CHANGE THE ENTIRE THEME:
   Edit ONLY the values inside :root {} below.
   Every color, font, shadow uses these variables.
   Nothing else needs to change. Ever.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ============================================================
   THEME VARIABLES — Edit here to change colors anytime
   ============================================================ */
:root {
  color-scheme: light dark;

  /* Primary Brand Color (Orange) */
  --primary:          #FF6500;
  --primary-dark:     #D95400;
  --primary-light:    #FFF0E6;
  --primary-rgb:      255, 101, 0;

  /* Secondary Color (Deep Navy) */
  --secondary:        #0D1B3E;
  --secondary-light:  #162245;
  --secondary-rgb:    13, 27, 62;

  /* Accent Color (Mint/Teal) */
  --accent:           #00C48C;
  --accent-dark:      #009E72;
  --accent-light:     #E6FAF4;
  --accent-rgb:       0, 196, 140;

  /* Background & Surface */
  --bg:               #F5F7FF;
  --surface:          #FFFFFF;
  --surface-2:        #EEF1FB;
  --surface-dark:     #0D1B3E;   /* dark navy — used for footer/stats/CTA backgrounds */

  /* Header background (rgba — must be a variable for dark mode override) */
  --header-bg:        rgba(255,255,255,0.96);

  /* Text */
  --text:             #0D1B3E;
  --text-secondary:   #4A5568;
  --text-muted:       #94A3B8;
  --text-inverse:     #FFFFFF;

  /* Borders */
  --border:           #E2E8F4;
  --border-dark:      #C8D2E8;

  /* Status */
  --success:          #10B981;
  --warning:          #F59E0B;
  --error:            #EF4444;
  --info:             #3B82F6;

  /* Typography */
  --font-display:     'Plus Jakarta Sans', sans-serif;
  --font-body:        'DM Sans', sans-serif;

  /* Layout */
  --max-width:        1280px;
  --section-y:        88px;
  --section-y-sm:     52px;

  /* Border Radius */
  --r-xs:             4px;
  --r-sm:             8px;
  --r:                12px;
  --r-lg:             16px;
  --r-xl:             24px;
  --r-2xl:            32px;
  --r-full:           9999px;

  /* Shadows */
  --shadow-xs:        0 1px 4px rgba(13,27,62,0.05);
  --shadow-sm:        0 2px 10px rgba(13,27,62,0.07);
  --shadow:           0 4px 20px rgba(13,27,62,0.09);
  --shadow-lg:        0 8px 40px rgba(13,27,62,0.13);
  --shadow-primary:   0 6px 28px rgba(var(--primary-rgb), 0.30);
  --shadow-accent:    0 6px 28px rgba(var(--accent-rgb), 0.25);

  /* Transitions */
  --ease:             all 0.2s cubic-bezier(0.4,0,0.2,1);
  --ease-slow:        all 0.4s cubic-bezier(0.4,0,0.2,1);
  --ease-bounce:      all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* ============================================================
   GLOBAL RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: var(--ease); }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }
ul { list-style: none; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: var(--section-y) 0; }
.section-pad-sm { padding: var(--section-y-sm) 0; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  composes: btn;
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  padding: 0.625rem 1.375rem;
  font-size: 0.9rem;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-dark);
  padding: 0.625rem 1.375rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 2px solid var(--border-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--ease);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--ease);
  font-family: var(--font-body);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--r);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 66px;
  gap: 1.5rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.site-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-logo .accent { color: var(--primary); }

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 2px;
}
.nav-link {
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* Phase 2: auth buttons hidden in Phase 1 */
.ph2-only { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--ease);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: var(--ease);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--primary); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  background: var(--surface);
  padding: 100px 1.5rem 88px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 45% at 50% -5%, rgba(var(--primary-rgb),0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 110%, rgba(var(--accent-rgb),0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.375rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(var(--primary-rgb),0.15);
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.75rem;
  line-height: 1.7;
}

/* Search Bar */
.search-wrap { position: relative; max-width: 620px; margin: 0 auto 2rem; z-index: 50; }
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border-dark);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 1.25rem;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: var(--ease);
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb),0.1), var(--shadow);
}
.search-icon-el { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  padding: 0.5rem 0;
  min-width: 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-go-btn {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: var(--ease);
  flex-shrink: 0;
}
.search-go-btn:hover { background: var(--primary-dark); transform: scale(1.02); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  overflow: hidden;
  display: none;
}
.search-dropdown.visible { display: block; }
.suggestion-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: var(--ease);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text);
}
.suggestion-row:hover { background: var(--bg); color: var(--primary); }
.suggestion-cat {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
}

/* Quick links */
.hero-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.quick-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.quick-chip {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  transition: var(--ease);
}
.quick-chip:hover { background: var(--primary-light); color: var(--primary); border-color: rgba(var(--primary-rgb),0.2); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--surface-dark);
  padding: 1.5rem 1.5rem;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 3rem;
  gap: 0.25rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.sec-header { text-align: center; margin-bottom: 3rem; }
.sec-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.3rem 0.875rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.18;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}
.sec-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.cats-section { background: var(--bg); padding: var(--section-y) 1.5rem; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.125rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.cat-card {
  display: block;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: var(--ease-bounce);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.cat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.625rem;
}
.cat-name {
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.cat-count { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   TOOL CARDS (Popular)
   ============================================================ */
.popular-section { background: var(--surface); padding: var(--section-y) 1.5rem; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  transition: var(--ease-bounce);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.tool-card-icon { font-size: 1.625rem; line-height: 1; }
.tool-card-name { font-weight: 700; font-size: 0.875rem; color: var(--text); line-height: 1.3; }
.tool-card-desc { font-size: 0.775rem; color: var(--text-muted); line-height: 1.45; flex: 1; }
.tool-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-full);
  background: var(--primary-light);
  color: var(--primary-dark);
}
.tool-badge.new { background: var(--accent-light); color: var(--accent-dark); }

/* ============================================================
   HONEST NUMBERS SECTION
   ============================================================ */
.why-section { background: var(--bg); padding: var(--section-y) 1.5rem; }

.honest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.honest-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.honest-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.honest-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.honest-card:hover::before { transform: scaleX(1); }

.honest-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.honest-unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
}
.honest-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.875rem;
  line-height: 1.4;
}
.honest-proof {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

/* Proof statement bar */
.honest-statement {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface-dark);
  border-radius: var(--r-lg);
  padding: 1.5rem 2rem;
}
.honest-statement-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}
.honest-statement p {
  font-size: 0.925rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   FEATURES GRID (kept for reuse elsewhere)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.feat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: var(--ease);
}
.feat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feat-icon svg { width: 26px; height: 26px; }
.feat-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.feat-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: var(--surface); padding: var(--section-y) 1.5rem; }
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface-dark);
  border-radius: var(--r-2xl);
  padding: 4.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--primary-rgb),0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.875rem;
  position: relative;
}
.cta-inner p { color: rgba(255,255,255,0.6); margin-bottom: 2.25rem; font-size: 1rem; position: relative; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }
.cta-btns .btn-primary { padding: 0.875rem 2rem; font-size: 1rem; }
.cta-btns .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.875rem 2rem;
  border: 2px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--ease);
}
.cta-btns .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: white;
  transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,0.65);
  padding: 4.5rem 1.5rem 2.5rem;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand { }
.footer-brand .site-logo { color: white; margin-bottom: 1.125rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.75; max-width: 290px; }
.footer-col h4 {
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: var(--ease); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2.25rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--primary); }
.footer-flag { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ============================================================
   INDIVIDUAL TOOL PAGE — Layout
   ============================================================ */
.tool-page { padding: 2.5rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.tool-header { margin-bottom: 2rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-dark); }
.tool-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.tool-page .tool-desc { color: var(--text-secondary); font-size: 1rem; }

.tool-workspace {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
.tool-main-area {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.tool-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.ad-unit {
  background: var(--surface);
  border: 1.5px dashed var(--border-dark);
  border-radius: var(--r);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .tool-workspace { grid-template-columns: 1fr; }
  .tool-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .honest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-y: 52px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 64px 1rem 52px; }
  .stat-item { padding: 0.75rem 1.25rem; }
  .stat-sep { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-right .btn-primary { display: none; }
  .honest-grid { grid-template-columns: repeat(2, 1fr); }
  .honest-statement { flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
}

@media (max-width: 520px) {
  .hero-title { letter-spacing: -0.02em; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 3rem 1.5rem; }
  .search-go-btn { padding: 0.6rem 1rem; font-size: 0.8rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

/* ============================================================
   THEME TOGGLE — header button
   ============================================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}
.theme-btn {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--ease);
  color: var(--text-muted);
  line-height: 1;
}
.theme-btn:hover { background: var(--primary-light); color: var(--primary); }
.theme-btn.active { background: var(--primary); color: white; }

/* Mobile theme row inside mobile nav */
.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-theme-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.mobile-theme-row .theme-toggle { border-radius: var(--r-sm); }

@media (max-width: 768px) {
  /* Hide desktop theme toggle on mobile — mobile nav has its own */
  .header-right .theme-toggle { display: none; }
}

/* ============================================================
   DARK THEME — variable overrides
   Applied by [data-theme="dark"] (user forced) OR
   @media (prefers-color-scheme: dark) when no explicit choice
   ============================================================ */

/* Shared dark variable set — used in both selectors below */
:root[data-theme="dark"],
:root:not([data-theme="light"]):not([data-theme]) {
  /* only the @media block should fire for unset, handled below */
}

/* User explicitly chose dark */
:root[data-theme="dark"] {
  --header-bg:        rgba(16, 20, 38, 0.97);

  --primary-light:    rgba(255, 101, 0, 0.15);

  --secondary:        #C8D5FF;
  --secondary-light:  #1A2547;
  --secondary-rgb:    200, 213, 255;

  --accent-light:     rgba(0, 196, 140, 0.14);

  --bg:               #0E1117;
  --surface:          #161B2E;
  --surface-2:        #1D2340;
  --surface-dark:     #09090F;

  --text:             #DDE4FF;
  --text-secondary:   #8B9BBF;
  --text-muted:       #55627F;
  --text-inverse:     #0E1117;

  --border:           #222840;
  --border-dark:      #2B3356;

  --shadow-xs:        0 1px 4px rgba(0,0,0,0.35);
  --shadow-sm:        0 2px 10px rgba(0,0,0,0.4);
  --shadow:           0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:        0 8px 40px rgba(0,0,0,0.6);
  --shadow-primary:   0 6px 28px rgba(255,101,0,0.22);
}

/* System preference is dark and user hasn't overridden */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --header-bg:        rgba(16, 20, 38, 0.97);

    --primary-light:    rgba(255, 101, 0, 0.15);

    --secondary:        #C8D5FF;
    --secondary-light:  #1A2547;
    --secondary-rgb:    200, 213, 255;

    --accent-light:     rgba(0, 196, 140, 0.14);

    --bg:               #0E1117;
    --surface:          #161B2E;
    --surface-2:        #1D2340;
    --surface-dark:     #09090F;

    --text:             #DDE4FF;
    --text-secondary:   #8B9BBF;
    --text-muted:       #55627F;
    --text-inverse:     #0E1117;

    --border:           #222840;
    --border-dark:      #2B3356;

    --shadow-xs:        0 1px 4px rgba(0,0,0,0.35);
    --shadow-sm:        0 2px 10px rgba(0,0,0,0.4);
    --shadow:           0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg:        0 8px 40px rgba(0,0,0,0.6);
    --shadow-primary:   0 6px 28px rgba(255,101,0,0.22);
  }
}

/* ── Extra dark-mode fixes for elements with hardcoded colours ── */

/* Request-a-Tool modal (footer.js uses inline styles — !important overrides them) */
/* Explicit dark choice */
[data-theme="dark"] #mqt-rat-modal { background: #161B2E !important; }
[data-theme="dark"] .rat-title     { color: #DDE4FF !important; }
[data-theme="dark"] .rat-sub       { color: #8B9BBF !important; }
[data-theme="dark"] .rat-label     { color: #8B9BBF !important; }
[data-theme="dark"] .rat-input,
[data-theme="dark"] .rat-textarea  { background: #1D2340 !important; border-color: #2B3356 !important; color: #DDE4FF !important; }
[data-theme="dark"] #mqt-rat-close { background: #222840 !important; color: #8B9BBF !important; }

/* System preference dark (no explicit override set) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) #mqt-rat-modal { background: #161B2E !important; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .rat-title     { color: #DDE4FF !important; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .rat-sub       { color: #8B9BBF !important; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .rat-label     { color: #8B9BBF !important; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .rat-input,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .rat-textarea  { background: #1D2340 !important; border-color: #2B3356 !important; color: #DDE4FF !important; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) #mqt-rat-close { background: #222840 !important; color: #8B9BBF !important; }
}

/* ── Smooth theme transition ── */
*, *::before, *::after {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.15s ease;
}
/* Exclude elements that have their own transitions to avoid fighting */
a, button, .btn-primary, .btn-secondary, .btn-outline, .cat-card,
.tool-card, .honest-card, .nav-link, .theme-btn, .hamburger span {
  transition: var(--ease);
}