/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --primary: #156AFE;
  --primary-hover: #0F5CE0;
  --primary-light: #EAF3FF;
  --background: #FFFFFF;
  --surface: #FAFBFC;
  --cards: #FFFFFF;
  --border: #E5E7EB;
  --primary-text: #0F172A;
  --secondary-text: #475569;
  --muted-text: #64748B;
  --success: #16A34A;
  --warning: #F59E0B;
  --error: #DC2626;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--primary-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-text);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Layout & Utility */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background-color: #DCFCE7;
  color: var(--success);
}

.badge-warning {
  background-color: #FEF3C7;
  color: var(--warning);
}

.badge-muted {
  background-color: var(--surface);
  color: var(--secondary-text);
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

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

.btn-secondary {
  background-color: var(--surface);
  color: var(--primary-text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: #F1F5F9;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Header & Navigation */
header.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--primary);
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-text);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

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

/* Hero Section */
.hero-section {
  padding: 100px 0 80px 0;
  background: radial-gradient(circle at 90% 10%, var(--primary-light) 0%, #FFFFFF 60%);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  color: var(--secondary-text);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Autocomplete Component */
.search-container {
  position: relative;
  max-width: 640px;
  margin: 0 auto 32px auto;
  z-index: 10;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 12px 8px 20px;
  box-shadow: var(--shadow-lg);
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--primary-text);
}

.search-input-wrapper svg {
  color: var(--muted-text);
  margin-right: 12px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  text-align: left;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: var(--surface);
}

.suggestion-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestion-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary);
  font-size: 12px;
}

/* Trusted Logos */
.trusted-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.trusted-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.6;
}

.trusted-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Stats Section */
.stats-section {
  border-bottom: 1px solid var(--border);
}

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

.stat-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 14px;
  color: var(--secondary-text);
  font-weight: 500;
}

/* Cards Grid Common */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-title-area {
  max-width: 600px;
}

.section-title-area h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.section-title-area p {
  color: var(--secondary-text);
  font-size: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Company Card */
.company-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.company-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.company-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.company-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.company-info p {
  font-size: 13px;
  color: var(--muted-text);
}

.company-desc {
  font-size: 14px;
  color: var(--secondary-text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.company-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.meta-label {
  color: var(--muted-text);
}

.meta-val {
  font-weight: 600;
  color: var(--primary-text);
}

/* Data Tables */
.table-container {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  background-color: var(--surface);
  padding: 16px 24px;
  font-weight: 600;
  color: var(--secondary-text);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--primary-text);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: var(--surface);
}

/* Industries Grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.industry-card:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.industry-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.industry-name {
  font-weight: 600;
  font-size: 15px;
}

/* Dashboard Preview */
.dashboard-preview-section {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dashboard-preview-window {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.window-header {
  background: var(--surface);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E5E7EB;
}

.window-dot.red { background: #EF4444; }
.window-dot.yellow { background: #F59E0B; }
.window-dot.green { background: #10B981; }

.window-body {
  padding: 24px;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  background: #FFFFFF;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--secondary-text);
  display: none;
}

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

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

/* Newsletter */
.newsletter-section {
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--border);
}

.newsletter-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 32px auto 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  outline: none;
}

/* Footer */
footer {
  background: var(--surface);
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--secondary-text);
  margin-top: 16px;
  font-size: 14px;
  max-width: 280px;
}

.footer-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-text);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--secondary-text);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted-text);
}

/* Filters Bar Component */
.filters-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-select {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: #FFFFFF;
  color: var(--secondary-text);
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

/* Company Profile Elements */
.profile-header-section {
  background: linear-gradient(to bottom, var(--primary-light) 0%, #FFFFFF 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.profile-header-grid {
  display: flex;
  align-items: center;
  gap: 32px;
}

.profile-logo-large {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-xl);
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.profile-meta-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  gap: 24px;
}

.profile-tab {
  padding: 16px 8px;
  font-weight: 600;
  color: var(--secondary-text);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.profile-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.profile-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

/* Timeline Component */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-light);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-marker::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 1px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  margin: 24px 0;
  font-family: var(--font-heading);
}

.pricing-price span {
  font-size: 16px;
  color: var(--secondary-text);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 32px 0;
}

.pricing-features li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--secondary-text);
}

/* Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}

.dashboard-sidebar {
  background-color: var(--surface);
  border-right: 1px solid var(--border);
  padding: 32px 24px;
}

.dashboard-content {
  padding: 40px;
  background-color: #FFFFFF;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-item {
  margin-bottom: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--secondary-text);
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Simple Chart Representation */
.chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  padding-top: 20px;
}

.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.chart-bar {
  width: 40%;
  background-color: var(--primary);
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
}

.chart-bar:hover {
  background-color: var(--primary-hover);
}

.chart-label {
  font-size: 12px;
  color: var(--muted-text);
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    display: none; /* simple responsive fallback */
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
}
