/* --- Global Styles & Variables --- */
:root {
    --primary-purple: #7048E8;
    --accent-orange: #FF922B;
    --dark-bg: #12121f;
    --card-bg: #1c1c32;
    --light-card-bg: #252541;
    --text-light: #e0e0f0;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: #2a2a4c;
    --glow-purple: rgba(112, 72, 232, 0.3);
    --glow-orange: rgba(255, 146, 43, 0.3);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --shadow-soft: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --nav-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-secondary); background-color: var(--dark-bg); color: var(--text-light); line-height: 1.7; overflow-x: hidden; }
html { scroll-behavior: smooth; }
.container { width: 90%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }

h1, h2, h3, h4 { font-family: var(--font-primary); color: var(--text-primary); margin-bottom: 0.8em; font-weight: 600; }
h1 { font-size: clamp(2.0rem, 5vw, 3.2rem); line-height: 1.2; text-shadow: 0 2px 10px var(--glow-purple); }
h2.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); text-align: center; margin-bottom: 2.5em; position: relative; padding-bottom: 15px; }
h2.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 4px; background: linear-gradient(90deg, var(--primary-purple), var(--accent-orange)); border-radius: 2px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); color: var(--primary-purple); }
h4 { font-size: clamp(1.0rem, 2vw, 1.25rem); color: var(--accent-orange); margin-bottom: 0.6em; }
p { margin-bottom: 1em; color: var(--text-secondary); font-size: clamp(0.9rem, 1.8vw, 1rem); line-height: 1.8; }
a { text-decoration: none; color: var(--accent-orange); transition: color 0.3s ease; }
a:hover { color: var(--primary-purple); }

/* --- Buttons --- */
.btn { display: inline-flex; /* For icon alignment */ align-items: center; justify-content: center; padding: 12px 28px; border-radius: 8px; font-family: var(--font-primary); font-weight: 600; text-decoration: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; border: none; box-shadow: 0 4px 15px var(--shadow-soft); font-size: clamp(0.9rem, 1.5vw, 1rem); }
.btn-primary { background-color: var(--primary-purple); color: var(--text-primary); }
.btn-primary:hover { background-color: var(--accent-orange); transform: translateY(-4px) scale(1.03); box-shadow: 0 8px 25px var(--glow-orange); }
.btn-nav-cta { background-color: var(--accent-orange); color: var(--text-primary); padding: 10px 20px; border-radius: 6px;}
.btn-nav-cta:hover { background-color: var(--primary-purple); transform: scale(1.05); box-shadow: 0 4px 15px var(--glow-purple); }
.btn-icon { margin-left: 8px; width: 1em; height: 1em; vertical-align: middle; }
.chrome-icon { /* Specific styles for the Chrome icon if needed */ }


/* --- Navigation Bar --- */
.navbar { background-color: rgba(18, 18, 31, 0.8); backdrop-filter: blur(12px); padding: 0; /* Padding handled by container height */ position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.2); transition: background-color 0.3s ease; height: var(--nav-height); }
.navbar.scrolled { background-color: rgba(18, 18, 31, 0.98); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-family: var(--font-primary); font-size: 1.6rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; }
.logo-img { width: 32px; height: 32px; margin-right: 10px; }
.nav-links { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: var(--text-light); font-weight: 500; font-family: var(--font-primary); font-size: 0.9rem; padding-bottom: 5px; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-orange); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-links a:hover, .nav-links a.active-link { color: var(--accent-orange); }
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1005; padding: 10px; }
.hamburger { display: block; width: 25px; height: 3px; background-color: var(--text-primary); border-radius: 3px; position: relative; transition: all 0.3s ease-in-out; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 25px; height: 3px; background-color: var(--text-primary); border-radius: 3px; transition: all 0.3s ease-in-out; }
.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }
.nav-open .hamburger { background-color: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg) translateY(0) translateX(0); transform-origin: center; top: 50%; margin-top: -1.5px; }
.nav-open .hamburger::after { transform: rotate(-45deg) translateY(0) translateX(0); transform-origin: center; top: 50%; margin-top: -1.5px; }


/* --- Hero Section --- */
.hero-section { background: var(--dark-bg) url('images/hero-pattern.svg') repeat; background-blend-mode: overlay; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: calc(var(--nav-height) + 60px); padding-bottom: 60px; min-height: 90vh; position: relative; overflow: hidden; }
.hero-content { max-width: 750px; margin: 0 auto 30px auto; position: relative; z-index: 1; }
.hero-content .tagline { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--text-light); margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto; font-weight: 300; }
.btn-hero { font-size: clamp(0.95rem, 1.8vw, 1.1rem); padding: 14px 35px; }
.sub-cta { font-size: 0.85rem; color: var(--text-secondary); margin-top: 1.5rem; }
.hero-image { margin-top: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.hero-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.4); border: 1px solid var(--border-color); }

/* --- Section Styling --- */
.features-section, .how-it-works-section, .cta-section, .why-marktube-section, .testimonials-section, .faq-section { padding: 70px 0; }
.how-it-works-section, .testimonials-section { background-color: var(--card-bg); }

/* --- Features Section --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.feature-card { background-color: var(--card-bg); padding: 30px 25px; border-radius: 12px; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 8px 25px var(--shadow-soft); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 12px 35px var(--glow-purple); border-color: var(--primary-purple); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent-orange); line-height: 1; }
.feature-card h3 { margin-bottom: 0.6em; font-size: clamp(1.1rem, 2vw, 1.3rem); flex-grow: 0; }
.feature-card p { flex-grow: 1; font-size: 0.9rem; }


/* --- How It Works Section --- */
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.step-card { background-color: var(--dark-bg); padding: 30px 25px; border-radius: 12px; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 8px 20px var(--shadow-soft); }
.step-number-container { margin-bottom: 1rem; }
.step-number { font-size: 2rem; font-weight: 700; color: var(--text-primary); line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 10px; background: linear-gradient(135deg, var(--primary-purple), var(--accent-orange)); border-radius: 50%; width: 60px; height: 60px; margin: 0 auto 1rem auto; box-shadow: 0 4px 15px var(--glow-purple); }
.step-card h3 { color: var(--accent-orange); font-size: clamp(1.1rem, 2vw, 1.3rem); }

/* --- Why MarkTube Section --- */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.benefit-item { background-color: var(--card-bg); padding: 25px; border-radius: 10px; text-align: left; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.benefit-item:hover { transform: scale(1.03); box-shadow: 0 8px 20px var(--glow-orange); }
.benefit-icon { font-size: 2.2rem; margin-bottom: 0.8rem; color: var(--primary-purple); display: block; text-align: center; }
.benefit-item h4 { color: var(--text-primary); font-size: clamp(1.1rem, 1.8vw, 1.25rem); text-align: center; margin-bottom: 1rem; }
.benefit-item p { font-size: clamp(0.8rem, 1.3vw, 0.9rem); }

/* --- Testimonials Section --- */
.testimonial-slider { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.testimonial-card { background-color: var(--dark-bg); padding: 25px; border-radius: 10px; border: 1px solid var(--border-color); box-shadow: 0 6px 18px var(--shadow-soft); display: flex; flex-direction: column; justify-content: space-between; }
.quote { font-style: italic; margin-bottom: 1.5rem; color: var(--text-light); font-size: clamp(0.9rem, 1.6vw, 1rem); flex-grow: 1; position: relative; padding-left: 30px;}
.quote::before { content: '“'; font-size: 3rem; color: var(--primary-purple); position: absolute; left: 0px; top: -10px; opacity: 0.6; line-height: 1; }
.author-info { text-align: right; margin-top: 1rem;}
.author-name { color: var(--accent-orange); font-weight: 600; font-size: clamp(0.8rem, 1.4vw, 0.9rem); }

/* --- FAQ Section --- */
.faq-accordion { max-width: 750px; margin: 0 auto; }
.faq-item { background-color: var(--card-bg); margin-bottom: 10px; border-radius: 8px; border: 1px solid var(--border-color); overflow: hidden; box-shadow: 0 4px 10px var(--shadow-soft); }
.faq-question { background-color: transparent; color: var(--text-primary); width: 100%; border: none; text-align: left; padding: 15px 20px; font-family: var(--font-primary); font-size: clamp(0.95rem, 1.7vw, 1.1rem); font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s ease; }
.faq-question:hover { background-color: var(--light-card-bg); }
.faq-icon { font-size: 1.2rem; color: var(--primary-purple); transition: transform 0.3s ease-in-out; font-weight: bold; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--accent-orange); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease-in-out, padding 0.35s ease-in-out; background-color: var(--dark-bg); }
.faq-answer p { padding: 0 20px 0px 20px; margin-bottom: 0; color: var(--text-secondary); font-size: clamp(0.8rem, 1.4vw, 0.9rem); }
.faq-item.active .faq-answer { max-height: 300px; padding-top: 15px; padding-bottom: 20px; }

/* --- CTA Section --- */
.cta-section { background: linear-gradient(135deg, var(--primary-purple), var(--accent-orange)); text-align: center; color: var(--text-primary); padding: 70px 0; }
.cta-section h2 { color: var(--text-primary); text-shadow: 0 2px 5px rgba(0,0,0,0.3); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-section p { color: rgba(255,255,255,0.95); font-size: clamp(0.95rem, 1.8vw, 1.1rem); margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto;}
.btn-cta-main { background-color: var(--text-primary); color: var(--primary-purple); font-size: clamp(0.95rem, 1.7vw, 1.1rem); padding: 14px 35px; }
.btn-cta-main:hover { background-color: var(--dark-bg); color: var(--text-primary); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); }

/* --- Footer Section --- */
.footer-section { background-color: #0d0d17; color: var(--text-secondary); padding: 35px 0; text-align: center; font-size: 0.8rem; border-top: 1px solid var(--border-color);}
.footer-section p { margin-bottom: 0.6rem; }
.footer-section a { color: var(--accent-orange); }
.footer-section a:hover { text-decoration: underline; color: var(--primary-purple); }

/* --- Scroll Animations --- */
.animate-on-scroll { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- Responsive Design --- */

/* Tablets and Small Desktops */
@media (max-width: 992px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; /* Start off-screen */
        width: clamp(260px, 60vw, 300px); height: 100vh;
        background-color: rgba(28, 28, 50, 0.98); /* Slightly transparent card-bg */
        backdrop-filter: blur(10px);
        flex-direction: column; align-items: flex-start;
        padding: calc(var(--nav-height) + 20px) 30px 30px 30px; /* Padding below navbar */
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Smoother elastic transition */
        overflow-y: auto; /* Allow scrolling if many links */
    }
    .nav-links.nav-active { right: 0; }
    .nav-links li { margin: 10px 0; width: 100%; }
    .nav-links a { display: block; padding: 12px 0; width: 100%; font-size: 1rem; }
    .btn-nav-cta { margin-top: 15px; width: auto; display: inline-block; }
    .mobile-nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; z-index: 1005; position: fixed; /* Make it fixed relative to viewport */ top: calc((var(--nav-height) - 40px) / 2); right: 20px; }
    .hero-section { padding-top: calc(var(--nav-height) + 30px); }
}

/* Mobile Landscape and Large Mobile Portrait */
@media (max-width: 768px) {
    .container { width: 90%; padding: 0 10px; }
    h1 { font-size: clamp(1.8rem, 6.5vw, 2.2rem); }
    h2.section-title { font-size: clamp(1.5rem, 5.5vw, 1.9rem); margin-bottom: 2em;}
    .hero-section { min-height: auto; padding-bottom: 40px; padding-top: calc(var(--nav-height) + 20px); }
    .hero-content .tagline { font-size: 0.9rem; margin-bottom: 2rem; }
    .btn-hero { padding: 12px 25px; font-size: 0.9rem; }
    .features-grid, .steps-container, .benefits-grid, .testimonial-slider { grid-template-columns: 1fr; gap: 20px; }
    .feature-card, .step-card, .benefit-item { padding: 20px 15px; }
    .testimonial-card { min-width: 100%; margin-bottom: 20px; padding: 20px; }
    .quote { font-size: 0.95rem; }
    .faq-question { padding: 12px 15px; font-size: 0.95rem; }
    .faq-answer p { font-size: 0.85rem; }
    .faq-item.active .faq-answer { padding-top: 10px; padding-bottom: 15px; }
    .cta-section { padding: 50px 0; }
    .cta-section p { font-size: 0.95rem; }
    .footer-section { padding: 30px 0;}
    .footer-section p { font-size: 0.8rem;}
}

/* Small Mobile Portrait */
@media (max-width: 480px) {
    .container { width: 95%; padding: 0 10px; }
    .logo {font-size: 1.4rem;}
    .logo-img { width: 28px; height: 28px; margin-right: 8px;}
    .btn { padding: 10px 18px; font-size: 0.8rem; }
    .btn-hero { padding: 10px 20px; }
    .btn-nav-cta { padding: 8px 15px; }
    .feature-icon {font-size: 2rem;}
    .step-number {font-size: 1.8rem; width: 50px; height: 50px;}
    .benefit-icon {font-size: 1.8rem;}
    .nav-links { width: clamp(240px, 75vw, 280px); } /* Adjust mobile nav width */
}