/* 
 * Theme: Modern Web3 / Hacky Authority (Blue Night Version)
 * Style: Deep Navy, Sky Blue Accents, High Contrast, No Gray
 */

:root {
    /* Cyberpunk / Web3 Palette */
    --bg-dark: #020617;
    /* Slate 950 (Deepest Navy) */
    --bg-panel: #0f172a;
    /* Slate 900 (Panel Background) */
    --bg-panel-hover: #1e293b;
    /* Slate 800 (Hover) */

    --accent-primary: #00ff9d;
    /* Matrix/Solana Green (Accents only) */
    --accent-secondary: #0ea5e9;
    /* Sky 500 (Bright Blue) */
    --accent-purple: #bd00ff;
    /* Electric Purple */

    --text-main: #ffffff;
    /* Pure White */
    --text-muted: #bae6fd;
    /* Sky 200 (Light Blue) - REPLACES ALL GRAY */

    --border-color: #1e293b;
    /* Slate 800 */
    --border-highlight: #38bdf8;
    /* Sky 400 */

    /* Fonts */
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* Base */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-primary);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-top: 0;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Article Typography */
/* Article Typography */
.article-content {
    width: 90%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
    font-size: 1.1rem;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

/* Slightly lighter than muted for reading */
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #cbd5e1;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--accent-secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Code Blocks */
pre {
    background: #0f172a;
    /* Slate 900 */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 2rem;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent-primary) !important;
    /* Green text */
}

p code {
    background: rgba(15, 23, 42, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--accent-primary) !important;
}

blockquote {
    border-left: 4px solid var(--accent-purple);
    margin: 2rem 0;
    padding-left: 1.5rem;
    font-style: italic;
    color: #ffffff;
    background: rgba(189, 0, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0 4px 4px 0;
}

/* Header */
.bih-header {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.25rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bih-title {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: -0.05em;
}

.bih-title::before {
    content: "> ";
    color: var(--accent-primary);
}

.bih-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.bih-navigation a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #7dd3fc;
    /* Sky 300 - Distinct navigation blue */
    text-transform: uppercase;
}

.bih-navigation a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(125, 211, 252, 0.5);
}

/* Hero */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #0f172a 0%, #020617 70%);
    /* Deep Navy Gradient */
    border-bottom: 1px solid var(--border-color);
}

.hero-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 157, 0.3);
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(0, 255, 157, 0.05);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}

.hero-subtext {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    /* Uses Sky 200 */
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 4px;
    /* Hard corners */
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.btn-primary {
    background: #ffffff;
    color: #020617;
    /* Dark text on white button */
    border: 1px solid #ffffff;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    /* Blue hover */
    border-color: var(--accent-secondary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #38bdf8;
    /* Blue border */
}

.btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(56, 189, 248, 0.1);
}

/* Trust Strip */
.trust-strip {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    background: #020617;
}

.trust-inner {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.trust-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.trust-logos {
    display: flex;
    gap: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo-item {
    color: #e0f2fe;
    /* Sky 100 */
}

.logo-item.faded {
    color: #38bdf8;
    /* Sky 400 - Blue even when "faded" */
    opacity: 0.7;
}

/* General Sections */
.section-hub,
.section-benchmarks,
.section-tools {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header h2::before {
    content: "#";
    color: var(--accent-secondary);
    margin-right: 10px;
    font-family: var(--font-mono);
}

.section-desc {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Grids */
.featured-grid,
.grid-4,
.grid-3,
.footer-grid {
    display: grid;
    gap: 24px;
}

.featured-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

/* Cards */
.card,
.benchmark-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.2s ease;
}

.card:hover,
.benchmark-card:hover {
    border-color: var(--accent-secondary);
    background: var(--bg-panel-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

.card h3,
.benchmark-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: #ffffff;
}

.featured-card {
    border: 1px solid var(--accent-secondary);
    background: rgba(14, 165, 233, 0.05);
}

/* Feature tags */
.card-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--accent-secondary);
    border: 1px solid var(--accent-secondary);
    padding: 2px 8px;
    align-self: flex-start;
    margin-bottom: 1rem;
    border-radius: 2px;
}

/* List Items */
.list-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.list-item:last-child {
    border: 0;
    padding: 0;
    margin: 0;
}

.list-item h4 a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
}

.list-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
}

/* Icons in Benchmarks */
.benchmark-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.btn-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-secondary);
    margin-top: auto;
    text-transform: uppercase;
    font-weight: 700;
}

/* Multi-Chain Section */
.section-multichain {
    padding: 4rem 0 5rem;
    border-bottom: 1px solid var(--border-color);
}

.multichain-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.multichain-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    opacity: 0.5;
}

.badge-coming-soon {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.2);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.multichain-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.multichain-box p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.chain-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
}

.chain-list .chain {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.chain-list .chain:hover {
    opacity: 1;
    color: var(--accent-secondary);
    cursor: default;
}

/* Footer */
.bih-footer {
    padding: 4rem 0 2rem;
    background: #020617;
    /* Deep Navy */
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
    display: block;
    margin-bottom: 1rem;
}

.footer-col-links h5 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: #38bdf8;
    /* Bright Sky Blue */
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-links li {
    margin-bottom: 0.8rem;
}

.footer-col-links a {
    color: #bae6fd;
    /* Light Blue */
    font-size: 0.95rem;
}

.footer-col-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #7dd3fc;
    /* Sky 300 */
}

/* Responsive */
@media (max-width: 768px) {

    .featured-grid,
    .grid-4,
    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .trust-inner {
        flex-direction: column;
        gap: 1rem;
    }
}