/* --- VARIABLES & RESET --- */
:root {
    --primary: #7c61ff;
    /* Main Purple */
    --primary-dark: #6a52e3;
    --secondary: #ffb400;
    /* Yellow */
    --tertiary: #ff6b8b;
    /* Pink */
    --success: #8cc63f;
    /* Green */
    --text-dark: #2b2b2b;
    --text-body: #6c757d;
    --bg-light: #f9faff;
    --bg-footer: #f4f6fc;
    --white: #ffffff;
    --border-color: #eee;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(to right, #7c61ff, #9c88ff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #232350;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 97, 255, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- BACKGROUND SHAPES --- */
.shape-bg {
    position: absolute;
    z-index: -1;
    opacity: 0.5;
}

.shape-top-left {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #f0f0ff 0%, transparent 70%);
    border-radius: 50%;
}

/* --- HEADER --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 25px 0;
    transition: all 0.3s ease;
}

header.header-scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    top: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #5a4bda;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: #232350;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-trigger {
    cursor: pointer;
    color: #232350;
    font-size: 18px;
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 25px;
    color: #232350;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-img {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- CLIENTS --- */
.clients-section {
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
}

.clients-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.6;
}

.clients-grid img {
    max-height: 35px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.clients-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- SECTION HEADERS --- */
.section-header {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* --- FEATURES --- */
.features-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    color: white;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-purple {
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(124, 97, 255, 0.3);
}

.icon-yellow {
    background: var(--secondary);
    box-shadow: 0 10px 20px rgba(255, 180, 0, 0.3);
}

.icon-pink {
    background: var(--tertiary);
    box-shadow: 0 10px 20px rgba(255, 107, 139, 0.3);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* --- SHOWCASE / ABOUT --- */
.about-section {
    padding: 80px 0;
}

.row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col-half {
    flex: 1;
}

.about-img img {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-text h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.about-list {
    margin-top: 30px;
}

.about-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.about-item i {
    color: var(--primary);
    font-size: 20px;
    margin-top: 5px;
}

.about-item h6 {
    font-size: 18px;
    margin-bottom: 5px;
}

.about-item p {
    font-size: 14px;
    margin: 0;
}

/* --- PRICING --- */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

/* Pure CSS Toggle Switch logic */
.switch-input {
    display: none;
}

.switch-label {
    width: 55px;
    height: 28px;
    background: var(--primary);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
}

.switch-label::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.switch-input:checked+.switch-label::after {
    left: 31px;
}

/* Toggle content logic */
.price-month {
    display: block;
}

.price-year {
    display: none;
}

/* When checkbox is checked, hide month, show year via sibling selector on parent if possible, 
   but CSS parent selection isn't standard. Instead, we use JS for content or just styling. 
   Since "HTML CSS Only", I'll use the :checked ~ sibling combinator hack.
*/
#price-switch:checked~.pricing-grid .price-month {
    display: none;
}

#price-switch:checked~.pricing-grid .price-year {
    display: block;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.pricing-card {
    background: white;
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.pricing-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
    transform: translateY(-5px);
}

.price-tag {
    font-size: 45px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.price-tag span {
    font-size: 15px;
    font-weight: 400;
    color: #999;
}

.pricing-list li {
    margin-bottom: 15px;
    color: var(--text-body);
    font-size: 15px;
}

.pricing-card.popular .price-tag {
    color: var(--success);
}

.pricing-card.popular .btn-primary {
    background: var(--success);
    box-shadow: 0 4px 15px rgba(140, 198, 63, 0.4);
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.client-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto -35px;
    position: relative;
    border: 5px solid white;
    top: -50px;
}

.testimonial-card p {
    font-size: 14px;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 20px;
}

.client-info h6 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 0;
}

.client-info span {
    font-size: 12px;
}

/* --- CONTACT --- */
.contact-box {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full {
    grid-column: span 2;
}

input,
textarea {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    background: white;
}

/* --- FOOTER --- */
footer {
    background: var(--bg-footer);
    padding-top: 80px;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e1e1e1;
}

.footer-logo {
    font-size: 24px;
    color: #5a4bda;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-widget h5 {
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-badge {
    background: #232350;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 5px;
    width: fit-content;
}

.app-badge i {
    font-size: 24px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: #888;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .row {
        flex-direction: column;
    }

    .features-wrapper,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    /* For the toggle hack to work on mobile properly */
    #price-switch:checked~.pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    /* Simplified for mobile */
    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    }

/* --- PRICING TABS --- */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 97, 255, 0.4);
}

.pricing-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.pricing-content.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .pricing-content.active {
        grid-template-columns: 1fr;
    }
}


/* --- BACKGROUND SHAPES --- */
/* --- BACKGROUND SHAPES --- */
.shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* Ensure content is above shapes */
.container {
    position: relative;
    z-index: 2;
}

.shape-blob {
    border-radius: 50%;
    filter: blur(80px); /* Increased blur for smoother look */
    opacity: 0.8; /* Increased opacity */
}

.shape-ring {
    border: 40px solid rgba(240, 242, 255, 0.8);
    border-radius: 50%;
    z-index: 1;
}

.shape-diamond {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 4px solid rgba(124, 97, 255, 0.4);
    transform: rotate(45deg);
    z-index: 1;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px)  }
    50% { transform: translateY(-20px)  }
    100% { transform: translateY(0px)  }
}

.anim-float {
    animation: float 6s ease-in-out infinite;
}

/* Section Specific Positioning */
/* Hero Shapes */
#hero {
    position: relative;
    overflow: hidden;
}
#hero .shape-blob.one {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(124,97,255,0.4) 0%, transparent 70%); /* Darker color */
}
#hero .shape-diamond.one {
    top: 15%;
    left: 5%;
    border-color: rgba(90, 75, 218, 0.3);
}
#hero .shape-diamond.two {
    bottom: 15%;
    right: 5%;
    border-color: rgba(255, 99, 132, 0.3);
    animation-delay: 1s;
}

/* Ecosystem Shapes */
#products {
    position: relative;
    overflow: hidden;
}
#products .shape-ring {
    width: 300px;
    height: 300px;
    position: absolute;
    right: -100px;
    bottom: -50px;
    border-color: rgba(240, 240, 255, 0.8);
}

/* Pricing Shapes */
#pricing {
    position: relative;
    overflow: hidden;
}
#pricing .shape-blob.two {
    width: 600px;
    height: 600px;
    left: -200px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(124,97,255,0.3) 0%, transparent 70%);
}

/* Contact Shapes */
#contact {
    position: relative;
    overflow: hidden;
}
#contact .shape-blob.three {
    width: 400px;
    height: 400px;
    right: -100px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(124,97,255,0.3) 0%, transparent 70%);
}
    height: 300px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle, rgba(124,97,255,0.05) 0%, transparent 70%);
}

