/* Variables & Theme System */
:root {
    --primary-500: #10B981;
    /* Emerald */
    --primary-600: #059669;
    --primary-glass: rgba(16, 185, 129, 0.15);

    --bg-base: #030712;
    /* Deep modern dark mode */
    --bg-surface: #111827;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(255, 255, 255, 0.01);

    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: var(--font-stack);
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

/* Typography Classes */
.text-gradient {
    background: linear-gradient(135deg, #34D399, #10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.mt-6 {
    margin-top: 24px;
}

/* Background Glow Effects */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 20s infinite alternate linear;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
    animation-delay: -5s;
}

.glow-3 {
    top: 40%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Components: Glass */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    /* highlight edge */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 8px 20px var(--primary-glass);
}

.btn-primary:hover {
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.25);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 4px 12px var(--primary-glass);
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-500);
    margin-bottom: 24px;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge.warning {
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
    margin-left: -12px;
}

.avatar:first-child {
    margin-left: 0;
}

.social-proof p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-proof strong {
    color: var(--text-main);
}

/* Hero Visual & Floating Elements */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #222;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 100px rgba(16, 185, 129, 0.2);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
    /* fallback color */
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

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

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

.float-card {
    position: absolute;
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 20;
    min-width: 220px;
}

.float-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

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

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    /* Blueish */
    color: #60A5FA;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-box.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

.card-1 {
    top: 20%;
    right: -50px;
}

.card-2 {
    bottom: 30%;
    left: -60px;
}

.bounce-1 {
    animation: float 5s ease-in-out infinite alternate;
}

.bounce-2 {
    animation: float 7s ease-in-out infinite alternate-reverse;
}

/* Features Section */
.features {
    padding: 120px 0;
    position: relative;
}

.ops-section {
    padding: 30px 0 120px;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.feature-card {
    padding: 40px 32px;
    border-radius: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px var(--primary-glass);
}

.feature-card.outline {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.feature-card.outline:hover {
    border-color: var(--primary-500);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-glass);
    color: var(--primary-400);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-500);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* Partner Section */
.partner-section {
    padding: 120px 0;
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefit-list {
    margin-top: 32px;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.benefit-list li svg {
    color: var(--primary-500);
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
    margin-top: 16px;
}

.link-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.link-group a:hover {
    color: var(--primary-500);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a:hover {
    color: var(--primary-500);
}

/* Animations Triggered by Observer */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ops-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Hide entirely on mobile */
    .desktop-only-content {
        display: none !important;
    }

    /* Mobile Splash specific — light mode to match the app */
    .mobile-splash-container {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100vw;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        padding: 24px;
        text-align: center;
        background-color: #ffffff;
    }

    /* Hide the ambient dark glow behind the splash */
    .ambient-bg {
        display: none;
    }

    .mobile-splash-logo {
        margin-bottom: 24px;
    }

    .mobile-splash-logo .logo-mark {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin: 0 auto;
        background: linear-gradient(135deg, #10b981, #059669);
        color: #ffffff;
        border-radius: 22px;
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    }

    .mobile-splash-container .logo-text {
        font-size: 28px;
        font-weight: 800;
        color: #111827;
        margin-top: 16px;
        display: block;
        letter-spacing: -0.5px;
    }

    .mobile-splash-container p {
        color: #6b7280;
        margin-bottom: 48px;
        font-size: 1rem;
        max-width: 260px;
        line-height: 1.6;
    }

    .mobile-splash-container .btn-primary {
        width: 100%;
        max-width: 300px;
        height: 56px;
        font-size: 1.05rem;
        font-weight: 600;
        background: linear-gradient(135deg, #10b981, #059669);
        color: #fff;
        border: none;
        border-radius: 16px;
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Keep ambient bg visible for splash */

    .nav-links {
        display: none;
    }

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

    .hero-subtitle {
        margin: 0 auto 32px auto;
    }

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

    .social-proof {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 64px;
    }

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

    .partner-visual {
        order: 2;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .ops-section {
        padding-top: 0;
    }

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

    .footer-desc {
        margin: 16px auto 0;
    }

    .benefit-list li {
        justify-content: center;
        text-align: left;
    }
}

/* Base state for mobile splash container (hidden on desktop) */
.mobile-splash-container {
    display: none;
}