/* ==========================================================================
   OmniTools Pro - Ultra-Compact & Precision Soft-Edged UI Stylesheet
   High Density, Soft Edges (No Round Pills), Tight Container Spacing
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121c;
  --bg-tertiary: #151d2e;
  --bg-card: rgba(13, 18, 28, 0.92);
  --bg-card-hover: rgba(21, 29, 46, 0.98);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #6366f1;
  --primary-grad: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --emerald: #10b981;
  --emerald-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --cyan: #06b6d4;
  --cyan-grad: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  --violet: #8b5cf6;
  --violet-grad: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --amber: #f59e0b;
  --rose: #f43f5e;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.3);
  
  /* Precision Soft Edges - NO ROUNDED PILLS */
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 6px;
  
  --transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.45;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   COMPACT NAVBAR
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.4px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--primary-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.brand-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link:hover {
  color: #fff;
}

.nav-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

/* ==========================================================================
   COMPACT AD SLOT
   ========================================================================== */

.ad-slot-header {
  margin: 10px 0 6px 0;
  display: flex;
  justify-content: center;
}

.ad-slot-header,
.ad-leaderboard {
  display: none !important;
}

.ad-slot-header:has(ins.adsbygoogle),
.ad-leaderboard:has(ins.adsbygoogle) {
  display: flex !important;
  width: 100%;
  max-width: 970px;
  min-height: 70px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  padding: 2px 0;
}

/* ==========================================================================
   COMPACT HERO SECTION
   ========================================================================== */

.hero {
  text-align: center;
  padding: 20px 0 14px 0;
  max-width: 860px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.hero-title span.grad-text {
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 14px auto;
  line-height: 1.5;
}

.hero-badges-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-badge-item svg {
  color: var(--emerald);
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   COMPACT SEARCH & FILTER SECTION
   ========================================================================== */

.search-section {
  max-width: 820px;
  margin: 0 auto 20px auto;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  transition: var(--transition);
}

.search-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
  background: var(--bg-tertiary);
}

.search-icon {
  color: var(--text-dim);
  margin-right: 8px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.search-input::placeholder {
  color: var(--text-dim);
  font-weight: 500;
}

.search-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.filter-pills {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-btn:hover {
  background: var(--bg-tertiary);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
  background: var(--primary-grad);
  color: #fff;
  border-color: transparent;
}

.pill-count {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.16);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   COMPACT TOOLS GRID
   ========================================================================== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--primary)), transparent);
  opacity: 0;
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md);
}

.tool-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tool-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

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

.category-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.tool-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.25;
}

.tool-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  flex-grow: 1;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.feature-pill {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--card-accent, var(--primary));
}

.btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}

.tool-card:hover .btn-launch {
  transform: translateX(3px);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  display: none;
}

.no-results h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.no-results p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   COMPACT WHY CHOOSE & FAQ SECTIONS
   ========================================================================== */

.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 20px auto;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.feature-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.feature-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.feature-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-box p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-toggle-icon {
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out, padding 0.25s ease;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 12px;
}

/* ==========================================================================
   COMPACT FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 28px 0 18px 0;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 22px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

.modal-content h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 14px 0 6px 0;
}

@media (max-width: 1080px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .content-section { padding: 16px; }
}
