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

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-tagline {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

/* Hero Section */
.hero {
    padding: 0.5rem 0 0.5rem;
    color: var(--text-dark);
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 999;
}

body {
    padding-top: 160px;
    background: var(--bg-light);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0;
}

.install-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.install-help {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Inter", sans-serif;
    margin: 0;
    text-align: left;
}

.install-copy {
    all: unset;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 60%, #f472b6 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.25);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    max-width: 100%;
}

.install-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(118, 75, 162, 0.32);
}

.install-copy:active {
    transform: translateY(1px);
}

.install-prompt {
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
}

.install-cmd {
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60ch;
}

.install-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #764ba2;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 999px;
    min-width: 56px;
}

.install-copy.copied .install-hint {
    background: #5eead4;
    color: #0f766e;
}


.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Features Section */
.features {
    padding: 0 0 4rem;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card-wide {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0 !important;
}

.feature-card {
    background: white;
    padding: 1rem 2rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.feature-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.feature-header h3 {
    margin-bottom: 0 !important;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    text-align: center;
}

.feature-image {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.feature-image:hover {
    transform: scale(1.01);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    padding: 2rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.feature-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 2.5rem;
    margin-top: 0.5rem;
}

.feature-image-row .feature-image {
    margin-top: 0;
    min-width: 0;
}

.feature-image-item {
    min-width: 0;
}

.feature-image-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #764ba2;
    margin: 0 0 0.75rem;
    text-align: center;
}

/* Demo Section */
.demo {
    padding: 6rem 0;
    background: white;
}

.demo-video {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.video-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.demo-feature h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.demo-feature p {
    color: var(--text-light);
}

/* Download Section */
.download {
    padding: 6rem 0;
    background: var(--bg-light);
}

.download-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.download-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.download-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.download-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.download-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-download {
    background: var(--primary);
    color: white;
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.download-version {
    font-size: 0.875rem;
    color: var(--text-light);
}

.build-instructions {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.build-instructions h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.build-instructions p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.build-instructions a {
    color: var(--primary);
    text-decoration: none;
}

.build-instructions a:hover {
    text-decoration: underline;
}

.code-block {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-section a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.875rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

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

    .hero-buttons {
        flex-direction: column;
    }

    .nav-links {
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Tagline flows below the logo on narrow screens */
    .logo-tagline {
        position: static;
        transform: none;
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
        margin-top: 0.25rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }

    /* Let the install command wrap instead of overflowing */
    .install-copy {
        font-size: 0.8rem;
        padding: 0.75rem 0.875rem;
    }

    .install-cmd {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1;
    }

    .install-help {
        font-size: 0.85rem;
    }

    /* Stack feature tiles single column on phones */
    .feature-image-row {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 1.5rem;
    }

    .feature-image-title {
        font-size: 1.15rem;
    }

    .feature-card {
        padding: 0.75rem 1rem 1.25rem;
    }

    .hero {
        top: 68px;
    }

    body {
        padding-top: 180px;
    }
}

