:root {
    --bg: #0d1117;
    --bg-alt: #161b22;
    --fg: #c9d1d9;
    --fg-dim: #8b949e;
    --border: #30363d;
    --green: #3fb950;
    --blue: #58a6ff;
    --red: #f85149;
    --yellow: #d29922;
    --purple: #bc8cff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--fg);
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--bg-alt); padding: 1px 5px; border-radius: 3px; font-size: inherit; color: var(--blue); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    background: var(--bg);
    padding: 8px 0;
}
.navbar-content {
    display: flex; justify-content: space-between; align-items: center;
}
.brand {
    font-weight: 700;
    color: var(--green);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand img {
    height: 24px;
    width: auto;
}
.nav-links { display: flex; gap: 16px; list-style: none; }
.nav-links a { color: var(--fg-dim); font-size: 12px; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.cta-btn { background: var(--green); color: #000 !important; padding: 4px 10px; border-radius: 4px; font-weight: 700; }

/* Hero */
.hero {
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}
.hero-inner {
    display: flex; gap: 40px; align-items: flex-start;
}
.hero-text { flex: 0 0 320px; }
.hero-logo {
    height: 56px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(63, 185, 80, 0.3));
}
.hero-text h1 {
    font-size: 26px; font-weight: 800; line-height: 1.1;
    margin-bottom: 12px; color: #fff;
}
.hero-subtitle { color: var(--yellow); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.hero-description { color: var(--fg-dim); font-size: 12px; margin-bottom: 20px; line-height: 1.6; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag { font-size: 10px; background: var(--bg-alt); color: var(--blue); padding: 2px 8px; border: 1px solid var(--border); border-radius: 4px; }

.hero-actions { display: flex; gap: 10px; }
.btn {
    display: inline-block; padding: 8px 16px; border-radius: 4px;
    font-size: 12px; font-family: inherit; text-align: center;
    border: 1px solid transparent; font-weight: 700; cursor: pointer;
}
.btn-primary { background: var(--green); color: #000; }
.btn-secondary { border-color: var(--border); color: var(--fg); background: transparent; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.hero-terminal { flex: 1; min-width: 0; }

/* Terminal */
.term {
    background: #010409;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.term-bar {
    background: var(--bg-alt);
    padding: 8px 14px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.term-title {
    flex: 1; text-align: center; color: var(--fg-dim);
    font-size: 11px; margin-right: 42px;
}
.term-body {
    padding: 12px;
    font-size: 12px;
    line-height: 1;
    color: var(--fg);
    height: 480px;
    overflow-y: auto;
    background: #010409;
}
.term-line { min-height: 12px; white-space: pre; display: block; margin: 0; }

/* Terminal Colors */
.c-dim { color: #484f58; }
.c-green { color: #3fb950; }
.c-red { color: #f85149; }
.c-blue { color: #58a6ff; }
.c-yellow { color: #d29922; }
.c-bold { color: #fff; font-weight: 600; }

/* Powerline */
.pl { display: inline-flex; align-items: center; font-size: 11px; height: 18px; margin: 2px 0; }
.pl-seg { height: 18px; display: flex; align-items: center; padding: 0 8px; font-weight: 700; }
.pl-red { background: #f85149; color: #0d1117; border-radius: 10px 0 0 10px; }
.pl-green { background: #3fb950; color: #0d1117; border-radius: 10px 0 0 10px; }
.pl-blue { background: #58a6ff; color: #0d1117; border-radius: 10px 0 0 10px; }
.pl-dark { background: #30363d; color: #c9d1d9; }
.pl-arr { width: 8px; height: 18px; position: relative; background: #30363d; }
.pl-arr::before {
    content: ""; position: absolute; left: 0; top: 0;
    border-left: 8px solid transparent; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.pl-red + .pl-arr::before { border-left-color: #f85149; }
.pl-green + .pl-arr::before { border-left-color: #3fb950; }
.pl-blue + .pl-arr::before { border-left-color: #58a6ff; }
.pl-end { width: 10px; height: 18px; background: #30363d; border-radius: 0 10px 10px 0; }

.cursor { display: inline-block; animation: blink 1s step-end infinite; color: var(--green); }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { padding: 40px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section h2 {
    font-size: 18px; margin-bottom: 16px; color: #fff;
    padding-left: 12px; border-left: 4px solid var(--green);
}
.section p { color: var(--fg-dim); font-size: 13px; margin-bottom: 20px; line-height: 1.6; }

/* Architecture Diagram */
.diagram {
    background: #010409; border: 1px solid var(--border);
    border-radius: 6px; padding: 20px;
    margin-bottom: 30px; overflow-x: auto;
}
.diagram pre { color: var(--green); font-size: 12px; line-height: 1.2; }

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    transition: transform 0.2s, border-color 0.2s;
}
.card:hover { border-color: var(--green); transform: translateY(-2px); }
.card h3 { font-size: 14px; margin-bottom: 10px; color: #fff; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.card p { font-size: 12px; color: var(--fg-dim); line-height: 1.5; margin-bottom: 12px; }

.card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.card-specs span {
    font-size: 8px;
    background: rgba(63, 185, 80, 0.1);
    color: var(--green);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--green);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Table Styling */
.table-wrapper { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: 6px; }
table {
    width: 100%; border-collapse: collapse; background: #010409;
    font-size: 12px;
}
th {
    background: var(--bg-alt); color: var(--blue);
    padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border);
}
td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--fg-dim); }
tr:hover td { color: var(--fg); background: rgba(255,255,255,0.02); }
code { font-size: 11px; }

/* Code Blocks */
.code-block {
    background: #010409; border: 1px solid var(--border);
    border-radius: 6px; padding: 16px; margin: 20px 0;
}
.code-block code { color: var(--fg); background: transparent; padding: 0; line-height: 1.6; }

/* Footer */
footer {
    padding: 40px 0; border-top: 1px solid var(--border);
}
.footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px; margin-bottom: 30px;
}
.footer-section h4 { color: var(--blue); margin-bottom: 12px; font-size: 13px; text-transform: uppercase; }
.footer-section ul { list-style: none; }
.footer-section a { color: var(--fg-dim); font-size: 12px; display: block; margin-bottom: 6px; }
.footer-section a:hover { color: var(--fg); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px; text-align: center; color: var(--fg-dim); font-size: 11px;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { height: 20px; width: auto; opacity: 0.7; }

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { flex-direction: column; }
    .hero-text { flex: none; text-align: center; }
    .hero-logo { margin: 0 auto 20px; }
    .hero-tags, .hero-actions { justify-content: center; }
    .term-body { height: 350px; }
}