/* ==========================================================================
   Smart Solutions Corner - Clean, Minimalist & Refined Business Suite
   Design System: Slate Navy (#0f172a), Primary Indigo (#2563eb), Neutral Light (#f8fafc),
   Card Border (#e2e8f0), Muted Text (#64748b)
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent-green: #059669;
  --amber: #d97706;
  --purple: #7c3aed;
  
  --bg-gradient: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 6px 16px rgba(15, 23, 42, 0.08);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --transition: all 0.2s ease-in-out;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 2rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Lean & Clean Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand-icon-box {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Header Search */
.header-search-box {
  position: relative;
  width: 280px;
}

.header-search-box input {
  width: 100%;
  padding: 0.45rem 0.85rem 0.45rem 2.1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: inherit;
  background: #f8fafc;
  transition: var(--transition);
}

.header-search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Language Selector */
.lang-selector-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.2rem 0.5rem;
}

.lang-selector-box i {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lang-selector-box select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   Standard AdSense Banner Placements (728px x 90px Leaderboard)
   ========================================================================== */
.ad-slot-wrapper {
  margin: 1.25rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

/* Exact 728px width by 90px height ad box */
.ad-banner-728x90 {
  width: 728px;
  height: 90px;
  min-width: 728px;
  min-height: 90px;
  max-width: 728px;
  max-height: 90px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ad-banner-728x90::after {
  content: "728 × 90 AdSense Unit";
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.58rem;
  color: #94a3b8;
  font-weight: 600;
}

.ad-content-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.ad-icon-box {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
  flex-shrink: 0;
}

.ad-headline {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.ad-subline {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-top: 0.15rem;
}

.ad-cta-button {
  padding: 0.45rem 1rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.ad-cta-button:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   Refined Low-Voice Hero Section
   ========================================================================== */
.hero-section {
  padding: 1.75rem 0 1.25rem 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-hero-primary:hover {
  background: var(--primary-hover);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: #f1f5f9;
}

/* Filter Pills Bar */
.filter-pills-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.35rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   Section Title Box
   ========================================================================== */
.section-title-box {
  margin: 2.25rem 0 1rem 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ==========================================================================
   Compact & Professional Tool Cards
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.tool-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.tool-card.featured-card {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tool-card-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-central {
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-popular {
  background: #fef3c7;
  color: var(--amber);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-utility {
  background: #f3e8ff;
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.tool-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.tool-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.tool-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
  margin-top: auto;
}

.tool-card-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tool-card-domain {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ==========================================================================
   Knowledge Base Section
   ========================================================================== */
.knowledge-section {
  margin-top: 2.5rem;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.knowledge-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.knowledge-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.knowledge-card h3 i {
  color: var(--primary);
}

.knowledge-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Benefits Block Section
   ========================================================================== */
.benefits-section {
  margin-top: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.benefit-block {
  text-align: left;
}

.benefit-icon-box {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.benefit-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.benefit-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Blog Hub Network Grid
   ========================================================================== */
.blogs-section {
  margin-top: 2.5rem;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.blog-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.blog-card-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.blog-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-card-url {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* ==========================================================================
   FAQ Section Accordion
   ========================================================================== */
.faq-section {
  margin-top: 2.5rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 0.85rem 1.15rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.15rem 0.85rem 1.15rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

/* ==========================================================================
   Top-Positioned AI Answering Robot & Leave a Message Feature
   ========================================================================== */
.ai-robot-trigger {
  position: fixed;
  top: 72px; /* Positioned near top - slightly below header */
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  background: var(--text-main);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--transition);
}

.ai-robot-trigger:hover {
  transform: translateY(2px) scale(1.02);
  background: #1e293b;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.ai-robot-icon-box {
  position: relative;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.ai-robot-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border: 2px solid var(--text-main);
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* AI Robot Modal Drawer (Positioned Near Top Below Header) */
.ai-robot-modal {
  position: fixed;
  top: 115px; /* Directly below top trigger */
  right: 1.5rem;
  z-index: 1001;
  width: 360px;
  max-width: calc(100vw - 2rem);
  height: 490px;
  max-height: calc(100vh - 8.5rem);
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.95);
  transition: var(--transition);
}

.ai-robot-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-robot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #0f172a;
  color: #ffffff;
}

.ai-robot-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.ai-robot-status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.ai-robot-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: var(--transition);
}

.ai-robot-close:hover {
  color: #ffffff;
}

.ai-robot-body {
  flex: 1;
  padding: 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
}

.ai-msg {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
}

.ai-msg-bot {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  border-bottom-left-radius: 2px;
}

.ai-msg-user {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.ai-chips-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.ai-chip {
  padding: 0.25rem 0.65rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.ai-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.ai-chip-message {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.ai-chip-message:hover {
  background: #fde68a;
}

/* In-Chat Contact Form Styling */
.ai-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
  background: #f8fafc;
  padding: 0.65rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}

.ai-contact-form input,
.ai-contact-form textarea {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
}

.ai-contact-form input:focus,
.ai-contact-form textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.ai-contact-submit-btn {
  padding: 0.45rem;
  background: var(--accent-green);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.ai-contact-submit-btn:hover {
  background: #047857;
}

.ai-robot-footer {
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-robot-footer input {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}

.ai-robot-footer input:focus {
  border-color: var(--primary);
}

.ai-robot-send-btn {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.ai-robot-send-btn:hover {
  background: var(--primary-hover);
}

/* View Wrappers */
.view-container {
  display: none;
}

.view-container.active {
  display: block;
}

.tool-workstation-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  background: #ffffff;
  border-top: 1px solid var(--card-border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

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

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.45rem;
  }
  .header-search-box {
    width: 180px;
  }
  .ad-banner-728x90 {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    height: auto;
    max-height: unset;
    padding: 0.75rem;
  }
  .ai-robot-trigger {
    right: 0.75rem;
    top: 66px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }
  .ai-robot-modal {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    top: 110px;
  }
}
