/* Neo Matrix Theme - Core Styles */
:root {
    --green-primary: #00ff41;
    --green-dim: #00cc33;
    --green-dark: #008021;
    --green-glow: 0 0 10px rgba(0, 255, 65, 0.5);
    --bg-black: #000000;       /* FIX #1: true black */
    --text-primary: #00ff41;
    --text-dim: rgba(0, 255, 65, 0.5);
    --font-matrix: 'Share Tech Mono', 'Courier New', monospace;
}

/* RESET & BASE (FIX #1: no white background anywhere) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: var(--bg-black);  /* FIX #1: force pure black on root elements */
    color: var(--text-primary);
    font-family: var(--font-matrix);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--green-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: var(--green-glow);
}

/* Matrix Rain */
#matrix-rain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);  /* FIX #1: black nav */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--green-dark);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green-primary);
}

.menu { display: flex; gap: 2rem; }

.menu a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--green-primary);
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after { width: 100%; }

/* Hero (FIX #2: proper hero image sizing) */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 6rem 2rem 2rem;
    background: var(--bg-black);   /* FIX #1 */
    z-index: 1;
}

.hero-content { margin-bottom: 3rem; animation: fadeInBlur 4s ease-in-out; }

.hero-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-primary);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8),
                 0 0 40px rgba(0, 255, 65, 0.4),
                 0 0 80px rgba(0, 255, 65, 0.2);
    animation: flicker 1.5s infinite alternate;
    margin-bottom: 1rem;
}

.cursor {
    display: inline-block;
    width: 4px; height: 1.2em;
    background: var(--green-primary);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 2s ease-in 2s forwards;
}

/* FIX #2: hero image loads correctly */
.hero-image-container {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
}

.matrix-hero-img {
    width: 100%;
    height: auto;
    display: block;                     /* prevents empty space below img */
    filter: saturate(0.5) brightness(1.1);
    border: 1px solid var(--green-dark);
    box-shadow: var(--green-glow);
    transition: all 0.4s ease;
}

.matrix-hero-img:hover {
    filter: saturate(1) brightness(1.2);
}

.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s ease-in-out infinite;
}

.arrow-down {
    width: 30px; height: 30px;
    border-left: 2px solid var(--green-primary);
    border-bottom: 2px solid var(--green-primary);
    transform: rotate(-45deg);
    margin: 0 auto; opacity: 0.6;
}

/* Section base */
.section {
    padding: 6rem 2rem;
    position: relative; z-index: 1;
    background: var(--bg-black);   /* FIX #1: always black, no gradients */
}

/* Lighter sections for variety (still black) */
.dark-section { background: rgba(0, 10, 3, 0.6); }

/* FIX #3: full-width container — remove side blocks entirely */
.container-float {
    width: 100%;         /* no max-width */
    margin: 0;           /* no auto centering of the content block */
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--green-primary);
    text-shadow: var(--green-glow);
}

.section-intro {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.section-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    /* FIX #1: text always readable on black */
    background: rgba(0, 20, 5, 0.3);   /* very subtle dark overlay for readability */
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--green-dark);
}

.highlight {
    color: var(--green-primary);
    text-shadow: var(--green-glow);
    font-weight: bold;
}

/* Capabilities list */
.capabilities h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--green-primary);
    text-transform: uppercase;
}

.capability-list { list-style: none; }

.capability-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--text-secondary, var(--green-dim));
    border-bottom: 1px solid rgba(0, 128, 33, 0.3);
}

.capability-list li .marker {
    position: absolute; left: 0; color: var(--green-primary);
}

/* Buttons (for crypto page nav + contact) */
.full-width-btn {
    display: block;
    max-width: 500px;
    margin: 2rem auto 0;
    padding: 1.2rem 2.4rem;
    background: transparent;
    border: 2px solid var(--green-primary);
    color: var(--green-primary);
    font-family: var(--font-matrix);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.full-width-btn:hover {
    background: var(--green-primary);
    color: var(--bg-black);
    box-shadow: var(--green-glow);
}

/* Newsletter form (FIX #7) */
.newsletter-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid var(--green-dark);
    padding: 2rem;
}

.newsletter-form h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--green-primary);
    text-shadow: var(--green-glow);
}

.newsletter-form input,
.newsletter-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--green-dark);
    color: var(--green-primary);
    font-family: var(--font-matrix);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus,
.newsletter-form textarea:focus {
    border-color: var(--green-primary);
    background: rgba(0, 255, 65, 0.08);
    box-shadow: var(--green-glow);
}

.newsletter-submit {
    width: 100%; padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--green-primary);
    color: var(--green-primary);
    font-family: var(--font-matrix);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.newsletter-submit:hover {
    background: var(--green-primary);
    color: var(--bg-black);
    box-shadow: var(--green-glow);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success { color: var(--green-primary); }
.form-status.error   { color: #ff5f56; }

/* Footer */
.site-footer {
    padding: 3rem 2rem;
    background: rgba(0, 10, 3, 0.9);
    border-top: 1px solid var(--green-dark);
    text-align: center;
}

.footer-links { margin-bottom: 1rem; }

.footer-links a {
    margin: 0 0.75rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* Animations */
@keyframes blink {
    50% { opacity: 0; }
}

@keyframes fadeInBlur {
    0%   { opacity: 0; blur: 4px; }
    100% { opacity: 1; blur: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes flicker {
    0%   { opacity: 1; }
    50%  { opacity: 0.92; }
    100% { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.8; }
}

/* Crypto News Cards (reuse on crypto-news.html) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    background: rgba(0, 255, 65, 0.02);
    border: 1px solid var(--green-dark);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.news-card:hover {
    background: rgba(0, 255, 65, 0.06);
    border-color: var(--green-primary);
    box-shadow: var(--green-glow);
}

.news-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.75rem;
}

.news-date { font-size: 0.75rem; color: var(--text-dim); }

.news-tag {
    font-size: 0.7rem; padding: 0.2rem 0.6rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--green-dark);
    border-radius: 2px;
    text-transform: uppercase;
}

.btc-tag { color: #f7931a; border-color: #f7931a; }
.eth-tag  { color: #627eea; border-color: #627eea; }
.defi-tag { color: #8247e5; border-color: #8247e5; }
.reg-tag  { color: #00b894; border-color: #00b894; }
.sol-tag  { color: #9945ff; border-color: #9945ff; }
.cbdc-tag { color: #0984e3; border-color: #0984e3; }

.news-title {
    font-size: 1rem; margin-bottom: 0.75rem;
    color: var(--green-primary); line-height: 1.4;
}

.news-summary {
    font-size: 0.85rem; color: var(--text-dim);
    line-height: 1.6; margin-bottom: 0.75rem;
}

.news-source a, .news-source {
    font-size: 0.8rem;
    color: var(--green-dim);
}

.news-source:hover { color: var(--green-primary); }

/* Page title (legal pages) */
.page-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--green-primary);
    text-shadow: var(--green-glow);
}

/* Contact form specific styles */
.section-form { max-width: 700px; margin: 0 auto; }


/* === Global legal page spacing (applies to all viewport sizes) === */
.legal-page {
    padding: 2rem 1rem;
}
.legal-page main {
    padding: 3rem 2rem;
    margin-top: 1.5rem;
}

.container-float {
    padding: 0 2rem;
}



/* === Page-specific: crypto intel ticker gap reduction === */
/* T3 gap fix: moved to inline !important on the section element itself (crypto-intel.php line 56) */

/* Responsive — mobile-first breakpoints */

/* === ≤768px: phones in landscape / small tablets === */
@media (max-width: 768px) {
    .nav-inner { padding: 0.75rem 1rem; }
    .logo { font-size: 1.2rem; letter-spacing: 1px; }
    .menu { gap: 0.6rem; }
    .menu a { font-size: 0.7rem; letter-spacing: 0.5px; padding: 0.3rem 0; }

    .hero { padding-top: 4rem; min-height: auto; }
    .hero-text { font-size: clamp(1.8rem, 10vw, 3rem); letter-spacing: 0.05em; }
    .hero-subtitle { font-size: 0.9rem; letter-spacing: 0.3em; }
    .hero-content { margin-bottom: 2rem; }

    .hero-image-container { max-width: 100%; margin: 1rem auto; }

    .section { padding: 3rem 1rem; }
    .section-title { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 1rem; }
    .section-intro { font-size: 0.8rem; margin-bottom: 2rem; }
    .section-paragraph { font-size: 0.95rem; padding: 0.75rem 1rem; background: transparent; }

    .capabilities h3 { font-size: 1rem; }
    .capability-list li { padding: 0.5rem 0 0.5rem 2rem; }

    .full-width-btn { padding: 1rem 1.8rem; font-size: 1rem; max-width: 90%; }

    .news-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
    .news-card { padding: 1rem; }
    .news-title { font-size: 0.9rem; }
    .news-summary { font-size: 0.8rem; }

    .newsletter-form { max-width: 90%; margin: 2rem auto 0; padding: 1.5rem; }
    .newsletter-form h3 { font-size: 1.1rem; }
    .newsletter-form input,
    .newsletter-form textarea { font-size: 0.9rem; padding: 0.7rem 0.8rem; }

    .site-footer { padding: 2rem 1rem; }
    .footer-links a { margin: 0 0.4rem 0.5rem; font-size: 0.8rem; display: inline-block; }
    .footer-copy { font-size: 0.7rem; }

    .page-title { font-size: 1.3rem; }
    .legal-page main { padding: 2rem 1rem; }
}

/* === ≤480px: phones in portrait → collapse nav to hamburger icon, stack menu vertically === */
    .container-float { padding: 0 1rem; }
@media (max-width: 480px) {
    .logo { font-size: 1.1rem; }

    /* Hide horizontal menu on small screens, show hamburger toggle */
    .menu {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        border-top: 1px solid var(--green-dark);
        padding: 0.5rem 0;
        gap: 0;
    }
    .menu.open { display: flex; }
    .menu a {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
        text-align: center;
    }

    /* Always show hamburger button visible on mobile */
    .nav-toggle { display: block !important; }

    .hero-text { font-size: clamp(1.6rem, 12vw, 2.4rem); letter-spacing: 0.03em; }
    .hero-subtitle { font-size: 0.8rem; }

    .arrow-down { width: 24px; height: 24px; border-width: 1.5px; }

    .section { padding: 2.5rem 0.8rem; }
    .section-paragraph { font-size: 0.9rem; background: transparent; padding-left: 1rem; }

    .newsletter-form { max-width: 100%; margin: 1.5rem auto 0; padding: 1.2rem; }
    .newsletter-form h3 { font-size: 1rem; }
    .news-card { padding: 0.8rem; }

    .scroll-indicator { bottom: 4rem; }
}

/* === ≤360px: very small phones === */
    .container-float { padding: 0 1rem; }
@media (max-width: 360px) {
    .hero-text { font-size: clamp(1.4rem, 11vw, 2rem); }
    .section-title { font-size: 1.3rem; }
    .full-width-btn { font-size: 0.9rem; padding: 0.8rem 1.4rem; }
}

/* Hamburger button (always hidden on desktop) */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--green-dark);
    color: var(--green-primary);
    font-size: 1.3rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    line-height: 1;
}
.nav-toggle:hover { border-color: var(--green-primary); }

/* Mobile hamburger animation */
.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--green-primary);
    margin: 4px 0;
    transition: all 0.3s ease;
}
