:root {
    --primary: #673de6;
    --primary-dark: #5025d1;
    --secondary: #10b981;
    --light: #f8f9fa;
    --dark: #2d3748;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Fixed-position decorative robot helper */
.fixed-robot {
    position: fixed;
    bottom: 12px;
    left: 70%; /* place roughly at slot 4 of 5 across the bottom */
    transform: translateX(-50%);
    width: 220px;
    max-width: 24vw;
    pointer-events: none; /* decorative only, don't block clicks */
    z-index: 1200;
    transition: transform 240ms var(--transition);
}

@media (max-width: 1024px) {
    .fixed-robot { width: 180px; left: 75%; }
}

@media (max-width: 640px) {
    .fixed-robot { width: 120px; left: 85%; bottom: 8px; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Smooth scroll for anchor navigation */
html {
    scroll-behavior: smooth;
}

/* Ensure anchored sections are visible below the fixed header */
section {
    scroll-margin-top: 90px;
}

/* Navigation underline animation (left-to-right) */
.nav-links a,
.mobile-menu a {
    position: relative;
    padding-bottom: 6px;
}

.nav-links a::after,
.mobile-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.nav-links a:hover::after,
.mobile-menu a:hover::after,
.nav-links a.active::after,
.mobile-menu a.active::after {
    transform: scaleX(1);
}

.nav-links a.active,
.mobile-menu a.active {
    color: var(--primary);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
}

/* Logo image sizing for header */
.site-logo,
.logo img {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .site-logo,
    .logo img {
        height: 44px;
    }
}

@media (max-width: 576px) {
    .site-logo,
    .logo img {
        height: 36px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f4ff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Two-column hero layout: text (left) | image (right) */
.hero-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1 1 520px;
    text-align: left;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-text p {
    margin-bottom: 1.75rem;
}

.hero-media {
    flex: 1 1 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    width: 100%;
    max-width: 760px;
    height: auto;
    display: block;
}

@media (max-width: 1100px) {
    .hero-inner {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.6rem;
    }

    .hero-illustration {
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        text-align: left; /* keep left indent as requested */
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-illustration {
        max-width: 420px;
    }
}

/* Features Section */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(103, 61, 230, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    background-color: #f9fafc;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    background: white;
    padding: 5px;
    border-radius: 50px;
    width: fit-content;
    margin: 0 auto 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pricing-tab {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
}

.pricing-tab.active {
    background-color: var(--primary);
    color: white;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Ensure grid items stretch so cards can match heights */
.pricing-plans {
    align-items: stretch;
}

.plan-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Make plan cards column flex containers so we can push the button to bottom */
.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Slightly darker variant for coming-soon / future plans (subtle) */
.plan-card.coming-soon {
    /* Match regular cards: white background and same shadow */
    background: #ffffff;
    color: var(--dark);
    box-shadow: var(--box-shadow);
    transform: none;
    border: 1px solid rgba(0,0,0,0.04);
    /* Slightly faded to indicate "coming soon" (subtle)
       - lower opacity a bit and desaturate slightly */
    opacity: 0.92;
    /* Adjusted: make it 5% brighter than previous (brightness 95%) */
    filter: grayscale(14%) saturate(85%) brightness(95%);
    transition: opacity 180ms var(--transition), filter 180ms var(--transition), transform 180ms var(--transition);
}   

.plan-card.coming-soon .plan-price {
    color: var(--primary);
}

.plan-card.coming-soon .plan-features li {
    border-bottom: 1px solid rgba(45,55,72,0.06);
}

.plan-card.coming-soon .plan-features li i {
    color: rgb(16, 24, 40);
}

/* Ensure coming-soon cards do not show interactive hover/selected states */
.plan-card.coming-soon:hover {
    transform: none;
}

/* Visually de-emphasize the CTA for coming-soon plans */
.plan-card.coming-soon .plan-button {
    opacity: 0.9;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(18%);
}

/* Badge for plans that are not yet available - uses the darker primary color */
.plan-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-dark);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 5;
}

.plan-card.popular {
    transform: none;
    /* Ensure popular card uses same white background */
    /* Border removed so visual border appears only when .selected is applied */
}

/* Selected state for plan cards (applies to Starter, Advanced, etc.) */
.plan-card.selected {
    border: 2px solid var(--primary);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 40px rgba(103, 61, 230, 0.12);
    z-index: 10;
}

.plan-card:not(.coming-soon) {
    cursor: pointer;
}

.plan-card.popular::before {
    content: "Best Value";
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.plan-card:focus {
    outline: none;
}

.plan-card:focus-visible {
    box-shadow: 0 8px 30px rgba(103, 61, 230, 0.08);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: var(--gray);
}

.plan-desc {
    color: var(--gray);
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

/* Allow features list to grow so button remains at the bottom */
.plan-features {
    flex: 1 1 auto;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
}

.plan-features li i {
    color: var(--secondary);
    margin-right: 10px;
}

.plan-button {
    width: 100%;
    margin-top: auto;
    display: block;
}

/* Testimonials */
.testimonials {
    background-color: white;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-container {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    background: white;
    border-radius: var(--border-radius);

/* Small sale badge (top-right) for plan cards */
.plan-card .plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--secondary);
    color: white;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    z-index: 6;
}



/* Price adjustments inside plan header */
.plan-price del.old-price {
    display: block;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.plan-price .monthly-price {
    font-size: 2.6rem;
}
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    text-align: center;
}

/* FAQ two-column layout: image (left) | content (right) */
.faq-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-media {
    flex: 1 1 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-illustration {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
}

.faq-content {
    flex: 1 1 520px;
    text-align: left;
}

@media (max-width: 1100px) {
    .faq-illustration {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .faq-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .faq-media {
        order: 0;
    }

    .faq-content {
        order: 1;
        width: 100%;
    }
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.testimonial-author {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.testimonial-role {
    color: var(--gray);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* FAQ Section */
.faq {
    background-color: #f9fafc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: var(--transition);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}


.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b7c3;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column h3::after {
    /* removed decorative underline per design */
    display: none;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b7c3;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .plan-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-buttons {
        display: none;
    }
        /* keep .fixed-robot rules at end of file for clarity */
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 8px 18px;
    }
}

/* Footer logo sizing */
.footer-logo {
    display: block;
    height: 56px;
    width: auto;
    margin-bottom: 12px;
}

.footer-logo-inline {
    display: inline-block;
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin: 0 8px;
}

@media (max-width: 768px) {
    .footer-logo { height: 48px; }
    .footer-logo-inline { height: 18px; }
}

@media (max-width: 480px) {
    .footer-logo { height: 40px; }
    .footer-logo-inline { height: 16px; }
}

/* Fixed-position decorative robot helper */
.fixed-robot {
    position: fixed;
    bottom: 12px;
    left: 70%; /* place roughly at slot 4 of 5 across the bottom */
    transform: translateX(-50%);
    width: 220px;
    max-width: 24vw;
    pointer-events: none; /* decorative only, don't block clicks */
    z-index: 1200;
    transition: transform 240ms var(--transition);
}

@media (max-width: 1024px) {
    .fixed-robot { width: 180px; left: 75%; }
}

@media (max-width: 640px) {
    .fixed-robot { width: 120px; left: 85%; bottom: 8px; }
}
