/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
  --primary-50: #E6F7F4;
  --primary-100: #CCEFE9;
  --primary-500: #0CA678;
  --primary-600: #0A8560;
  --secondary-500: #3B82F6;
  --accent-500: #F97316;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  color: var(--gray-800);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary-500);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-600);
}

.btn-outline {
  border: 1px solid var(--gray-600);
  color: var(--gray-700);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--gray-50);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  background: white;
  z-index: 1000;
  transition: all 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  color: var(--primary-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-500);
}

.menu-toggle {
  display: none;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(to right, white, var(--primary-50));
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 32rem;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--primary-500);
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 300px;
  height: 650px;
  margin: 0 auto;
}

.phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 80%;
  background: black;
  border-radius: 20px;
  border: 5px solid black;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* border-radius: 28px; */
  overflow: hidden;
}

.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: 24px;
  background: black;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: 4px;
  background: white;
  border-radius: 4px;
  z-index: 10;
}

/* Stats Section */
.stats {
  padding: 4rem 0;
  background: linear-gradient(to bottom, white, var(--primary-50));
}

.stats h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stats h2 span {
  color: var(--primary-500);
}

.section-desc {
  text-align: center;
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.stat-icon.water {
  background-color: var(--primary-100);
  color: var(--primary-500);
}

.stat-icon.temp {
  background-color: var(--secondary-500);
  opacity: 0.1;
  color: var(--secondary-500);
}

.stat-icon.savings {
  background-color: var(--accent-500);
  opacity: 0.1;
  color: var(--accent-500);
}

.stat-card h3 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.stat-card h4 {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.stat-card p {
  color: var(--gray-600);
}

/* Partners Section */
.partners {
  padding: 4rem 0;
  background: white;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.partner-logo {
  width: 100%;
  max-width: 180px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* filter: grayscale(1); */
  opacity: 0.7;
  transition: all 0.3s;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Backers Section */
.backers {
  padding: 4rem 0;
  background: var(--gray-50);
}

.backers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.backer-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.backer-card:hover {
  transform: translateY(-5px);
}

.backer-card img {
  height: 48px;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.backer-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.backer-card p {
  color: var(--gray-600);
}

/* FAQ Section */
.faq {
  padding: 4rem 0;
  background: white;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--gray-900);
  font-size: 1.125rem;
  font-weight: 500;
}

.faq-question .arrow {
  transition: transform 0.3s;
}

.faq-question.active .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer.active {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--gray-600);
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background: linear-gradient(to bottom, white, var(--primary-50));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid black;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
}

.info-item svg {
  flex-shrink: 0;
  color: var(--primary-500);
}

.info-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.info-item p,
.info-item address {
  color: var(--gray-600);
  font-style: normal;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr) 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 20rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.social-links a:hover {
  color: white;
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-newsletter h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-newsletter p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 0.5rem;
  color: white;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-500);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--gray-500);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    margin: 4px 0;
    transition: 0.3s;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .backers-grid {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .phone-mockup {
    width: 240px;
    height: 480px;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}