/* ========================================
   MANUS AI - PREMIUM ENGLISH LANDING PAGE
   Crown Jewel Design with Advanced Interactions
   ======================================== */

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

:root {
    --primary-color: #c41e3a;
    --primary-dark: #a01830;
    --accent-color: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-light: #ffffff;
    --bg-dark: #0a0a0a;
    --card-light: #f9f9f9;
    --card-dark: #1a1a1a;
    --border-light: #e0e0e0;
    --border-dark: #333333;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
    backdrop-filter: blur(10px);
}

body.dark-mode .header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

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

.hero {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.animated-shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    bottom: 10%;
    left: 50%;
    animation-delay: 4s;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
    animation: slideInDown 0.8s ease-out;
}

body.dark-mode .hero-title {
    color: #ff6b7a;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #666;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

body.dark-mode .hero-subtitle {
    color: #aaa;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

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

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

/* ========================================
   CONTAINER & SECTIONS
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

body.dark-mode .section-title {
    color: #ff6b7a;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

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

.features {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05) 0%, rgba(196, 30, 58, 0.02) 100%);
}

body.dark-mode .features {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-light);
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

body.dark-mode .feature-card {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 0.4s;
}

.feature-card:nth-child(4) .feature-icon {
    animation-delay: 0.6s;
}

.feature-card:nth-child(5) .feature-icon {
    animation-delay: 0.8s;
}

.feature-card:nth-child(6) .feature-icon {
    animation-delay: 1s;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

body.dark-mode .feature-card h3 {
    color: #ff6b7a;
}

.feature-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

body.dark-mode .feature-card p {
    color: #aaa;
}

.feature-details {
    font-size: 0.9rem;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

body.dark-mode .feature-details {
    border-top-color: var(--border-dark);
    color: #777;
}

.feature-card:hover .feature-details {
    max-height: 100px;
}

/* ========================================
   ARTICLE SECTION
   ======================================== */

.article {
    padding: 80px 20px;
    background: var(--card-light);
}

body.dark-mode .article {
    background: var(--card-dark);
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
}

.article-content h3 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

body.dark-mode .article-content h3 {
    color: #ff6b7a;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
    color: #333;
}

body.dark-mode .article-content p {
    color: #ccc;
}

.article-list {
    margin-left: 30px;
    margin-bottom: 20px;
    list-style: none;
}

.article-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #666;
}

body.dark-mode .article-list li {
    color: #aaa;
}

.article-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq {
    padding: 80px 20px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    background: white;
    transition: var(--transition);
}

body.dark-mode .faq-item {
    border-color: var(--border-dark);
    background: #0d0d0d;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.1);
}

.faq-question {
    padding: 20px;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #8b1428 100%);
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #666;
}

body.dark-mode .faq-answer {
    color: #aaa;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    line-height: 1.8;
    margin: 0;
}

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

.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #000;
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #ff6b7a;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #ccc;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #ff6b7a;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #ff6b7a;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: white;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav {
        gap: 15px;
    }

    .nav-link {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .article-content h3 {
        font-size: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .animated-shape {
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
}

/* ========================================
   SMOOTH SCROLLING & UTILITIES
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* Scroll to top animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-card {
    animation: fadeInScale 0.6s ease-out;
}

.faq-item {
    animation: fadeInScale 0.6s ease-out;
}
