/* Base Variables & Reset */
:root {
    --color-bg-dark: #1E212D;
    --color-bg-light: #F9F6F0;
    --color-bg-beige: #F5EFE6;
    --color-accent-yellow: #FFC107;
    --color-accent-yellow-hover: #E0A800;
    --color-text-main: #333333;
    --color-text-light: #F5EFE6;
    --color-text-muted: #888888;
    
    --color-block-blue: #4A90E2;
    --color-block-purple: #B565D6;
    --color-block-green: #27AE60;
    --color-block-red: #E74C3C;

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-bg-dark);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent-yellow);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    background-color: var(--color-accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

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

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

.btn-large {
    padding: 14px 32px;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 18px 40px;
    font-size: 1.25rem;
    border-radius: 12px;
}

/* Navbar */
.navbar {
    background-color: var(--color-bg-dark);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
}

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

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

.nav-links a:not(.btn):hover {
    color: var(--color-accent-yellow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-color: var(--color-bg-dark);
    padding: 160px 0 100px;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, rgba(30,33,45,0) 70%);
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--color-accent-yellow);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(245, 239, 230, 0.8);
    margin-bottom: 40px;
    max-width: 500px;
}

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

/* Ide Mockup */
.hero-visual {
    position: relative;
    z-index: 10;
}

.ide-mockup {
    background-color: var(--color-bg-beige);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.ide-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

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

.dots {
    display: flex;
    gap: 8px;
}

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

.dot.close { background-color: #FF5F56; }
.dot.min { background-color: #FFBD2E; }
.dot.max { background-color: #27C93F; }

.mockup-title {
    color: #fff;
    font-size: 0.875rem;
    margin-left: 16px;
    opacity: 0.7;
}

.mockup-body {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--color-bg-beige);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-body.full-width {
    aspect-ratio: auto;
    min-height: 500px;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: none;
    position: relative;
    z-index: 2;
    border-radius: 0 0 12px 12px;
}

.gallery-img.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.placeholder-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-muted);
    z-index: 1;
    padding: 20px;
    border: 2px dashed rgba(0,0,0,0.1);
    margin: 20px;
    border-radius: 8px;
}

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

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

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
}

.bg-yellow { background-color: var(--color-accent-yellow); }
.bg-blue { background-color: var(--color-block-blue); }
.bg-purple { background-color: var(--color-block-purple); }
.bg-green { background-color: var(--color-block-green); }

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--color-bg-dark);
}

.feature-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Interface Showcase */
.interface-showcase {
    padding: 100px 0;
    background-color: var(--color-bg-beige);
}

.gallery-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.gallery-tabs {
    display: flex;
    background-color: var(--color-bg-dark);
    padding: 16px 24px 0;
    gap: 8px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 24px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tab-btn.active {
    background: #fff;
    color: var(--color-bg-dark);
}

/* Download CTA */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #2A2D3E 100%);
    text-align: center;
    color: #fff;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.cta-small-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

/* Footer */
.footer {
    background-color: #171922;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-logo img {
    width: 24px;
    height: 24px;
}

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

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

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

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .ide-mockup {
        transform: none;
    }
    
    .ide-mockup:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a full version, we'd add mobile menu logic */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

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