/* Base Styles */
:root {
  /* Base theme variables */
  --background: hsl(184 33% 97%);
  --foreground: hsl(0 0% 10%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(0 0% 10%);
  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(0 0% 20%);
  
  /* Brand colors */
  --primary: hsl(185 93% 45%); /* #0dceda is the primary cyan/teal color */
  --primary-rgb: 13 206 218; /* RGB values for the primary color */
  --primary-foreground: hsl(0 0% 100%);
  
  /* Icon color using dark mode background color */
  --icon-dark: hsl(200 50% 6%);
  
  /* Secondary colors */
  --secondary: hsl(184 30% 96%);
  --secondary-foreground: hsl(0 0% 20%);
  --muted: hsl(184 20% 96%);
  --muted-foreground: hsl(0 0% 35%);
  --accent: hsl(184 80% 96%);
  --accent-foreground: hsl(0 0% 20%);
  --destructive: hsl(0 84% 60%);
  --destructive-foreground: hsl(0 0% 100%);
  --border: hsl(184 15% 90%);
  --input: hsl(184 15% 90%);
  --ring: hsl(185 93% 45%); /* Same as primary */
  
  /* Brand gradients */
  --gradient-primary: linear-gradient(135deg, hsl(185 93% 45%), hsl(190 90% 50%));
  --gradient-primary-hover: linear-gradient(135deg, hsl(185 93% 40%), hsl(190 90% 45%));
  --gradient-accent: linear-gradient(135deg, hsl(185 93% 45%) 0%, hsl(175 85% 45%) 100%);
  --gradient-background: linear-gradient(135deg, hsl(184 33% 97%), hsl(185 30% 95%));
  
  --overlay: rgba(12, 12, 14, 0.8);
  --radius: 0.5rem;
}

/* Dark mode with modern media query */
@media (prefers-color-scheme: dark) {
  :root {
    /* Darker, richer background for dark mode */
    --background: hsl(200 50% 6%);
    --foreground: hsl(180 15% 98%);
    
    /* Card and component backgrounds with more contrast */
    --card: hsl(200 40% 10%);
    --card-foreground: hsl(180 15% 98%);
    --popover: hsl(200 40% 10%);
    --popover-foreground: hsl(180 15% 98%);
    
    /* Brighter primary color for more impact in dark mode */
    --primary: hsl(185 93% 50%);
    --primary-rgb: 13 218 230; /* RGB values for the primary color - slightly brighter for dark mode */
    --primary-foreground: hsl(0 0% 100%);
    
    /* Enhanced dark mode gradients with more vibrant effects */
    --gradient-primary: linear-gradient(135deg, hsl(185 93% 50%), hsl(190 90% 55%));
    --gradient-primary-hover: linear-gradient(135deg, hsl(185 93% 60%), hsl(190 90% 65%));
    --gradient-accent: linear-gradient(135deg, hsl(185 93% 50%) 0%, hsl(175 85% 55%) 100%);
    --gradient-background: linear-gradient(135deg, hsl(200 50% 6%), hsl(200 45% 8%));
    
    /* More vibrant and distinct supporting colors */
    --secondary: hsl(188 35% 20%);
    --secondary-foreground: hsl(180 15% 98%);
    --muted: hsl(188 30% 16%);
    --muted-foreground: hsl(188 15% 80%);
    --accent: hsl(185 70% 30%);
    --accent-foreground: hsl(180 15% 98%);
    --destructive: hsl(0 90% 60%);
    --destructive-foreground: hsl(0 0% 100%);
    
    /* Enhanced borders and UI elements */
    --border: hsl(185 30% 25%);
    --input: hsl(185 30% 25%);
    --ring: hsl(185 93% 55%);
    
    --overlay: rgba(0, 0, 0, 0.8);
  }
  
  .light-mode-logo {
    display: none !important;
  }
  
  .dark-mode-logo {
    display: block !important;
  }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

.dark-mode-logo {
  display: none;
}

/* Text Gradient */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
}

.btn-primary:hover {
  background: var(--gradient-primary-hover);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
  text-decoration: none;
}

.btn-light {
  background-color: var(--background);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

/* Header Styles */
header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 2.5rem;
}

.logo img {
  height: 100%;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--foreground);
  text-decoration: none;
}

.auth-buttons {
  display: flex;
  gap: 0.75rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 32rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-graphic {
  position: relative;
  height: 20rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18rem;
  height: 18rem;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 1.5rem;
  transform: rotate(6deg);
}

.hero-graphic:after {
  content: "";
  position: absolute;
  top: -1rem;
  right: 5rem;
  width: 16rem;
  height: 16rem;
  background: var(--accent);
  opacity: 0.15;
  border-radius: 1.5rem;
  transform: rotate(-3deg);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: var(--background);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 0;
  background-color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}

.step-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-weight: 700;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--background);
}

.cta-section p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  margin: 0 auto 2rem;
}

/* Footer */
footer {
  background-color: var(--background);
  color: var(--foreground);
  padding: 4rem 0 1rem;
}

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

.footer-logo {
  max-width: 18rem;
}

.footer-logo img {
  height: 2.5rem;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

.link-group h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.link-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-group a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.link-group a:hover {
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Modal Overlay Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--overlay);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background-color: var(--card);
  max-width: 48rem;
  width: 95%;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 3.5rem 3rem;
  text-align: center;
}

.modal-logo {
  width: 20rem;
  height: auto;
  margin: 0 auto 2rem;
}

.coming-soon-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

.modal-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.modal-content h2 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.description {
  color: var(--muted-foreground);
  margin-bottom: 3rem;
}

.modal-content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  width: 100%;
}

.form-row input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--card);
  color: var(--foreground);
  font-size: 0.95rem;
}

.form-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.form-row button {
  width: 100%;
  padding: 0.95rem;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.form-row button:hover {
  background: var(--gradient-primary-hover);
}

.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.form-success.active {
  display: flex;
}

.form-error {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #e11d48;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
  background-color: rgba(225, 29, 72, 0.1);
}

.form-error.active {
  display: flex;
}

.form-error svg {
  flex-shrink: 0;
}

/* Button loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading span {
  visibility: hidden;
}

.btn-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: button-loading-spinner 0.6s linear infinite;
}

@keyframes button-loading-spinner {
  to {
    transform: rotate(360deg);
  }
}

.terms-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.terms-text a {
  color: var(--primary);
  text-decoration: none;
}

.terms-text a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-graphic {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  nav {
    display: none;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .modal-content {
    padding: 2.5rem 2rem;
  }
  
  .modal-logo {
    width: 16rem;
  }
  
  .coming-soon-tag {
    font-size: 2rem;
  }
  
  .modal-content h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .auth-buttons {
    display: none;
  }
  
  .modal-content {
    padding: 2rem 1.5rem;
  }
  
  .modal-logo {
    width: 12rem;
    margin-bottom: 1.5rem;
  }
  
  .coming-soon-tag {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .modal-content h2 {
    font-size: 1.875rem;
  }
}