@font-face {
    font-family: "VT323";
    src: url("../fonts/vt323/VT323-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --terminal-text: #e8e4d9;
    --terminal-text-dim: #8a8780;
    --terminal-text-glow: #fffff0;
    --terminal-bg: #0a0a0a;
    --terminal-bg-light: #121212;
    --scanline-opacity: 0.03;
}

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

html {
    font-size: 16px;
}

body {
    font-family: "VT323", monospace;
    background: var(--terminal-bg);
    color: var(--terminal-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(232, 228, 217, 0.008);
    pointer-events: none;
    z-index: 999;
}

.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.45) 100%
    );
    pointer-events: none;
    z-index: 998;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
}

.ascii-header {
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: pre;
    color: var(--terminal-text);
    text-shadow: 0 0 10px var(--terminal-text-glow), 0 0 20px rgba(232, 228, 217, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
    margin-bottom: 1rem;
    overflow-x: auto;
}

@keyframes glow {
    from {
        text-shadow: 0 0 8px var(--terminal-text-glow), 0 0 15px rgba(232, 228, 217, 0.15);
    }
    to {
        text-shadow: 0 0 12px var(--terminal-text-glow), 0 0 25px rgba(232, 228, 217, 0.25);
    }
}

.tagline {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: var(--terminal-text-dim);
    margin-bottom: 3rem;
}

.tagline::before,
.tagline::after {
    content: "──── ";
}

.tagline::after {
    content: " ────";
}

.divider {
    text-align: center;
    color: var(--terminal-text-dim);
    opacity: 0.6;
    margin: 2rem 0;
}

.mission {
    text-align: center;
    color: var(--terminal-text-dim);
    margin: 1.5rem 0 2.5rem;
    letter-spacing: 0.08em;
}

.about {
    margin-bottom: 2.5rem;
}

.about-text {
    color: var(--terminal-text-dim);
    line-height: 1.5;
    font-size: 1.05rem;
}

.why-privacy {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    color: var(--terminal-text);
}

.section-header {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--terminal-text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header::before {
    content: ">";
    animation: blink 1s step-end infinite;
}

.blink {
    animation: blink 1s step-end infinite;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--terminal-bg-light);
    border: 1px solid var(--terminal-text-dim);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.service-card:focus-visible {
    outline: 2px solid var(--terminal-text);
    outline-offset: 4px;
    box-shadow: 0 0 10px rgba(232, 228, 217, 0.2);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--terminal-text);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover {
    background: rgba(232, 228, 217, 0.03);
    box-shadow: 0 0 20px rgba(232, 228, 217, 0.05), inset 0 0 20px rgba(232, 228, 217, 0.01);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.coming-soon {
    opacity: 0.6;
}

.service-card.coming-soon:hover {
    opacity: 0.8;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.service-icon {
    font-family: "VT323", monospace;
    font-size: 1.4rem;
    width: 2.5rem;
    text-align: center;
    color: var(--terminal-text);
    opacity: 0.9;
}

.service-name {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--terminal-text-dim);
    box-shadow: none;
    animation: none;
}

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

.service-description {
    color: var(--terminal-text-dim);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.service-url {
    color: var(--terminal-text);
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    border-bottom: 1px dashed var(--terminal-text-dim);
    transition: all 0.2s ease;
}

.service-url:hover {
    color: var(--terminal-text-glow);
    border-bottom-color: var(--terminal-text);
    text-shadow: 0 0 8px var(--terminal-text-glow);
}

.service-url:focus-visible {
    outline: 2px solid var(--terminal-text);
    outline-offset: 3px;
    border-bottom-color: var(--terminal-text);
}

.service-url.muted {
    opacity: 0.5;
    cursor: default;
}

.service-badge {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    background: rgba(232, 228, 217, 0.05);
    border: 1px solid var(--terminal-text-dim);
    margin-top: 0.5rem;
}

.system-status {
    background: var(--terminal-bg-light);
    border: 1px solid var(--terminal-text-dim);
    padding: 1.5rem;
    margin-top: 2rem;
}

.status-header {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--terminal-text-dim);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.status-item {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 0.4rem 0;
    border-bottom: 1px dotted rgba(138, 135, 128, 0.3);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: var(--terminal-text-dim);
    position: relative;
}

.status-label::after {
    content: ":";
    margin-left: 0.2rem;
    color: var(--terminal-text-dim);
}

.status-value {
    color: var(--terminal-text);
}

.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--terminal-text-dim);
    color: var(--terminal-text-dim);
    font-size: 1rem;
}

.footer-ascii {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    white-space: pre;
}

.footer-note {
    margin-top: 1.5rem;
    opacity: 0.5;
}

.keyboard-hint {
    margin-top: 0.75rem;
    color: var(--terminal-text-dim);
    font-size: 0.95rem;
}

.prompt {
    color: var(--terminal-text-dim);
}

.prompt-symbol {
    color: var(--terminal-text);
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end);
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .ascii-header {
        font-size: 0.4rem;
    }

    .tagline {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }

    .tagline::before,
    .tagline::after {
        content: "── ";
    }

    .tagline::after {
        content: " ──";
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }
}

::selection {
    background: var(--terminal-text);
    color: var(--terminal-bg);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--terminal-text-dim);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terminal-text);
}
