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

:root {
  --primary: #3B5998;
  --primary-dark: #2d4373;
  --primary-light: #5a7bb8;
  --foreground: #0f172a;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --background: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --success: #16a34a;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --green-600: #16a34a;
  --green-700: #15803d;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --purple-100: #f3e8ff;
  --purple-600: #9333ea;
  --orange-100: #ffedd5;
  --orange-600: #ea580c;
  --red-100: #fee2e2;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo-img {
  height: 3rem;
  width: auto;
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.5rem;
}

.mobile-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 6rem;
  background: linear-gradient(to bottom, #ffffff, rgba(239, 246, 255, 0.3), #ffffff);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 6rem 0 8rem;
  }
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .hero-logo {
    margin-bottom: 4rem;
  }
}

.logo-hero-img {
  width: 100%;
  max-width: 32rem;
  height: auto;
}

@media (min-width: 1024px) {
  .logo-hero-img {
    max-width: 48rem;
  }
}

.hero-content {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto 4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(59, 89, 152, 0.1);
  border: 1px solid rgba(59, 89, 152, 0.2);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--success);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.badge-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

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

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero-description strong {
  color: var(--foreground);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  height: 3.5rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

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

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

.btn-secondary:hover {
  background: var(--blue-50);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-icon-right {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success);
}

/* Tech Section */
.tech-section {
  padding: 6rem 0 8rem;
  background: linear-gradient(to bottom, white, rgba(239, 246, 255, 0.3));
}

@media (min-width: 1024px) {
  .tech-section {
    padding: 8rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.75;
}

/* Carousel */
.carousel {
  position: relative;
  margin-bottom: 5rem;
}

.carousel-container {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--border);
  background: var(--gray-100);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
}

.carousel-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  max-width: 42rem;
}

.carousel-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.carousel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .carousel-title {
    font-size: 1.875rem;
  }
}

.carousel-description {
  color: rgb(191, 219, 254);
  line-height: 1.75;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .carousel-description {
    font-size: 1rem;
  }
}

/* Computer Vision Demo */
.cv-demo {
  position: relative;
  width: 100%;
  height: 100%;
}

.cv-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-overlay {
  position: absolute;
  inset: 0;
}

.keypoint {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(74, 222, 128);
  border: 2px solid rgba(74, 222, 128, 0.5);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.bbox {
  position: absolute;
  top: 15%;
  left: 25%;
  width: 50%;
  height: 60%;
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
}

.bbox::before,
.bbox::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 4px solid var(--primary);
}

.bbox::before {
  top: -4px;
  left: -4px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 0.5rem;
}

.bbox::after {
  bottom: -4px;
  right: -4px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 0.5rem;
}

.cv-metrics {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-card {
  background: rgba(59, 89, 152, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem;
  border-radius: 0.5rem;
  color: white;
  min-width: 140px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.metric-label {
  font-size: 0.75rem;
  color: rgb(191, 219, 254);
  margin-top: 0.25rem;
}

/* Carousel Navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--gray-50);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--foreground);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-indicators {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.indicator {
  width: 2.5rem;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.indicator.active {
  background: var(--primary);
  width: 3rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 2rem;
  margin-top: 5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    gap: 3rem;
  }
}

.feature-card {
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  overflow: hidden;
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon.red {
  background: linear-gradient(to bottom right, var(--red-500), var(--red-600));
}

.feature-icon.green {
  background: linear-gradient(to bottom right, var(--green-600), var(--green-700));
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.feature-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.feature-badge.red {
  background: var(--red-100);
  color: #991b1b;
}

.feature-badge.green {
  background: #dcfce7;
  color: #166534;
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Features Section */
.features-section {
  padding: 6rem 0 8rem;
  background: white;
}

@media (min-width: 1024px) {
  .features-section {
    padding: 8rem 0;
  }
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon.blue {
  background: var(--blue-100);
}

.card-icon.purple {
  background: var(--purple-100);
}

.card-icon.orange {
  background: var(--orange-100);
}

.card-icon.red {
  background: var(--red-100);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card-icon.blue svg {
  color: #2563eb;
}

.card-icon.purple svg {
  color: var(--purple-600);
}

.card-icon.orange svg {
  color: var(--orange-600);
}

.card-icon.red svg {
  color: var(--red-600);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0 8rem;
  background: linear-gradient(to bottom right, var(--primary), var(--primary), #1e40af);
  color: white;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .cta-section {
    padding: 8rem 0;
  }
}

.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.cta-bg::before,
.cta-bg::after {
  content: '';
  position: absolute;
  width: 24rem;
  height: 24rem;
  background: white;
  border-radius: 9999px;
  filter: blur(64px);
}

.cta-bg::before {
  top: 0;
  left: 0;
}

.cta-bg::after {
  bottom: 0;
  right: 0;
}

.cta-container {
  text-align: center;
  max-width: 64rem;
  position: relative;
  z-index: 10;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .cta-title {
    font-size: 3rem;
  }
}

.cta-highlight {
  color: rgb(191, 219, 254);
}

.cta-description {
  font-size: 1.25rem;
  color: rgb(224, 242, 254);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--gray-50);
}

.footer .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-col-wide {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-col-wide {
    grid-column: span 2;
  }
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  max-width: 28rem;
}

.footer-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Utilities */
@media (max-width: 767px) {
  .carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .carousel-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .carousel-info {
    padding: 1.5rem;
  }
  
  .cv-metrics {
    top: 1rem;
    right: 1rem;
  }
  
  .metric-card {
    padding: 0.75rem;
    min-width: 100px;
  }
  
  .metric-value {
    font-size: 1.125rem;
  }
}
