/* ==========================================================================
   ContAI Kids — Landing Page Stylesheet
   Tema: Claro / Mágico Encantador
   Tipografia: Outfit
   ========================================================================== */

:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --color-primary: #f97316;       /* Laranja Solar */
  --color-primary-hover: #ea580c;
  --color-secondary: #2563eb;     /* Azul Mágico */
  --color-secondary-hover: #1d4ed8;
  --color-accent: #8b5cf6;        /* Roxo Encantado */
  --color-dark: #1e293b;
  --color-light: #f8fafc;
  --color-border: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--color-dark);
  background-color: #f1f7ff;
}

body {
  font-family: var(--font-main);
  background-image: url('../images/bg-site.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Glassmorphism & Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px -10px rgba(30, 41, 59, 0.08);
  border-radius: 1.5rem;
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
}

/* Header Sticky Shrink */
#main-header {
  transition: all 0.3s ease;
}

#main-header .main-logo {
  height: 68px;
  max-width: 280px;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
  #main-header .main-logo {
    height: 88px;
    max-width: 350px;
  }
}

@media (min-width: 1024px) {
  #main-header .main-logo {
    height: 96px;
    max-width: 380px;
  }
}

#main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#main-header.scrolled .main-logo {
  height: 48px;
}

@media (min-width: 640px) {
  #main-header.scrolled .main-logo {
    height: 52px;
  }
}

/* Floating animation */
@keyframes floatAnim {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating-elem {
  animation: floatAnim 4s ease-in-out infinite;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Custom Buttons */
.btn-solar {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 1rem;
  padding: 0.85rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-solar:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 14px 25px -5px rgba(234, 88, 12, 0.6);
  transform: translateY(-2px);
}

.btn-magico {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 1rem;
  padding: 0.85rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-magico:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 14px 25px -5px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
}

.btn-outline-custom {
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  font-weight: 700;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.85rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-custom:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #ffffff;
  transform: translateY(-2px);
}

/* Slider Track & Mockup Frame Realista */
.phone-mockup-frame {
  position: relative;
  background: #0f172a;
  border-radius: 3.2rem;
  padding: 10px;
  box-shadow: 
    0 25px 60px -12px rgba(15, 23, 42, 0.45),
    0 0 0 2px #334155,
    0 0 0 4px #1e293b,
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  margin: 0 auto;
}

/* Detalhes de botões laterais na carcaça */
.phone-mockup-frame::before {
  content: '';
  position: absolute;
  top: 90px;
  left: -6px;
  width: 3px;
  height: 42px;
  background: #334155;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 54px 0 #334155;
}

.phone-mockup-frame::after {
  content: '';
  position: absolute;
  top: 110px;
  right: -6px;
  width: 3px;
  height: 54px;
  background: #334155;
  border-radius: 0 3px 3px 0;
}

/* Entalhe Superior / Dynamic Island */
.phone-notch-pill {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 20px;
  background: #000000;
  border-radius: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.phone-notch-camera {
  width: 8px;
  height: 8px;
  background: #111827;
  border: 1.5px solid #1f2937;
  border-radius: 50%;
  position: relative;
}

.phone-notch-camera::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 2px;
  height: 2px;
  background: #38bdf8;
  border-radius: 50%;
  opacity: 0.6;
}

/* Barra Home Inferior */
.phone-home-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 4px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  z-index: 30;
  pointer-events: none;
}

/* Tela interna do celular e slider */
.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 576 / 1024;
  border-radius: 2.6rem;
  background: #020617;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2.6rem;
  pointer-events: none;
  user-select: none;
}

/* Slider Nav Items (Interactive Tabs) */
.slider-nav-item {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 5px solid transparent;
  transition: all 0.25s ease;
}

.slider-nav-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(249, 115, 22, 0.4);
}

.slider-nav-item.active {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(249, 115, 22, 0.5);
  border-left-color: #f97316;
  box-shadow: 0 12px 28px -6px rgba(249, 115, 22, 0.2);
}

.slider-nav-num {
  background: rgba(241, 245, 249, 0.95);
  color: #64748b;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.25s ease;
}

.slider-nav-item.active .slider-nav-num {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fdba74;
}

.slider-nav-item.active h3 {
  color: #ea580c;
}

/* Slider Dots */
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-dot.active {
  width: 28px;
  background-color: #f97316;
}

/* Accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.3s ease;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  body {
    background-size: cover;
  }
}
