/* style.css */

/* --- ROOT VARIABLES & GLOBAL STYLES --- */
:root {
  /* New Color Palette */
  --color-background-start: #0D1117; /* Dark Navy/Charcoal */
  --color-background-end: #161B22;   /* Slightly Lighter Charcoal */
  --color-surface: #1C2128;         /* Card and component backgrounds */
  --color-primary: #E6EDF3;          /* Main text color - slightly off-white */
  --color-secondary: #8B949E;        /* Secondary text color */
  --color-accent: #58A6FF;           /* A vibrant blue for CTAs */
  --color-accent-hover: #79C0FF;      /* Lighter blue for hover */
  --color-problem: #F85149;           /* A strong, modern red */
  --color-solution: #3FB950;          /* A clear, vibrant green */
  
  --font-family: 'Poppins', sans-serif;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height); /* Offset for fixed header */
}

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, var(--color-background-start), var(--color-background-end));
  color: var(--color-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--color-primary);
  font-weight: 600;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

/* Underline effect for section titles */
h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--color-accent);
}

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

ul {
  list-style-type: none;
}

section {
  padding: 100px 5%;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--color-accent);
  color: var(--color-background-start); /* Dark text on bright button */
  font-weight: 700; /* Bolder font */
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-3px);
  background-color: var(--color-accent-hover);
}

.btn i {
  margin-right: 8px;
}

/* --- NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.7); /* Updated to match new dark bg */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-branding {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-menu a {
  font-weight: 600;
  color: var(--color-secondary);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}


.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-primary);
  transition: all 0.3s ease-in-out;
}

/* --- HERO SECTION --- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--header-height);
  /* Removed old background, uses body background now */
}

.hero-tagline {
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  background: linear-gradient(-45deg, var(--color-accent), #3f51b5, #00bcd4, #03a9f4);
  background-size: 400% 400%;
  animation: 
    animateGradient 10s ease infinite,
    glow 4s linear infinite;
}

.hero-text h1 {
  max-width: 800px;
  margin-bottom: 20px;
}

.hero-text p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

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

.btn-secondary:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-surface);
}

.hero-ticks {
  display: flex;
  gap: 25px;
}

.hero-ticks p {
  font-size: 0.9rem;
}

.hero-ticks i {
  color: var(--color-accent);
  margin-right: 5px;
}

/* --- PROBLEM SECTION --- */
#problem {
  background-color: rgba(248, 81, 73, 0.05); /* Subtle reddish background */
}

#problem h2 {
  color: var(--color-problem);
}
#problem h2::after { background-color: var(--color-problem); }


.problem-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background: var(--color-surface);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  flex-basis: 350px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(248, 81, 73, 0.2);
}

.card i {
  font-size: 3rem;
  color: var(--color-problem);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* --- HOW IT WORKS SECTION --- */
#how-it-works {
  background-color: rgba(63, 185, 80, 0.05); /* Subtle greenish background */
  text-align: center; /* This will center the inline-block tagline */
}

#how-it-works h2 {
  color: var(--color-solution);
}
#how-it-works h2::after { background-color: var(--color-solution); }


.solution-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.solution-card {
  background: var(--color-surface);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  flex-basis: 350px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(63, 185, 80, 0.2);
}

.solution-card i {
  font-size: 3rem;
  color: var(--color-solution);
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.tech-stack-tagline {
  display: inline-block; /* Allows centering via text-align on parent */
  margin: 50px auto 0;
  color: var(--color-primary);
  
  /* --- STYLES TO MATCH IMAGE --- */
  background-color: #112827; /* Dark, desaturated teal background */
  border: 1px solid rgba(63, 185, 80, 0.5); /* Subtle, translucent green border */
  border-radius: 50px; /* Pill shape */
  padding: 12px 30px; /* More horizontal padding */
  max-width: 90%;
}

.tech-stack-tagline p {
    margin: 0; /* Remove default paragraph margin */
    display: inline-flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically center icon and text */
}

.tech-stack-tagline i {
  color: var(--color-solution);
  margin-right: 12px; /* Space between icon and text */
}


/* --- PRICING SECTION --- */
#pricing {
  text-align: center;
  background-color: var(--color-background-end); /* Distinct section bg */
}

#pricing h2::after { background-color: var(--color-accent); }


.pricing-subheading {
  margin-bottom: 50px;
  font-size: 1.1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-plan {
  position: relative; /* Required for positioning the badge */
  overflow: hidden; /* This is crucial for the corner badge effect */
  background-color: var(--color-surface);
  max-width: 500px;
  margin: 0 auto;
  padding: 50px 40px;
  border-radius: 20px;
  border: 1px solid var(--color-accent); /* Simplified border for this version */
  box-shadow: 0 0 40px rgba(88, 166, 255, 0.2);
}

/* The "Early Bird" Badge - CORRECTED */
.pricing-badge {
  position: absolute;
  top: 22px; /* Adjust vertical position */
  right: -34px; /* Adjust horizontal position */
  width: 150px; /* Width of the ribbon */
  padding: 8px 0;
  background-color: var(--color-accent);
  color: var(--color-background-start);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(45deg); /* The 45-degree tilt */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.pricing-plan h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.price-display {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.original-price {
  font-size: 1.5rem;
  text-decoration: line-through;
  color: var(--color-secondary);
}

.current-price {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-top: 10px;
}

.current-price span {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-secondary);
  margin-top: 8px;
}

.features-list {
  text-align: left;
  max-width: 280px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem; /* Slightly larger for clarity */
}

.features-list i {
  color: var(--color-solution);
  font-size: 1.2rem;
}

.cta-button {
  width: 100%;
  padding: 16px;
  border: none;
  background-image: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  background-size: 200% 100%;
  color: var(--color-background-start);
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
}

.cta-button:hover {
  background-position: right center; /* Moves the gradient */
  transform: scale(1.03); /* Slightly enlarges the button */
  box-shadow: 0 5px 20px rgba(88, 166, 255, 0.3);
}

.cta-button i {
    margin-right: 10px;
}

/* --- FOOTER --- */
#site-footer {
  background-color: var(--color-background-start); /* Use the darkest color for the footer */
  padding: 60px 5% 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1400px;
  margin: 0 auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
}

.footer-column h3, .footer-column h4 {
  margin-bottom: 15px;
}

.footer-column p {
  max-width: 300px;
}

#footer-branding h3 {
  font-size: 1.8rem;
  font-weight: 700;
}

#footer-branding .footer-email {
  display: inline-block;
  margin-top: 15px;
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

#footer-branding .footer-email:hover {
  color: var(--color-primary);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul a {
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    flex-direction: column;
    background-color: var(--color-background-end);
    width: 100%;
    height: calc(100vh - var(--header-height));
    text-align: center;
    transition: 0.3s;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-menu a:hover::after {
    width: 0; /* Disable nav underline on mobile */
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  #site-footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column p {
    margin: 0 auto;
  }

  .features-list {
    align-items: center;
  }
}

/* --- ANIMATION KEYFRAMES --- */

/* Keyframes for the moving gradient background */
@keyframes animateGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Keyframes for the pulsing glow effect */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(88, 166, 255, 0.3), 0 0 10px rgba(88, 166, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.6), 0 0 30px rgba(88, 166, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(88, 166, 255, 0.3), 0 0 10px rgba(88, 166, 255, 0.2);
  }
}