:root {
    --bg-dark: #080808;
    --bg-card: #111111;
    --bg-glass: #141414;
    --bg-glass-hover: #1e1e1e;
    --text-primary: #d4d4d4;
    --text-secondary: #a6a6a6;
    --accent-blue: #4daafc;
    --border-color: #2b2b2b;
    --glass-border: 1px solid #2b2b2b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ambient Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 10s ease-in-out infinite alternate;
}

/* Asymmetric Orbs */
.orb-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(25, 113, 255, 0.25);
}

.orb-2 {
    bottom: -10%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: rgba(25, 113, 255, 0.15);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 60px); }
}

/* Navbar - Glassmorphism */
.navbar {
    border-bottom: var(--glass-border);
    background: var(--bg-card);
    
    -webkit-
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 999px; /* Pill shape */
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(25, 113, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(25, 113, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25); /* More visible border */
    color: rgba(255, 255, 255, 0.9);
    
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 120px;
    text-align: center;
    z-index: 2;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.25; /* Loosened line height */
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-title span {
    color: var(--accent-blue);
}

.hero-subtitle {
    font-size: 1.15rem; /* Dropped size slightly */
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px; /* Widened slightly */
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

/* Features - Glass Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 20px 8rem 20px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--bg-card); /* Slightly lighter than page bg */
    border: var(--glass-border);
    
    -webkit-
    border-radius: 16px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(25, 113, 255, 0.5);
    box-shadow: 0 12px 40px rgba(25, 113, 255, 0.15); /* Brighten on hover */
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem; /* Re-added margin here since it's the container */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.feature-card:hover .feature-icon:not(.lock-open):not(.lock-closed) {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 4px 12px rgba(25, 113, 255, 0.6));
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    flex-grow: 1; /* Pushes card-link down */
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
    align-self: flex-start;
}

.card-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* Page Content (About) */
.page-content {
    padding: 120px 0 80px;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 4rem;
    margin-bottom: 2.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.page-title span {
    color: var(--accent-blue);
}

.text-block {
    max-width: 800px;
}

.text-block h2 {
    border-left: 4px solid var(--accent-blue);
    padding-left: 1rem;
    margin: 3.5rem 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.text-block p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 1.15rem;
    font-weight: 300;
}

.leadership-card {
    background: var(--bg-card);
    border: var(--glass-border);
    
    -webkit-
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.avatar-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 24px rgba(25, 113, 255, 0.4);
}

.leadership-bio h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.leadership-bio .role-title {
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    border-top: var(--glass-border);
    padding: 5rem 0 3rem;
    background: var(--bg-card);
    
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-weight: 300;
}

.footer-links h4 {
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-actions {
        flex-direction: column;
        padding: 0 20px;
    }
    .btn {
        width: 100%;
    }
    .leadership-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .avatar-initials {
        margin: 0 auto;
    }
    .social-links {
        justify-content: center;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        
        padding: 2rem;
        border-bottom: var(--glass-border);
    }
}

/* SVG Animations (From svg-animations SKILL) */
.svg-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.svg-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);
}

.icon-invert {
    filter: invert(0.8);
}

/* Turn colored icons monochrome */
.icon-monochrome {
    filter: grayscale(1) brightness(1.5) contrast(1.2);
}

.svg-link:hover .svg-icon {
    animation: svg-pulse 1.5s ease-in-out infinite;
}

@keyframes svg-pulse {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 2px rgba(25, 113, 255, 0.4)); 
    }
    50% { 
        transform: scale(1.15); 
        filter: drop-shadow(0 0 8px rgba(25, 113, 255, 0.8)); 
    }
}
.icon-invert.svg-link:hover .svg-icon,
.svg-link:hover .icon-invert {
    animation: svg-pulse-invert 1.5s ease-in-out infinite;
}

@keyframes svg-pulse-invert {
    0%, 100% { 
        transform: scale(1); 
        filter: invert(0.8) drop-shadow(0 0 2px rgba(25, 113, 255, 0.4)); 
    }
    50% { 
        transform: scale(1.15); 
        filter: invert(0.8) drop-shadow(0 0 8px rgba(25, 113, 255, 0.8)); 
    }
}
.icon-monochrome.svg-link:hover .svg-icon,
.svg-link:hover .icon-monochrome {
    animation: svg-pulse-monochrome 1.5s ease-in-out infinite;
}

@keyframes svg-pulse-monochrome {
    0%, 100% { 
        transform: scale(1); 
        filter: grayscale(1) brightness(1.5) contrast(1.2) drop-shadow(0 0 2px rgba(25, 113, 255, 0.4)); 
    }
    50% { 
        transform: scale(1.15); 
        filter: grayscale(1) brightness(1.5) contrast(1.2) drop-shadow(0 0 8px rgba(25, 113, 255, 0.8)); 
    }
}

/* Dataset Page specific styles */
.dataset-card {
    padding: 2rem;
}
.dataset-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.dataset-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
}
.dataset-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dataset-card .card-link {
    margin-top: 1rem;
}

/* Blog Specific Styles */
.blog-card {
    padding: 2rem;
}
.blog-date {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}
.blog-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* ──────────────────────────────────────────────────────────────
   Markdown Prose (Unified — no duplicates)
   ────────────────────────────────────────────────────────────── */
.prose {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #c8d0da;
}
.prose h1, .prose h2, .prose h3 {
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.prose h1 { font-size: 2.2rem; }
.prose h2 { font-size: 1.7rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0.5rem; }
.prose h3 { font-size: 1.3rem; }
.prose p { margin-bottom: 1.25rem; }
.prose strong { color: #fff; }
.prose a { color: var(--accent-blue); text-decoration: none; transition: 0.2s; }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose pre {
    background: #0a0a0f;
    padding: 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.06);
    margin: 1.5rem 0;
    font-size: 0.85rem;
}
.prose code {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: rgba(255,255,255,0.08);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}
.prose pre code { background: none; padding: 0; font-size: 0.85em; }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.92rem;
}
.prose th, .prose td {
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.85rem 1rem;
    text-align: left;
}
.prose th { background: rgba(255,255,255,0.04); font-weight: 600; color: #fff; }
.prose blockquote {
    border-left: 3px solid var(--accent-blue);
    padding: 1rem 1rem 1rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(25, 113, 255, 0.04);
    border-radius: 0 8px 8px 0;
    color: #94a3b8;
    font-style: italic;
}
.prose img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    margin: 1rem 0;
}

/* ──────────────────────────────────────────────────────────────
   Terminal Block
   ────────────────────────────────────────────────────────────── */
.terminal-block {
    background: #0d0d0d;
    border: 1px solid rgba(0, 255, 0, 0.12);
    border-radius: 12px;
    padding: 1.75rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    line-height: 1.8;
    overflow-x: auto;
    color: #00ff00;
    position: relative;
}
.terminal-block::before {
    content: '●  ●  ●';
    display: block;
    color: #444;
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ──────────────────────────────────────────────────────────────
   Extended Responsive
   ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    /* Machine section — stack vertically */
    .machine-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .page-title {
        font-size: 2.5rem;
    }
    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .container {
        padding: 0 16px;
    }
}

/* Site Logo */
.site-logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 8px rgba(25, 113, 255, 0.4));
}
.logo a {
    display: flex;
    align-items: center;
}

/* VS Code Terminal Block */
.vscode-window {
    background: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0,0,0,0.6);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 1rem;
}
.vscode-header {
    background: #252526;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333333;
    color: #969696;
    font-size: 0.75rem;
}
.vscode-header .dots {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}
.vscode-header .dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.vscode-body {
    padding: 1.5rem;
    color: #d4d4d4;
    overflow-x: auto;
}

/* VS Code Syntax Colors */
.vsc-warn { color: #cca700; font-weight: bold; }
.vsc-err { color: #f48771; font-weight: bold; }
.vsc-info { color: #75beff; font-weight: bold; }
.vsc-str { color: #ce9178; }
.vsc-key { color: #9cdcfe; }
.vsc-val { color: #b5cea8; }
.vsc-comment { color: #6a9955; font-style: italic; }

.blinking-cursor::after {
    content: '█';
    animation: blink 1s step-start infinite;
    color: #d4d4d4;
    margin-left: 6px;
    vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* Tighter Text Containers */
.text-container {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Crypto Checkout Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    
    -webkit-
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    width: 100%;
    max-width: 550px;
    margin: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-content .dot.red { cursor: pointer; }
.modal-content .dot.red:hover { opacity: 0.7; }
.modal-body {
    padding: 2.5rem;
}
.wallet-block {
    margin-bottom: 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 1.25rem;
}
.wallet-header {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.wallet-address-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d0d0d;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}
.wallet-address-container code {
    color: #d4d4d4;
    font-size: 0.85rem;
    word-break: break-all;
}
.copy-btn {
    background: rgba(25, 113, 255, 0.2);
    color: var(--accent-blue);
    border: 1px solid rgba(25, 113, 255, 0.4);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 12px;
    transition: 0.2s;
}
.copy-btn:hover { background: var(--accent-blue); color: #fff; }
.copy-btn.copied { background: #27c93f; color: #000; border-color: #27c93f; }
.instruction-block {
    margin-top: 2rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.95rem;
}

/* Overrides for VS Code Pure Dark Theme */
.feature-card, .dataset-card, .blog-card, .leadership-card {
    background: #111111 !important;
    border: 1px solid #2b2b2b !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
}
.btn-primary {
    background: #0e639c !important;
    color: #ffffff !important;
    border-radius: 2px !important;
}
.btn-primary:hover {
    background: #1177bb !important;
}
.btn-outline {
    border: 1px solid #2b2b2b !important;
    background: #1e1e1e !important;
    border-radius: 2px !important;
}
.btn-outline:hover {
    background: #2b2b2b !important;
}
body, main, footer {
    background: #080808 !important;
}
.navbar {
    background: #111111 !important;
    border-bottom: 1px solid #2b2b2b !important;
}
