/* assets/css/landing-style.css - Complete Fixed Version */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Root Variables --- */
:root {
    --primary-color: #4a6cf7;
    --primary-hover: #3a5ce0;
    --text-color: #f0f2f5;
    --text-muted: #a7abc3;
    --main-bg: #101221;
    --glass-bg: rgba(33, 37, 41, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border-radius: 12px;
    --backdrop-blur: 12px;
    --background-glow-color: rgba(74, 108, 247, 0.2);
    --gradient-1: linear-gradient(135deg, #4a6cf7 0%, #6a11cb 100%);
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--main-bg);
    background-image:
        radial-gradient(circle at 5% 15%, var(--background-glow-color) 0%, transparent 40%),
        radial-gradient(circle at 95% 85%, rgba(220, 53, 69, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(16, 18, 33, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-login {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-signup {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.4);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.6);
}

/* --- Hero Section --- */
.hero {
    padding: 180px 0 100px 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-cta {
    background: var(--gradient-1);
    color: white;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.5);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(74, 108, 247, 0.7);
}

/* --- Cards (Common Styles) --- */
.stat-card,
.feature-card,
.testimonial-card,
.pricing-card {
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover,
.feature-card:hover,
.testimonial-card:hover,
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
}

/* --- How It Works Section --- */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step-card {
    padding: 30px;
    text-align: center;
}

.step-card .step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
}

.step-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-muted);
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-muted);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(74, 108, 247, 0.4);
}

.pricing-card h3 {
    font-size: 1.6rem;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 15px 0;
    color: var(--primary-color);
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card ul {
    list-style: none;
    margin: 25px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-card ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.pricing-card ul li i {
    color: var(--primary-color);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

.pricing-card:not(.popular) .btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.pricing-card:not(.popular) .btn:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Call to Action (CTA) Section --- */
.cta-content {
    text-align: center;
    background: var(--gradient-1);
    padding: 60px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.4);
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    color: white;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-item.active .faq-question,
.faq-question:hover {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 20px 0;
    margin-top: 60px;
    border-top: 1px solid var(--glass-border);
    background: rgba(16, 18, 33, 0.4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-column p,
.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-column i {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--primary-color);
}