/* ==========================================================================
   OmniTools - Modern Minimalist Utility Design System (Apple/Stripe Inspired)
   Optimized for High Usability, Instant Focus, SEO & AdSense Compliance
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.07), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

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

/* Header & Minimalist Navigation */
.site-header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.2s ease;
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-logo:hover {
  text-decoration: none;
  color: var(--primary);
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: #f1f5f9;
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.45rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-main);
}

/* Layout Containers */
.main-wrapper {
  flex: 1 0 auto;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span.separator {
  color: #cbd5e1;
}

.breadcrumbs span.current {
  color: var(--text-main);
  font-weight: 600;
}

/* Minimal Hero & Headers */
.hero-minimal {
  text-align: center;
  padding: 2.5rem 1rem 1.75rem;
  max-width: 680px;
  margin: 0 auto;
}

.hero-minimal h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-minimal p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #f0fdf4;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
  margin-bottom: 0.875rem;
}

/* Tool Header (Focused Above-the-Fold) */
.tool-header-focused {
  margin-bottom: 1.5rem;
  text-align: center;
}

.tool-header-focused h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.tool-header-focused p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Modern Apple/Stripe Card Containers */
.tool-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  margin-bottom: 2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Tool Grid on Homepage */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.5rem 0 1rem;
  flex-grow: 1;
}

/* Micro-Cards (Trust / Pillars) */
.micro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.micro-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.micro-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.micro-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.micro-content p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Quick 3-Step / 4-Step Icon Flow */
.quick-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 2.5rem;
}

.flow-step {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  position: relative;
  transition: all 0.15s ease;
}

.flow-step:hover {
  border-color: #cbd5e1;
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.75rem;
  margin-bottom: 0.65rem;
}

.flow-step h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.flow-step p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Modern Accordion & Collapsible Knowledge Sections */
.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.accordion-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}

.accordion-item:hover {
  border-color: #cbd5e1;
}

.accordion-item[open] {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-subtle);
}

.accordion-header {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background-color: #ffffff;
  transition: background-color 0.15s ease;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header:hover {
  background-color: #f8fafc;
}

.accordion-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  font-size: 0.85rem;
}

.accordion-item[open] .accordion-icon {
  transform: rotate(90deg);
  color: var(--primary);
}

.accordion-item[open] .accordion-header {
  border-bottom: 1px solid var(--border-subtle);
  background-color: #f8fafc;
}

.accordion-body {
  padding: 1.25rem;
  color: var(--text-body);
  font-size: 0.925rem;
  line-height: 1.7;
  background-color: #ffffff;
}

.accordion-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.15rem 0 0.4rem;
}

.accordion-body h3:first-child {
  margin-top: 0;
}

.accordion-body p {
  margin-bottom: 0.85rem;
}

.accordion-body ul, .accordion-body ol {
  margin-bottom: 0.85rem;
  padding-left: 1.25rem;
}

.accordion-body li {
  margin-bottom: 0.35rem;
}

/* Buttons & Inputs (Apple-Like Tactile States) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-danger {
  background-color: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.btn-danger:hover {
  background-color: #fee2e2;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.825rem;
}

.input-control, .textarea-control, .select-control {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-control:focus, .textarea-control:focus, .select-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.textarea-control {
  resize: vertical;
  min-height: 140px;
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.875rem;
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Password Strength Bar */
.strength-meter-container {
  margin: 1rem 0;
}

.strength-bar {
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.strength-progress {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
  font-size: 0.825rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

/* Ad Placement Slots (Minimalist & Distinct) */
.ad-container {
  margin: 1.75rem 0;
  text-align: center;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.ad-slot-leaderboard {
  min-height: 90px;
  width: 100%;
  max-width: 728px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder-text {
  color: #94a3b8;
  font-size: 0.825rem;
  font-style: italic;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  animation: slideIn 0.2s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Footer Styling */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3rem 1.25rem 1.5rem;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h4,
.footer-brand-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 300px;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 868px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 0.65rem 1rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-hover);
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
  }

  .nav-menu.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .hero-minimal h1 {
    font-size: 1.75rem;
  }

  .tool-header-focused h1 {
    font-size: 1.6rem;
  }

  .tool-card {
    padding: 1.25rem;
  }
}
