/*
Theme Name: Legendo
Theme URI: https://legendo.com
Author: Legendo Team
Author URI: https://legendo.com
Description: Modern AI-powered landing page theme for Legendo
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legendo
Tags: one-column, custom-colors, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================
   CSS RESET & BASE STYLES
   ========================================== */

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

:root {
  /* Color System (HSL) */
  --background: 240, 10%, 3.9%;
  --foreground: 210, 40%, 98%;
  --card: 240, 8%, 8%;
  --card-foreground: 210, 40%, 98%;
  --primary: 221, 83%, 53%;
  --primary-foreground: 210, 40%, 98%;
  --secondary: 240, 5%, 15%;
  --secondary-foreground: 210, 40%, 98%;
  --muted: 240, 5%, 15%;
  --muted-foreground: 215, 20.2%, 65.1%;
  --accent: 262, 83%, 58%;
  --accent-foreground: 210, 40%, 98%;
  --destructive: 0, 84.2%, 60.2%;
  --destructive-foreground: 210, 40%, 98%;
  --border: 240, 5%, 20%;
  --input: 240, 5%, 15%;
  --ring: 221, 83%, 53%;
  
  /* Premium Design Tokens */
  --glow-primary: 221, 83%, 53%;
  --glow-accent: 262, 83%, 58%;
  --glass-bg: 240, 8%, 8%, 0.7;
  --glass-border: 240, 5%, 25%, 0.5;
  
  /* Spacing */
  --radius: 1rem;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

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

.max-w-6xl {
  max-width: 72rem;
  margin: 0 auto;
}

.max-w-7xl {
  max-width: 80rem;
  margin: 0 auto;
}

.max-w-5xl {
  max-width: 64rem;
  margin: 0 auto;
}

/* Glass Effects */
.glass {
  background: hsla(var(--card), 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsla(var(--border), 0.5);
}

.glass-strong {
  background: hsla(var(--card), 0.9);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid hsla(var(--border), 0.7);
}

/* Glow Effects */
.glow-primary {
  box-shadow: 0 0 40px hsla(var(--glow-primary), 0.3),
              0 0 80px hsla(var(--glow-primary), 0.15);
}

.glow-accent {
  box-shadow: 0 0 40px hsla(var(--glow-accent), 0.3),
              0 0 80px hsla(var(--glow-accent), 0.15);
}

.glow-border {
  border: 1px solid hsla(var(--glow-primary), 0.5);
  box-shadow: 0 0 20px hsla(var(--glow-primary), 0.2);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 40px hsla(var(--glow-primary), 0.3);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out;
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 1rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, hsla(var(--primary), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-glow:nth-child(1) {
  top: -20%;
  left: -10%;
}

.hero-glow:nth-child(2) {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, hsla(var(--accent), 0.15) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  animation: slide-up 0.6s ease-out;
}

.hero-logo img {
  height: 5rem;
  width: auto;
}

.hero-headline {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: slide-up 0.6s ease-out 0.1s both;
}

.hero-subheadline {
  font-size: 1.5rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 3rem;
  animation: slide-up 0.6s ease-out 0.2s both;
}

.ai-input-container {
  max-width: 700px;
  margin: 0 auto 2rem;
  animation: slide-up 0.6s ease-out 0.3s both;
}

.ai-input-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: hsla(var(--card), 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsla(var(--glow-primary), 0.3);
  border-radius: 9999px;
  box-shadow: 0 0 40px hsla(var(--glow-primary), 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ai-input-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px hsla(var(--glow-primary), 0.3);
}

.ai-input-text {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}

.ai-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.ai-icon.pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

.ai-icon.glow {
  color: hsl(var(--primary));
  filter: drop-shadow(0 0 8px hsla(var(--glow-primary), 0.6));
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: slide-up 0.6s ease-out 0.4s both;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsla(var(--card), 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsla(var(--border), 0.5);
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.feature-badge:hover {
  transform: translateY(-2px);
  border-color: hsla(var(--primary), 0.5);
}

.hero-cta {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  animation: slide-up 0.6s ease-out 0.5s both;
}

.hero-cta-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  color: hsl(var(--primary-foreground));
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 0 40px hsla(var(--glow-primary), 0.3);
  transition: var(--transition-smooth);
}

.hero-cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px hsla(var(--glow-primary), 0.4);
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */

.testimonials-section {
  position: relative;
  padding: 8rem 1rem;
  overflow: hidden;
}

.testimonials-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: hsla(var(--accent), 0.1);
  border-radius: 50%;
  filter: blur(80px);
}

.testimonials-content {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: slide-up 0.6s ease-out;
}

.testimonials-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.testimonials-header p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
}

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

.testimonial-card {
  padding: 2rem;
  background: hsla(var(--card), 0.9);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid hsla(var(--border), 0.7);
  border-radius: 1.5rem;
  transition: var(--transition-smooth);
  animation: slide-up 0.6s ease-out;
}

.testimonial-card:hover {
  transform: scale(1.05);
  border: 1px solid hsla(var(--glow-primary), 0.5);
  box-shadow: 0 0 20px hsla(var(--glow-primary), 0.2);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-star {
  width: 1.25rem;
  height: 1.25rem;
  fill: hsl(var(--primary));
  color: hsl(var(--primary));
  animation: glow-pulse 2s ease-in-out infinite;
}

.testimonial-quote {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  box-shadow: 0 0 40px hsla(var(--glow-primary), 0.3);
}

.testimonial-author-info p:first-child {
  font-weight: 600;
}

.testimonial-author-info p:last-child {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features-section {
  position: relative;
  padding: 8rem 1rem;
}

.features-container {
  max-width: 80rem;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-bottom: 8rem;
  animation: slide-up 0.6s ease-out;
}

.feature-item.align-left {
  flex-direction: column;
}

.feature-item.align-right {
  flex-direction: column;
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-icon-wrapper {
  position: relative;
}

.feature-icon-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  opacity: 0.2;
  filter: blur(80px);
  border-radius: 50%;
}

.feature-icon-container {
  position: relative;
  padding: 4rem;
  background: hsla(var(--card), 0.9);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid hsla(var(--border), 0.7);
  border-radius: 1.5rem;
  transition: var(--transition-smooth);
}

.feature-icon-container:hover {
  transform: scale(1.05);
}

.feature-icon {
  width: 8rem;
  height: 8rem;
  color: hsl(var(--primary));
  animation: float 6s ease-in-out infinite;
}

.feature-content {
  flex: 1;
  text-align: center;
}

.feature-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-content p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* ==========================================
   FINAL CTA SECTION
   ========================================== */

.final-cta-section {
  position: relative;
  padding: 8rem 1rem;
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, hsla(var(--primary), 0.15) 0%, transparent 70%);
  filter: blur(100px);
}

.final-cta-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
  background: hsla(var(--card), 0.9);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid hsla(var(--glow-primary), 0.5);
  border-radius: 2rem;
  box-shadow: 0 0 60px hsla(var(--glow-primary), 0.3);
  animation: slide-up 0.6s ease-out;
}

.final-cta-content h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.final-cta-button {
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  color: hsl(var(--primary-foreground));
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 0 40px hsla(var(--glow-primary), 0.3);
  transition: var(--transition-smooth);
  margin-bottom: 1rem;
}

.final-cta-link {
  display: block;
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  color: hsl(var(--primary-foreground));
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 0 40px hsla(var(--glow-primary), 0.3);
  transition: var(--transition-smooth);
  margin-bottom: 1rem;
}

.final-cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px hsla(var(--glow-primary), 0.4);
}

.final-cta-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px hsla(var(--glow-primary), 0.4);
}

.final-cta-trust {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ==========================================
   MODAL / POPUP
   ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 28rem;
  width: 90%;
  padding: 2.5rem;
  background: hsla(var(--card), 0.9);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid hsla(var(--glow-primary), 0.5);
  border-radius: 1.5rem;
  box-shadow: 0 0 60px hsla(var(--glow-primary), 0.3);
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-icon {
  display: inline-flex;
  padding: 1rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px hsla(var(--glow-primary), 0.3);
}

.modal-icon svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--primary-foreground));
}

.modal-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.modal-description {
  color: hsl(var(--muted-foreground));
}

.modal-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: hsla(var(--card), 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsla(var(--border), 0.5);
  border-radius: 0.75rem;
  color: hsl(var(--foreground));
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 20px hsla(var(--glow-primary), 0.2);
}

.form-submit {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  color: hsl(var(--primary-foreground));
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 40px hsla(var(--glow-primary), 0.3);
  transition: var(--transition-smooth);
}

.form-submit:hover {
  transform: scale(1.05);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: hsla(var(--muted), 0.5);
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: hsla(var(--muted), 0.8);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (min-width: 1024px) {
  .feature-item.align-left {
    flex-direction: row;
  }
  
  .feature-item.align-right {
    flex-direction: row-reverse;
  }
  
  .feature-content {
    text-align: left;
  }
  
  .feature-item.align-right .feature-content {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.5rem;
  }
  
  .hero-subheadline {
    font-size: 1.125rem;
  }
  
  .testimonials-header h2,
  .final-cta-content h2 {
    font-size: 2rem;
  }
  
  .feature-content h3 {
    font-size: 1.875rem;
  }
  
  .hero-cta {
    position: static;
    text-align: center;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
  }
  
  .feature-badges {
    flex-direction: row;
    align-items: center;
  }
}

























/* ----------------------------
   HERO HEADLINE
----------------------------- */
.hero-headline {
    font-size: 80px;
    line-height: 1.1;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
	color: transparent;}



/* ----------------------------
   FLOATING BADGES ANIMATION
----------------------------- */
.feature-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
	margin-bottom:50px!important
}

.feature-badge {
    background: rgba(255,255,255,0.08);
    padding: 12px 20px;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    animation: floatBadge 4s ease-in-out infinite;
	
}

/* Stagger them individually */
.feature-badge:nth-child(1) {
    animation-delay: 0s;
}

.feature-badge:nth-child(2) {
    animation-delay: 0.7s;
}

.feature-badge:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes floatBadge {
    0%   { transform: translateY(0px); }
    25%  { transform: translateY(-10px); }
    50%  { transform: translateY(0px); }
    75%  { transform: translateY(10px); }
    100% { transform: translateY(0px); }
}






@media (max-width: 768px) {
    .feature-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

	
    /* First 2 badges take half width */
    .feature-badge {
        flex: 0 0 45%;
        justify-content: center;
        text-align: center;
		padding: 06px 10px;
		font-size: 11px;
    }

    /* Third badge goes full width and centered */
    .feature-badge:nth-child(3) {
        flex: 0 0 50%;
        justify-content: center;
    }
}




.modal-close {
    background: transparent !important;
}
