/* SaaS Startup Level Landing Page Styles - DevForge */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --black: #0b0b0b;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 11, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

.logo img {
  height: 130px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--blue);
}

.cta-header {
  display: none;
}

/* Hero Section - SaaS Style */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
  padding-top: 180px;
  padding-bottom: 25px;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(37, 99, 235, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(30, 64, 175, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 0 3rem 0;
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--white) 0%,
    var(--blue) 50%,
    var(--blue-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 650px;
  margin: 0 auto 3.5rem;
  opacity: 0.9;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.btn {
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--blue);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  transform: translateY(-4px) scale(1.05);
}

.mockup {
  position: relative;
  opacity: 0;
  transform: translateY(60px);
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

.mockup img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  border-radius: 24px;
}

/* Sections */
section {
  padding: 60px 0;
}

#hero {
  padding-bottom: 25px;
}

#problema {
  padding-top: 25px;
}

section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  border-radius: 2px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.grid-solucao {
  max-width: 900px;
  margin: 0 auto;
}

/* Glassmorphism Cards */
.card {
  height: 15rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue);
}

.card i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: block;
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Portfolio - Enhanced */
.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 50rem;
  width: 40rem;
  text-align: center;
  position: relative;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue);
}

.project-image {
  height: 220px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.project-card:hover .project-image::after {
  left: 100%;
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-info p {
  line-height: 1.3;
}

/* Process Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(2) {
  animation-delay: 0.2s;
}
.step:nth-child(3) {
  animation-delay: 0.4s;
}
.step:nth-child(4) {
  animation-delay: 0.6s;
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial {
  max-width: 550px;
  margin: 0 auto 4rem;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  font-size: 1.2rem;
  font-style: italic;
  position: relative;
  transition: all 0.4s ease;
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.comments {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

/* Oferta Section */
#oferta {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
}

#oferta .card {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

#oferta .card i {
  color: var(--white) !important;
  -webkit-text-fill-color: transparent;
}

/* CTA Final */
.cta-final-content h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: #000;
  text-align: center;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-4px) scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  height: auto;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.2rem;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet - Fix CTA button overlap/size/centering (769px-1280px) */
@media (min-width: 769px) and (max-width: 1280px) {
  .cta-header {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
    margin-left: auto;
    height: 32px !important;
    min-width: 130px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    transition: all 0.3s ease;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.95rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .cta-header {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .cta-header {
    max-width: 250px;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Swiper Portfolio Coverflow */
.portfolio-swiper {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
  height: 500px;
}

.portfolio-swiper .swiper-slide {
  height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.4;
  transform: scale(0.8);
  filter: brightness(0.6);
}

.portfolio-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
}

.portfolio-swiper .swiper-button-prev,
.portfolio-swiper .swiper-button-next {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.9);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-top: -30px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

.portfolio-swiper .swiper-button-prev:hover,
.portfolio-swiper .swiper-button-next:hover {
  background: var(--blue-dark);
  scale: 1.1;
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.6);
  color: var(--white);
}

.portfolio-swiper .swiper-button-prev:active,
.portfolio-swiper .swiper-button-next:active {
  transform: translateY(5px);
}

.portfolio-swiper .swiper-pagination-bullet {
  background: var(--blue);
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.portfolio-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--blue-dark);
  width: 16px;
  height: 16px;
}

@media (min-width: 769px) {
  .portfolio-swiper {
    padding-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .portfolio-swiper .swiper-button-prev,
  .portfolio-swiper .swiper-button-next {
    width: 50px;
    height: 50px;
    margin-top: -25px;
  }

  .portfolio-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .portfolio-swiper .swiper-pagination-bullet-active {
    width: 12px;
    height: 12px;
  }
}

/* Inline Styles Extracted from HTML */

/* Section paragraph with centered text */
.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.2rem;
}

/* Link with no decoration */
.link-clean {
  text-decoration: none;
  color: inherit;
}

/* Testimonial attribution */
.testimonial-author {
  margin-top: 1rem;
  font-weight: 500;
  opacity: 0.8;
}

/* CTA section paragraph */
.cta-intro {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Centered card content */
.card-centered {
  text-align: center;
  width: 15rem;
}

/* Large icon in card */
.card-icon-large {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Footer text with reduced opacity */
.footer-copyright {
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Footer title */
.footer-title {
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Grid - Oferta cards centered */
.oferta-grid {
  justify-items: center;
}

@media (max-width: 414px) {
    .cta-header {
      max-width: 250px;
      text-align: center;
    }

    .comments {
      flex-direction: column;
      gap: 1rem;
    }
  
  }

@media (max-width: 390px) {
    .cta-header {
      max-width: 250px;
      text-align: center;
    }

    .comments {
      flex-direction: column;
      gap: 1rem;
    }
  
  }