/* Global Styles */
:root {
    --bg-primary: #2b2b2b;
    --bg-secondary: #323232;
    --editor-bg: #1e1e1e;
    --console-bg: #232323;
    --text-fg: #d2d2d2;
    --line-number-bg: #2d2d2d;
    --line-number-fg: #646464;
    --line-number-border: #3c3c3c;
    --selection-bg: #4b6eaf;
    --caret-fg: #dcdcaa;
    --keyword-color: #cc7832;
    --comment-color: #808080;
    --string-color: #6a8759;
    --button-bg: #464b4b;
    --button-hover: #565b5b;
    --accent-color: #4b6eaf;
    --accent-hover: #5880c7;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-fg);
    line-height: 1.6;
    user-select: none;
}

/* Header */
header {
    background-color: var(--editor-bg);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 2rem;
    color: var(--text-fg);
    font-weight: 700;
}

.logo span {
    color: var(--keyword-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-fg);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--keyword-color);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.7) 0%, rgba(30, 30, 30, 0.3) 100%);
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: 
        linear-gradient(45deg, var(--line-number-border) 25%, transparent 25%), 
        linear-gradient(-45deg, var(--line-number-border) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--line-number-border) 75%),
        linear-gradient(-45deg, transparent 75%, var(--line-number-border) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: var(--text-fg);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--keyword-color);
    color: var(--editor-bg);
}

.btn-primary:hover {
    background-color: #e68a3c;
}

.btn-secondary {
    background-color: var(--button-bg);
    color: var(--text-fg);
    border: 1px solid var(--line-number-border);
}

.btn-secondary:hover {
    background-color: var(--button-hover);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-fg);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-card {
    background-color: var(--editor-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--keyword-color);
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-fg);
    opacity: 0.8;
}

/* Code Preview Section */
.code-preview {
    padding: 5rem 0;
    background-color: var(--bg-primary);
}

.code-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.editor-mockup {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-top: 3rem;
}

.editor-header {
    background-color: var(--bg-secondary);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line-number-border);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

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

.close-btn {
    background-color: #ff5f56;
}

.minimize-btn {
    background-color: #ffbd2e;
}

.maximize-btn {
    background-color: #27c93f;
}

.editor-tabs {
    display: flex;
    gap: 1rem;
}

.editor-tab {
    padding: 0.25rem 1rem;
    background-color: var(--editor-bg);
    border-radius: 4px 4px 0 0;
    font-size: 0.9rem;
}

.editor-tab.active {
    border-bottom: 2px solid var(--keyword-color);
}

.editor-body {
    display: flex;
    height: 400px;
}

.line-numbers {
    background-color: var(--line-number-bg);
    border-right: 1px solid var(--line-number-border);
    padding: 1rem 0.75rem;
    color: var(--line-number-fg);
    text-align: right;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    width: 40px;
    user-select: none;
}

.code-area {
    background-color: var(--editor-bg);
    flex-grow: 1;
    padding: 1rem;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    overflow-y: auto;
}

.code-line {
    display: block;
    white-space: pre;
}

.keyword {
    color: var(--keyword-color);
    font-weight: bold;
}

.string {
    color: var(--string-color);
}

.comment {
    color: var(--comment-color);
    font-style: italic;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    text-align: center;
}

.download-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.download h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.download p {
    margin-bottom: 2rem;
    color: var(--text-fg);
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--editor-bg);
    padding: 3rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--keyword-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-fg);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--keyword-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--button-bg);
    color: var(--text-fg);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--keyword-color);
    color: var(--editor-bg);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--line-number-border);
    color: var(--text-fg);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .editor-body {
        height: 300px;
    }
    
    nav ul {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .editor-mockup {
        margin-top: 2rem;
    }
    
    .editor-header {
        padding: 0.5rem;
    }
    
    .editor-tabs {
        display: none;
    }
}