* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    overflow-x: hidden;
}

.navbar {
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, 92vw);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: top 300ms cubic-bezier(0.4, 0, 0.2, 1),
                left 300ms cubic-bezier(0.4, 0, 0.2, 1),
                transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
                width 300ms cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 300ms cubic-bezier(0.4, 0, 0.2, 1),
                padding 300ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1),
                background 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(150px 80px at 15% 0%, rgba(255,255,255,0.55), rgba(255,255,255,0));
    pointer-events: none;
}

/* Fullwidth state when at top */
.navbar.fullwidth {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    border-radius: 0;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.navbar.fullwidth::before {
    background: none; /* remove highlight in fullwidth to look native */
}

.logo {
    font-size: 24px;
    font-weight: 600;
}

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

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.download-btn {
    background-color: #4384D1;
    color: #fff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-left: auto; /* push CTA to far right for spacing */
}

.download-btn:hover {
    background-color: #5c94d7;
    transform: scale(1.05);
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 48px;
}

.hero {
    background-color: #fff;
    text-align: center;
    height: 100vh;
    gap: 200px;
    overflow: hidden;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
}

.hero p {
    font-size: 24px;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.3s forwards;
}

/* 3D Logo Container */
.logo-container-3d {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    perspective: 1000px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.6s forwards;
}

.logo-box {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.logo-box-face {
    width: 100%;
    height: 100%;
    position: absolute;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo-box-face::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.logo-placeholder {
    width: 70%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #86868b;
    border: 2px dashed #d1d1d6;
    border-radius: 10px;
}

.tilt-hint {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 16px;
    color: #86868b;
    opacity: 0;
    display: none; /* Initially hidden, will be shown only on mobile */
    animation: fadeInOut 3s infinite;
}

/* 3D device container */
.device-container {
    position: relative;
    width: 100%;
    height: 400vh;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.device-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 48px;
}

.device-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-column {
    flex: 1;
    padding: 0 48px;
}

.device {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
}

.device-screen {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #f5f5f7;
    border-radius: 30px;
    overflow: hidden;
}

.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.text-content {
    text-align: left;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

.text-content.active {
    opacity: 1;
    transform: translateY(0);
}

.text-content h3 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.text-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #6e6e73;
    margin-bottom: 24px;
}

.features {
    background-color: #f5f5f7;
    padding-top: 150px;
    align-items: flex-start;
}


.features h2 {
    font-size: 40px;
    margin-bottom: 64px;
    text-align: start;
}

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

.feature-item {
    background-color: #fff;
    padding: 32px;
    border-radius: 20px;

    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.feature-icon {
    font-size: 30px;
    margin-bottom: 16px;
}

.feature-item h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-item p {
    color: #000;
    font-size: 17px;

}

.pricing h2 {

    font-size: 40px;

    margin-bottom: 24px;

    opacity: 0;

    transform: translateY(20px);

}



.pricing-subtitle {

    font-size: 20px;

    color: #86868b;

    max-width: 600px;

    margin: 0 auto 64px;

    opacity: 0;

    transform: translateY(20px);

}



.pricing-container {

    width: 100%;

    max-width: 1000px;

    margin: 0 auto;

    position: relative;

}



.pricing-calculator {

    background-color: #fff;

    border-radius: 20px;

    box-shadow: 0 20px 40px rgba(0,0,0,0.1);

    overflow: hidden;

    opacity: 0;

    transform: translateY(30px);

}





.pricing-header {

    padding: 32px;

    background: linear-gradient(120deg, #000 0%, #333 100%);

    color: white;

    text-align: left;

}



.pricing-header h3 {

    font-size: 24px;

    margin-bottom: 8px;

}



.pricing-header p {

    font-size: 16px;

    opacity: 0.8;

}



.pricing-steps {

    display: flex;

    flex-direction: column;

    padding: 0;

    position: relative;

}



.pricing-step {

    padding: 32px;

    border-bottom: 1px solid #f5f5f7;

    text-align: left;

    display: flex;

    align-items: flex-start;

    position: relative;

    opacity: 0;

    transform: translateY(20px);

    transition: all 0.5s ease;

}



.step-number {

    width: 32px;

    height: 32px;

    background-color: #000;

    color: white;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 600;

    margin-right: 16px;

    flex-shrink: 0;

}



.step-content {

    flex-grow: 1;

}



.step-title {

    font-size: 18px;

    font-weight: 600;

    margin-bottom: 16px;

}



.step-description {

    font-size: 14px;

    color: #86868b;

    margin-bottom: 24px;

}



.input-group {

    margin-bottom: 16px;

}



.input-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 500;

}



.input-group input {

    width: 100%;



    padding: 12px;

    border-radius: 10px;

    border: 1px solid #d2d2d7;

    font-size: 16px;

    transition: all 0.3s ease;


}

.input-group select::-ms-expand {
    display: none;
}

.input-group select {

    width: 100%;


    padding: 12px;
    padding-right: 40px;

    border-radius: 10px;

    border: 1px solid #d2d2d7;

    font-size: 16px;

    transition: all 0.3s ease;

}



.input-group select:focus {

    outline: none;

    border-color: #0071e3;

    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);

}






.input-group input:focus {

    outline: none;

    border-color: #0071e3;

    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);

}



.toggle-group {

    display: flex;

    align-items: center;

    margin-bottom: 16px;

}



.toggle-label {

    flex-grow: 1;

    font-size: 14px;

}



.toggle-switch {

    position: relative;

    display: inline-block;

    width: 50px;

    height: 28px;

}



.toggle-switch input {

    opacity: 0;

    width: 0;

    height: 0;

}



.toggle-slider {

    position: absolute;

    cursor: pointer;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background-color: #d2d2d7;

    transition: .4s;

    border-radius: 34px;

}



.toggle-slider:before {

    position: absolute;

    content: "";

    height: 24px;

    width: 24px;

    left: 2px;

    bottom: 2px;

    background-color: white;

    transition: .4s;

    border-radius: 50%;

}



.toggle-switch input:checked + .toggle-slider {

    background-color: #0071e3;

}



.toggle-switch input:checked + .toggle-slider:before {

    transform: translateX(22px);

}



.button-group {

    display: flex;

    gap: 16px;

    margin-top: 24px;

}



.pricing-summary {

    background-color: #f5f5f7;

    padding: 32px;

    text-align: left;

    opacity: 0;

    transform: translateY(20px);

}



.summary-title {

    font-size: 18px;

    font-weight: 600;

    margin-bottom: 16px;

}



.summary-items {

    margin-bottom: 24px;

}



.summary-item {

    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;

    font-size: 14px;

}



.summary-item.total {

    font-weight: 600;

    font-size: 16px;

    border-top: 1px solid #d2d2d7;

    padding-top: 16px;

    margin-top: 16px;

}

.summary-item.total2 {



    border-top: 1px solid #d2d2d7;

    padding-top: 16px;

    margin-top: 16px;

}



.summary-action {

    display: flex;

    justify-content: center;

}


.pricing-calculator.show {

    opacity: 1;

    transform: translateY(0);

    transition: all 0.8s ease;

}

.pricing-step.show {

    opacity: 1;

    transform: translateY(0);

    transition: all 0.5s ease;

}

.pricing-summary.show {

    opacity: 1;

    transform: translateY(0);

    transition: all 0.5s ease;

}

.pricing h2.show, .pricing-subtitle.show {

    opacity: 1;

    transform: translateY(0);

    transition: all 0.8s ease;

}



/* Animation for price changes */

@keyframes pricePulse {

    0% { transform: scale(1); }

    50% { transform: scale(1.1); }

    100% { transform: scale(1); }

}



.price-update {

    animation: pricePulse 0.4s ease;

}

.cta {
    background: linear-gradient(180deg, #000 0%, #333 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 40px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.cta p {
    font-size: 20px;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.app-store-btn {
    background-color: #fff;
    color: #000;
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.app-store-btn:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.9);
}

.app-store-icon {
    margin-right: 8px;
    font-size: 24px;
}



footer {
    padding: 40px;
    text-align: center;
    background-color: #f5f5f7;
    color: #86868b;
    font-size: 14px;
}

.footer-wrapper {
    display: flex;gap: 20px;justify-content:center
}

footer a {
    color: #86868b;
    text-decoration: none;
}

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

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.store-wrapper {
    display: flex; gap: 20px; margin-top: 50px
}

/* App screenshots */
.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
    .device-content-wrapper {
        flex-direction: column;
        gap: 48px;
    }
    
    .device-column, .text-column {
        width: 100%;
        text-align: center;
    }

    .hero {
        gap: 100px;
    }
    
    .text-column {
        padding: 0;
        margin-top: 48px;
    }
    
    .text-content {
        text-align: center;
    }
    
    .text-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .sticky-wrapper {
        padding: 0 24px;
    }
    
    .device {
        width: 240px;
        height: 480px;
    }
    
    .logo-container-3d {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }

    .store-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .toggle-label {
        max-width: 270px;
        margin-right: 10px;
    }
    
    .nav-links {
        display: none;
    }

    .summary-item span {
        max-width: 170px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .text-content h3 {
        font-size: 28px;
    }
    .cta h2 {
        font-size: 28px;
    }
    
    .text-content p {
        font-size: 16px;
    }
    
    .tilt-hint {
        display: block;
    }

    .footer-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-container-3d {
        width: 200px;
        height: 200px;
    }

    .pricing {

        padding: 80px 24px;

    }

    

    .pricing h2 {

        font-size: 32px;

    }

    

    .pricing-subtitle {

        font-size: 18px;

    }

    

    .pricing-step {

        padding: 24px;

        flex-direction: column;

    }

    

    .step-number {

        margin-bottom: 16px;

    }

    

    .button-group {

        flex-direction: column;

    }
}