/* css/landing.css */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #ec4899;
    --background: #0b1120;
    --surface: rgba(30, 41, 59, 0.4);
    --surface-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-light: rgba(255, 255, 255, 0.2);
    --text: #ffffff;
    --text-muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #4F46E5 0%, #ec4899 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Advanced Animated Background Mesh */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 40%);
    filter: blur(40px);
    z-index: -1;
    animation: drift 20s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: scale(1) translate(0px, 0px); }
    100% { transform: scale(1.1) translate(20px, -20px); }
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 3%; /* Increased padding for thicker header */
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo-text .dot {
    color: var(--secondary);
}

.header-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--text);
}

.auth-btn-small {
    background: var(--accent-gradient);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.auth-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

/* Main Layout */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3%;
}

/* Hero Section Layout */
.hero-layout {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 2rem 0;
    margin-top: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    animation: slideUpFade 0.8s ease-out;
}

/* Image Showcase */
.hero-visual {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 1.2s ease-out;
}

.glow-blob {
    position: absolute;
    width: 70%;
    height: 70%;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

.image-glass-wrapper {
    position: relative;
    z-index: 1;
    padding: 1.2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.7), 0 0 50px rgba(79, 70, 229, 0.4);
    transform: perspective(1000px) rotateY(-6deg) rotateX(3deg);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) perspective(1000px) rotateY(-6deg) rotateX(3deg); }
    50% { transform: translateY(-15px) perspective(1000px) rotateY(-4deg) rotateX(2deg); box-shadow: -15px 25px 50px rgba(0, 0, 0, 0.6), 0 0 60px rgba(79, 70, 229, 0.5); }
    100% { transform: translateY(0px) perspective(1000px) rotateY(-6deg) rotateX(3deg); }
}

.image-glass-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
    animation-play-state: paused;
}

.image-glass-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.badge-new {
    background: rgba(79, 70, 229, 0.15);
    color: #818cf8;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(79, 70, 229, 0.3);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 650px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.cta-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 1.1rem 2.2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.6);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 1.1rem 2.2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s, border-color 0.2s;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-light);
}

/* Sections */
section.glass-section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    letter-spacing: -1px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-border-light);
    background: rgba(255, 255, 255, 0.05);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #818cf8;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.4);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items:baseline;
}

.plan-price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
}

.plan-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: #e2e8f0;
}

.plan-features li i {
    color: #10b981;
    margin-top: 4px;
}

.pricing-btn {
    width: 100%;
    text-align: center;
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-premium {
    background: var(--accent-gradient);
    color: white;
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    flex-grow: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4338CA 0%, #a855f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-info .name {
    font-weight: 700;
    display: block;
}

.reviewer-info .role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer Focus */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    margin-top: 5rem;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.social-links a:hover {
    color: white;
}

/* Modals Reused Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-light);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

#closeModalBtn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

.modal-body {
    color: #e2e8f0;
    line-height: 1.6;
}

/* Animations */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
        padding: 4rem 0;
        gap: 2rem;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .image-glass-wrapper:hover {
        transform: none;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}
