:root {
    --bg-color: #F5F5F7;
    --text-color: #1D1D1F;
    --text-muted: #86868B;
    --primary-color: #0071E3;
    /* Apple Blue */
    --secondary-color: #5E5CE6;
    /* Apple Indigo */
    --accent-color: #BF40BF;
    /* Purple */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --font-heading: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --card-hover: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #F5F5F7;
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #F5F5F7 100%);
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.globe-1 {
    width: 700px;
    height: 700px;
    background: conic-gradient(from 180deg at 50% 50%, #D4F1F4 0deg, #E0F7FA 360deg);
    top: -20%;
    left: -10%;
    opacity: 0.6;
}

.globe-2 {
    width: 600px;
    height: 600px;
    background: conic-gradient(from 180deg at 50% 50%, #F3E5F5 0deg, #E1BEE7 360deg);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
    opacity: 0.5;
}

.globe-3 {
    width: 500px;
    height: 500px;
    background: conic-gradient(from 180deg at 50% 50%, #E3F2FD 0deg, #BBDEFB 360deg);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.4;
}

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

    100% {
        transform: translate(30px, 20px) scale(1.05);
    }
}

/* Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    /* Keep original padding */
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer border */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    /* Slightly smaller for elegance */
    font-weight: 600;
}

.logo .highlight {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-color);
    /* Black on hover is cleaner */
}

.mobile-menu-btn {
    display: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.cta-button {
    padding: 0.5rem 1.2rem;
    background: #1D1D1F;
    border-radius: 20px;
    /* Pill shape */
    color: #fff !important;
    transition: all 0.2s ease;
    font-size: 0.85rem !important;
}

.cta-button:hover {
    background: #333;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    /* Slightly reduced height */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 113, 227, 0.1);
    /* Subtle blue tint */
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    /* Larger */
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.text-gradient {
    background: linear-gradient(135deg, #0071E3 0%, #00C7BE 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.5;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    /* Pill shape */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.25);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.35);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Hero Visual & Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    /* Clean slate */
}

.iphone-mockup {
    width: 300px;
    height: 600px;
    background: #F2F2F2;
    /* Titanium ish */
    border-radius: 55px;
    /* Smoother corners */
    border: 8px solid #3a3a3a;
    /* Darker frame */
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.iphone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 35px;
    /* Dynamic Island size */
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.screen-content {
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1000&auto=format&fit=crop') center/cover no-repeat;
    /* Placeholder wallpaper */
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.floating-card i {
    color: var(--primary-color);
}

.floating-card.c1 {
    top: 25%;
    right: -30px;
    animation: float 5s ease-in-out infinite;
}

.floating-card.c2 {
    bottom: 20%;
    left: -30px;
    animation: float 6s ease-in-out infinite reverse;
}

.floating {
    animation: floatBig 8s ease-in-out infinite;
}

@keyframes floatBig {

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

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

/* Sections */
.section-padding {
    padding: 8rem 8%;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

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

/* Bento Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    grid-auto-rows: minmax(300px, auto);
}

.app-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 32px;
    /* Apple-like curvature */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}



.app-icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.app-icon-img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    /* Consistent squircle */
    margin-bottom: 1.5rem;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Gradients */
.app-gradient-1 {
    background: linear-gradient(135deg, #FF3B30 0%, #FF9500 100%);
}

.app-gradient-2 {
    background: linear-gradient(135deg, #5E5CE6 0%, #BF5AF2 100%);
}

.app-gradient-3 {
    background: linear-gradient(135deg, #30B0C7 0%, #5ac8fa 100%);
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.app-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.4;
}



/* Contact/Footer */
.cta-section {
    padding: 6rem 8% 8rem 8%;
}

.cta-card {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.cta-card h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

/* Animations (Keep existing but ensure smooth) */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        padding-top: 6rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .app-card.bento-large {
        grid-column: span 1;
        /* Stack on mobile */
        flex-direction: column;
        text-align: center;
    }

    .bento-large .app-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .bento-large .app-text {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-padding {
        padding: 4rem 6%;
    }
}
