:root {
    --primary: #2563EB;
    /* Vibrant Blue */
    --primary-hover: #1D4ED8;
    --text-main: #1F2937;
    --text-secondary: #4B5563;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-cta-nav {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 99px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-cta-nav:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 5% 0;
    /* No bottom padding, image sits on bottom of section or flows */
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 4rem;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #000;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.btn-store:hover {
    transform: translateY(-2px);
    background-color: #222;
}

.windows-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.btn-secondary {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    background: white;
    color: var(--text-main);
    border: 1px solid #E5E7EB;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #F3F4F6;
}

.hero-image {
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    margin-bottom: -60px;
    /* Overlap nicely */
    transform: perspective(1000px) rotateX(2deg);
    border: 4px solid white;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.reveal {
    opacity: 0;
    animation-fill-mode: forwards;
}

.reveal.active {
    animation: fadeUp 0.8s ease-out forwards;
}

/* --- Screenshot Cropping & Styling --- */
.screenshot-container {
    padding: 0 5%;
    margin-bottom: 4rem;
    text-align: center;
}

.screenshot-wrapper {
    display: inline-block;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    /* Captures the crop */
    border: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 0;
    max-width: 100%;
}

/* The User requested "crop off the top 10 pixels" */
.crop-top {
    margin-top: -10px;
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
}

/* --- Gallery Grid --- */
.gallery-section {
    padding: 4rem 5%;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    /* Clickable indication */
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -10px;
}

/* --- Lightbox Modal --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Slightly darker for focus */
    backdrop-filter: blur(10px);
    /* More blur for calmness */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    /* Slower fade */
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);

    /* Animation Start State */
    transform: scale(0.95) translateY(10px);
    opacity: 0;

    /* Relaxed Transition: Slower duration, soft bezier */
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* CRITICAL: Use clip-path to crop top 10px */
    /* format: inset(top right bottom left) */
    clip-path: inset(10px 0 0 0);

    object-fit: contain;
}

.lightbox.active .lightbox-img {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-weight: 200;
}

.lightbox-close:hover {
    opacity: 1;
}

/* --- Features Grid Refinement --- */
/* User wanted "not full width", more tidy */
.features {
    padding: 6rem 5%;
    background: #FAFAFA;
    /* Subtle contrast */
}

.feature-grid {
    display: grid;
    /* auto-fill keeps them size-constrained, auto-fit stretches them. Using auto-fill + center */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
}

.feature-card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #F3F4F6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    border-color: #E5E7EB;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #EFF6FF;
    /* Light Blue */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 8px;
}

.icon-box svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.feature-card p {
    color: #6B7280;
    line-height: 1.6;
    font-size: 1rem;
}


/* --- Content Pages (About/Privacy) --- */
.content-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
}

.content-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.contact-box {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #E5E7EB;
}

/* --- Footer --- */
footer {
    background: #111827;
    color: #9CA3AF;
    padding: 4rem 5%;
    margin-top: auto;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid #1F2937;
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for now */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-store,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}