/* nfth.ing — Cyberpunk Data Vault */
:root {
    --void-black: #0A0614;
    --dark-plum: #0F0A1E;
    --muted-purple-black: #1A1030;
    --deep-purple: #6A0DAD;
    --electric-mint: #00FFD1;
    --magenta-jewel: #FF006E;
    --gold: #FFD700;
    --lavender-gray: #A0A0C0;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--lavender-gray);
    background: var(--void-black);
    overflow-x: hidden;
}

/* Circuit Trace Background */
#circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cline x1='0' y1='40' x2='80' y2='40' stroke='%2300FFD1' stroke-width='0.75'/%3E%3Cline x1='80' y1='40' x2='80' y2='100' stroke='%2300FFD1' stroke-width='0.75'/%3E%3Cline x1='80' y1='100' x2='160' y2='100' stroke='%2300FFD1' stroke-width='0.75'/%3E%3Cline x1='160' y1='100' x2='160' y2='40' stroke='%2300FFD1' stroke-width='0.75'/%3E%3Ccircle cx='80' cy='40' r='2' fill='%2300FFD1'/%3E%3Ccircle cx='80' cy='100' r='2' fill='%2300FFD1'/%3E%3Ccircle cx='160' cy='100' r='2' fill='%2300FFD1'/%3E%3Ccircle cx='160' cy='40' r='2' fill='%2300FFD1'/%3E%3Cline x1='40' y1='0' x2='40' y2='60' stroke='%2300FFD1' stroke-width='0.75'/%3E%3Cline x1='40' y1='60' x2='120' y2='60' stroke='%2300FFD1' stroke-width='0.75'/%3E%3Cline x1='120' y1='60' x2='120' y2='160' stroke='%2300FFD1' stroke-width='0.75'/%3E%3Cline x1='120' y1='160' x2='200' y2='160' stroke='%2300FFD1' stroke-width='0.75'/%3E%3Ccircle cx='40' cy='60' r='2' fill='%2300FFD1'/%3E%3Ccircle cx='120' cy='60' r='2' fill='%2300FFD1'/%3E%3Ccircle cx='120' cy='160' r='2' fill='%2300FFD1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-attachment: scroll;
    pointer-events: none;
}

#circuit-bg.visible {
    opacity: 0.06;
}

/* Hero Section */
#hero {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: 80px 20px 40px;
    text-align: center;
}

.domain-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 56px;
    color: var(--white);
    letter-spacing: 0.03em;
    display: inline;
}

.typewriter-cursor {
    font-family: 'Fira Code', monospace;
    font-size: 56px;
    color: var(--electric-mint);
    animation: cursor-blink 0.8s step-end infinite;
    margin-left: 2px;
}

.typewriter-cursor.hidden {
    display: none;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--lavender-gray);
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.subtitle.visible {
    opacity: 1;
}

/* Circuit Connectors */
.circuit-connector {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.connector-svg {
    width: 20px;
    height: 80px;
}

#connector-hero .connector-svg {
    height: 120px;
}

.circuit-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s ease-in-out;
}

.circuit-connector.visible .circuit-line {
    stroke-dashoffset: 0;
}

.circuit-node {
    transform-origin: center;
    opacity: 0;
    transition: opacity 0.3s ease 1s;
}

.circuit-connector.visible .circuit-node {
    opacity: 1;
    animation: node-pulse 0.3s ease 1s;
}

@keyframes node-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Main Content */
#vault-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px 80px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Vault Entry Panels */
.vault-entry {
    position: relative;
    width: 100%;
    border: 1px solid var(--deep-purple);
    background: rgba(15, 10, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 32px 32px 28px;
    margin-bottom: 0;
}

.vault-icon {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 64px;
    height: 64px;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.vault-icon svg {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 0.8s ease;
}

.vault-entry.revealed .vault-icon {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(0, 255, 209, 0.5));
}

.vault-entry.revealed .vault-icon svg {
    stroke-dashoffset: 0;
}

/* Skeleton Loading */
.skeleton-layer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.skeleton-bar {
    height: 12px;
    background: var(--muted-purple-black);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.skeleton-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(106, 13, 173, 0.12) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out 2;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.vault-entry.revealed .skeleton-layer {
    display: none;
}

/* Vault Content */
.vault-content {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vault-entry.revealed .vault-content {
    opacity: 1;
}

.vault-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.vault-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: var(--white);
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.vault-hash {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: var(--electric-mint);
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.vault-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--lavender-gray);
    margin-bottom: 20px;
}

.vault-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(106, 13, 173, 0.4);
}

.meta-label {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--lavender-gray);
    letter-spacing: 0.06em;
    opacity: 0.6;
}

.meta-value {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--electric-mint);
    letter-spacing: 0.04em;
    margin-right: 16px;
}

/* Footer */
#vault-footer {
    position: relative;
    z-index: 10;
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--deep-purple);
}

.footer-text {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--magenta-jewel);
    letter-spacing: 0.06em;
}

.footer-hash {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--lavender-gray);
    letter-spacing: 0.04em;
    opacity: 0.5;
}

/* Mobile */
@media (max-width: 768px) {
    .domain-title {
        font-size: 36px;
    }

    .typewriter-cursor {
        font-size: 36px;
    }

    #hero {
        padding: 60px 16px 24px;
        min-height: 30vh;
    }

    .vault-entry {
        padding: 24px 16px 20px;
    }

    .vault-icon {
        width: 48px;
        height: 48px;
        top: -12px;
        left: -8px;
    }

    .vault-icon svg {
        width: 48px;
        height: 48px;
    }

    .vault-title {
        font-size: 22px;
    }

    #vault-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .domain-title {
        font-size: 28px;
    }

    .typewriter-cursor {
        font-size: 28px;
    }

    .vault-header {
        flex-direction: column;
        gap: 8px;
    }
}
