/* Core Variables and Setup */
:root {
    /* Color Palette derived from app mockups */
    --bg-main: #131313;
    --bg-surface: #1C1C1E;
    --bg-surface-elevated: #2C2C2E;

    --text-primary: #FFFFFF;
    --text-secondary: #9E9E9E;
    --text-muted: #6B6B6B;

    /* Vibrant branding colors */
    --accent-green: #447055;
    --accent-red: #C0775D;
    --accent-purple: #3D3766;
    --accent-teal: #1B7C6E;

    /* Gradient derived from the logo (Cyan-Blue to Yellow-Greenish) */
    --gradient-brand: linear-gradient(135deg, #2D9CDB 0%, #00F2FE 40%, #4FACFE 60%, #BFE76A 100%);
    --gradient-glow: linear-gradient(135deg, rgba(45, 156, 219, 0.2) 0%, rgba(191, 231, 106, 0.2) 100%);

    /* Layout */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;

    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utilities */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--trans-normal);
    border: none;
    gap: 8px;
}

.btn-small {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-main);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* App Store Buttons */
.store-btn {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 10px 20px;
    gap: 12px;
    transition: var(--trans-normal);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.store-btn i {
    font-size: 28px;
    color: var(--text-primary);
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-sub {
    font-size: 10px;
    line-height: 1;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.store-main {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--trans-normal);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(19, 19, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 8px;
    /* Slightly round the icon if needed */
}

.logo-img-small {
    height: 28px;
    width: auto;
    border-radius: 6px;
}

.logo-icon-wrapper {
    position: relative;
    display: flex;
}

.static-logo {
    transition: opacity var(--trans-fast);
}

.animated-logo {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans-fast);
}

.logo:hover .static-logo,
.footer-logo:hover .static-logo {
    opacity: 0;
}

.logo:hover .animated-logo,
.footer-logo:hover .animated-logo {
    opacity: 1;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: var(--trans-normal);
    border-radius: 2px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    padding: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: var(--trans-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--text-primary);
    color: var(--bg-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: var(--trans-normal);
    border-radius: 2px;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    z-index: 101;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    filter: blur(140px);
    opacity: 0.6;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Phone Mockup Design */
.hero-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 610px;
    background-color: #000;
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 0 0 2px #2A2A2A,
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: var(--trans-slow);
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg) translateY(-10px);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background-color: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-surface);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: auto;
    object-fit: cover;
    pointer-events: none;
}

/* Floating Elements around phone */
.floating-card {
    position: absolute;
    background: rgba(30, 30, 32, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

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

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

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

.floating-card.pos-1 {
    top: 15%;
    left: -40px;
    animation-delay: 0s;
}

.floating-card.pos-2 {
    bottom: 25%;
    right: -50px;
    animation-delay: 2s;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-val {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.card-label {
    font-size: 13px;
    color: var(--text-secondary);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--trans-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-surface-elevated);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    transition: var(--trans-normal);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* App Showcase Section */
.app-showcase {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-main) 0%, rgba(28, 28, 30, 0.4) 100%);
}

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

.showcase-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    transition: var(--trans-normal);
    cursor: pointer;
}

.showcase-item:hover,
.showcase-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.showcase-item.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.showcase-icon {
    font-size: 28px;
    color: #4FACFE;
    /* Accent color from gradient */
}

.showcase-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.showcase-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Image Stack Animation */
.showcase-images {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-stack {
    position: relative;
    width: 280px;
    height: 570px;
}

.stack-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
}

.img-back {
    transform: scale(0.9) translateX(-40px) translateZ(-100px) rotateY(15deg);
    opacity: 0.5;
    z-index: 1;
}

.img-mid {
    transform: scale(0.95) translateX(40px) translateZ(-50px) rotateY(-10deg);
    opacity: 0.8;
    z-index: 2;
}

.img-front {
    transform: scale(1) translateX(0) translateZ(0);
    opacity: 1;
    z-index: 3;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.6);
}

.showcase-images:hover .img-back {
    transform: scale(0.9) translateX(-60px) translateZ(-100px) rotateY(20deg);
}

.showcase-images:hover .img-mid {
    transform: scale(0.95) translateX(60px) translateZ(-50px) rotateY(-15deg);
}

/* About Section */
.about {
    padding: 160px 0;
    position: relative;
}

.about-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(45, 156, 219, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.about-box {
    background: linear-gradient(180deg, rgba(28, 28, 30, 0.8) 0%, rgba(20, 20, 22, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.vg-icon {
    width: 80px;
    height: 80px;
    background: var(--text-primary);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    border-radius: 24px;
    letter-spacing: -2px;
}

.about-title {
    font-size: 32px;
    font-weight: 700;
}

.about-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-content .highlight-text {
    color: var(--text-primary);
    font-weight: 500;
}

.about-content .btn {
    margin-top: 16px;
}

/* Footer Section */
.footer {
    background: #0A0A0A;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    transition: var(--trans-normal);
}

.social-links a:hover {
    background: var(--text-primary);
    color: var(--bg-main);
    transform: translateY(-3px);
}

.footer-links-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links-group a:hover {
    color: var(--text-primary);
}

.important-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
}

.important-link:hover {
    color: #4FACFE !important;
}

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

.app-badges-small {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-badges-small .badge-text {
    margin-right: 8px;
}

.app-badges-small i {
    font-size: 24px;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-actions {
        justify-content: center;
        margin-bottom: 60px;
    }

    .floating-card.pos-1 {
        left: 0;
    }

    .floating-card.pos-2 {
        right: 0;
    }

    .container-showcase {
        grid-template-columns: 1fr;
    }

    .showcase-content {
        order: 2;
    }

    .showcase-images {
        order: 1;
        margin-bottom: 40px;
    }

    .about-box {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px;
    }

    .about-logo {
        align-items: center;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

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

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

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(19, 19, 19, 0.95);
        backdrop-filter: blur(16px);
        padding: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .floating-card {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Utility Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}