/* app/assets/stylesheets/landing_page.css */

/* =========================================
   CSS Design Tokens & Reset
   ========================================= */
:root {
  --primary-blue: #1a204e;
  --primary-blue-light: #2c3570;

  --primary-blue-vibrant: #38bdf8;
  --primary-green: #81c14b;
  --primary-green-dark: #6ba839;

  --text-dark: #2d3748;
  --text-light: #ffffff;
  --text-muted: #718096;

  --bg-light: #f0f4f8;
  --bg-white: #ffffff;

  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Native system fonts for maximum performance */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   Typography & Utilities
   ========================================= */
.section-title {
  font-size: 2.5rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.section-header {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

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

.btn-primary:hover {
  background-color: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--bg-white);
}

.btn-whatsapp {
  background-color: #25D366;
  /* Standard WhatsApp Green */
  color: white;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================
   Header & Navigation
   ========================================= */
.main-header {
  background-color: rgba(240, 244, 248, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

/* Base fiber cable removed so no line remains after pulse */

/* Light pulse moving across */
.header-container::before {
  content: '';
  position: absolute;
  top: 20px;
  /* Center at 40px */
  left: 70px;
  width: 0px;
  height: 50px;
  background:
    /* Horizontal flare */
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 45%, #ffffff 50%, rgba(255, 255, 255, 0.8) 55%, transparent 100%) right center / 40px 2px no-repeat,
    /* Vertical flare */
    linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.8) 45%, #ffffff 50%, rgba(255, 255, 255, 0.8) 55%, transparent 100%) right 19px center / 2px 40px no-repeat,
    /* Diagonal flares */
    linear-gradient(45deg, transparent 40%, #a3e635 47%, #ffffff 50%, #a3e635 53%, transparent 60%) right 5px center / 30px 30px no-repeat,
    linear-gradient(-45deg, transparent 40%, #a3e635 47%, #ffffff 50%, #a3e635 53%, transparent 60%) right 5px center / 30px 30px no-repeat,
    /* Irregular electric sparks */
    linear-gradient(20deg, transparent 45%, #ffffff 50%, transparent 55%) right 0px top 5px / 25px 25px no-repeat,
    linear-gradient(-70deg, transparent 45%, #a3e635 50%, transparent 55%) right 15px bottom 5px / 20px 20px no-repeat,
    /* Core glow */
    radial-gradient(circle at center, #ffffff 0%, #a3e635 15%, var(--primary-green) 35%, transparent 60%) right 5px center / 30px 30px no-repeat,
    /* Fiber optic tail */
    linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.3) 30%, var(--primary-green) 85%, transparent 100%) left center / calc(100% - 20px) 4px no-repeat;
  filter: drop-shadow(0 0 6px var(--primary-green)) drop-shadow(0 0 12px var(--primary-blue-vibrant));
  mix-blend-mode: screen;
  animation: fiber-light 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes fiber-light {
  0% {
    left: 70px;
    width: 0px;
    opacity: 0;
  }

  15% {
    left: 70px;
    width: 25vw;
    opacity: 1;
  }

  85% {
    left: calc(100% - 25vw - 50px);
    width: 25vw;
    opacity: 1;
  }

  100% {
    left: calc(100% - 50px);
    width: 0px;
    opacity: 0;
  }
}

.header-actions .btn-primary {
  animation: pulse-button 4s infinite;
}

@keyframes pulse-button {

  0%,
  85% {
    box-shadow: none;
    transform: scale(1);
  }

  92% {
    box-shadow: 0 0 25px var(--primary-green);
    transform: scale(1.05);
  }

  100% {
    box-shadow: none;
    transform: scale(1);
  }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
  z-index: 2;
}

.logo-image {
  height: 90px;
  width: auto;
  position: relative;
  top: 10px;
  z-index: 1001;
  margin-bottom:6px;;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--primary-blue);
  transition: color 0.2s;
}

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

.header-actions {
  display: flex;
  gap: 1rem;
}

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

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-blue);
  transition: all 0.3s;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  /* 80px is header height */
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-vibrant) 100%);
  color: var(--text-light);
  overflow: hidden;
}

/* Subtle pattern/overlay for premium feel */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 100% 50%, rgba(129, 193, 75, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero-text {
  max-width: 700px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--primary-green);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================
   Plans Section (Qual seu estilo?)
   ========================================= */
.plans-section {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 2rem;
}

.plan-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 6px solid var(--primary-green);
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-green-dark);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.plan-card h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.plan-card p {
  color: black;
  margin-bottom: 2rem;
  min-height: 80px;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Background Card Gamer */
.card-gamer {
  position: relative;
  overflow: hidden;
}

.card-gamer::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background-image: url("/assets/gamer_conected-4b46528d.webp");
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.card-gamer>* {
  position: relative;
  z-index: 1;
}

/* Fundo do Card Família */
.card-family {
  position: relative;
  overflow: hidden;
}

.card-family::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background-image: url("/assets/family_01-001b5655.webp");
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.35;
  /* Suave para não prejudicar a leitura do texto */
  pointer-events: none;
}

.card-family>* {
  position: relative;
  z-index: 1;
}

/* Background Card Séries */
.card-series {
  position: relative;
  overflow: hidden;
}

.card-series::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background-image: url("/assets/series-779528da.webp");
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.card-series>* {
  position: relative;
  z-index: 1;
}

/* Background Card Home Office */
.card-office {
  position: relative;
  overflow: hidden;
}

.card-office::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background-image: url("/assets/home_office-db697abd.webp");
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.card-office>* {
  position: relative;
  z-index: 1;
}

/* =========================================
   Flip Card Styles (Gamer Plan)
   ========================================= */
.plan-card-wrapper {
  position: relative;
  display: flex;
  min-width: 0;
}

.plan-card.flip-inner {
  padding: 0;
  border: none;
  background-color: transparent;
  flex: 1;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plan-card.flip-inner:hover {
  transform: translateY(-10px);
  box-shadow: none;
  border: none;
}

.plan-card.flip-inner.flipped {
  transform: rotateY(180deg);
}

.plan-card.flip-inner.flipped:hover {
  transform: translateY(-10px) rotateY(180deg);
}

.flip-front,
.flip-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  width: 100%;
}

.flip-front *,
.flip-back * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.plan-card-wrapper:hover .flip-front,
.plan-card-wrapper:hover .flip-back {
  box-shadow: var(--shadow-hover);
}

.flip-front {
  background-color: var(--bg-white);
  border: 6px solid var(--primary-green);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: rotateY(0deg) translateZ(1px);
}

.flip-front .btn-block {
  margin-top: auto;
}

.plan-card-wrapper:hover .flip-front {
  border-color: var(--primary-green-dark);
}

.flip-back {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-vibrant) 100%);
  transform: rotateY(180deg) translateZ(1px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 6px solid transparent;
  /* Keeps it the same size as front */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 4px padding-like border inside the back face */
.flip-back::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 2px solid var(--primary-blue-vibrant);
  border-radius: calc(var(--border-radius-md) - 6px);
  pointer-events: none;
}

.flip-back-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.flip-back h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: auto;
  padding-top: 1rem;
}

.flip-back .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 0.5rem;
}

.flip-back .speed {
  font-size: 2.125rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: auto;
}

.flip-back .btn-voltar {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--bg-white);
  margin-top: 1.5rem;
}

.flip-back .btn-voltar:hover {
  background-color: var(--bg-white);
  color: var(--primary-blue);
}

/* =========================================
   Corporate Section (Para Empresas)
   ========================================= */
.corporate-section {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.corporate-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefits-list {
  list-style: none;
  margin-bottom: 2rem;
}

.benefits-list li {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary-blue);
}

.corporate-image {
  background-image: url("/assets/corporate_business-c53d150a.webp");
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  color: white;
  width: 100%;
}

.glass-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

/* =========================================
   Testimonials Section
   ========================================= */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.carousel-container {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-light);
  box-shadow: var(--shadow-sm);
  padding: 4rem 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  padding: 0 4rem;
  text-align: center;
  box-sizing: border-box;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.author-info {
  text-align: left;
}

.author-info strong {
  display: block;
  color: var(--primary-blue);
  font-size: 1.125rem;
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.stars {
  color: #fbbf24;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--primary-green);
  transform: scale(1.3);
}

/* =========================================
   Footer
   ========================================= */
.main-footer {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-vibrant) 100%);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  max-height: 60px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
  /* Makes logo white if possible */
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-green);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

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

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.social-links {
  margin-top: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light) !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--bg-white) !important;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* =========================================
   Responsive Design (Mobile Layout)
   ========================================= */
@media (min-width: 993px) {
  .plan-card-wrapper {
    height: 480px;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .corporate-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  /* Header Mobile */
  .mobile-menu-btn {
    display: flex;
    animation: pulse-button 4s infinite;
  }

  .header-container::before {
    animation: fiber-light-mobile 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  @keyframes fiber-light-mobile {
    0% {
      left: 30px;
      width: 0px;
      opacity: 0;
    }

    10% {
      left: 30px;
      width: 100px;
      opacity: 1;
    }

    80% {
      left: calc(100% - 100px);
      width: 80px;
      opacity: 1;
    }

    100% {
      left: calc(100% - 20px);
      width: 0px;
      opacity: 0;
    }
  }

  .logo-image {
    height: 80px;
    top: 4px;
  }

  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(240, 244, 248, 0.98);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    margin-top: 1rem;
  }

  /* Hero Mobile */
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  /* Sections Mobile */
  .section-title {
    font-size: 2rem;
  }

  .corporate-image {
    min-height: 300px;
    padding: 1.5rem;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 1.5rem;
  }
}
