/* ValidatorAI — PHP/CSS stack.. */
:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --page-bg: #f4f5fb;
  --hero-bg-start: #eef0fc;
  --hero-bg-end: #e8eaf8;
  --hero-fg: #1a1d3b;
  --hero-fg-muted: rgba(30, 35, 70, 0.55);
  --section-border: rgba(99, 102, 241, 0.12);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(99, 102, 241, 0.15);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --navbar-border: rgba(99, 102, 241, 0.2);
  --primary: #6366f1;
  --primary-hover: #4f46e5;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--hero-fg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-main { padding-top: 56px; }

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--navbar-border);
  height: 56px;
}

.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.site-nav__links { display: flex; align-items: center; gap: 2px; }

.site-nav__link {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav__link:hover { color: var(--primary); }

.nav-dropdown { position: relative; }

.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown__trigger:hover { color: var(--primary); }

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(99, 102, 241, 0.2);
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu { display: block; }

.nav-dropdown--avatar .nav-dropdown__trigger {
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown--avatar .nav-dropdown__menu--right {
  left: auto;
  right: 0;
  min-width: 200px;
}

.nav-dropdown__user {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid var(--section-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.nav-dropdown__menu a {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
}

.nav-dropdown__menu a:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__auth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.site-nav__auth:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.45);
  color: #4f46e5;
}

.site-nav__auth--avatar {
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(99, 102, 241, 0.35);
}

.site-nav__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav__avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  font-weight: 800;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
}


.site-nav__toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.site-nav__mobile {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--section-border);
  padding: 12px 24px 20px;
}

.site-nav__mobile a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--section-border);
}

.site-nav__mobile-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin: 12px 0 4px;
}

/* Footer */
.site-footer {
  background: #060912;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 24px;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  color: #f0f4ff;
}

.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }

.site-footer__links a {
  font-size: 13px;
  color: rgba(240, 244, 255, 0.35);
  text-decoration: none;
}

.site-footer__links a:hover { color: rgba(240, 244, 255, 0.7); }

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__social a {
  color: rgba(240, 244, 255, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: color 0.2s;
}

.site-footer__social a:hover { color: rgba(240, 244, 255, 0.8); }

.site-footer__social svg {
  width: 17px;
  height: 17px;
  display: block;
}

.site-footer__divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.site-footer__copy {
  font-size: 12px;
  color: rgba(240, 244, 255, 0.25);
}
img.free-tool-chart-img {
  max-width: 100%;
  width:600px;
}

/* Animated bar charts (horizontal + vertical) */
.animated-bar-chart .animated-bar-fill {
  height: 100%;
  width: 0;
  max-width: 100%;
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--bar-delay, 0ms);
}
.animated-bar-chart.is-animated .animated-bar-fill {
  width: var(--bar-pct, 0%);
}
.animated-bar-chart .animated-bar-value {
  opacity: 0;
  transition: opacity 0.5s ease-out;
  transition-delay: calc(var(--bar-delay, 0ms) + 0.35s);
}
.animated-bar-chart.is-animated .animated-bar-value {
  opacity: 1;
}
.animated-bar-chart--hero .animated-bar-fill {
  border-radius: 0 6px 6px 0;
}
.animated-vbar-chart {
  display: flex;
  align-items: flex-end;
}
.animated-vbar-chart .animated-vbar-fill {
  width: 100%;
  height: 0;
  max-height: 100%;
  transition: height 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--bar-delay, 0ms);
}
.animated-vbar-chart.is-animated .animated-vbar-fill {
  height: var(--bar-height, 0px);
}
@media (prefers-reduced-motion: reduce) {
  .animated-bar-chart .animated-bar-fill,
  .animated-vbar-chart .animated-vbar-fill {
    transition: none !important;
  }
  .animated-bar-chart.is-animated .animated-bar-fill {
    width: var(--bar-pct, 0%) !important;
  }
  .animated-bar-chart .animated-bar-value,
  .animated-bar-chart.is-animated .animated-bar-value {
    opacity: 1 !important;
    transition: none !important;
  }
  .animated-vbar-chart.is-animated .animated-vbar-fill {
    height: var(--bar-height, 0px) !important;
  }
}

/*base44*/

.base44-div {margin-top: -20px !important;
  background:unset;
  padding: 0px;
  display: block !important;
}
.b44-card {
  border: 1px solid #ed892a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 3px 20px 2px #ccc;
}
a.b44-logo-link {
  padding-top: 30px;
  padding-bottom: 30px;
}

.b44-card ul, .b44-card h2{color: #e8eaf8 !important;}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-block { width: 100%; text-align: center; }

/* Blog */
.blog-post__category {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 5px 12px;
  font-size: 11px;
  color: #a5b4fc;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.blog-post h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
}

.blog-post__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--hero-fg-muted);
}

.blog-post__divider {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 40px 0;
}

.blog-post__content {
  font-size: 16px;
  color: var(--hero-fg-muted);
  line-height: 1.85;
}

.blog-post__content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--hero-fg);
  margin: 40px 0 16px;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 32px;
  font-weight: 500;
}

.blog-back:hover { color: var(--primary); }

.blog-post__cta {
  margin-top: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 28px;
}

.blog-post__cta h3 { margin: 0 0 10px; font-size: 18px; }

.blog-post__cta p { font-size: 14px; margin: 0 0 18px; }

/* Hero / home */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-green-border {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ticker-track {
  display: flex;
  gap: 40px;
  animation: ticker 40s linear infinite;
  width: max-content;
}

.bar-chart-row { margin-bottom: 10px; }

.bar-chart-row__label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.bar-chart-row__track {
  height: 7px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.bar-chart-row__fill { height: 100%; border-radius: 4px; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.modal-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #0f1525, #0b1020);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 20px 20px 0 0;
  padding: 32px;
  color: #fff;
}

.modal-panel--center {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  border-radius: 20px;
}

[hidden],
.is-hidden { display: none !important; }

/* Idea generator loading */
.idea-gen-loading {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  margin: 48px 0 32px;
  line-height: 1.2;
}

.val-ellipsis {
  display: inline-block;
  vertical-align: baseline;
  white-space: nowrap;
  width: 1.2em;
}
.val-ellipsis span {
  display: inline-block;
  opacity: 0;
  animation: valEllipsis 1.2s infinite;
}
.val-ellipsis span:nth-child(1) { animation-delay: 0s; }
.val-ellipsis span:nth-child(2) { animation-delay: 0.15s; }
.val-ellipsis span:nth-child(3) { animation-delay: 0.30s; }
@keyframes valEllipsis {
  0%, 30% { opacity: 0; }
  45%, 75% { opacity: 1; }
  100% { opacity: 0; }
}

/* AI tool run modal */
.tool-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
  box-sizing: border-box;
}
.tool-modal-overlay[hidden] { display: none !important; }
.tool-modal {
  position: relative;
  width: min(864px, 100%);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #0f1525, #0b1020);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 20px;
  padding: 32px;
  color: #f0f4ff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.tool-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.tool-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 40px;
}
.tool-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.tool-modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(240, 244, 255, 0.85);
}
.tool-result-content { line-height: 1.75; }
.tool-result-content h2, .tool-result-content h3, .tool-result-content h4 {
  color: #f8faff;
  margin: 1.25em 0 0.5em;
}
.tool-result-content a { color: #a5b4fc; }
.tool-modal-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: tool-spin 0.9s linear infinite;
}
@keyframes tool-spin {
  to { transform: rotate(360deg); }
}

.modal-panel[hidden],
.modal-backdrop[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
  .hidden-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .site-nav__mobile[hidden] { display: none !important; }

  .b44-logo-link img {
    max-width: 100% !important;
    height: 45px;
}
}

@media (min-width: 769px) {
  .show-mobile { display: none !important; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .newsletter-grid { grid-template-columns: 1fr !important; }
  .tools-grid { grid-template-columns: 1fr 1fr !important; }
  .credibility-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr !important; }
  .stats-3col { grid-template-columns: 1fr 1fr !important; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.6);
  border-radius: 6px;
}
