:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --secondary: #7b1fa2;
    --accent: #00bcd4;
    --bg-light: #f8f9fa;
    --text-dark: #212121;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
}

.responsive-h1 { font-size: 3.5rem; line-height: 1.2; }
.responsive-h2 { font-size: 2.5rem; line-height: 1.3; }

@media (max-width: 768px) {
    .responsive-h1 { font-size: 2.2rem; }
    .responsive-h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .responsive-h1 { font-size: 1.8rem; }
    .responsive-h2 { font-size: 1.5rem; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Global Styles */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-light); /* Adds a professional subtle ring */
    padding: 2px;
    background: white;
}

.logo span {
    color: #4338ca; /* A solid, premium indigo that matches the reference */
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1rem;
    }
}

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

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

.nav-links .nav-cta {
    display: none; /* Hide in desktop nav-links */
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-md);
    gap: 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}



/* Glassmorphism Refinement */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at top right, rgba(123, 31, 162, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(26, 35, 126, 0.05), transparent);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 35px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.floating-element {
    position: absolute;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

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

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced from 280px */
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

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

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Detailed Features Page Styles */
.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
}

.feature-item img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.feature-item:nth-child(even) .feature-image {
    order: 1;
}

.feature-item:nth-child(even) .feature-text {
    order: 2;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .feature-text h2 {
        font-size: 1.8rem;
    }
}

.feature-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
}

.feature-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 800;
}

@media (max-width: 991px) {
    .feature-item {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .feature-item img {
        order: -1 !important; /* Image always on top in mobile */
        max-width: 600px;
        margin: 0 auto;
    }
    
    .feature-text h2 {
        font-size: 2rem;
    }
    
    .feature-list {
        display: inline-block;
        text-align: left;
    }
}

/* Product Showcase */
.showcase {
    background: var(--primary);
    color: white;
    text-align: center;
}

.showcase h2 {
    color: white;
    margin-bottom: 40px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

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

.tab-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin: 0 auto;
}

/* Benefits Section */
.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.benefit-item .check {
    color: var(--accent);
    font-weight: 800;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

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

/* Pricing */
.pricing-card {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    border: 2px solid var(--primary-light);
    position: relative;
    overflow: hidden;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.pricing-card .price span {
    font-size: 1rem;
    color: #666;
}

.tag {
    background: var(--primary);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

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

/* Footer */
footer {
    background: #111;
    color: #aaa;
    padding: 80px 0 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.footer-brand h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px rgba(26, 35, 126, 0.2);
}

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

.animate {
    animation: fadeIn 0.8s forwards;
}

/* Media Queries - Moved to the end for better override control */
@media (max-width: 991px) {
    .feature-item {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .feature-item img {
        order: -1 !important; /* Image always on top in mobile */
        max-width: 600px;
        margin: 0 auto;
    }
    
    .feature-text h2 {
        font-size: 2rem;
    }
    
    .feature-list {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .responsive-h1 { font-size: 2rem; }
    .responsive-h2 { font-size: 1.8rem; }

    header {
        padding: 10px 0;
    }

    nav.container {
        padding: 0 5%;
    }

    .nav-links {
        display: none;
    }

    .nav-links .nav-cta {
        display: block;
        margin-top: 15px;
    }

    .nav-cta {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 20px;
    }

    .nav-links.active .nav-cta .btn {
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .logo span {
        font-size: 1.1rem;
    }

    .logo img {
        height: 40px;
        width: 40px;
    }

    .hero {
        padding: 120px 0 60px; /* Reduced from 180px to fix overlap */
    }

    .hero-content {
        display: block;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    h1, h2 {
        word-wrap: break-word;
    }

    .feature-text h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo-grid {
        justify-content: center !important;
        gap: 30px !important;
    }

    .logo-grid span {
        flex: 1 1 120px; /* Force minimum width to encourage cleaner wrapping */
        text-align: center;
    }
}

@media (max-width: 600px) {
    .responsive-h1 { font-size: 1.6rem; }
    .responsive-h2 { font-size: 1.4rem; }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .logo span {
        font-size: 0.9rem;
    }

    .logo img {
        height: 36px;
        width: 36px;
    }
}
