/* SigmaNex - Professional Enterprise Theme */
:root {
    /* Modern Slate Palette */
    --bg-primary: #0f172a;
    /* Slate 900 */
    --bg-secondary: #1e293b;
    /* Slate 800 */
    --bg-tertiary: #334155;
    /* Slate 700 */

    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */

    /* Professional Accent: Indigo/Violet instead of Green */
    --accent-color: #6366f1;
    /* Indigo 500 */
    --accent-dim: rgba(99, 102, 241, 0.15);
    --accent-light: #818cf8;

    --border-color: #334155;

    --max-width: 1400px;
    /* System Font Stack for Offline Privacy */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-mono: "Consolas", "Monaco", "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;
    --transition: all 0.2s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    /* Subtle, premium gradient instead of "tech grid" */
    background-image:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.05), transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: left;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    height: 24px;
    fill: var(--accent-color);
}

.hamburger {
    display: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    border-bottom: 1px solid var(--accent-color);
}

.cta-button {
    border: 1px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem !important;
    border-bottom: 1px solid var(--accent-color) !important;
}

.cta-button:hover {
    background: var(--accent-dim);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    background: radial-gradient(circle at 70% 30%, rgba(0, 255, 157, 0.05) 0%, transparent 50%);
}

.hero-content {
    max-width: 900px;
}

.hero-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* Generic Page Header (Small Hero) */
.page-header {
    padding: 160px 0 80px 0;
    max-width: 800px;
}

.page-header h1 {
    font-size: 3.5rem;
}

.page-header p {
    font-size: 1.25rem;
}

/* Article Styles (Manifesto/Scenarios) */
.article-content {
    max-width: 800px;
    padding-bottom: 8rem;
}

.article-content h3 {
    margin-top: 3rem;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.article-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--text-primary);
    font-family: serif;
    /* Contrast font */
    line-height: 1.4;
}

/* Profile Card (Team) */
.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3rem;
    max-width: 600px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-image {
    width: 120px;
    height: 120px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-secondary);
    border: 2px solid var(--accent-color);
}

.profile-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.profile-title {
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Support Options */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.option-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3rem;
}

.option-card:hover {
    border-color: var(--accent-color);
}

/* Specs Table */
.specs {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.spec-table td {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.spec-table td:first-child {
    color: var(--text-primary);
    font-weight: 600;
    width: 40%;
}

/* Features Grid */
.features {
    padding: 8rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--bg-secondary);
    padding: 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 2rem;
    fill: var(--accent-color);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Roadmap */
.roadmap {
    padding: 8rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.timeline {
    border-left: 1px solid var(--border-color);
    margin-left: 2rem;
    padding-left: 3rem;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.35rem;
    /* center on line */
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--text-secondary);
}

.timeline-item.active::before {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-item.active .timeline-date {
    color: var(--accent-color);
}

/* Contact / Collaboration */
.contact {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.contact h2 {
    max-width: 600px;
    margin: 0 auto 2rem;
    border: none;
    text-align: center;
}

.contact p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Accordion */
details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

details:hover {
    border-color: var(--accent-light);
}

details[open] {
    border-color: var(--accent-color);
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 1.2rem;
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Code Blocks / Terminal */
.code-block {
    background: #000;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-color);
    overflow-x: auto;
    margin: 2rem 0;
    position: relative;
}

.code-block::before {
    content: attr(data-title);
    position: absolute;
    top: 0;
    right: 0;
    background: var(--border-color);
    color: var(--text-secondary);
    padding: 2px 8px;
    font-size: 0.7rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

/* Responsive */
@media (max-width: 1024px) {

    .specs-grid,
    .grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    nav {
        height: 60px;
        /* Compact height */
        padding: 0;
    }

    nav .container {
        flex-direction: row;
        /* Keep row for Logo ------ Hamburger */
        justify-content: space-between;
        height: 100%;
    }

    /* Hamburger Icon */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--text-primary);
        transition: var(--transition);
    }

    /* Mobile Menu (Hidden by default) */
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(11, 12, 16, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        display: none;
        /* Hidden */
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
    }

    .nav-links a {
        display: inline-block;
        width: auto;
        border: none;
        font-size: 1.1rem;
    }

    /* Hero & Typography */
    .hero {
        padding-top: 100px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Terminal & Demo on Mobile */
    .terminal-window {
        height: 80vh;
    }

    .terminal-body {
        font-size: 0.8rem;
    }

    .term-controls {
        display: none;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }
}


/* =========================================
   Disclaimer Modal
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.modal-content {
    background: #111827;
    border: 1px solid var(--accent-light);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #fff;
    font-family: var(--font-mono);
    margin: 0;
    border: none;
    padding: 0;
}

.modal-body {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
}

.modal-btn {
    width: 100%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 1rem;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

.modal-btn:hover {
    background: var(--accent-light);
}


/* =========================================
   Newsletter & Socials
   ========================================= */

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 2rem auto;
}

.newsletter-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: #fff;
    font-family: var(--font-mono);
    border-radius: 4px;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
    transition: var(--transition);
}

.social-icon:hover {
    fill: var(--accent-color);
    transform: translateY(-2px);
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    margin: 0 10px;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* =========================================
   Demo / Terminal Styles
   ========================================= */

.demo-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding-top: 2rem;
}

.terminal-window {
    width: 95%;
    max-width: 900px;
    height: 600px;
    background-color: #0b0c10;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    font-family: var(--font-mono);
}

.ascii-art {
    color: var(--accent-color);
    font-size: 0.7rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hex-dump {
    color: #64748b;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Status Bar */
.terminal-header {
    background: #1f2937;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #94a3b8;
}

.term-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.status-network {
    color: #ef4444;
    /* Red for offline */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-network::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

/* Terminal Body */
.terminal-body {
    flex: 1;
    padding: 1.5rem;
    font-family: "Courier New", Courier, monospace;
    /* More retro */
    font-size: 0.9rem;
    color: #cbd5e1;
    overflow-y: auto;
    position: relative;
    background: radial-gradient(circle, rgba(16, 20, 30, 1) 0%, rgba(5, 5, 5, 1) 100%);
}

.term-line {
    margin-bottom: 0.4rem;
    line-height: 1.4;
    white-space: pre-wrap;
    text-shadow: 0 0 2px rgba(99, 102, 241, 0.2);
    /* Slight bloom */
}

.status-ok {
    color: #10b981;
}

.status-warn {
    color: #f59e0b;
}

.prompt {
    color: var(--accent-color);
    font-weight: bold;
}

.cursor {
    animation: blink 1s infinite;
    font-weight: bold;
    color: var(--accent-light);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.ai-response {
    color: var(--accent-light);
    margin-top: 1rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
}

/* Scenario Selector Panel */
.scenario-selector {
    padding: 1rem;
    background: #111827;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.scenario-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.scenario-btn:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 10px var(--accent-dim);
}

/* CRT Scanline Effect Overlay */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.6;
}