/* CSS Reset & Variable Definitions */
:root {
    --bg-primary: #020202;
    --bg-secondary: #0a0a0b;
    --bg-card: rgba(18, 18, 18, 0.65);
    --bg-card-hover: rgba(25, 25, 25, 0.85);
    --accent-yellow: #FFE600;
    --accent-yellow-rgb: 255, 230, 0;
    --accent-yellow-hover: #F2DA00;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 230, 0, 0.3);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --navbar-height: 80px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glows */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    top: 5%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--accent-yellow-rgb), 0.8) 0%, rgba(255,255,255,0) 70%);
}

.glow-2 {
    top: 50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-yellow-rgb), 0.5) 0%, rgba(255,255,255,0) 70%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 230, 0, 0.2);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-yellow);
}

/* Typography & General Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-highlight {
    background: linear-gradient(135deg, var(--accent-yellow) 30%, #ffd60a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: #000000;
    box-shadow: 0 4px 20px rgba(255, 230, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 230, 0, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    background-color: rgba(255, 230, 0, 0.03);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: rgba(2, 2, 2, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(2, 2, 2, 0.9);
    border-bottom-color: rgba(255, 230, 0, 0.15);
    height: 70px;
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--accent-yellow);
}

.logo-text {
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-yellow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-github-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-left: 8px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    padding: calc(var(--navbar-height) + 60px) 0 80px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 230, 0, 0.08);
    border: 1px solid rgba(255, 230, 0, 0.25);
    color: var(--accent-yellow);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-yellow);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-card-preview {
    width: 100%;
    max-width: 450px;
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 230, 0, 0.03);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.hero-card-preview:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 230, 0, 0.08);
}

.window-header {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.window-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.window-content {
    padding: 24px;
    font-family: monospace;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terminal-line {
    color: var(--text-primary);
}

.t-yellow {
    color: var(--accent-yellow);
}

.t-dim {
    color: var(--text-muted);
}

.terminal-progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.terminal-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-yellow);
    box-shadow: 0 0 10px var(--accent-yellow);
    border-radius: 3px;
    animation: progressMock 3s infinite linear;
}

@keyframes progressMock {
    0% { width: 0%; }
    50% { width: 45%; }
    70% { width: 87%; }
    90% { width: 100%; }
    100% { width: 100%; }
}

.terminal-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Sections General */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Apps Showcase Section */
.apps-showcase {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.app-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 30px rgba(255, 230, 0, 0.04);
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 230, 0, 0.06);
    border: 1px solid rgba(255, 230, 0, 0.15);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.app-card:hover .app-icon-wrapper {
    background-color: var(--accent-yellow);
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.3);
}

.app-icon {
    width: 32px;
    height: 32px;
}

.app-status {
    position: absolute;
    top: 40px;
    right: 40px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.app-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.app-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
    flex-grow: 1;
}

.app-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.feat-check {
    color: var(--accent-yellow);
    flex-shrink: 0;
}

.app-download-area {
    margin-top: auto;
}

.download-meta {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Features Section */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 10px rgba(255, 230, 0, 0.1);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* Installation Guide */
.install-guide {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 230, 0, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    transition: var(--transition-smooth);
}

.step-card:hover .step-num {
    color: rgba(255, 230, 0, 0.12);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.step-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Footer styling */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: #020202;
    padding: 80px 0 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

.footer-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    max-width: 600px;
    text-align: right;
}

/* Responsiveness (Media Queries) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .apps-grid {
        gap: 24px;
    }
    .footer-links {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 32px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-github-btn {
        margin-left: 0;
        margin-top: 12px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .badge-new {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-card-preview {
        max-width: 100%;
    }

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

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

    .steps-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-disclaimer {
        text-align: left;
    }
}

/* Burger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent-yellow);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent-yellow);
}
