:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-terminal: #0d1117;
    --text-primary: #e6e6e6;
    --text-secondary: #b3b3b3;
    --text-dimmed: #666666;
    --text-muted: #888888;
    --accent: #00ff41;
    --accent-secondary: #00cc33;
    --accent-dim: rgba(0, 255, 65, 0.1);
    --amber: #ffb000;
    --border: #2a2a2a;
    --glow: 0 0 10px rgba(0, 255, 65, 0.3);
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    font-feature-settings: "liga" 0, "clig" 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* CRT Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Terminal Window */
.terminal {
    max-width: 800px;
    width: 100%;
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 
        0 0 0 1px var(--border),
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        var(--glow);
    position: relative;
    z-index: 1;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    border-radius: 8px 8px 0 0;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-dimmed);
}

.control:first-child {
    background: #ff5f56;
}

.control:nth-child(2) {
    background: #ffbd2e;
}

.control:nth-child(3) {
    background: #27ca40;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 2rem;
}

/* Boot Sequence */
.boot-sequence {
    margin-bottom: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.boot-sequence p {
    margin-bottom: 0.25rem;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--delay) * 0.15s);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ASCII Art */
.ascii-art {
    color: var(--accent);
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: var(--glow);
}

/* Company Name */
.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: var(--glow);
}

/* Tagline */
.tagline {
    font-size: 1.1rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.prompt {
    color: var(--amber);
}

.strike {
    position: relative;
    text-decoration: line-through;
    text-decoration-color: var(--text-primary);
    color: var(--text-dimmed);
}

/* About Text */
.about-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--accent-dim);
    border: 1px solid var(--border);
}

/* Manifesto Section */
.manifesto {
    margin-bottom: 2.5rem;
}

.prompt-line {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.manifesto-content {
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.manifesto-content p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.manifesto-heading {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.manifesto-heading:first-child {
    margin-top: 0;
}

/* Contact Section */
.contact {
    margin-bottom: 2.5rem;
}

.pgp-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.75rem 0;
}

.blink {
    color: var(--amber);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.email-link {
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--accent-dim);
    transition: all 0.2s ease;
}

.email-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: var(--glow);
}

/* Footer */
.terminal-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.dimmed {
    color: var(--text-dimmed);
    font-size: 0.8rem;
}

.signature {
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    
    .terminal-body {
        padding: 1.5rem;
    }
    
    .company-name {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }
    
    .tagline {
        font-size: 0.95rem;
    }
    
    .ascii-art {
        font-size: 0.5rem;
    }
}

/* Glitch Effect on Hover */
.company-name:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Selection Style */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Navigation */
.nav {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
}

.nav-sep {
    color: var(--text-dimmed);
    margin: 0 0.5rem;
}

/* Page Title */
.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    color: var(--accent);
    text-shadow: var(--glow);
}

/* Team Page */
.team-list {
    margin-bottom: 2.5rem;
}

.team-member {
    padding: 1.25rem;
    border-left: 1px solid var(--border);
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

.team-member:last-child {
    margin-bottom: 0;
}

.member-name {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.member-role {
    color: var(--amber);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.member-links {
    margin-top: 0.75rem;
}

.member-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.member-link:hover {
    color: var(--accent);
}

.link-sep {
    color: var(--text-dimmed);
    margin: 0 0.5rem;
}

/* Research Page */
.research-list {
    margin-bottom: 2.5rem;
}

.research-item {
    padding: 1.25rem;
    border-left: 1px solid var(--border);
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

.research-item:last-child {
    margin-bottom: 0;
}

.research-date {
    color: var(--amber);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.research-title {
    margin: 0.5rem 0;
}

.research-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.research-link:hover {
    text-shadow: var(--glow);
}

.research-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Back Link */
.back-link {
    margin-top: 1rem;
}

.back-link .nav-link {
    font-size: 0.8rem;
}

/* Research Author */
.research-author {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dimmed);
}

.author-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-link:hover {
    color: var(--accent);
}

/* Post Page */
.terminal-wide {
    max-width: 900px;
}

.post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.post-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: var(--glow);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-date {
    color: var(--amber);
}

.meta-sep {
    margin: 0 0.5rem;
    color: var(--text-dimmed);
}

.post-author {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-author:hover {
    color: var(--accent);
}

.post-content {
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.post-lede {
    font-size: 1.1rem;
    color: var(--text-primary) !important;
    line-height: 1.7;
}

.post-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.post-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.post-content a:hover {
    border-color: var(--accent);
}

.post-content em {
    font-style: italic;
    color: var(--text-primary);
}

.post-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.post-content li {
    margin-bottom: 0.5rem;
}

.source-list {
    list-style: none;
    padding-left: 0;
}

.source-list li {
    padding-left: 1rem;
    border-left: 1px solid var(--border);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.post-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.post-note {
    font-size: 0.9rem;
    color: var(--text-muted) !important;
}

@media (max-width: 640px) {
    .post-title {
        font-size: 1.35rem;
    }
    
    .post-lede {
        font-size: 1rem;
    }
}
