:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --background: #0f172a;
    --surface: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;

    --gradient-main: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(236, 72, 153, 0.5) 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.icon-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #FEFEFE;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 90px;
}

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

.nav-links a {
    color: #475569; /* Dark grey for light header */
    font-weight: 500;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0f172a; /* Near black on hover */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

/* Hero Canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 2;
    z-index: 2;
    pointer-events: none;
}

/* Sliding Background */
.sliding-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.slide-track {
    display: flex;
    height: 100%;
    width: calc(100vw * 9);
    /* Approximate width for smooth scrolling */
    animation: scroll 40s linear infinite;
}

.slide {
    height: 100%;
    width: 100vw;
    /* Make each slide take full width */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Dim the images slightly */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100vw * 3));
        /* Scroll by 3 main images width then reset */
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    position: relative;
    z-index: 10;
}

.hero-text-wrapper .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-text-wrapper h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 800px;
    /* Increased max-width for centered text */
    margin-left: auto;
    margin-right: auto;
}

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

.trust-indicators {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.trust-item i {
    color: var(--accent);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Products Section */
.products-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--background) 0%, rgba(30, 41, 59, 0.3) 100%);
}

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

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.product-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem auto;
}

.product-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-card li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center list items content if possible, or keep left aligned but centered block? */
    gap: 0.5rem;
}

.product-card li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.7;
}

.text-btn {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.text-btn:hover {
    gap: 0.75rem;
    color: var(--accent);
}

/* Stats */
.stats-section {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Features */
.features {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

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

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Ecosystem */
.app-ecosystem {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--background) 0%, rgba(30, 41, 59, 0.5) 100%);
}

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

.role-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.role-tab {
    background: none;
    border: none;
    padding: 1rem 0;
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.role-tab.active {
    color: var(--text-main);
}

.role-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.role-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.role-content.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.role-content ul {
    list-style: none;
}

.role-content li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.role-content i {
    color: var(--secondary);
}

.app-mockup-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.app-mockup-image:hover {
    transform: translateY(-10px) rotateY(5deg);
}

/* Contact */
.contact-section {
    padding: 6rem 0;
}

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

.contact-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* CTA */
.cta-section {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0.1;
    z-index: -1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-3px);
}

.store-btn i {
    font-size: 2rem;
}

.btn-text span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
}

.btn-text strong {
    display: block;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

/* Footer */
/* Footer */
footer {
    background: #020617;
    /* Dark navy background to match the latest reference */
    padding: 4rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Equal columns */
    gap: 2rem;
    padding-bottom: 4rem;
}

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

.footer-logo {
    width: 80px;
    height: auto;
    /* Reduced size */
    margin-bottom: 2rem;
}

.brand-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 250px;
}

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

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #eab308;
    color: black;
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #eab308;
    /* Orange/Gold to match reference */
    padding-left: 5px;
}

.footer-col .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col .contact-item i {
    color: #eab308;
    /* Orange/Gold to match reference */
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

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

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

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

    .mockup-card {
        margin: 2rem auto;
        max-width: 400px;
        transform: none;
    }

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

    .role-tabs {
        justify-content: center;
    }

    .role-content li {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .brand-col p {
        margin: 1rem auto;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile Menu State */
header.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease-out forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Utilities */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Video Splash Screen */
body.no-scroll {
    overflow: hidden;
}

.video-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.video-splash.hidden {
    opacity: 0;
    visibility: hidden;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-video {
    display: none;
}

.skip-btn {
    position: absolute;
    bottom: 5px;
    right: 40px;
    width: 160px;
    height: 160px;
    background: #935CD3;
    border: none;
    color: white;
    border-radius: 50%;
    font-size: 4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(147, 92, 211, 0.4);
}

.skip-btn:hover {
    background: #a872e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 92, 211, 0.6);
}

/* Mobile adjustments for splash screen */
@media (max-width: 768px) {
    .desktop-video { display: none; }
    .mobile-video { display: block; }
    
    .intro-video {
        object-fit: cover; /* Since it is a portrait video, cover perfectly fills the screen */
    }
    
    .skip-btn {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        right: 5px;
        bottom: 40px;
    }
}