/**
 * tema.css
 *
 * Stylesheet for the Web3Cart LANDING PAGE (index.php).
 * (v1.2 - Primary color updated, HowItWorks icon selector fixed)
 */

/* ================== Global & Variables ================== */
:root {
    /* === COLOR UPDATED (per user request) === */
    --primary-color: #1f72bd; /* Updated from #007bff */
    --primary-hover: #175a9a; /* Darker shade of new primary */
    
    --text-dark: #212529;
    --text-light: #6c757d;
    --text-muted: #86909c;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Colors derived from the hero responsive banner background */
    --gradient-start: #e0f2fe;
    --gradient-middle: #f0f4ff;
    --gradient-end: #fce4ec;

    /* Icon colors from reference */
    --color-blue: #1f72bd; /* === COLOR UPDATED === */
    --color-red: #dc3545;
    --color-orange: #fd7e14;
    --color-green: #28a745;
    --color-success: #7dbf2e; /* Green for CTA (no longer default) */
    --color-success-hover: #6cae22;
    --color-orange-light: #fff8f0;
    --color-orange-icon: #f59e42;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

/* ================== Utility Classes (Landing Page) ================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

/* --- Typography (Landing Page) --- */
.welcome-text {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.heading-xl {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-dark);
}

.text-lead {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto 30px auto;
}

.section-tagline {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* --- Buttons (Landing Page) --- */
.btn {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500; 
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent; 
    white-space: nowrap; 
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(31, 114, 189, 0.2); /* Updated shadow color */
    /* === FIX: Ensure text stays white on hover === */
    color: var(--bg-white) !important;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--border-color);
}

.btn-outline:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: #f0f8ff; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0, 0.05);
}

.btn-success {
    background-color: var(--color-success);
    color: var(--bg-white);
    border-color: var(--color-success);
    font-weight: 600;
    padding: 14px 35px;
}

.btn-success:hover {
    background-color: var(--color-success-hover);
    border-color: var(--color-success-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(125, 191, 46, 0.3);
}


/* ================== Header (Landing Page) ================== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.header .logo img {
    max-height: 40px;
    width: auto;
    display: block;
    line-height: 1; 
}

.nav-links {
    display: flex;
    gap: 30px; 
}

.nav-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark); 
}

.nav-item:hover {
    color: var(--primary-color);
}

/* ================== Hero Section (Landing Page) ================== */
.hero {
    background-color: var(--bg-white);
    padding-top: 80px; 
    padding-bottom: 0; 
    text-align: center;
    overflow: hidden; 
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px; 
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-responsive-banner {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
    padding: 40px 0;
    text-align: center;
}

.responsive-container {
    max-width: 900px; 
}

.responsive-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.responsive-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 30px;
    font-size: 1rem;
    color: var(--text-dark);
}

.responsive-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.responsive-features i {
    color: var(--color-green); 
    font-size: 1.1rem;
}

.hero-device-showcase {
    position: relative;
    padding-top: 0; 
    margin-top: -100px; 
    padding-bottom: 80px; 
    z-index: 10; 
}

.device-container {
    position: relative;
    max-width: 1100px; 
    height: 700px; 
}

.img-mobile,
.img-laptop,
.img-tablet {
    position: absolute;
    border-radius: 15px; 
    box-shadow: 0 25px 50px rgba(0,0,0, 0.15); 
    border: 1px solid rgba(0,0,0,0.08); 
    background-color: var(--bg-white); 
}

.img-mobile {
    width: 200px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 3;
}

.img-laptop {
    width: 800px;
    top: 10%; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.img-tablet {
    width: 300px;
    top: 60%; 
    right: 10%;
    transform: translateY(-50%);
    z-index: 3;
}


/* ================== How It Works Section (Landing Page) ================== */
.how-it-works {
    padding: 100px 0;
    background-color: var(--bg-white); 
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 2.5rem; 
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px; 
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto; 
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0, 0.07); 
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0, 0.1); 
}

/* === ICON SIZE FIX (v2) === */
/* Changed selector from .icon to direct child <i> to fix mismatch */
.how-it-works .step-item > i {
    font-size: 3.5rem !important; 
    margin-bottom: 25px;
}

.step-item .step-number {
    display: block; 
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.step-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Icon Color Utilities --- */
.icon-blue { color: var(--color-blue); }
.icon-red { color: var(--color-red); }
.icon-orange { color: var(--color-orange); }
.icon-green { color: var(--color-green); }


/* ================== Core Features Section (Landing Page) ================== */
.core-features {
    padding: 100px 0;
    background-color: var(--bg-light); 
}

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

.feature-grid-item {
    text-align: center;
    padding: 15px 10px;
}

.feature-grid-item i {
    font-size: 2.5rem; 
    color: var(--text-muted); 
    margin-bottom: 20px; 
    transition: all 0.3s ease;
}

.feature-grid-item span {
    display: block;
    font-size: 0.9rem; 
    color: var(--text-light); 
    font-weight: 500;
    line-height: 1.4;
}

.feature-grid-item:hover i {
    color: var(--primary-color); 
    transform: scale(1.1);
}


/* ================== Why Us Section (Landing Page) ================== */
.why-us {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; 
    max-width: 1100px;
    margin: 0 auto;
}

.why-item {
    text-align: center; 
}

.icon-wrapper {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto; 
    position: relative;
}

.icon-wrapper i {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.why-item:hover .icon-wrapper i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.why-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.why-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.why-item .free-text {
    color: var(--color-orange-icon);
    font-weight: 600;
}


/* ================== Detailed Features Section (Landing Page) ================== */
.detailed-features {
    padding: 100px 0;
    background-color: var(--bg-light); 
}

.detailed-features .section-heading h2 {
    margin-bottom: 0; 
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 60px; 
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image,
.feature-content {
    flex: 1;
}

.feature-image img {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0, 0.08);
    border: 1px solid var(--border-color);
}

.feature-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px; 
}

.feature-row.reverse .feature-content {
    text-align: left;
}


/* ================== FAQ Section (Landing Page) ================== */
.faq {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px; 
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0, 0.05);
}

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

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px; 
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

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


/* ================== CTA Section (Landing Page) ================== */
.cta {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .section-subtitle {
    margin-bottom: 30px;
}

/* ================== Footer (Landing Page) ================== */
.footer {
    padding: 30px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    font-size: 1.1rem;
    color: var(--text-light);
}

.footer-socials a:hover {
    color: var(--primary-color);
}


/* ================== Responsive Design (Landing Page) ================== */
@media (max-width: 1024px) {
    .hero-device-showcase {
        margin-top: -50px;
        padding-bottom: 50px;
    }
    .device-container {
        height: 550px;
    }
    .img-mobile {
        width: 160px;
        left: 5%;
    }
    .img-laptop {
        width: 650px;
    }
    .img-tablet {
        width: 250px;
        right: 5%;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-row {
        gap: 40px;
    }
    .feature-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header nav {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .heading-xl {
        font-size: 2.5rem;
    }
    .text-lead {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .responsive-heading {
        font-size: 1.3rem;
    }
    .responsive-features {
        flex-direction: column;
        gap: 15px;
    }

    .hero-device-showcase {
        margin-top: -30px;
        padding-bottom: 30px;
    }
    .device-container {
        height: 400px;
    }
    .img-mobile,
    .img-tablet {
        display: none;
    }
    .img-laptop {
        width: 90%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

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

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .feature-row {
        flex-direction: column;
    }
    .feature-row.reverse {
        flex-direction: column;
    }
    .feature-image {
        margin-bottom: 20px;
    }
    .feature-content {
        text-align: center;
    }
    .feature-row.reverse .feature-content {
        text-align: center;
    }
    .feature-content p {
        margin: 0 auto;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }
    .footer-socials {
        order: -1;
    }
}

@media (max-width: 480px) {
    .header nav {
        align-items: flex-start;
    }
    .logo {
        margin-bottom: 10px;
    }
    .nav-links {
        width: 100%;
        justify-content: space-around;
    }
    .hero-content {
        padding-bottom: 40px;
    }
    .responsive-banner {
        padding: 30px 0;
    }
    .responsive-heading {
        font-size: 1.1rem;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid-item {
        padding: 10px 5px;
    }
    .feature-grid-item i {
        font-size: 2.2rem;
    }
}

/* ================== Back to Top Button (New) ================== */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    z-index: 999;
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: var(--primary-hover);
    color: #fff;
    text-decoration: none;
}

/* ============================================================ */
/* ==          NEW: PRICING PLAN SECTION STYLES              == */
/* ============================================================ */

/* --- Section Container --- */
.pricing-section {
    padding: 100px 0;
    background-color: var(--bg-white); /* Uses theme background */
}

/* --- Responsive Grid --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Individual Card --- */
.pricing-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.3s ease;
}

/* --- Recommended Plan Styling --- */
.pricing-card.recommended {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(31, 114, 189, 0.15);
    transform: translateY(-10px);
}

/* --- Card Header --- */
.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.plan-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    min-height: 40px; /* Ensures consistent alignment */
}

/* --- Price --- */
.plan-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.1;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 5px;
}

/* --- Features List --- */
.plan-features {
    list-style: none;
    padding: 25px 0;
    margin: 25px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-grow: 1; /* Pushes button to the bottom */
    text-align: left;
}

.plan-features li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: var(--color-green); /* Uses theme 'green' color */
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* --- Button --- */
.plan-button {
    margin-top: auto; /* Pushes itself to the bottom */
}

/* --- Responsive Adjustments --- */

/* Tablet */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.recommended {
        transform: translateY(0); /* Remove hover effect on mobile */
    }

    .plan-description {
        min-height: auto; /* Remove fixed height */
    }
}

/* ============================================================ */
/* ==          NEW: PAYMENT CTA BANNER (PANEL)             == */
/* ============================================================ */
.payment-cta-banner {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ffc107; /* Warning color border */
    border-left: 5px solid #ffc107; /* Strong left border */
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    gap: 20px;
}
.payment-cta-banner .cta-icon {
    font-size: 2rem;
    color: #ffc107; /* Warning color */
    flex-shrink: 0;
}
.payment-cta-banner .cta-content {
    flex-grow: 1;
}
.payment-cta-banner .cta-content strong {
    font-size: 1.2rem;
    color: #333;
    display: block;
    margin-bottom: 5px;
}
.payment-cta-banner .cta-content p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}
.payment-cta-banner .cta-action {
    flex-shrink: 0;
    margin-left: auto;
}
.payment-cta-banner .cta-action .btn-primary {
    background-color: #28a745; /* Green for 'Go' */
    padding: 12px 25px;
    font-size: 1rem;
    white-space: nowrap;
}
.payment-cta-banner .cta-action .btn-primary:hover {
    background-color: #218838;
}

/* Responsive for CTA Banner */
@media (max-width: 768px) {
    .payment-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .payment-cta-banner .cta-action {
        margin-left: 0;
        width: 100%;
    }
    .payment-cta-banner .cta-action .btn-primary {
        width: 100%;
        text-align: center;
    }
}

