/* --- BASE & VARIABLES --- */
:root {
    --bg-dark: #000000;
    --panel-bg: rgba(5, 5, 5, 0.95);
    --border-color: #333333;
    --accent-orange: #FF5E00;
    --accent-yellow: #FFB803;
    --text-main: #d1d1d1;
    --text-muted: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Consolas', 'Courier New', Courier, monospace;
}

body {
    background-color: #000000; /* Prevents white flashes on iOS overscroll */
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- CANVAS BACKGROUND --- */
#ai-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh; /* Modern fix: ignores mobile address bar changes */
    z-index: -1;
    pointer-events: none;
    transform: translateZ(0); /* Forces GPU hardware acceleration */
    will-change: transform;
    /* Crucial for grecha buttons to work */
}

/* --- LAYOUT & TYPOGRAPHY --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 50px;
    text-transform: uppercase;
    color: var(--accent-yellow);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
}

.section-title::before {
    content: "> ";
    color: var(--accent-orange);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--accent-orange);
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    text-transform: lowercase;
    transition: .2s;
}

.nav-links a::before {
    content: "[ ";
    color: var(--border-color);
    transition: .2s;
}

.nav-links a::after {
    content: " ]";
    color: var(--border-color);
    transition: .2s;
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    color: var(--accent-yellow);
}

/* --- BUTTONS --- */

/* --- BUTTON CONTAINER --- */
/* --- BUTTON CONTAINER --- */
.hero-btns {
    display: flex;
    flex-wrap: wrap;       /* Allows wrapping on narrow screens */
    gap: 15px;             /* Modern way to space buttons without 'margin-left' */
    margin-top: 30px;      /* Space between the text and the buttons */
    align-items: center;   /* Keeps buttons vertically aligned if heights differ */
}

/* --- BASE BUTTON STYLE --- */
.btn {
    padding: 14px 28px;
    border-radius: 0;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.1s;
    display: inline-flex;  /* Using flex inside the button for better text centering */
    text-decoration: none;
    white-space: nowrap;   /* Prevents the text inside a button from wrapping */
}

/* --- PRIMARY (ORANGE) --- */
.btn-primary {
    background: #000;
    color: var(--text-main);
    border: 1px solid var(--accent-orange);
}

.btn-primary:hover {
    background: var(--accent-orange);
    color: #000;
}

/* --- SECONDARY (MUTED/YELLOW) --- */
.btn-secondary {
    background: #000;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

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

/* --- MOBILE/VERTICAL TWEAK --- */
@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column; /* Stacks buttons vertically on very small screens */
        align-items: flex-start; /* Ensures they align to the left edge */
    }
    
    .btn {
        width: 100%;           /* Optional: Makes buttons full-width on mobile */
        max-width: 280px;      /* Limits width so they don't look too stretched */
    }
}

/* --- HERO SECTION --- */
.hero {
    padding: clamp(60px, 10vw, 100px) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: normal;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: clamp(14px, 2vw, 16px);
}

.hero-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    width: 100%;
    max-width: 420px;
    font-size: 13px;
    color: var(--text-muted);
}

.panel-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--accent-yellow);
}

.sys-log {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.sys-log span.ok {
    color: #00ff00;
}

.sys-log span.warn {
    color: var(--accent-orange);
}

/* --- GRID SECTIONS --- */
.section-pad {
    padding: 80px 0;
}

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

.card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: .2s;
    border-left: 3px solid var(--border-color);
}

.card:hover {
    border-left-color: var(--accent-orange);
    background: #0a0a0a;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: normal;
}

.card h3::before {
    content: "[+] ";
    color: var(--text-muted);
}

.card p {
    color: var(--text-muted);
    font-size: 13px;
}

/* --- DASHBOARD SECTION --- */
.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.dashboard-text {
    flex: 1;
    min-width: 300px;
}

.dashboard-visual {
    flex: 1;
    min-width: 300px;
    background: var(--panel-bg);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.node {
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px dashed #222;
    display: flex;
    gap: 10px;
}

.node:last-child {
    border-bottom: none;
}

.node span.prefix {
    color: var(--text-muted);
}

.node span.tag {
    color: var(--accent-yellow);
}

.node span.msg {
    color: var(--text-main);
    flex: 1;
}

.node span.status {
    color: var(--accent-orange);
}

/* --- CTA & FOOTER --- */
.cta-box {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: clamp(40px, 8vw, 60px);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 20px;
    font-weight: normal;
}

footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .nav-links {
        justify-content: flex-start;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin: 0 0 10px 0;
    }

    .node {
        flex-direction: column;
        gap: 4px;
    }
}


/* --- FORMS --- */

/* --- UTILITIES --- */
.centered-section {
    /* Takes up roughly the full screen minus the header/footer */
    min-height: 70vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- FORMS --- */
.contact-form {
    max-width: 600px;
    width: 100%;
    /* margin: top auto bottom auto -> centers horizontally */
    margin: 20px auto 0 auto; 
}


.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 12px;
    background: #111;
    color: var(--text-main); /* Removed the #0f0 green */
    border: 1px solid var(--border-color);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--accent-orange);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}


.dashboard { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }



/* --- Deck Section --- */
/* --- DECK VIEWER RESPONSIVE UX --- */
.deck-container {
    flex-wrap: nowrap; /* Prevent standard wrapping */
    gap: 30px;
}

.deck-sidebar {
    display: flex;
    flex-direction: column;
    flex: 0.35;
    min-width: 220px;
}

.deck-main {
    flex: 1;
    min-width: 0; /* Prevents flex flex-child text overflow issues */
}

/* Mobile Touch Targets & Layout */

/* Slimmer sidebar panes for desktop */
.deck-node {
    padding: 10px 12px; /* Reduced vertical padding */
    font-size: 12px;    /* Slightly smaller text */
    font-family: monospace;
    transition: 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

/* Utility class for smaller deck buttons */
.btn-sm {
    padding: 8px 15px;
    font-size: 11px;
}

@media (max-width: 768px) {
    .deck-container {
        flex-direction: column;
        gap: 15px;
    }

    .deck-sidebar {
        flex-direction: row;
        flex: none; /* Stop flexing height */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth iOS momentum scrolling */
        padding-bottom: 10px; /* Space for invisible scrollbar */

        /* Hide scrollbars for a clean terminal look */
        scrollbar-width: none;
    }
    .deck-sidebar::-webkit-scrollbar {
        display: none;
    }

    .deck-header-text {
        display: none; /* Hide "INDEX_FILE" on mobile to save horizontal space */
    }

    .deck-node {
        padding: 16px 12px; 
    }

    /* Make buttons full width on mobile for easy tapping */
    .deck-action-area {
        flex-direction: column;
        gap: 15px;
        align-items: stretch !important;
    }
    .deck-action-area .btn {
        text-align: center;
        width: 100%;
        margin-left: 0; /* Reset secondary button margin */
        padding: 16px !important;
        font-size: 14px !important;
    }
}



