/**
 * Homepage Landing Page Styles
 * Extracted from index.php and theme_header.php to maintain a clean structure.
 */

/* ================== HEADER & DOOMSDAY BANNER ================== */

/* Doomsday Banner */
.doomsday-banner {
    position: relative;
    background: linear-gradient(135deg, #1a0000 0%, #3d0000 50%, #1a0000 100%);
    border-bottom: 2px solid #ff0000;
    padding: 15px 20px;
    font-family: 'Courier New', monospace;
    color: #fff;
    overflow: hidden;
}

.doom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.banner-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.banner-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    letter-spacing: 2px;
}

.banner-subtitle {
    font-size: 0.75rem;
    color: #ffaaaa;
    letter-spacing: 1px;
    opacity: 0.9;
}

.metrics-row {
    display: flex;
    gap: 20px;
}

.mini-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doom-label {
    font-size: 0.65rem;
    color: #ff9999;
    margin-bottom: 3px;
    opacity: 0.8;
}

.doom-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.danger-text {
    color: #ff3333;
}

.blink {
    animation: blinkAnim 1.5s infinite;
}

@keyframes blinkAnim {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.countdown-box {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff3333;
    background: rgba(255, 0, 0, 0.1);
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid #ff3333;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
}

.timer-label {
    font-size: 0.7rem;
    color: #ffaaaa;
    letter-spacing: 1px;
}

.panic-btn {
    background: linear-gradient(135deg, #ff0844 0%, #ff3366 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 8, 68, 0.4);
    transition: all 0.3s ease;
}

.panic-btn:hover {
    background: linear-gradient(135deg, #ff3366 0%, #ff0844 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 8, 68, 0.6);
}

.doom-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ff9999;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.doom-close-btn:hover {
    opacity: 1;
    color: #ff3333;
    transform: scale(1.1);
}

/* Header */
.header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle,
.mobile-menu-close {
    display: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.header .logo img {
    max-height: 40px;
    width: auto;
    display: block;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-item:hover {
    color: var(--primary-color);
}

/* ================== END HEADER & DOOMSDAY BANNER ================== */

/* === MOBILE RESPONSIVE NAVIGATION === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-card, #ffffff);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-item {
        font-size: 1.3rem;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid var(--border-color, #e0e0e0);
        border-radius: 8px;
        cursor: pointer;
        gap: 5px;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text-dark, #1a1a1a);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        background: none;
        border: none;
        color: var(--text-dark, #1a1a1a);
        cursor: pointer;
    }

    .logo {
        z-index: 1001;
    }

    .header nav {
        justify-content: space-between;
    }

    /* Doom Banner Mobile */
    .doom-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .banner-section {
        width: 100%;
    }

    .metrics-row {
        justify-content: center;
    }

    .panic-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* --- DOPAMINE HERO SECTION --- */
.dopamine-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 8% 60px;
    position: relative;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 198, 255, 0.05) 0%, transparent 40%),
        var(--bg-body);
}

.dopamine-hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.dopamine-hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 60px;
    z-index: 2;
}

.dopamine-hero-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.dopamine-hero-badge {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dopamine-hero-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dopamine-highlight {
    background: linear-gradient(to right, #00ff88, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dopamine-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dopamine-btn-primary {
    background: #00ff88;
    color: #000;
}

.dopamine-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.dopamine-btn-outline {
    background: transparent;
    color: #00ff88;
    border: 2px solid #00ff88;
}

.dopamine-btn-outline:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.dopamine-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.dopamine-cta-group {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.dopamine-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.phone-mockup {
    width: 340px;
    height: 680px;
    background: #000;
    border-radius: 50px;
    border: 10px solid #1a1a1a;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 255, 136, 0.15);
    overflow: hidden;
    animation: floatPhone 6s ease-in-out infinite;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.screen-time {
    font-size: 56px;
    font-weight: 600;
    color: white;
}

.screen-date {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.balance-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.balance-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #00ff88;
    letter-spacing: 1px;
}

.total-balance {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.notification-list {
    width: 100%;
    flex-grow: 1;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    animation: slideInNotif 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: transform 0.2s;
}

@keyframes slideInNotif {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-card:hover {
    transform: scale(1.02);
    background: rgba(50, 50, 50, 0.9);
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-usdt {
    background: #26a17b;
}

.icon-eth {
    background: #627eea;
}

.icon-bnb {
    background: #f3ba2f;
}

.icon-usdc {
    background: #2775ca;
}

.icon-sol {
    background: linear-gradient(135deg, #9945FF, #14F195);
}

.icon-avax {
    background: #e84142;
}

.icon-arb {
    background: #28a0f0;
}

.icon-op {
    background: #ff0420;
}

.icon-dai {
    background: #f5ac37;
}

.icon-wbtc {
    background: #f09242;
}

.icon-pol {
    background: #8247e5;
}

.notif-content {
    flex-grow: 1;
}

.app-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.notif-msg {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.hl-green {
    color: #00ff88;
}

.simulate-action {
    position: absolute;
    bottom: 30px;
    width: 90%;
    z-index: 20;
}

.sim-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, #00ff88, #00c6ff);
    border: none;
    border-radius: 16px;
    color: #000;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.1s;
}

.sim-btn:active {
    transform: scale(0.96);
}

@media (max-width: 1024px) {
    .dopamine-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .dopamine-hero-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .dopamine-hero-text {
        margin-bottom: 40px;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .dopamine-hero-heading {
        font-size: 2.5rem;
    }

    .dopamine-hero-subtitle {
        text-align: center;
    }

    .dopamine-cta-group {
        justify-content: center;
    }

    .phone-mockup {
        width: 300px;
        height: 600px;
    }
}

@media (max-width: 480px) {
    .dopamine-hero-heading {
        font-size: 2rem;
    }

    .dopamine-cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }
}

/* --- SECURITY / FIREWALL SECTION --- */
:root {
    --bg-deep: #020502;
    --ui-bg: #050a05;
    --border-green: #0d2b12;
    --neon-green: #00ff41;
    --neon-dim: #008f11;
    --alert-red: #ff3333;
    --alert-amber: #ffbd2e;
    --font-mono: 'Share Tech Mono', monospace;
}

.security-section {
    background: var(--bg-deep);
    padding: 100px 20px;
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
}

.sec-container {
    max-width: 1100px;
    margin: 0 auto;
}

.sec-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge-safe {
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 5px 15px;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    background: rgba(0, 255, 65, 0.05);
}

.sec-header h2 {
    font-size: 3rem;
    margin: 25px 0;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.highlight-green {
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.sec-header p {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

.aegis-monitor {
    background: var(--ui-bg);
    border: 1px solid var(--border-green);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.05);
}

.monitor-header {
    background: #081108;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #666;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 2s infinite;
}

.text-green {
    color: var(--neon-green);
}

.monitor-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    border-bottom: 1px solid var(--border-green);
    height: 400px;
}

.radar-view {
    position: relative;
    background: radial-gradient(circle, #0a1f0d 0%, #050a05 70%);
    border-right: 1px solid var(--border-green);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(var(--border-green) 1px, transparent 1px), linear-gradient(90deg, var(--border-green) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-100px);
}

.radar-circle {
    position: absolute;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 50%;
}

.c1 {
    width: 120px;
    height: 120px;
}

.c2 {
    width: 220px;
    height: 220px;
    opacity: 0.6;
}

.c3 {
    width: 320px;
    height: 320px;
    opacity: 0.3;
}

.scanning-line {
    position: absolute;
    width: 45%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green));
    top: 50%;
    left: 50%;
    transform-origin: left center;
    animation: scan 4s linear infinite;
    opacity: 0.8;
    box-shadow: 0 0 15px var(--neon-green);
}

.map-stat {
    position: absolute;
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 0.75rem;
}

.map-stat b {
    display: block;
    font-size: 1.1rem;
    color: #fff;
}

.top-right {
    top: 20px;
    right: 20px;
    text-align: right;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
}

.threat-logs {
    background: #000;
    padding: 20px;
    font-family: var(--font-mono);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.log-header {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border-bottom: 1px dashed #333;
    padding-bottom: 10px;
}

.blinking-cursor {
    animation: blink 1s infinite;
    color: var(--neon-green);
}

.log-list {
    flex: 1;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.log-item {
    font-size: 0.8rem;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-left: 2px solid transparent;
    animation: slideIn 0.2s ease;
    display: flex;
    gap: 15px;
}

.log-item:hover {
    background: rgba(0, 255, 65, 0.05);
    border-left-color: var(--neon-green);
}

.log-time {
    color: #555;
    width: 60px;
}

.log-type {
    width: 140px;
    font-weight: bold;
}

.log-detail {
    color: #aaa;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-green {
    color: var(--neon-green);
}

.c-amber {
    color: var(--alert-amber);
}

.c-red {
    color: var(--alert-red);
}

.c-dim {
    color: #666;
}

.monitor-stats {
    display: flex;
    background: #081108;
}

.stat-box {
    flex: 1;
    padding: 20px;
    text-align: center;
    border-right: 1px solid var(--border-green);
}

.stat-box:last-child {
    border-right: none;
}

.stat-val {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    font-family: var(--font-mono);
    margin-top: 5px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--neon-green);
    letter-spacing: 1px;
    opacity: 0.8;
}

@keyframes scan {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(10px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .monitor-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .radar-view {
        height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--border-green);
    }

    .threat-logs {
        height: 250px;
    }

    .monitor-stats {
        flex-wrap: wrap;
    }

    .stat-box {
        min-width: 50%;
        border-bottom: 1px solid var(--border-green);
    }
}

/* --- TOKENS MARQUEE SECTION --- */
.accepted-tokens {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-body) 100%);
    padding: 30px 0 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.tokens-header {
    text-align: center;
    margin-bottom: 25px;
}

.tokens-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 10px;
}

.tokens-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--info) 100%);
    border-radius: 2px;
}

.tokens-label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.tokens-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tokens-marquee-wrapper::before,
.tokens-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.tokens-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-card) 0%, transparent 100%);
}

.tokens-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-card) 0%, transparent 100%);
}

.tokens-marquee {
    display: flex;
    gap: 50px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.tokens-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.token-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    transition: transform 0.3s ease;
}

.token-item:hover {
    transform: scale(1.15);
}

.token-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.token-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .tokens-marquee {
        gap: 35px;
        animation-duration: 20s;
    }

    .token-item img {
        width: 40px;
        height: 40px;
    }

    .tokens-marquee-wrapper::before,
    .tokens-marquee-wrapper::after {
        width: 50px;
    }
}

/* --- CLI / DEVELOPER SECTION --- */
.cli-section {
    background: #050505;
    padding: 100px 8%;
    color: #fff;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.cli-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
}

.cli-text {
    flex: 1;
}

.badge-dev {
    color: #bd00ff;
    border: 1px solid rgba(189, 0, 255, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    font-weight: 700;
    background: rgba(189, 0, 255, 0.05);
}

.cli-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 24px 0;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.highlight-purple {
    color: #bd00ff;
    text-shadow: 0 0 30px rgba(189, 0, 255, 0.4);
}

.cli-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 35px;
    line-height: 1.6;
}

.copy-command {
    background: #111;
    border: 1px solid #333;
    padding: 18px 24px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-command:hover {
    border-color: #bd00ff;
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.15);
    transform: translateY(-2px);
}

.cmd-symbol {
    color: #00ff88;
    font-weight: bold;
}

.copy-icon {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.copy-command:hover .copy-icon {
    opacity: 1;
    color: #bd00ff;
}

.terminal-window {
    flex: 1.2;
    background: #111;
    border-radius: 14px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 400px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    position: relative;
}

.term-header {
    background: #1a1a1a;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* FIXED: Renamed to avoid Bootstrap/Global conflicts */
.term-header-dots {
    position: absolute;
    left: 15px;
    display: flex;
    gap: 8px;
}

.term-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.8;
    display: inline-block;
}

.term-dot-red {
    background: #ff5f56;
}

.term-dot-yellow {
    background: #ffbd2e;
}

.term-dot-green {
    background: #27c93f;
}

.term-title {
    color: #555;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.term-body {
    padding: 25px;
    color: #d1d1d1;
    height: calc(100% - 40px);
    overflow-y: auto;
    line-height: 1.5;
}

.line {
    margin-bottom: 8px;
    display: block;
    opacity: 0;
    transform: translateY(5px);
    animation: fadeInLabel 0.3s forwards;
}

@keyframes fadeInLabel {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.line-cmd {
    color: #fff;
    font-weight: 600;
}

.line-info {
    color: #00c6ff;
}

.line-success {
    color: #00ff88;
}

.line-dim {
    color: #666;
}

@media (max-width: 1024px) {
    .cli-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .cli-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cli-text h2 {
        font-size: 2.8rem;
    }

    .terminal-window {
        width: 100%;
        max-width: 600px;
    }
}

/* --- MATRIX PILLS MODAL --- */
.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    font-family: 'Courier New', Courier, monospace;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

.matrix-overlay.active {
    opacity: 1;
    visibility: visible;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.matrix-container {
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 40px;
    position: relative;
    z-index: 10;
    animation: fadeInZoom 1s ease forwards;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 20px;
}

@keyframes fadeInZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.matrix-title {
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 255, 136, 0.5);
}

.matrix-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 50px;
}

.pill-wrapper {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.pill-option {
    width: 300px;
    cursor: pointer;
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid transparent;
}

.pill-option:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill {
    width: 140px;
    height: 50px;
    border-radius: 50px;
    margin: 0 auto 25px auto;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 -5px 15px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s;
}

.pill-option:hover .pill {
    box-shadow: 0 0 30px currentColor;
}

.blue-pill {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #00f2fe;
}

.red-pill {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    color: #ff0844;
}

.reflection {
    position: absolute;
    top: 5px;
    left: 10px;
    width: 80%;
    height: 40%;
    border-radius: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    opacity: 0.6;
}

.pill-option h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #fff;
}

.pill-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ccc;
}

.pill-desc .faded {
    color: #666;
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

.pill-desc .highlight {
    color: #00ff88;
    font-weight: bold;
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

@media (max-width: 768px) {
    .pill-wrapper {
        gap: 30px;
    }

    .matrix-title {
        font-size: 2rem;
    }

    .pill-option {
        width: 100%;
        margin-bottom: 20px;
    }

    .matrix-overlay {
        overflow-y: auto;
    }

    /* === MOBILE NAVIGATION FIX === */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-card, #ffffff);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-item {
        font-size: 1.3rem;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid var(--border-color, #e0e0e0);
        border-radius: 8px;
        cursor: pointer;
        gap: 5px;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text-dark, #1a1a1a);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        background: none;
        border: none;
        color: var(--text-dark, #1a1a1a);
        cursor: pointer;
    }

    .logo {
        z-index: 1001;
    }

    .header nav {
        justify-content: space-between;
    }

    /* Doom Banner Mobile */
    .doom-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .banner-section {
        width: 100%;
    }

    .metrics-row {
        justify-content: center;
    }

    .panic-btn {
        width: 100%;
        max-width: 280px;
    }
}