/* Base styles */
:root {
  --flash-purple: #642494;
  --flash-light-purple: #C4B1E8;
  --flash-yellow: #FFCE31;
  --flash-background: #C4B1E8;
}

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

body {
  font-family: 'Public Sans', sans-serif;
  background-color: var(--flash-background);
  color: var(--flash-purple);
  line-height: 1.6;
  font-size: 18px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header styles */
.header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background-color: var(--flash-background);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  height: 100%;
}

.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 60px;
  width: auto;
  transform: scaleX(1.3);
  transform-origin: left;
  display: block;
  margin: auto 0;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

/* Hamburger menu styles */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger-icon {
  width: 30px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--flash-purple);
  border-radius: 3px;
  transition: all 0.3s ease;
}



.nav-link {
  color: var(--flash-purple);
  text-decoration: none;
  transition: opacity 0.2s;
  font-size: 1.25rem;
}

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

/* Hero section */
.hero {
  padding: 0 0 6rem 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.house-icon {
  color: var(--flash-purple);
}

.phone-icon {
  color: var(--flash-purple);
}

/* Phone animation */
.phone-outline {
  fill: var(--flash-purple);
  position: relative;
  z-index: 2;
}

.phone-button {
  fill: var(--flash-purple);
  position: relative;
  z-index: 3;
}

.phone-screen {
  position: relative;
  z-index: 1;
  animation-name: phoneAnimation;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-delay: 1.5s;
}

@keyframes phoneAnimation {
  0% { fill: transparent; }
  10% { fill: transparent; }
  20% { fill: var(--flash-yellow); }
  80% { fill: var(--flash-yellow); }
  90% { fill: transparent; }
  100% { fill: transparent; }
}

.dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  fill: white;
}

.dot-circle {
  fill: white;
  transition: fill 0.3s ease;
}

/* Shared animation timing */
@keyframes sequenceAnimation {
  0% { fill: white; }
  10% { fill: white; }
  20% { fill: var(--flash-yellow); }
  80% { fill: var(--flash-yellow); }
  90% { fill: white; }
  100% { fill: white; }
}

/* Individual dot animations with different start times */
.dot-1 .dot-circle {
  animation-name: sequenceAnimation;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-delay: 0s;
}

.dot-2 .dot-circle {
  animation-name: sequenceAnimation;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-delay: 0.5s;
}

.dot-3 .dot-circle {
  animation-name: sequenceAnimation;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: bold;
  margin-top: 2rem;
  line-height: 1.2;
}

/* Content section */
.content {
  padding: 0 0 6rem 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-with-tagline {
  margin-bottom: 5rem;
}

.hero-logo-img {
  height: auto;
  width: 100%;
  max-width: 450px;
  margin-bottom: 1rem;
  transform: scaleX(1.3);
  transform-origin: center;
}

.logo-f, .logo-ash {
  color: var(--flash-purple);
}

/* Logo styles removed as we're now using an image */

.tagline {
  font-size: clamp(1rem, 3vw, 2rem);
  color: var(--flash-purple);
  margin-top: 0.5rem;
}

.saving-text {
  margin: 0rem 0;
}

.saving-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.3;
}

.lightning {
  color: var(--flash-yellow);
}

.cta {
  margin: 5rem 0 3rem 0;
}

.btn {
  background-color: var(--flash-yellow);
  color: var(--flash-purple);
  border: none;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  font-size: clamp(1rem, 2vw, 2rem);
}

.btn-signup {
  background-color: var(--flash-yellow);
  color: var(--flash-purple);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  font-size: clamp(1rem, 2vw, 1rem);
}

.btn:hover {
  opacity: 0.9;
}

/* Footer styles */
.footer {
  padding: 6rem 0;
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsletter {
  margin-bottom: 4rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Add padding for the sticky header */
}

.newsletter p {
  margin-bottom: 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .newsletter-form {
    justify-content: center;
  }
  
  .newsletter-input {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
  }
  
  .btn-signup {
    flex-shrink: 0;
  }
}

.newsletter-input {
  padding: 0.5rem;
  border: 1px solid var(--flash-purple);
  border-radius: 2rem;
  width: 100%;
  max-width: 300px;
}

.info-text {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  margin: 4rem 0;
  line-height: 1.3;
}

.footer-info {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
}

.power {
  color: var(--flash-yellow);
}

/* Responsive styles */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo-text {
    font-size: 4rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .newsletter-form {
    flex-direction: row;
    justify-content: center;
  }
  
  .newsletter-input {
    max-width: 250px;
  }
}

.no-click {
  pointer-events: none;
  cursor: not-allowed;
}

/* Newsletter form styles */
.hidden {
  display: none;
}

.error-message {
  color: #ff3860;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-align: center;
  width: 100%;
  position: absolute;
  bottom: -1.5rem;
  left: 0;
}

input:invalid {
  border: 1px solid #ff3860;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .logo {
    display: none;
  }
  
  .hamburger-menu {
    display: block;
    z-index: 1000;
    position: relative;
    margin-left: auto;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--flash-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 70px; /* Add space for the sticky header */
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-link {
    margin: 1rem 0;
    font-size: 1.5rem;
  }
  
  /* Hamburger animation when menu is open */
  .hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Additional mobile styles */
  .header-content {
    flex-direction: row;
    justify-content: flex-end;
    padding: 1rem 0;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .hero-logo-img {
    max-width: 250px;
    transform: scaleX(1.2);
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  
  .hero-tagline {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }
  
  .icons-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .house-icon svg, .phone-icon svg {
    width: 100px;
    height: 100px;
  }
  
  .dot svg {
    width: 25px;
    height: 25px;
  }
  
  .dots {
    margin: 0.5rem 0;
    flex-direction: column;
    height: auto;
    gap: 0.5rem;
  }
  
  .cta {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .content {
    padding: 2rem 0;
  }
  
  .footer {
    padding: 2rem 0;
  }
  
  .newsletter-form {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    padding: 0 1.5rem;
  }
  
  .newsletter-input {
    flex: 1;
    min-width: 150px;
    width: auto;
    margin-right: 0.75rem;
    margin-bottom: 0;
    font-size: 12px;
    padding: 0.75rem 1.25rem;
  }
  
  .btn-signup {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    font-size: 14px;
    width: auto;
  }
  
  section {
    padding: 1.5rem 0;
  }
}
