/* Main Styles for SpruceSend Static Site */

/* Base Styles */
:root {
  --primary: #4ade80;
  --primary-hover: #86efac;
  --primary-dark: #2f855a;
  --secondary: #3b82f6;
  --dark: #111827;
  --dark-lighter: #1f2937;
  --gray: #6b7280;
  --light-gray: #9ca3af;
  --white: #ffffff;
  --text: #f9fafb;
  --text-muted: #d1d5db;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-4 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-5 {
  padding-left: 3rem;
  padding-right: 3rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.gap-4 {
  gap: 1.5rem;
}

.gap-6 {
  gap: 2rem;
}

.gap-8 {
  gap: 3rem;
}

.hidden {
  display: none;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-3d {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  will-change: transform;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark);
  border-bottom: 4px solid var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--dark-lighter);
  color: var(--text);
  border-bottom: 4px solid var(--gray);
}

.btn-secondary:hover {
  background-color: #374151;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  background-color: var(--dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: none;
}

.nav-links a {
  margin-left: 1.5rem;
  font-weight: 500;
}

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

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  margin: 1rem 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-title-animated {
  color: var(--primary);
  display: block;
  min-height: 3.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.hero-social-proof {
  margin-top: 3rem;
  color: var(--light-gray);
}

/* Hero Background Animation */
.bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.tech-icon {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  color: var(--primary);
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--dark-lighter);
}

.section-title {
  font-size: 2.25rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Card Styles */
.card {
  background-color: var(--dark-lighter);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-3d {
  transform: translateZ(0);
  will-change: transform;
}

.card-3d:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.card-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-body {
  color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Testimonials */
.testimonial {
  text-align: center;
  padding: 1.5rem;
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-position {
  color: var(--light-gray);
  font-size: 0.875rem;
}

/* Pricing */
.pricing-card {
  text-align: center;
  padding: 2rem;
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.pricing-period {
  font-size: 1rem;
  color: var(--light-gray);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
}

.pricing-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  margin-right: 0.5rem;
}

/* FAQ */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  background-color: var(--dark-lighter);
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  padding: 4rem 0;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Newsletter */
.newsletter {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-input {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background-color: var(--white);
  color: var(--dark);
}

/* Contact Form */
.contact-form-container {
  margin: 0 auto;
  max-width: 460px;
}

/* Footer */
.footer {
  background-color: var(--dark);
  padding: 3rem 0 1.5rem;
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-muted);
  font-size: 1.25rem;
}

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

.footer-links-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

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

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

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

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

/* Animations for Hero Title */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsive Styles */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  .grid-cols-2-sm {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
  }
  
  .grid-cols-3-md {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero-title-animated {
    min-height: 4.5rem;
  }
  
  .container {
    padding: 0 2rem;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Hero Icon Animation Styles */
.hero:hover .tech-icon {
  opacity: 0.15;
}

@media (hover: hover) and (pointer: fine) {
  .hero:hover .tech-icon.icon-float-1 {
    animation: iconFloat 12s infinite ease-in-out alternate;
  }
  
  .hero:hover .tech-icon.icon-float-2 {
    animation: iconFloat 15s infinite ease-in-out alternate;
  }
  
  .hero:hover .tech-icon.icon-float-3 {
    animation: iconFloat 10s infinite ease-in-out alternate;
  }
  
  .hero:hover .tech-icon.icon-float-4 {
    animation: iconFloat 13s infinite ease-in-out alternate;
  }
  
  .hero:hover .tech-icon.icon-float-5 {
    animation: iconFloat 11s infinite ease-in-out alternate;
  }
}

@keyframes iconFloat {
  0% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-25px) translateX(15px) rotate(10deg) scale(1.05); }
  100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
}

/* Glass Effect */
.glass-effect {
  background: rgba(31, 41, 55, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
