@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap&font-display=swap');

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --border: #222222;
    --border-hover: #333333;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;
    --accent: #ffffff;
    --accent-hover: #cccccc;
    --accent-glow: rgba(255, 255, 255, 0.08);
    --accent-secondary: #ffffff;
    --gradient-1: linear-gradient(135deg, #ffffff, #ffffff);
    --gradient-2: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #cccccc;
}

/* ===== HEADER / NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    overflow-x: hidden;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
}

.nav-logo img {
    height: 32px;
    width: 32px;
    border-radius: 6px;
}

.nav-logo span {
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
    color: #ffffff;
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    transition: all var(--transition);
    flex-shrink: 0;
}

.burger:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* ===== MAIN CONTENT ===== */
.main {
    padding-top: 104px;
}

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

/* ===== HERO ===== */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    display: none;
}

/* Hero carousel */
.hero-carousel {
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #39ff14;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative;
}

.hero h1 .gradient {
    color: #ffffff;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 20px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: #cccccc;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CARDS GRID ===== */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 0;
}

.stat {
    text-align: center;
    padding: 24px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

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

/* ===== MIRRORS ===== */
.mirror-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mirror-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mirror-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.mirror-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mirror-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00d26a;
    box-shadow: 0 0 8px rgba(0, 210, 106, 0.4);
}

.mirror-status.offline {
    background: #ff4757;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
}

.mirror-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.mirror-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.mirror-action .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ===== RESOURCES ===== */
.resource-section {
    margin-bottom: 56px;
}

.resource-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition);
}

.resource-link:hover {
    border-color: #ffffff;
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

.resource-link .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.resource-link .title {
    font-weight: 500;
}

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

.resource-link .arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: all var(--transition);
}

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

/* Videos grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.video-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

.video-card .video-info {
    padding: 16px 20px;
}

.video-card .video-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.video-card .video-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item.active {
    border-color: var(--border-hover);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    user-select: none;
    transition: color var(--transition);
}

.faq-question:hover {
    color: #ffffff;
}

.faq-question .chevron {
    transition: transform var(--transition);
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question .chevron {
    transform: rotate(180deg);
    color: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 40px;
}

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

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

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 100px 0 40px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

/* ===== COPY BUTTON ===== */
.copy-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

.copy-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.copy-btn.copied {
    border-color: #00d26a;
    color: #00d26a;
}

/* ===== RESPONSIVE ===== */

/* Tablet landscape */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .section {
        padding: 60px 0;
    }

    .content-block h2 {
        font-size: 1.4rem;
    }
}

/* Tablet portrait & mobile */
@media (max-width: 768px) {
    /* Nav */
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        z-index: 9999;
        overflow-y: auto;
    }

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

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        display: block;
        padding: 16px 20px;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 10px;
        border-bottom: none;
        transition: background 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.06);
    }

    .burger {
        display: flex;
    }

    .burger.active {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero {
        padding: 80px 0 50px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    /* Grids */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Acid cards — 2 columns on mobile */
    .acid-card {
        aspect-ratio: 1 / 1;
    }

    .acid-card .card-label {
        padding: 14px 16px;
    }

    .acid-card .card-label h3 {
        font-size: 0.9rem;
    }

    .acid-card .card-label .card-arrow {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    /* Detail cards */
    .acid-detail-card {
        padding: 24px;
    }

    .acid-detail-card h3 {
        font-size: 1.05rem;
    }

    .acid-detail-card p {
        font-size: 0.88rem;
    }

    /* Stats */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    /* Mirrors */
    .mirror-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .mirror-url {
        font-size: 0.78rem;
        word-break: break-all;
    }

    .mirror-action {
        width: 100%;
    }

    .mirror-action .btn {
        width: 100%;
        justify-content: center;
    }

    /* Steps */
    .step {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* Resources */
    .resource-link {
        padding: 14px 16px;
        gap: 12px;
    }

    .resource-link .title {
        font-size: 0.92rem;
    }

    .resource-link .desc {
        font-size: 0.8rem;
    }

    /* Videos */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* News */
    .news-card {
        padding: 20px;
    }

    .news-card h3 {
        font-size: 1.05rem;
    }

    /* Page header */
    .page-header {
        padding: 80px 0 30px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .section {
        padding: 50px 0;
    }

    /* Content blocks */
    .content-block {
        margin-bottom: 36px;
    }

    .content-block h2 {
        font-size: 1.25rem;
    }

    .content-block p {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer {
        padding: 30px 0;
    }

    /* FAQ */
    .faq-question {
        padding: 16px 18px;
        font-size: 0.92rem;
    }

    .faq-answer-inner {
        padding: 0 18px 16px;
        font-size: 0.88rem;
    }

    /* Copy button */
    .copy-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.92rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Cards grid — still 2 col but tighter */
    .grid-4 {
        gap: 10px;
    }

    .acid-card .card-label h3 {
        font-size: 0.8rem;
    }

    .acid-card .card-label .card-arrow {
        display: none;
    }

    .acid-card .card-label {
        padding: 10px 12px;
    }

    /* Stats single column */
    .stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    /* Steps */
    .step {
        padding: 16px;
    }

    /* Page header */
    .page-header h1 {
        font-size: 1.5rem;
    }

    /* Section header */
    .section-header h2 {
        font-size: 1.35rem;
    }

    .section {
        padding: 40px 0;
    }

    /* Mirror URL smaller */
    .mirror-url {
        font-size: 0.7rem;
    }

    .mirror-label {
        font-size: 0.72rem;
    }

    /* News */
    .news-card {
        padding: 16px;
    }

    .news-card h3 {
        font-size: 0.95rem;
    }

    .news-card p {
        font-size: 0.85rem;
    }

    .news-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Resource links */
    .resource-link {
        padding: 12px 14px;
    }

    .resource-link .arrow {
        display: none;
    }

    /* Video info */
    .video-card .video-info {
        padding: 12px 14px;
    }

    .video-card .video-info h4 {
        font-size: 0.88rem;
    }
}

/* ===== ACID COLORS ===== */
:root {
    --acid-pink: #ff2d7b;
    --acid-green: #39ff14;
    --acid-blue: #00f0ff;
    --acid-purple: #bf00ff;
    --acid-orange: #ff6b00;
    --acid-yellow: #e6ff00;
}

/* ===== ACID FEATURE CARDS ===== */
.acid-card {
    border-radius: 16px;
    padding: 0;
    border: none;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.acid-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.acid-card .card-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.acid-card .card-art svg {
    width: 100%;
    height: 100%;
    display: block;
}

.acid-card .card-label {
    position: relative;
    z-index: 2;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acid-card .card-label h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.acid-card .card-label .card-arrow {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

/* Acid backgrounds */
.acid-card.bg-pink { background: var(--acid-pink); }
.acid-card.bg-green { background: var(--acid-green); }
.acid-card.bg-blue { background: var(--acid-blue); }
.acid-card.bg-purple { background: var(--acid-purple); }
.acid-card.bg-orange { background: var(--acid-orange); }
.acid-card.bg-yellow { background: var(--acid-yellow); }
.acid-card.bg-cyan { background: #00cec9; }
.acid-card.bg-lime { background: #a8e600; }
.acid-card.bg-coral { background: #ff6b6b; }
.acid-card.bg-violet { background: #7c4dff; }

/* Dark text cards for light backgrounds */
.acid-card.bg-yellow .card-label h3,
.acid-card.bg-lime .card-label h3,
.acid-card.bg-green .card-label h3 {
    color: #111;
    text-shadow: none;
}
.acid-card.bg-yellow .card-label .card-arrow,
.acid-card.bg-lime .card-label .card-arrow,
.acid-card.bg-green .card-label .card-arrow {
    color: #111;
    background: rgba(0,0,0,0.1);
}

/* Detail cards (for market.php etc) — colored bg with text */
.acid-detail-card {
    border-radius: 16px;
    padding: 32px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.acid-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.acid-detail-card .card-art-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.acid-detail-card .card-art-bg svg {
    width: 100%;
    height: 100%;
}

.acid-detail-card h3 {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.acid-detail-card p {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    line-height: 1.7;
}

.acid-detail-card.bg-yellow h3,
.acid-detail-card.bg-lime h3,
.acid-detail-card.bg-green h3 {
    color: #111;
}
.acid-detail-card.bg-yellow p,
.acid-detail-card.bg-lime p,
.acid-detail-card.bg-green p {
    color: rgba(0,0,0,0.7);
}

/* ===== SHOWCASE GALLERY ===== */
.showcase-gallery {
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    aspect-ratio: 3186 / 2004;
}

.showcase-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
}

.showcase-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.showcase-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.showcase-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.showcase-btn.active {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.showcase-btn:hover {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .showcase-gallery {
        margin-bottom: 32px;
        border-radius: 12px;
    }

    .showcase-nav {
        bottom: 10px;
    }

    .showcase-btn {
        width: 8px;
        height: 8px;
    }
}

/* ===== NEWS CARDS ===== */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.news-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.news-tag {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-tag.update { background: rgba(108, 92, 231, 0.2); color: var(--accent); }
.news-tag.security { background: rgba(0, 240, 255, 0.15); color: var(--acid-blue); }
.news-tag.announcement { background: rgba(255, 45, 123, 0.15); color: var(--acid-pink); }
.news-tag.feature { background: rgba(57, 255, 20, 0.15); color: var(--acid-green); }

.news-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== VIDEO SWITCHER ===== */
.video-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.video-nav-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.video-nav-btn.active {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.video-nav-btn:hover {
    background: #cccccc;
}

.video-page {
    display: none;
}

.video-page.active {
    display: grid;
}

/* ===== CONTENT SECTIONS ===== */
/* ===== STAT CARDS ===== */
.stat-card {
    aspect-ratio: auto !important;
    padding: 32px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-content {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    margin-top: 8px;
    font-weight: 500;
}

.stat-number.text-light { color: #fff; }
.stat-label.text-light { color: rgba(255,255,255,0.7); }
.stat-number.text-dark { color: #111; }
.stat-label.text-dark { color: rgba(0,0,0,0.6); }

/* ===== CONTENT BLOCK ===== */
.content-block {
    margin-bottom: 48px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.content-block h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.content-block h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: #ffffff;
}

.content-block p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-block ul {
    list-style: none;
    margin-bottom: 16px;
}

.content-block ul li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.content-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

/* ===== INSTRUCTION STEPS ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.step {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.step:hover {
    border-color: var(--border-hover);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.step-content h4 {
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== CODE BLOCK ===== */
.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: var(--acid-green);
    overflow-x: auto;
    margin: 12px 0;
}

/* ===== ONION BAR ===== */
.onion-bar {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
}

.onion-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.onion-badge {
    background: var(--acid-green);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.onion-link-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.onion-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: all;
}

.onion-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.onion-copy-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.onion-copy-btn .check-icon,
.onion-copy-btn .copied-text {
    display: none;
}

.onion-copy-btn.copied .copy-icon,
.onion-copy-btn.copied .copy-text {
    display: none;
}

.onion-copy-btn.copied .check-icon,
.onion-copy-btn.copied .copied-text {
    display: inline;
}

.onion-copy-btn.copied {
    border-color: var(--acid-green);
    color: var(--acid-green);
}

.onion-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: auto;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acid-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== ONION BLOCK (mirrors page) ===== */
.onion-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.onion-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
}

.onion-block-badge {
    background: var(--acid-green);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 6px;
}

.onion-block-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--acid-green);
    font-weight: 500;
}

.onion-block-item {
    padding: 28px;
}

.onion-block-item + .onion-block-item {
    border-top: 1px solid var(--border);
}

.onion-block-url-wrap {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.onion-block-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--acid-green);
    user-select: all;
    word-break: break-all;
    line-height: 1.6;
}

.onion-block-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.onion-block-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.onion-block-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.onion-block-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
    justify-content: center;
}

.onion-block-copy:hover {
    border-color: var(--acid-green);
    color: var(--acid-green);
    background: rgba(57, 255, 20, 0.05);
}

.onion-block-copy .check-icon,
.onion-block-copy .copied-text {
    display: none;
}

.onion-block-copy.copied .copy-icon,
.onion-block-copy.copied .copy-text {
    display: none;
}

.onion-block-copy.copied .check-icon,
.onion-block-copy.copied .copied-text {
    display: inline;
}

.onion-block-copy.copied {
    border-color: var(--acid-green);
    color: var(--acid-green);
    background: rgba(57, 255, 20, 0.08);
}

@media (max-width: 768px) {
    .onion-bar-inner {
        gap: 8px;
    }

    .onion-status {
        display: none;
    }

    .onion-url {
        font-size: 0.7rem;
    }

    .onion-copy-btn .copy-text,
    .onion-copy-btn .copied-text {
        display: none;
    }

    .onion-copy-btn.copied .copied-text {
        display: none;
    }

    .onion-block-item {
        padding: 20px;
    }

    .onion-block-header {
        padding: 16px 20px;
    }

    .onion-block-url {
        font-size: 0.75rem;
    }

    .onion-block-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
