/* Refinement: calm, neutral, flat design (no glow / gradient text / purple AI look) */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --primary-glow: transparent;
  --accent: #2563eb;
  --bg-main: #f6f6f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f2;
  --bg-glass: #ffffff;
  --border: #e4e4e7;
  --border-focus: #2563eb;
  --text-main: #18181b;
  --text-muted: #6b6b76;
  --shadow-sm: none;
  --shadow-md: 0 1px 3px rgba(0,0,0,.08);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.08);
  --shadow-xl: 0 4px 14px rgba(0,0,0,.1);
  --shadow-glow: none;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --primary: #4f8cff;
  --primary-hover: #6b9fff;
  --primary-light: rgba(79, 140, 255, 0.12);
  --bg-main: #141416;
  --bg-card: #1c1c1f;
  --bg-card-hover: #26262a;
  --bg-glass: #1c1c1f;
  --border: #2e2e33;
  --border-focus: #4f8cff;
  --text-main: #ececef;
  --text-muted: #9a9aa5;
  --text-inverse: #141416;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: 0 4px 14px rgba(0,0,0,.4);
}

.navbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand-icon { background: linear-gradient(135deg, #ef4444, #dc2626); color: #ffffff; box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25); border-radius: 8px; }
.brand-name { background: none; -webkit-text-fill-color: currentColor; color: var(--text-main); }
.badge-pro { background: var(--primary-light); color: var(--primary); }
.hero-glow { display: none; }
.hero-title span { background: none; -webkit-text-fill-color: currentColor; color: var(--primary); }
.hero-badge { background: transparent; border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; }
.btn-primary { background: var(--primary); box-shadow: none; color: #fff; }
[data-theme="dark"] .btn-primary { color: #0b0b0d; }
.btn-primary:hover { background: var(--primary-hover); transform: none; box-shadow: none; }
.btn-secondary:hover, .btn-icon:hover { transform: none; }
.filter-btn.active { background: var(--primary); box-shadow: none; }
[data-theme="dark"] .filter-btn.active { color: #0b0b0d; }
.tool-card::before { display: none; }
.tool-card:hover { transform: none; box-shadow: none; border-color: var(--primary); }
.tool-card:hover .tool-icon-wrapper { transform: none; }
.tool-icon-wrapper { background: var(--bg-main); color: var(--text-main); border: 1px solid var(--border); }
.tool-card .arrow-icon { display: none; }
.feature-box:hover, .dropzone:hover, .dropzone.drag-over { transform: none; box-shadow: none; }
.dropzone:hover .dropzone-icon-box { transform: none; }
.dropzone { border-radius: var(--radius-xl); }
.dropzone-icon-box { border-radius: 12px; background: var(--bg-main); border: 1px solid var(--border); color: var(--text-main); }
.preview-stage { background: var(--bg-main); }
.comparison-highlight { background: var(--primary-light); color: var(--text-main); }
.custom-range::-webkit-slider-thumb { box-shadow: none; background: var(--primary); }
.custom-input:focus, .custom-select:focus { box-shadow: none; }
.step-card { text-decoration: none; color: inherit; display: block; }
a.step-card:hover { border-color: var(--primary); }
.step-number { color: var(--border); }
.section-title { font-weight: 700; }
.hero-title, .tool-header-hero h1 { font-weight: 700; letter-spacing: -0.02em; }
.tool-card, .feature-box, .batch-card { border-radius: var(--radius-lg); }
.batch-card .batch-remove { position: absolute; top: .5rem; right: .5rem; border: 0; font-size: 1.1rem; line-height: 1; }

/* Novus Auth Modal & Template Cards */
.novus-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.novus-modal-overlay.active {
  display: flex;
}
.novus-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalSlide 0.2s ease;
}
.novus-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.user-dropdown-item:hover {
  background: var(--bg-card-hover);
}

/* Novus SaaS Ecosystem Banner & Dropdown */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.nav-dropdown-trigger:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  z-index: 1050;
}
.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  display: block;
}
.ecosystem-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.15s ease;
}
.ecosystem-item:hover {
  background: var(--bg-card-hover);
}
.ecosystem-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-main);
}
.ecosystem-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}
.ecosystem-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Ecosystem Section on Homepage */
.ecosystem-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: 3rem;
}
.ecosystem-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.ecosystem-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-main);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.ecosystem-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.ecosystem-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
  width: fit-content;
}
.ecosystem-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ecosystem-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.ecosystem-card-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Responsive Full-Width Layout (Pure Screen Optimization) --- */
.container {
  width: 100% !important;
  max-width: 1680px !important;
  padding-left: clamp(1rem, 2.5vw, 2.5rem) !important;
  padding-right: clamp(1rem, 2.5vw, 2.5rem) !important;
}

.navbar .nav-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: clamp(1rem, 2.5vw, 2.5rem) !important;
  padding-right: clamp(1rem, 2.5vw, 2.5rem) !important;
}

.nav-menu {
  gap: clamp(0.5rem, 1.2vw, 1.4rem);
}

.tools-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.5rem;
}

.hero-subtitle {
  max-width: 860px;
}

.trust-strip {
  max-width: 1080px;
  width: 100%;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr repeat(4, 1fr) !important;
  gap: 2.25rem !important;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-brand {
    grid-column: span 1;
  }
}

/* Nav Dropdown Hover Bridge & Click Support */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown-wrapper.active .nav-dropdown-menu {
  display: block;
}


