/* BCFSleuth Landing Page Styles */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  overflow-x: hidden;
}

:root {
  /* BCFSleuth Color Palette */
  --primary-color: #06b6d4; /* Cyan-500 - main brand color */
  --primary-dark: #0891b2; /* Cyan-600 - hover states */
  --primary-darker: #0e7490; /* Cyan-700 - active states */
  --primary-light: #67e8f9; /* Cyan-300 - light accents */
  --primary-lighter: #cffafe; /* Cyan-100 - subtle backgrounds */

  --secondary-color: #0f172a; /* Slate-900 - dark text */
  --secondary-light: #334155; /* Slate-700 - medium text */
  --secondary-lighter: #64748b; /* Slate-500 - light text */

  --background-primary: #ffffff; /* White backgrounds */
  --background-secondary: #f8fafc; /* Slate-50 - light gray backgrounds */
  --background-tertiary: #f1f5f9; /* Slate-100 - subtle backgrounds */

  --border-color: #e2e8f0; /* Slate-200 - borders */
  --border-dark: #cbd5e1; /* Slate-300 - darker borders */

  --success-color: #10b981; /* Emerald-500 - success states */
  --warning-color: #f59e0b; /* Amber-500 - warnings */
  --error-color: #ef4444; /* Red-500 - errors */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: #666;
}

a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2563eb;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Button Styles */
.primary-button,
.secondary-button,
.cta-button,
.option-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.primary-button,
.cta-button,
.option-button.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.primary-button:hover,
.cta-button:hover,
.option-button.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  color: white;
}

.secondary-button,
.option-button.secondary {
  background: white;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.secondary-button:hover,
.option-button.secondary:hover {
  background: #3b82f6;
  color: white;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-brand-text h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--secondary-color);
}

.nav-brand-text .tagline {
  font-size: 0.875rem;
  color: var(--secondary-lighter);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #666;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #3b82f6;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: #1a1a1a;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual */
.logo-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hero-logo-main {
  width: 500px;
  height: auto;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.section-description {
  text-align: center;
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: #f8fafc;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Workflow Section */
.workflow {
  background: #f8fafc;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.workflow-step {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.workflow-step:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.workflow-step h3 {
  margin-bottom: 1rem;
  color: #1a1a1a;
}

/* BCF Carousel */
.bcf-carousel {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-header {
  padding: 1.5rem;
  background: var(--secondary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-label {
  font-weight: 500;
  font-size: 1.125rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease;
}

.dot.active {
  background: var(--primary-color);
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: contain;
  background: #f8fafc;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.slide-caption h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.slide-caption p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .carousel-controls {
    gap: 0.5rem;
  }

  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .slide-caption {
    padding: 2rem 1rem 1rem;
  }

  .slide-caption h4 {
    font-size: 1.25rem;
  }

  .slide-caption p {
    font-size: 0.875rem;
  }
}

/* Workflow Demo */
.workflow-demo {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.demo-header {
  padding: 1.5rem;
  background: #1a1a1a;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-label {
  font-weight: 500;
}

.demo-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
}

.control.active {
  background: #10b981;
}

.demo-content {
  padding: 2rem;
}

.processing-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.step.active {
  background: #dbeafe;
  border: 1px solid #3b82f6;
}

.step-icon {
  font-size: 1.5rem;
}

/* Ready to Start Section */
.ready-to-start {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
}

.ready-to-start .section-title {
  color: white;
}

.ready-to-start .section-description {
  color: #cbd5e1;
}

.start-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.start-option {
  background: white;
  color: #1a1a1a;
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.start-option h3 {
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.start-option p {
  color: #666;
  margin-bottom: 2rem;
}

/* Documentation Section */
.documentation {
  background: white;
  padding: 5rem 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.docs-card {
  padding: 2rem;
  background: #f8fafc;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  text-align: center;
}

.docs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.docs-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.docs-icon svg {
  width: 30px;
  height: 30px;
}

.docs-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.docs-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.docs-cta {
  text-align: center;
  margin-top: 2rem;
}

.docs-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.docs-button:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
  color: white !important;
}

/* Community Section */
.community {
  background: #f8fafc;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.community-option {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.community-option:hover {
  transform: translateY(-5px);
}

.community-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.community-icon svg {
  width: 40px;
  height: 40px;
}

.community-option h3 {
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.community-option p {
  color: #666;
  margin-bottom: 2rem;
}

.community-link {
  color: #3b82f6;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.community-link:hover {
  border-color: #3b82f6;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  margin-bottom: 1rem;
  color: white;
}

.footer-brand p {
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #3b82f6;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
}

.footer-bottom a {
  color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .nav-logo {
    height: 30px;
  }

  .hero-logo-image {
    height: 80px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .bcf-preview-card {
    transform: none;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Fixed hero section for mobile */
  .hero {
    padding: 6rem 0 4rem;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    justify-content: center;
    gap: 1rem;
  }

  /* Logo section mobile fix */
  .logo-card {
    padding: 1rem;
    order: -1; /* Put logo above text on mobile */
  }

  .hero-logo-main {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1.125rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Keep nav logo reasonable size */
  .nav-logo {
    height: 35px;
  }

  .docs-topics {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .docs-topic {
    padding: 1.5rem;
  }

  .docs-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -20px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: opacity 0.2s ease;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  opacity: 0.7;
}

#lightbox-image {
  max-width: 90vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: white;
}

.lightbox-caption {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-top: 1rem;
  max-width: 600px;
}

.lightbox-caption h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.lightbox-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 2rem;
}

.lightbox-btn {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .lightbox-close {
    top: -40px;
    right: -10px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }

  #lightbox-image {
    max-width: 95vw;
    max-height: 60vh;
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .lightbox-nav {
    padding: 0 1rem;
  }

  .lightbox-caption {
    padding: 1rem;
    margin-top: 0.5rem;
  }

  .lightbox-caption h4 {
    font-size: 1.1rem;
  }

  .lightbox-caption p {
    font-size: 0.85rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }

  .lightbox-close {
    top: -40px;
    font-size: 1.5rem;
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .lightbox-btn.prev {
    margin-left: 1rem;
  }

  .lightbox-btn.next {
    margin-right: 1rem;
  }

  .lightbox-caption {
    padding: 1rem;
  }

  .lightbox-caption h4 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5rem 0 3rem;
  }

  .hero-container {
    padding: 0 0.5rem;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .logo-card {
    padding: 0.5rem;
  }

  .hero-logo-main {
    max-width: 250px;
  }

  .feature-card,
  .workflow-step,
  .start-option,
  .community-option {
    padding: 1.5rem;
  }

  /* Keep nav logo readable */
  .nav-logo {
    height: 32px;
  }
}
