/* Modern CSS Design System for BAJSTOX AI - Light Theme Edition */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-rgb: 0, 0, 186; /* Dominant blue from logo (#0000ba) */
  --primary: rgb(var(--primary-rgb));
  --primary-light: #2563eb;
  --primary-glow: rgba(0, 0, 186, 0.1);
  
  --bg-light: #f8fafc; /* Very light slate background */
  --bg-card: #ffffff; /* Clean white cards */
  --bg-card-hover: #ffffff;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(0, 0, 186, 0.25);
  
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #64748b; /* Slate 500 */
  --text-light: #334155; /* Slate 700 */
  
  --success: #059669; /* Emerald 600 */
  --error: #dc2626; /* Red 600 */
  --warning: #d97706; /* Amber 600 */
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

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

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.text-gradient {
  background: linear-gradient(135deg, #0f172a 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.flex { display: flex; }
.grid { display: grid; }

.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 48px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
  border-color: #94a3b8;
}

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

.btn-outline:hover {
  background-color: var(--primary-glow);
  transform: translateY(-2px);
}

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

/* Header & Navigation (White Background) */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

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

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

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 260px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 12px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.dropdown-link:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.dropdown-link i {
  color: var(--primary);
  font-size: 1rem;
}

/* Hero Section */
.hero {
  padding: 100px 0 60px 0;
  position: relative;
}

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

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-tagline i {
  color: var(--primary);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 36px auto;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Canvas/Interactive Visual Container */
.hero-visual {
  margin-top: 60px;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  aspect-ratio: 16/9;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  animation: scan 4s linear infinite;
  box-shadow: 0 0 8px var(--primary);
  z-index: 2;
}

@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.vision-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

/* Positioning Section */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.section-label {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

/* Feature Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 186, 0.08);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: var(--transition);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tabs System */
.tabs-header {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 20px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 25px rgba(0, 0, 186, 0.06);
}

.pricing-card.popular {
  border-color: var(--primary-light);
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.01) 0%, #ffffff 100%);
  box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.08);
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li i {
  color: var(--success);
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-light);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Form Alerts */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Footer Section (White Background) */
footer.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  background-color: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 260px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Split Showcase Row */
.showcase-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.showcase-row:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .showcase-row, .showcase-row:nth-child(even) {
    flex-direction: column;
    gap: 30px;
  }
  .showcase-text, .showcase-visual {
    width: 100% !important;
  }
}

.showcase-text {
  width: 50%;
}

.showcase-visual {
  width: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Code block styles (preserve dark code block styles for readability) */
pre code {
  display: block;
  background-color: #0f172a;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  color: #e2e8f0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  line-height: 1.5;
}

/* Camera Matrix Grid (For Hub / Platforms) */
.camera-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .camera-grid {
    grid-template-columns: 1fr;
  }
}

.camera-feed {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16/10;
  background-color: #0f172a; /* Dark camera screens for contrast */
}

.camera-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.camera-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.camera-overlay {
  position: absolute;
  border: 2px solid var(--primary-light);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
  background-color: rgba(37, 99, 235, 0.1);
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-body);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #ffffff;
    flex-direction: column;
    padding: 40px 24px;
    align-items: flex-start;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-item {
    width: 100%;
  }
  .nav-dropdown {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 16px;
    margin-top: 10px;
  }
}
