/*
Theme Name: M360 Docs
Theme URI: https://example.com
Author: You
Author URI: https://example.com
Description: M360 API docs theme — preserves the original landing page and docs layout.
Version: 1.0
Text Domain: m360-docs
*/

/* ---- Paste entire CSS from your HTML here (slightly adapted to WordPress) ---- */

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #f97316;
    --accent: #10b981;
    --bg: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --dark: #0f172a;
    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --gradient: linear-gradient(135deg, #4361ee, #6c63ff);
    --gradient-secondary: linear-gradient(135deg, #f97316, #fb923c);
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(120deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Improved background pattern */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            radial-gradient(circle at 15% 50%, rgba(67, 97, 238, 0.05) 0px, transparent 2px),
            radial-gradient(circle at 85% 30%, rgba(249, 115, 22, 0.05) 0px, transparent 2px),
            radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.05) 0px, transparent 2px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    background-position: 0 0, 30px 60px, 70px 30px;
    z-index: -1;
    opacity: 0.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.3rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 40px;
    transition: var(--transition);
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* ===== HERO ===== */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    padding: 6rem 0 5rem;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 90%;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--text);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-light);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 60%; /* Set to 60% as requested */
    margin: 0 auto; /* Center the image */
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(-5%);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(3deg) translateY(-5%) scale(1.02);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 10%;
    right: 10%;
    filter: blur(40px);
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    bottom: 20%;
    left: 5%;
    filter: blur(30px);
}

/* ===== FEATURES ===== */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 18px;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

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

/* ===== PRODUCTS ===== */
.products {
    background: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.8rem;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Updated Product Button Styles */
.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

.product-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.product-btn:hover {
    gap: 0.8rem;
}

.product-btn:hover::after {
    width: 100%;
}

.product-btn i {
    transition: var(--transition);
}

.product-btn:hover i {
    transform: translateX(4px);
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.price-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.price-card.popular::before {
    content: "Populaire";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-bottom-left-radius: 20px;
    z-index: 2;
}

.price-title {
    background: var(--gradient);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.price-title h3 {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.brand-logos {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.brand-logos img {
    height: 40px;
}

.price-body {
    padding: 2rem 1.5rem;
}

.price-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.price-big {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin: 1rem 0 0.5rem;
    line-height: 1;
}

.price-sub {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
}

.price-features li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.price-action {
    text-align: center;
}

.price-action .btn {
    width: 100%;
    justify-content: center;
}

/* ===== CTA ===== */
.cta-features {
    background: var(--gradient);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 20%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    pointer-events: none;
}

.cta-headline h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.3;
}

.cta-bullets {
    margin-bottom: 3rem;
}

.cta-bullets ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2.5rem;
    list-style: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.cta-bullets li {
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #ffce00;
    font-size: 1.4rem;
}

.cta-action {
    text-align: center;
}

.btn-cta {
    background: white;
    color: var(--primary);
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
}

.footer-column p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #cbd5e1;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .cta-bullets ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    nav ul {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 0 3rem;
        gap: 2.5rem;
    }

    .hero p {
        max-width: 100%;
    }

    .btn-group {
        justify-content: center;
    }

    .hero-image {
        width: 80%; /* Slightly larger on mobile for better visibility */
    }

    .hero-image img {
        transform: none;
    }

    .hero-image img:hover {
        transform: scale(1.02);
    }

    /* Features */
    .grid-3 {
        gap: 1.5rem;
    }

    /* CTA */
    .cta-bullets ul {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 576px) {
    /* General */
    .section-title {
        font-size: 2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-group {
        flex-direction: column;
    }

    .hero-image {
        width: 90%; /* Full width on very small screens */
    }
}

/* Animation utilities */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }