:root {
    --bg: #0a0a0c;
    --surface: #111116;
    --border: #1e1e28;
    --border-glow: #2a2a3a;
    --text: #c8c8d4;
    --text-dim: #6a6a7e;
    --text-bright: #eeeef4;
    --ltc-accent: #345d9d;
    --ltc-glow: #4a7fd4;
    --ltc-bg: rgba(52, 93, 157, 0.06);
    --xmr-accent: #e8731a;
    --xmr-glow: #ff8c2e;
    --xmr-bg: rgba(232, 115, 26, 0.06);
    --green: #4ae0a0;
    --green-dim: rgba(74, 224, 160, 0.15);
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --sans: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scanline overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px);
    pointer-events: none;
    z-index: 100;
}

/* Ambient glow */
body::after {
    content: '';
    position: fixed;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 80%;
    background: radial-gradient(ellipse at 30% 50%, rgba(52, 93, 157, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(232, 115, 26, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.site-title {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.site-title .dot {
    color: var(--green);
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Coin sections */
.coin-section {
    margin-bottom: 3.5rem;
}

.coin-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.coin-icon.ltc {
    background: var(--ltc-bg);
    border: 1px solid rgba(52, 93, 157, 0.25);
    color: var(--ltc-glow);
}

.coin-icon.xmr {
    background: var(--xmr-bg);
    border: 1px solid rgba(232, 115, 26, 0.25);
    color: var(--xmr-glow);
}

.coin-name {
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-bright);
}

.coin-name small {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

/* Service grid */
.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.service {
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.15s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service:hover {
    background: #16161e;
    z-index: 2;
}

.service.ltc-accent:hover {
    background: rgba(52, 93, 157, 0.08);
}

.service.xmr-accent:hover {
    background: rgba(232, 115, 26, 0.08);
}

.service-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.service-name {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
}

.service-url {
    font-size: 0.75rem;
    color: var(--text-dim);
    word-break: break-all;
    transition: color 0.2s;
}

.service.ltc-accent:hover .service-url {
    color: var(--ltc-glow);
}

.service.xmr-accent:hover .service-url {
    color: var(--xmr-glow);
}

.service-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge.clearnet {
    background: var(--green-dim);
    color: var(--green);
}

.badge.tor {
    background: rgba(168, 130, 255, 0.12);
    color: #a882ff;
}

.badge.i2p {
    background: rgba(255, 200, 50, 0.1);
    color: #cca833;
}

/* Onion section */
.onion-section {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.onion-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.onion-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.onion-entry {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.72rem;
}

.onion-entry .label {
    color: var(--text-dim);
    min-width: 100px;
    flex-shrink: 0;
}

.onion-entry .addr {
    color: var(--text);
    word-break: break-all;
    font-size: 0.68rem;
    opacity: 0.7;
}

.onion-entry .addr:hover {
    opacity: 1;
}

/* Connection info */
.connect-section {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.connect-title {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 1.25rem;
}

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.connect-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.connect-card h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.connect-card code {
    display: block;
    font-size: 0.75rem;
    color: var(--text);
    margin-bottom: 0.35rem;
    word-break: break-all;
}

.connect-card code span.proto {
    color: var(--text-dim);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 2rem 1.25rem;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .connect-grid {
        grid-template-columns: 1fr;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .onion-entry {
        flex-direction: column;
        gap: 0.15rem;
    }

    .onion-entry .label {
        min-width: unset;
    }
}

/* Fade in animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coin-section {
    animation: fadeUp 0.6s ease-out both;
}

.coin-section:nth-child(2) {
    animation-delay: 0.1s;
}

.coin-section:nth-child(3) {
    animation-delay: 0.2s;
}

.connect-section {
    animation: fadeUp 0.6s ease-out 0.3s both;
}