:root {
    --bg-color: #0a0a0b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #fe2c55;
    --accent-secondary: #25f4ee;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Background Effects */
.background-glow-1,
.background-glow-2 {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
}

.background-glow-1 {
    top: -100px;
    left: -100px;
    background: var(--accent-primary);
}

.background-glow-2 {
    bottom: -100px;
    right: -100px;
    background: var(--accent-secondary);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.badge {
    background: linear-gradient(135deg, var(--accent-primary), #ff7eb3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 8px;
    vertical-align: middle;
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.btn-nav {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 10% 0;
    /* Compact: reduced base padding and removed bottom padding */
    min-height: 65vh;
    /* Compact: reduced height */
}

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

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.version-info {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* App Mockup Visual */
.hero-visual {
    position: relative;
}

.app-window {
    width: 320px;
    /* Compact: Scaled down */
    height: 400px;
    /* Compact: Scaled down */
    background: rgba(20, 20, 22, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.app-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.8;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.window-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fake-input {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.fake-btn {
    height: 40px;
    background: var(--accent-primary);
    border-radius: 8px;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-end;
}

.fake-video-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.play-icon {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 20px;
}

.video-info {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.short {
    width: 60%;
}

/* Features Section */
.features {
    padding: 0 10% 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    /* Compact: Reduced gap */
    margin-top: -3rem;
    /* Compact: Adjusted negative margin */
    position: relative;
    z-index: 10;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

/* Installation Guide Section */
.install-guide {
    padding: 0 10% 4rem;
    position: relative;
    z-index: 10;
}

.guide-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
}

.guide-container h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.guide-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-card.compact {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    height: 100%;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.step-text {
    min-width: 0;
    /* Flex child fix for overflow */
}

.step-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.step-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.cmd-box {
    margin-top: 10px;
    background: black;
    border-radius: 6px;
    border: 1px solid #333;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#cmd-text {
    font-family: monospace;
    color: #25f4ee;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    /* Allow shrinking */
    min-width: 0;
    /* Flex child fix */
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    padding: 3rem 10%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .features {
        margin-top: 0;
        padding-top: 2rem;
    }

    .hero-content {
        margin-bottom: 4rem;
    }

    .cta-group {
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .app-window {
        width: 100%;
        max-width: 350px;
        height: 400px;
    }
}

/* Installation Help */
.help-link {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.help-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

.modal {
    width: 90%;
    max-width: 600px;
    background: #1a1a1c;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

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

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

.modal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-content {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-intro {
    background: rgba(254, 44, 85, 0.1);
    border: 1px solid rgba(254, 44, 85, 0.2);
    color: #ffbd2e;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.step-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.step-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.step-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.step-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

code.cmd {
    display: block;
    background: #000;
    border: 1px solid #333;
    padding: 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #25f4ee;
    margin-top: 10px;
    white-space: pre-wrap;
    word-break: break-all;
}