:root {
    /* Color Palette */
    --primary-color: #2563eb;
    /* Royal Blue */
    --primary-dark: #1e40af;
    /* Darker Blue for hover */
    --accent-color: #60a5fa;
    /* Lighter Blue */
    --text-main: #1f2937;
    /* Gray 900 */
    --text-muted: #4b5563;
    /* Gray 600 */
    --bg-white: #ffffff;
    --bg-light: #f3f4f6;
    /* Gray 100 */
    --bg-glass: rgba(255, 255, 255, 0.8);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    position: relative;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 600px;
    opacity: 0;
    /* Animated in */
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.75rem 2.5rem;
    /* Wider buttons */
    min-width: 160px;
    /* Consistent width */
    font-weight: 600;
}

/* Hero Section */
/* ... existing hero styles ... */
/* Store Badge Hover */
.store-badge a:hover {
    transform: scale(1.05);
}

/* Apps Showcase */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.app-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content in card */
    text-align: center;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.app-icon-placeholder {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.app-card h3 {
    margin-bottom: 0.5rem;
}

.app-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.app-links {
    margin-top: auto;
    /* Push to bottom */
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-sm:hover {
    background-color: var(--primary-dark);
}

.link-details {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.link-details:hover {
    text-decoration: underline;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 960px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
        /* Image on top on mobile */
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base Mobile Toggle Style */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        font-size: 1.5rem;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-card {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Reset some sticky/fixed behaviors if needed */
}

/* Statistics Section */
.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-top: -2rem;
    /* Overlap hero slightly or just sit tight */
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Ecosystem Section */
.ecosystem-section {
    background: white;
    overflow: hidden;
}

.ecosystem-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ecosystem-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.ecosystem-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ecosystem-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ecosystem-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Ecosystem Visual Animation */
.eco-circle-container {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-center {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    z-index: 5;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
}

.eco-circle {
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    z-index: 4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.c1 {
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s infinite ease-in-out;
}

.c2 {
    bottom: 20%;
    left: 20%;
    animation: float 4s infinite ease-in-out 0.5s;
}

.c3 {
    bottom: 20%;
    right: 20%;
    animation: float 3.5s infinite ease-in-out 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.c2,
.c3 {
    transform: translateX(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 960px) {
    .ecosystem-content {
        grid-template-columns: 1fr;
    }

    .eco-circle-container {
        height: 300px;
        margin-top: 2rem;
    }
}

/* Screenshots Section */
.screenshot-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: white;
    border-radius: 2rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.screenshot-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

.screenshot-grid.active {
    display: grid;
}

.phone-frame {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 8px solid #1f2937;
    aspect-ratio: 9/19;
    position: relative;
    transition: transform 0.3s ease;
}

.phone-frame:hover {
    transform: translateY(-5px);
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e5e7eb;
    /* Placeholder color */
}

.screen-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.phone-frame:hover .screen-overlay {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-contact {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.btn-contact i {
    font-size: 1.4rem;
    margin-right: 0.5rem;
}

.btn-email {
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-email:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-whatsapp {
    background-color: #25D366;
    /* WhatsApp Green */
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #1FAF53;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    /* Highlight on hover */
}

.stars {
    color: #F59E0B;
    /* Amber/Gold */
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.quote {
    font-size: 1.125rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes author down */
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Feedback/Screenshots Grid */
.feedback-grid {
    display: grid;
    /* Use ~500px minmax for wide images to force 2 columns on desktop, 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.feedback-item {
    width: 100%;
    /* Remove strict max-width to allow filling the column */
    max-width: 100%;
}

.feedback-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border: 1px solid #f3f4f6;
    /* Ensure aspect ratio is preserved */
    display: block;
}

@media (max-width: 600px) {
    .feedback-grid {
        grid-template-columns: 1fr;
        /* Force 1 column on small screens */
    }
}

.feedback-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Trust Badges Section */
.trust-section {
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
}

.trust-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .trust-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.trust-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.trust-badge i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Partners Section */
.partners-section {
    padding: 2rem 0;
    border-bottom: 1px solid #f3f4f6;
    background-color: white;
}

.partners-label {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    /* Adequate space between logos */
    flex-wrap: wrap;
}

.partner-logo img {
    height: 40px;
    /* Uniform height */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
    /* Subtle lift */
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    font-weight: 600;
    color: var(--text-main);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px;
    /* Adjust if content is longer */
    transition: max-height 0.5s ease-in, padding 0.3s ease;
}

/* Hero Slider */
.hero {
    overflow: hidden;
    /* Ensure images don't spill out */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    animation: slideShow 15s infinite;
}

/* Overlay to ensure text is readable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.30) 100%);
    z-index: 1;
    backdrop-filter: blur(2px);
}

/* Animation Timing */
.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    5% {
        opacity: 1;
        transform: scale(1);
    }

    /* Fade in & Zoom out */
    33% {
        opacity: 1;
        transform: scale(1);
    }

    /* Stay visible */
    38% {
        opacity: 0;
        transform: scale(1.1);
    }

    /* Fade out */
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Refined Profile Photo */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    /* Make it circular */
    border: 5px solid white;
    /* Thicker white frame */
    /* Stronger, multi-layered shadow for depth on white background */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        /* Subtle outline */
        0 20px 25px -5px rgba(37, 99, 235, 0.4);
    /* Deep blue glow */
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}