:root {
    --bg-color: #000;
    --text-color: #f5f5f7;
    --text-secondary: #86868b;
    --accent-color: #2997ff; /* Lighter vivid blue */
    --nav-bg: rgba(0, 0, 0, 0.85);
    --card-bg: #161617;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --transition-speed: 0.8s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.47059;
    letter-spacing: -0.011em;
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-speed) cubic-bezier(0.5, 0, 0, 1);
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 54px; /* Slightly taller */
    background-color: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    width: 100%;
    max-width: 1024px;
    display: flex;
    justify-content: space-between;
    padding: 0 22px;
}

.nav-logo {
    font-weight: 600;
    font-size: 16px; /* Slightly larger */
    letter-spacing: -0.01em;
}

/* Sections */
section {
    min-height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px; /* Consistent padding */
    position: relative;
    overflow: hidden;
}

.container {
    width: 1024px;
    max-width: 100%;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.title-large {
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 12px;
}

.subtitle-large {
    font-size: 24px; /* Slightly smaller */
    color: var(--text-secondary);
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero .hero-content {
    z-index: 1;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator::after {
    content: "";
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Content Sections */
.description-text {
    max-width: 800px;
    font-size: 24px;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 24px auto;
}

.description-text strong {
    color: var(--text-color);
    font-weight: 600;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
}

/* Grid Layouts */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 48px;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: scale(1.02);
    background-color: #2a2a2c;
}

.feature-card img.app-preview {
    width: auto;
    height: 400px; /* Fixed height to match vertical size */
    max-width: 100%;
    object-fit: contain; /* Ensure full image is visible */
    margin: 30px auto 0;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1c1c1e;
    max-width: 600px; /* Reduced from 800px */
    width: 85%;
    max-height: 85vh;
    border-radius: 30px;
    padding: 40px; /* Reduced from 60x 40 */
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.modal-body h2 {
    margin-bottom: 20px;
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-image {
    width: 100%;
    max-width: 400px; /* Smaller modal images */
    display: block;
    margin: 0 auto 30px;
    border-radius: 20px;
}

.modal-link {
    display: inline-block;
    color: #fff;
    background: var(--accent-color);
    padding: 12px 30px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.modal-link:hover {
    opacity: 0.9;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 17px;
}

/* Full Width Images */
.section-image {
    width: 100%;
    max-width: 1000px;
    border-radius: 30px;
    margin-top: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Footer */
footer {
    background-color: #161617;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-content {
    max-width: 1024px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 1068px) {
    .container {
        width: 100%;
        padding: 0 40px;
    }
    .title-large {
        font-size: 56px;
    }
}

@media (max-width: 734px) {
    section {
        padding: 80px 20px;
    }
    .container {
        padding: 0 20px;
    }
    .title-large {
        font-size: 40px;
    }
    .subtitle-large {
        font-size: 21px;
    }
    .description-text {
        font-size: 19px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .feature-card {
        padding: 32px;
    }
    .feature-card img.app-preview {
        height: 300px; /* Smaller height on mobile */
    }
    .modal-content {
        padding: 40px 20px;
        width: 95%;
    }
}
