:root {
    --bg-dark: #030508;
    --text-main: #e0e0e0;
    --viki-green: #00ff41;
    --viki-orange: #ff8c00;
    --viki-blue: #00d4ff;
    --border: #1a1c1e;
    --content-width: 1000px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

/* TOP NAV BAR */
.viki-nav-top {
    border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.header-inner {
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.nav-side-container { flex: 1; display: flex; align-items: center; }
.nav-side-container.left { justify-content: center; }
.nav-side-container.right { justify-content: center; }

.nav-side-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.brand-green { color: var(--viki-green); font-weight: 700; }
.version-blue { color: var(--viki-blue); }

.nav-center-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: var(--content-width);
    flex-shrink: 0;
}

.nav-block {
    border: 1px solid var(--border);
    padding: 12px 5px;
    color: #fff;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    transition: 0.2s;
    background: rgba(255,255,255,0.01);
}
.nav-block:hover { background: #fff; color: #000; border-color: #fff; }

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; background: var(--bg-dark);
    border: 1px solid var(--viki-blue); min-width: 100%; top: 100%; left: 0;
}
.dropdown-content a {
    display: block; color: var(--viki-blue); padding: 10px; font-size: 0.6rem; text-decoration: none; text-align: left;
}
.dropdown:hover .dropdown-content { display: block; }

/* VIEWPORT */
.viewport-container { max-width: var(--content-width); margin: 0 auto; }

/* HERO */
.hero-section { text-align: center; padding: 60px 0 40px 0; }
.main-logo { width: 380px; margin-bottom: 40px; }
.float-anim { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* TYPOGRAPHY PERSPECTIVE */
.viki-title-stack { margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
.v-step { font-family: 'JetBrains Mono', monospace; opacity: 0.6; }
.v-1 { font-size: 2rem; letter-spacing: 25px; opacity: 1; color: #fff; margin-bottom: 12px; margin-left: 20px; }
.v-2 { font-size: 0.75rem; letter-spacing: 5px; margin-bottom: 15px; }
.v-3 { 
    font-size: 1.2rem; color: var(--viki-orange); letter-spacing: 3px; font-weight: 700;
    border-top: 1px solid rgba(255,140,0,0.2); border-bottom: 1px solid rgba(255,140,0,0.2);
    padding: 12px 40px; margin: 5px auto; width: fit-content;
}
.v-4 { 
    font-family: 'Inter', sans-serif; font-size: 3.8rem; font-weight: 600; 
    color: #fff; letter-spacing: -1px; margin-top: 15px; white-space: nowrap;
}

/* BUTTONS */
.hero-action-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }
.btn-ref {
    font-family: 'JetBrains Mono', monospace; width: 230px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-weight: 700; font-size: 0.75rem; letter-spacing: 1px;
}
.white-btn { background: #fff; color: #000; border: 1px solid #fff; }
.ghost-btn { background: transparent; color: #fff; border: 1px solid #fff; }
.btn-ref:hover { background: var(--viki-green); color: #000; border-color: var(--viki-green); }

/* METRICS & LOGIC */
.metrics-section { padding: 40px 0; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.m-card { border: 1px solid var(--border); padding: 35px 10px; text-align: center; }
.m-num { font-size: 3rem; font-weight: 700; color: #fff; }
.m-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 2px; opacity: 0.3; margin-top: 10px; }
.m-sub { text-align: center; font-size: 0.55rem; opacity: 0.2; margin-top: 15px; }

.logic-section { padding: 30px 0; }
.logic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.logic-box { border: 1px solid var(--border); padding: 40px; }
.logic-box h4 { color: var(--viki-green); font-size: 0.75rem; margin-bottom: 15px; }
.logic-box p { font-size: 0.9rem; opacity: 0.6; line-height: 1.6; }
.manifesto-link { display: block; margin-top: 20px; color: var(--viki-blue); text-decoration: none; font-size: 0.85rem; }

.portal-section { padding: 40px 0; }
.portal-border { border: 1px solid var(--border); padding: 20px; }
.portal-title { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; opacity: 0.3; margin-bottom: 25px; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portal-card { border: 1px solid var(--border); padding: 30px; text-decoration: none; color: #fff; transition: 0.2s; }
.portal-card h3 { font-size: 1rem; font-weight: 400; margin-top: 8px; }
.p-tag { color: var(--viki-green); font-size: 0.6rem; }
.highlighted-orange { border-color: rgba(255, 140, 0, 0.4) !important; }
.p-tag-orange { color: var(--viki-orange); font-size: 0.6rem; }

/* SUPPORT */
.support-footer { padding: 40px 0; text-align: center; }
.kofi-link {
    display: block; border: 1px solid var(--viki-blue); padding: 35px;
    text-align: center; text-decoration: none; color: var(--viki-blue);
    font-weight: 700; letter-spacing: 4px; font-size: 0.9rem; transition: 0.3s;
}
.kofi-link:hover { background: rgba(0, 212, 255, 0.1); }

/* TERMINAL CODE BLOCK */
.code-section { padding: 40px 0 80px 0; }
.code-window { background: #0d0f12; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.code-header { background: #181c21; padding: 12px 20px; display: flex; align-items: center; border-bottom: 1px solid #1e2227; }
.dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.file-name { margin-left: 25px; font-size: 0.75rem; color: #5c6370; font-family: 'JetBrains Mono', monospace; }
.code-body { padding: 40px; font-family: 'JetBrains Mono', monospace; font-size: 1rem; line-height: 1.6; text-align: left; }

/* SYNTAX COLORS */
.token-decorator { color: #c678dd; }
.token-keyword { color: #61afef; }
.token-function { color: #e5c07b; }
.token-comment { color: #5c6370; font-style: italic; }
.token-string { color: #98c379; }
code { color: #abb2bf; }
pre { margin: 0; }

/* FOOTER */
.main-footer { text-align: center; padding: 60px 0; border-top: 1px solid var(--border); }
.footer-name { font-weight: 700; letter-spacing: 4px; color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.footer-tagline { font-size: 0.8rem; opacity: 0.5; font-style: italic; margin-bottom: 20px; }
.footer-sub { font-size: 0.7rem; opacity: 0.2; }

@media (max-width: 1000px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .nav-center-group { width: 95%; }
}