:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --text-main: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --max-width: 1200px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Utilities */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

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

.section-padding {
  padding: 5rem 0;
}

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

.grid {
  display: grid;
  gap: 2rem;
}

/* Header */
header {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--secondary);
  letter-spacing: -0.05em;
}

/* Hero */
.hero {
  padding: 8rem 0 6rem;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Problem */
.problem {
  background-color: var(--secondary);
  color: var(--white);
}

.problem h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.problem .highlight-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 500;
  border-left: 4px solid var(--accent);
}

/* How It Works */
.how-it-works .step-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.step-number {
  background: var(--primary);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Pricing */
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.pricing-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.5rem;
  background: var(--white);
  position: relative;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card.featured {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured li {
  color: var(--white);
}

.pricing-card.featured .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.pricing-card.featured .btn-outline:hover {
  background: var(--white);
  color: var(--secondary);
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1.5rem 0;
  color: var(--secondary);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.pricing-card li::before {
  content: "✓";
  color: var(--primary);
  margin-right: 0.5rem;
  font-weight: bold;
}

.pricing-card.featured li::before {
  color: var(--accent);
}

/* Footer */
footer {
  background: var(--bg-light);
  padding: 4rem 0;
  margin-top: 4rem;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}

/* FAQ Accordion */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

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

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-light);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* Dashboard Styles */
.dash-nav {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.dash-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-main {
  margin-top: 2rem;
  padding-bottom: 4rem;
}

.badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  vertical-align: middle;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.dash-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Upload Card */
.upload-card {
  background: var(--white);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 4rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-card:hover,
.upload-card.drag-active {
  border-color: var(--primary);
  background: #f8fafc;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Results Table */
.results-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tag-success {
  background: #dcfce7;
  color: #166534;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.table-container {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.data-table th {
  background: #f8fafc;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.score-bar {
  display: inline-block;
  width: 100px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-right: 8px;
}

.score-bar div {
  height: 100%;
  background: #22c55e;
  border-radius: 3px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

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

/* Kanban Board Styles */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  height: calc(100vh - 200px);
  overflow-x: auto;
}

.kanban-column {
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
}

.column-header {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 8px 8px 0 0;
}

.column-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.column-header .count {
  background: #e2e8f0;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

/* Status colors for headers */
.status-lead {
  border-top: 3px solid #64748b;
}

.status-contact {
  border-top: 3px solid #3b82f6;
}

.status-negotiation {
  border-top: 3px solid #f59e0b;
}

.status-closed {
  border-top: 3px solid #10b981;
}

.column-content {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  min-height: 200px;
  /* Ensure drop target exists even if empty */
}

/* Kanban Cards */
.kanban-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kanban-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.kanban-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.card-header strong {
  font-size: 0.9rem;
  color: #1e293b;
}

.score-badge {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.card-details .industry {
  font-size: 0.8rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Navbar active state */
.nav-links a.active {
  color: #2563eb;
  background: #eff6ff;
}

/* Nav links basic style */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #2563eb;
  background: #f1f5f9;
}