/* --- Base & Variables ---- */
:root {
    --primary-color: #4e2ca0; /* Deep purple */
    --primary-color-rgb: 78, 44, 160;
    --secondary-color: #4d9ae8; /* Vibrant blue */
    --accent-color: #23d5ab; /* Teal accent */
    --text-color: #333;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-dark: #1a1a2e; /* Dark background for contrast */
    --border-color: #e0e0e0;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 6px 20px rgba(0, 0, 0, 0.2);
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #03dac5); /* Teal accent */

    --font-primary: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative; /* Needed for background gradient */
}

/* --- Animated Background Gradient --- */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything */
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.1; /* Subtle effect */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Utility & Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 0.8em;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; color: var(--secondary-color); }
h4 { font-size: 1.1rem; }

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.cta-button-nav {
    background: var(--gradient-accent);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-light);
}

.cta-button-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-dark);
    color: var(--text-light); /* Keep text light on hover */
}

.primary-button, .secondary-button {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
}

.primary-button {
    background: var(--gradient-main);
    color: var(--text-light);
    box-shadow: var(--shadow-light);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-dark);
    color: var(--text-light);
}

.secondary-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
}

/* --- Header --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px); /* Frosted glass effect */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-color);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative; /* For potential pseudo-elements */
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text {
    text-align: left;
    max-width: 600px;
}

.hero-text h1 {
    margin-bottom: 0.4em;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-visual {
    max-width: 500px; /* Adjust size as needed */
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-image {
    opacity: 0.95;
    filter: drop-shadow(0 10px 20px rgba(78, 44, 160, 0.2)); /* Shadow using primary color */
}

/* --- How It Works Section --- */
.how-it-works-section {
    text-align: center;
    padding: 100px 0 80px;
    background-color: #f8f9fe;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
}

.step-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    flex: 1;
    max-width: 300px;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.step-card h3 {
    margin-bottom: 15px;
}

/* --- Features Section --- */
.features-section {
    background-color: var(--bg-light);
    text-align: center;
    padding: 80px 0;
}

.features-section h2 {
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: #f8f9fe;
    padding: 80px 0;
    text-align: center;
}

.testimonials-section h2 {
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.testimonial-avatar {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #777;
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 80px 0;
    text-align: center;
}

.pricing-section h2 {
    margin-bottom: 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1100px;
}

.pricing-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.pricing-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-accent);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-header {
    padding: 30px 20px;
    background: rgba(var(--primary-color-rgb), 0.05);
}

.pricing-price {
    margin-top: 15px;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: #777;
    margin-left: 5px;
}

.pricing-features {
    padding: 30px 20px;
}

.pricing-features ul {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #555;
}

.pricing-features li i {
    color: var(--accent-color);
    margin-right: 10px;
}

.pricing-action {
    padding: 0 20px 30px;
}

.pricing-button {
    display: inline-block;
    background: var(--gradient-main);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
    box-shadow: var(--shadow-light);
}

.pricing-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
    color: white;
}

/* --- Demo Section --- */
.demo-section {
    padding: 80px 0;
    background-color: #f8f9fe;
    text-align: center;
}

.demo-description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #555;
}

.demo-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.demo-card-header {
    background: var(--gradient-main);
    color: white;
    padding: 20px;
}

.demo-card-header h3 {
    color: white;
    margin: 0;
}

.demo-content {
    padding: 30px;
}

.demo-input {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: var(--font-primary);
    resize: none;
}

.demo-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(77, 154, 232, 0.2);
}

.demo-button {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-light);
}

.demo-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
}

.demo-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 15px;
}

/* --- About Section --- */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fe;
    border-radius: 10px;
    flex: 1;
    margin: 0 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-main);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.cta-button.primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 2;
    min-width: 240px;
}

.footer-brand p {
    margin: 15px 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links-container {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links {
    flex: 1;
    min-width: 160px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: white;
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
        order: 2;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        order: 1;
        max-width: 350px;
        margin-bottom: 30px;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-card {
        max-width: 400px;
        width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .about-text {
        order: 2;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 60px 0; }
    
    .main-nav {
        display: none; /* Hide desktop nav */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav li:last-child { 
        border-bottom: none; 
    }
    
    .main-nav a {
        display: block;
        padding: 15px;
    }
    
    .cta-button-nav { 
        margin: 15px 0; 
    }
    
    .mobile-nav-toggle {
        display: block; /* Show hamburger */
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        margin: 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .subtitle { font-size: 1rem; }
    .hero { padding: 60px 0; min-height: auto; }
    .hero-visual { max-width: 280px; }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}
