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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: #ffffff;
  color: #334155;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar Dark (combina com index) */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 20px 0;
  z-index: 100;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.back-link {
  color: #06b6d4;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: #0891b2;
}

/* Hero com Cyan */
.case-hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0a1628 100%);
  color: white;
  text-align: center;
}

.case-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.case-tags span {
  padding: 10px 20px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.case-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
  font-weight: 700;
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Sections Light */
.section {
  padding: 100px 0;
  background: #ffffff;
}

.video-section {
  padding: 60px 0;
  background: #f8fafc;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.section.gray {
  background: #f8fafc;
}

.section h2 {
  font-size: 3rem;
  color: #1e293b;
  margin-bottom: 48px;
  text-align: center;
}

.section h2 span {
  color: #06b6d4;
}

.section p {
  font-size: 1.15rem;
  line-height: 1.9;
  max-width: 900px;
  margin: 0 auto 32px;
  color: #475569;
}

/* Pain Points */
.pain-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.pain-item {
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
}

.pain-item:hover {
  border-color: #06b6d4;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
  transform: translateY(-4px);
}

.pain-item h3 {
  color: #1e293b;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.pain-item p {
  color: #64748b;
  margin: 0;
  line-height: 1.7;
}

/* Images */
.full-img {
  width: 100%;
  max-width: 1100px;
  margin: 60px auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}

/* Architecture Details */
.arch-details {
  background: white;
  padding: 48px;
  border-radius: 16px;
  margin-top: 60px;
  border: 2px solid #e2e8f0;
}

.arch-details h3 {
  color: #06b6d4;
  margin-bottom: 32px;
  font-size: 1.8rem;
}

.arch-details ul {
  line-height: 2.2;
}

.arch-details li {
  margin-bottom: 20px;
  color: #475569;
}

.arch-details strong {
  color: #1e293b;
  font-weight: 600;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature {
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
}

.feature:hover {
  border-color: #06b6d4;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
  transform: translateY(-8px);
}

.feature h3 {
  color: #1e293b;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.feature p {
  color: #64748b;
  margin: 0;
  line-height: 1.7;
}

/* Metrics com Cyan */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 80px 0;
}

.metric {
  background: white;
  padding: 48px 32px;
  border-radius: 16px;
  text-align: center;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
}

.metric:hover {
  border-color: #06b6d4;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
  transform: translateY(-8px);
}

.metric-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: #06b6d4;
  margin-bottom: 12px;
}

.metric-label {
  color: #64748b;
  font-size: 1rem;
}

/* Tech Stack */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.tech-item {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
}

.tech-item:hover {
  border-color: #06b6d4;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
  transform: translateY(-4px);
}

.tech-item strong {
  color: #06b6d4;
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.tech-item p {
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* Footer Dark (combina com index) */
.footer {
  padding: 40px 0;
  background: #0f1f3a;
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #06b6d4;
}

.footer-links span {
  color: #334155;
}

.footer-copy {
  color: #64748b;
  font-size: 0.85rem;
  margin: 10px 0 0;
}

/* Responsive */
@media (max-width: 768px) {
  .case-hero h1 {
    font-size: 2rem;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .metric-value {
    font-size: 2.5rem;
  }
  
  .pain-points,
  .features-grid,
  .metrics,
  .tech-stack {
    grid-template-columns: 1fr;
  }
}