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

:root {
    --primary: #22c55e;
    --secondary: #3b82f6;
    --bg-dark: #0b0f17;
    --bg-card: #111827;
    --text: #e5e7eb;
    --text-dim: #9ca3af;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
}

/* =========================
   GRID BACKGROUND
========================= */

.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: -1;
}

@keyframes gridMove {
    from { transform: translate(0,0); }
    to { transform: translate(50px,50px); }
}

/* =========================
   HEADER
========================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

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

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

/* =========================
   BUTTONS
========================= */

.btn-primary {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.2);
}

.btn-secondary {
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* =========================
   CODE SHOWCASE
========================= */

.code-showcase,
.code-block {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-showcase {
    margin-top: 3rem;
    max-width: 700px;
}

.code-showcase pre,
.code-block code {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =========================
   CODE EDITOR
========================= */

.editor-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.editor-container {
    display: flex;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    margin-top: 40px;
}

/* Sidebar */
.editor-sidebar {
    width: 220px;
    background: #252526;
    padding: 20px 0;
    border-right: 1px solid #333;
}

.sidebar-title {
    color: #aaa;
    font-size: 12px;
    padding: 0 20px 10px;
    text-transform: uppercase;
}

.editor-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.editor-sidebar li {
    padding: 10px 20px;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
}

.editor-sidebar li:hover {
    background: #37373d;
}

.editor-sidebar li.active {
    background: #094771;
    color: #fff;
}

/* Main */
.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.editor-topbar {
    height: 40px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
}

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

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.file-name {
    margin-left: 15px;
    color: #ccc;
    font-size: 14px;
}

/* Code */
pre {
    margin: 0;
    padding: 20px;
    color: #d4d4d4;
    font-family: "Fira Code", monospace;
    font-size: 14px;
    overflow-x: auto;
}

/* Simple syntax colors */
.keyword { color: #569cd6; }
.string { color: #ce9178; }
.comment { color: #6a9955; }
.function { color: #dcdcaa; }

/* =========================
   FEATURES
========================= */

.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-dim);
}

/* =========================
   INSTALL PAGE
========================= */

.container {
    margin: 50px auto;
    padding: 120px 2rem 4rem;
}

.subtitle {
    color: var(--text-dim);
    margin-bottom: 3rem;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 3rem 0 1.5rem;
    color: var(--primary);
}

h3 {
    font-family: 'Orbitron', sans-serif;
    margin: 2rem 0 1rem;
    color: var(--secondary);
}

ul {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin: 0.5rem 0;
    color: var(--text-dim);
}

.info-box,
.warning-box,
.success-box {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.info-box {
    background: rgba(0, 136, 255, 0.1);
    border-left: 4px solid var(--secondary);
}

.warning-box {
    background: rgba(255, 136, 0, 0.1);
    border-left: 4px solid #ff8800;
}

.success-box {
    background: rgba(0, 255, 136, 0.1);
    border-left: 4px solid var(--primary);
}



/* =========================
   CTA
========================= */

.cta {
    padding: 6rem 3rem;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cta h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    margin-top: 4rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem 1.5rem;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem; 
        justify-content: center;
    }

    .container {
        padding: 100px 1.5rem 2rem;
    }
}

@media (max-width: 480px) {

    .container {
        padding: 90px 1rem 2rem;
    }

    .code-showcase,
    .code-block {
        font-size: 0.8rem;
    }

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

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .btn-secondary {
        margin-top: 1rem;
    }

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