/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B6B;
    --primary-dark: #EE5A5A;
    --secondary: #4ECDC4;
    --dark: #1A1B26;
    --dark-lighter: #24253A;
    --gray: #9CA3AF;
    --gray-light: #E5E7EB;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
    --radius: 8px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

code, pre {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-icon {
    font-size: 1.5rem;
}

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

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

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

.github-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    background: var(--dark);
    color: var(--white) !important;
}

.github-link:hover {
    background: var(--dark-lighter) !important;
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
}

.hero-content {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 25%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-subtitle code {
    background: var(--dark);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
    border-color: var(--dark);
    background: var(--gray-light);
}

.hero-note {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Hero Visual */
.hero-visual {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.screenshot-container {
    position: relative;
    z-index: 5;
}

.window-preview {
    position: relative;
    z-index: 5;
}

.window-chrome {
    background: linear-gradient(180deg, #E5E5EA 0%, #D1D1D6 100%);
    border-radius: 8px 8px 0 0;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #FF5F56; }
.control.yellow { background: #FFBD2E; }
.control.green { background: #27C93F; }

.window-title {
    font-size: 0.875rem;
    color: #4A4A4A;
    font-weight: 500;
    margin: 0 auto;
}

/* Screenshot/Demo */
.screenshot {
    background: var(--white);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-placeholder {
    padding: 20px;
}

.demo-table {
    padding: 20px;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 80px 100px;
    gap: 20px;
    padding: 12px 20px;
    background: var(--gray-light);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 12px;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 80px 100px;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-light);
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.port {
    font-weight: 600;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

.process {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.process .icon {
    font-size: 1.25rem;
}

.pid {
    color: var(--gray);
    font-family: 'JetBrains Mono', monospace;
}

.kill-btn {
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    background: var(--dark);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.kill-btn:hover {
    background: var(--dark-lighter);
    transform: translateY(-1px);
}

.kill-btn.force {
    background: var(--primary);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--white);
}

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-light);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: transparent;
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

.feature-card code {
    background: var(--gray-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
}

/* Screenshots Section */
.screenshots-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, #F9FAFB 100%);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.screenshot-card {
    text-align: center;
}

.screenshot-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.screenshot-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.screenshot-full {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--gray-light);
    color: var(--gray);
    font-weight: 500;
}

.screenshot-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.screenshot-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Changelog Section */
.changelog {
    padding: 100px 0;
    background: var(--white);
}

.changelog-content {
    max-width: 800px;
    margin: 0 auto;
}

.changelog-version {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    transition: all 0.3s;
}

.changelog-version:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.version-header h3 {
    font-size: 1.75rem;
    color: var(--primary);
}

.version-date {
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.version-content h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.version-content ul {
    list-style: none;
    padding-left: 0;
}

.version-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray);
    line-height: 1.6;
}

.version-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
}

.version-content li strong {
    color: var(--dark);
}

.changelog-upcoming {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.changelog-upcoming h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.changelog-upcoming ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.changelog-upcoming li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray);
}

.changelog-upcoming li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.changelog-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 0.9rem;
}

.changelog-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.changelog-note a:hover {
    text-decoration: underline;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, #F9FAFB 100%);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 900px;
    margin: 60px auto 0;
}

.step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--gray);
}

/* Comparison Section */
.comparison {
    padding: 100px 0;
    background: var(--white);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.comparison-card {
    padding: 30px;
    border-radius: var(--radius-lg);
}

.comparison-card.before {
    background: #FFF5F5;
    border: 2px solid #FEE2E2;
}

.comparison-card.after {
    background: #F0FDF4;
    border: 2px solid #BBF7D0;
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.terminal {
    background: var(--dark);
    color: #10B981;
    padding: 20px;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    overflow-x: auto;
}

.app-mockup {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    font-size: 1.125rem;
    line-height: 2;
}

.app-mockup p {
    margin-bottom: 10px;
}

.app-mockup .or {
    color: var(--gray);
    font-style: italic;
    margin: 20px 0;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(180deg, #F9FAFB 0%, var(--white) 100%);
}

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

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto 60px;
}

.download-card {
    display: block;
    padding: 30px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    text-align: center;
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

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

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

.download-card p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.download-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 500;
}

.install-instructions {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.install-instructions h4 {
    margin-bottom: 1rem;
    color: var(--gray);
}

.code-block {
    background: var(--dark);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', monospace;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    max-width: 400px;
}

.footer-left .logo {
    margin-bottom: 1rem;
}

.footer-logo {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    width: 42px;
    height: 42px;
}

.footer-left p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links-social {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links-social a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-social a:hover {
    color: var(--white);
}

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

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-group h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 8px;
}

.footer-link-group a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-link-group a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray);
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .steps {
        flex-direction: column;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .table-header,
    .table-row {
        grid-template-columns: 60px 1fr 60px 80px;
        font-size: 0.875rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .download-options {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .changelog-version,
    .changelog-upcoming {
        padding: 20px;
    }
}
