/* ===== basic reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Smooth scrolling */
html {
  scroll-padding-top: 100px; /* Account for fixed navbar */
}

/* ===== buttons ===== */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 300ms ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.btn::before {
  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.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: #fff;
  border: 2px solid transparent;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
}

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 5rem;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.9)), 
              url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2072&q=80') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3), transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

.hero__content {
  position: relative;
  max-width: 900px;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: -0.03em;
}

.accent { 
  color: #06b6d4;
  background: linear-gradient(45deg, #06b6d4, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  margin-bottom: 2.5rem;
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero__subtitle {
  margin-bottom: 2.5rem;
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ===== sections ===== */
.section {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section--light {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  border-radius: 2px;
}

/* ===== pain point grid ===== */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1100px;
  margin-inline: auto;
}

.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,255,0.9));
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 2rem 1.8rem;
  border-radius: 15px;
  text-align: left;
  font-size: 1.1rem;
  transition: all 300ms ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.card:nth-child(even) {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(255,255,255,0.9));
}

/* ===== how it works ===== */
.steps {
  max-width: 800px;
  margin: auto;
  text-align: left;
  font-size: 1.2rem;
  counter-reset: step-counter;
}

.steps li {
  position: relative;
  padding: 2rem 0 2rem 4rem;
  margin-left: 2rem;
  counter-increment: step-counter;
}

.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 5rem;
  bottom: -2rem;
  width: 3px;
  background: #3b82f6;
  z-index: 1;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: -1.75rem;
  top: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  z-index: 2;
}

.steps li:last-child {
  padding-bottom: 1rem;
}

.steps li + li {
  margin-top: 0;
}

.steps strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95em;
}

/* ===== form section ===== */
.section--form {
  background: rgba(238, 241, 255, 0.95);
  backdrop-filter: blur(15px);
  padding-bottom: 6rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.section--form iframe {
  margin-top: 2.5rem;
  max-width: 100%;
  width: 920px;
  height: 800px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 300ms ease;
  background: #fff;
}

.section--form iframe:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ===== footer ===== */
.footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0f172a 100%);
  color: #e2e8f0;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer__logo-image {
  height: 35px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes logo white for dark footer */
}

.footer__logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}

.footer__description {
  color: #cbd5e0;
  line-height: 1.6;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__column h3 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__column li {
  margin-bottom: 0.7rem;
}

.footer__column a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 300ms ease;
  display: inline-block;
  position: relative;
}

.footer__column a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer__column a[href^="mailto:"],
.footer__column a[href^="tel:"] {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #a0aec0;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__bottom a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 300ms ease;
}

.footer__bottom a:hover {
  color: #fff;
}

/* ===== navigation bar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all 300ms ease;
}

.navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.navbar__brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2d3748;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
}

.navbar__logo {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.navbar__logo img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.navbar__menu {
  display: flex;
  gap: 2rem;
}

.navbar__link {
  color: #2d3748;
  text-decoration: none;
  font-weight: 500;
  transition: color 300ms ease;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  transition: width 300ms ease;
}

.navbar__link:hover {
  color: #3b82f6;
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__link:active {
  transform: translateY(1px);
}

.navbar__logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 300ms ease;
}

.navbar__logo-link:hover {
  opacity: 0.8;
}

/* ===== testimonials section ===== */
.section--testimonials {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  border-left: 4px solid #3b82f6;
  transition: transform 300ms ease;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial__content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #2d3748;
  font-weight: 400;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.testimonial__author strong {
  color: #2d3748;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.testimonial__author span {
  color: #3b82f6;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== FAQ section ===== */
.section--faq {
  background: rgba(255, 255, 255, 0.98);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1rem;
}

.faq-question {
  cursor: pointer;
  padding: 1.5rem 0;
  transition: all 300ms ease;
}

.faq-question:hover {
  color: #3b82f6;
}

.faq-question h3 {
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  font-family: 'JetBrains Mono', monospace;
  transition: transform 300ms ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* ===== typography enhancements ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.navbar__brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Tech/code elements with monospace font */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Subtle monospace for technical terms */
.steps strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95em;
}

/* ===== responsive design ===== */
@media (max-width: 768px) {
  .navbar__container {
    padding: 0 1rem;
  }
  
  .navbar__menu {
    gap: 1rem;
  }
  
  .navbar__link {
    font-size: 0.9rem;
  }
  
  .navbar__logo img {
    height: 32px;
    max-width: 120px;
  }
  
  .hero {
    padding-top: 4rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
  
  .section {
    padding: 4rem 1.5rem;
    margin: 1rem;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
    font-size: 1rem;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial {
    padding: 2rem 1.5rem;
  }
  
  .steps {
    padding: 0 1rem;
  }
  
  .steps li {
    padding: 1.5rem 0 1.5rem 3rem;
    margin-left: 1rem;
    font-size: 1.1rem;
  }
  
  .steps li:not(:last-child)::after {
    left: 0;
    top: 4rem;
    bottom: -1.5rem;
  }
  
  .steps li::before {
    left: -1.4rem;
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.1rem;
    top: 1.2rem;
    z-index: 2;
  }
  
  .faq-question h3 {
    font-size: 1.1rem;
  }
  
  .section--form iframe {
    width: 100%;
    height: 700px;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem 1.5rem;
  }
  
  .footer__links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer__brand {
    text-align: center;
    max-width: none;
  }
  
  .footer__column {
    text-align: center;
  }
  
  .footer__bottom {
    padding: 1rem;
    font-size: 0.85rem;
  }
  
  .footer {
    margin-top: 2rem;
  }
}

/* ===== scroll animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
  }
  
  .section:nth-child(2) { animation-delay: 0.2s; }
  .section:nth-child(3) { animation-delay: 0.4s; }
  .section:nth-child(4) { animation-delay: 0.6s; }
}