:root {
    /* Colors */
    --primary: #4F46E5; /* Indigo 600 - Bold Accent */
    --primary-hover: #4338ca;
    --secondary: #111827; /* Gray 900 - Dark Text */
    --accent: #F59E0B; /* Amber 500 - Highlights */
    --bg-body: #FFFFFF;
    --bg-alt: #F9FAFB; /* Gray 50 - Section BG */
    --text-main: #1F2937; /* Gray 800 */
    --text-muted: #6B7280; /* Gray 500 */
    --border: #E5E7EB; /* Gray 200 */
    
    /* Spacing & Layout */
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { color: var(--text-muted); margin-bottom: 1.5rem; }

.text-highlight {
    color: var(--primary);
    position: relative;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
}

.btn-secondary:hover {
    color: var(--primary);
}

.btn-outline {
    background-color: white;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hamburger { display: none; }

/* Hero Section */
.hero {
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #3a5cc2 0%, #a23b60 50%, #0c8559 100%) !important;
    
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}

.hero-content {
    animation: fadeIn 1s ease-out .2s backwards;
}

.hero-content h1 {
    background: linear-gradient(45deg, #818cf8, #e879f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 1.25rem;
    max-width: 500px;
    color: #e5e7eb;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero .btn-secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.trust-badges {
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

.avatar:first-child { margin-left: 0; }

.hero-image {
    position: relative;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    transform: rotate(-5deg) scale(0.9);
    animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s backwards;
}

.mockup-card {
    background-color: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    animation: float 4s ease-in-out infinite;
}

.card-1 { background-color: #e0e7ff; grid-row: span 2; }
.card-2 { background-color: #fce7f3; animation-delay: -1.7s; }
.card-3 { background-color: #d1fae5; animation-delay: -2.9s; }

.section {
    padding: 6rem 0;
}



.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Categories */
.categories {
    background-color: var(--bg-alt);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Featured */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: transparent;
    min-height: 400px; /* Ensure card has height for flipping */
    perspective: 1000px;
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.product-card:hover .product-card-inner {
    transform: rotateY(180deg);
    box-shadow: var(--shadow-lg);
}

.product-card-front,
.product-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card-front {
    background-color: white;
}

.product-card-back {
    background-color: white;
    transform: rotateY(180deg);
    justify-content: center;
    align-items: center;
}

.product-image {
    height: 250px;
    background-color: #f3f4f6;
    background-image: linear-gradient(45deg, #f3f4f6 25%, #e5e7eb 25%, #e5e7eb 50%, #f3f4f6 50%, #f3f4f6 75%, #e5e7eb 75%, #e5e7eb 100%);
    background-size: 20px 20px;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.product-card-back .product-info {
    text-align: center;
}

.product-details-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Features */
.features {
    background-color: var(--bg-alt);
}

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

.feature-item {
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: #EEF2FF;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials */
.testimonials {
    background-color: white;
}

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

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
}

.author {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.author strong {
    color: var(--secondary);
}

.author span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Pricing */
.pricing {
    background-color: var(--bg-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
    z-index: 10;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 1rem 0;
}

.price-tag .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.features-list {
    margin: 2rem 0;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

details {
    padding: 1.5rem 0;
    cursor: pointer;
}

summary {
    font-weight: 600;
    font-size: 1.125rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
}

details[open] summary::after {
    content: "-";
}

details p {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* CTA */
.cta-section {
    background-color: var(--secondary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
}

.cta-content p {
    color: #9CA3AF;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.email-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
}

.footer-links h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

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

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

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-muted);
    transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links, .nav-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
        padding: 1rem 0;
        order: 3;
    }

    .nav-links.active, .nav-actions.active {
        display: flex;
    }

    .hamburger { display: block; cursor: pointer; order: 1; }
    .hamburger span { display: block; width: 25px; height: 3px; background: var(--secondary); margin: 5px 0; transition: all 0.3s ease; }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .mockup-grid {
        transform: none;
        margin-top: 3rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .email-form {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .copyright {
        flex-direction: column;
        gap: 1rem;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        box-shadow: var(--shadow-lg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
        box-shadow: var(--shadow-xl);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
        box-shadow: var(--shadow-lg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes popIn {
    from {
        transform: rotate(-10deg) scale(0.8);
        opacity: 0;
    }
}
