:root {
    --primary: #007AFF;
    --primary-glow: rgba(0, 122, 255, 0.4);
    --bg: #050505;
    --surface: #121212;
    --text: #ffffff;
    --text-dim: #a0a0a0;
    --accent: #FF3B30;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #111111;
    --card-border: #222222;
}

[data-theme="light"] {
    --bg: #ffffff;
    --surface: #f3f4f6;
    --text: #111827;
    --text-dim: #374151;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: #f9fafb;
    --card-border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

span.hero-span,
h1 span,
h2 span {
    background: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Nav */
header {
    background: var(--bg);
    opacity: 0.95;
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    height: 32px;
}

.logo span span {
    color: var(--primary);
    font-weight: 900;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Main Content */
main {
    padding-top: 100px;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 6rem;
    min-height: 80vh;
}

.hero-content {
    flex: 1.2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 122, 255, 0.15);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 3.5rem;
    max-width: 600px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-secondary {
    background: var(--glass);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #24292e;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.github-btn:hover {
    background: #2f363d;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-visual {
    flex: 1;
    perspective: 1000px;
}

.app-mockup {
    background: #1a1a1a;
    border-radius: 24px;
    border: 1px solid #333;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.app-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: #252525;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f57;
}

.yellow {
    background: #febc2e;
}

.green {
    background: #28c840;
}

.mockup-header .title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
}

.mockup-body {
    padding: 2rem;
    background: linear-gradient(180deg, #111 0%, #050505 100%);
}

.widget-preview {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.active {
    color: #28c840;
    font-weight: 700;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    width: 60%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Features */
.features {
    max-width: 1200px;
    margin: 12rem auto;
    padding: 2rem;
    text-align: center;
}

.features h2 {
    font-size: 4rem;
    margin-bottom: 6rem;
    letter-spacing: -1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 4rem 3rem;
    border-radius: 32px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.feature-card p {
    font-size: 1.1rem;
    color: var(--text-dim);
}

/* Download */
.download {
    background: linear-gradient(180deg, var(--bg) 0%, #0a0a0a 100%);
    padding: 8rem 2rem;
}

.download-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.download h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.download p {
    color: var(--text-dim);
    margin-bottom: 4rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.download-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.download-card:not(.disabled):hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.os-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.os-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.os-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.btn-download {
    display: block;
    padding: 0.8rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-weight: 700;
}

.download-card:hover .btn-download {
    background: var(--primary);
    border-color: var(--primary);
}

.download-card.disabled {
    opacity: 0.5;
    cursor: default;
}

.download-card.disabled .btn-download {
    background: transparent;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #555;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }
}

/* Terminal Install Redesign */
.terminal-install {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-start;
    /* Align left in hero */
}

.terminal-install.hero-install {
    max-width: 600px;
    /* Limit width in hero */
}

.terminal-content {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 800px;
    backdrop-filter: blur(10px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.windows-badge {
    background: rgba(0, 200, 255, 0.1);
    color: #4da3ff;
    border-color: rgba(0, 200, 255, 0.3);
}

.terminal-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    width: 100%;
    max-width: 800px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.terminal-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(0, 122, 255, 0.05);
    border-bottom: 2px solid var(--primary);
}

.tab-btn:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.terminal-view {
    display: none;
    padding: 1.5rem 2rem;
}

.terminal-view.active {
    display: block;
}

.terminal-app-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.code-container {
    background: #000;
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #333;
}

.code-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    overflow: hidden;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
}

.code-wrapper .prompt {
    color: var(--primary);
    font-weight: bold;
    user-select: none;
}

.code-wrapper code {
    color: #e0e0e0;
    white-space: nowrap;
    overflow-x: auto;
    padding-right: 1rem;
}

.code-wrapper code::-webkit-scrollbar {
    display: none;
}

.icon-copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-dim);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.icon-copy-btn:hover {
    background: var(--primary);
    color: white;
}

/* Coming Soon Feature */
.feature-card.coming-soon {
    grid-column: 1 / -1;
    /* Full width */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 122, 255, 0.05) 100%);
    border: 1px solid rgba(0, 122, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.coming-soon .badge {
    background: rgba(0, 122, 255, 0.2);
    color: #4da3ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    color: var(--text-dim);
}

.feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.feature-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
}

.feature-card .note {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: auto;
}

/* New Download Cards Styles */
.download-card {
    position: relative;
    overflow: hidden;
}

.download-card.featured {
    border: 1px solid var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 30px rgba(0, 122, 255, 0.15);
}

.download-card.legacy {
    border: 1px solid #333;
    opacity: 0.8;
}

.badge-overlay {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: white;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 800;
    transform: rotate(45deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.grayscale {
    filter: grayscale(100%);
}

.terminal-mini {
    margin-top: 1.5rem;
    text-align: left;
    background: #000;
    border-radius: 8px;
    padding: 0.8rem;
    border: 1px solid #333;
    font-size: 0.8rem;
}

.terminal-mini span {
    display: block;
    color: #666;
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mini-code {
    display: block;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #28c840;
    overflow-x: auto;
    white-space: nowrap;
    cursor: pointer;
}

.mini-code:active {
    opacity: 0.7;
}

.download-card.legacy .terminal-mini {
    opacity: 0.6;
}

/* Terminal Version Distinction */
.terminal-version-group {
    margin-bottom: 1.2rem;
}

.terminal-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-label.pro {
    color: var(--primary);
}

.terminal-label.legacy {
    color: #666;
}

.code-container.pro {
    border: 1px solid rgba(0, 122, 255, 0.3);
    background: rgba(0, 122, 255, 0.05);
}

.code-container.legacy {
    opacity: 0.7;
    border-style: dashed;
}

.code-container.legacy:hover {
    opacity: 1;
}