:root {
    --bg-base: #090b09;
    --bg-zinc: #121214;
    --accent-dev: #22c55e;
    --accent-glow: rgba(34, 197, 94, 0.15);
    --border-soft: rgba(34, 197, 94, 0.1);
    --border-glow: rgba(34, 197, 94, 0.3);
    --text-main: #f0fdf4;
    --text-dim: #86efac;
    --text-muted: #14532d;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.05) 0%, transparent 80%);
    z-index: -1;
    pointer-events: none;
}

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

/* -------------------
   HEADER
------------------- */
.header {
    height: 80px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 11, 9, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
}

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

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

.logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-glow);
}

.brand-text .main {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.brand-text .sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-dev);
    font-weight: 700;
}

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

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-dev);
}

.nav-link-btn {
    background: var(--accent-dev);
    color: #052e16;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

/* -------------------
   HERO
------------------- */
.hero {
    padding: 180px 0 100px;
}

.badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--border-glow);
    color: var(--accent-dev);
    padding: 6px 14px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.gradient {
    color: var(--accent-dev);
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 800px;
    margin-bottom: 48px;
    opacity: 0.9;
}

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

.btn {
    padding: 14px 36px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-dev {
    background: var(--accent-dev);
    color: #052e16;
}

.btn-dev:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border-glow);
    color: var(--accent-dev);
}

/* -------------------
   CODE BOX
------------------- */
.hero-code-box {
    background: #000;
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    font-family: var(--font-mono);
    max-width: 600px;
}

.code-header {
    background: #1a1a1c;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #2d2d30;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-title {
    margin-left: 10px;
    color: #888;
    font-size: 0.8rem;
}

.code-content {
    padding: 24px;
    font-size: 0.95rem;
    color: #d1d1d1;
}

.c { color: #6a9955; } /* Comment */
.k { color: #c586c0; } /* Keyword */
.f { color: #dcdcaa; } /* Function */
.v { color: #9cdcfe; } /* Variable */
.s { color: #ce9178; } /* String */

/* -------------------
   CARDS
------------------- */
.section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }

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

.section-desc { color: var(--text-dim); font-size: 1.1rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.dev-card {
    background: var(--bg-zinc);
    border: 1px solid var(--border-soft);
    padding: 40px;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.dev-card:hover {
    border-color: var(--accent-dev);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-dev);
    margin-bottom: 16px;
    font-weight: 700;
}

.dev-card h3 { font-size: 1.5rem; margin-bottom: 16px; }

.dev-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 24px; opacity: 0.8; }

.card-stats {
    display: flex;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* -------------------
   TERMINAL
------------------- */
.terminal-box {
    background: #000;
    border: 1px solid var(--accent-dev);
    border-radius: 12px;
    padding: 40px;
    font-family: var(--font-mono);
    box-shadow: 0 0 40px var(--accent-glow);
}

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

.t-line { margin-bottom: 12px; font-size: 1.1rem; }

.t-cursor {
    animation: blink 1s infinite;
    background: var(--accent-dev);
}

@keyframes blink { 50% { opacity: 0; } }

/* -------------------
   FOOTER
------------------- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border-soft); }

.footer-wrap { display: flex; justify-content: space-between; align-items: center; }

.footer-logo { width: 32px; height: 32px; border-radius: 6px; margin-bottom: 16px; }

.footer-left p { color: var(--text-dim); font-size: 0.9rem; opacity: 0.6; }

.footer-right p { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding-top: 140px; }
    .hero-actions { flex-direction: column; }
    .footer-wrap { flex-direction: column; text-align: center; gap: 32px; }
}
