/* addrproxy.com - Surreal Privacy Dreamscape */
:root {
    --void: #0A0E1A;
    --cyan: #00D4FF;
    --indigo: #1A1035;
    --warm: #C4854A;
    --ghost: #E8E6E1;
    --slate: #6B7394;
    --magenta: #FF2D7B;
    --green: #3EBF8A;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--void);
    color: var(--ghost);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* Edge Navigation */
.edge-nav {
    position: fixed;
    left: 2vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 100;
}

.nav-node {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--slate);
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-node.active {
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.node-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--cyan);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.nav-node:hover .node-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Sections */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 8rem);
}

.section-origin {
    background: var(--void);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.section-real { clip-path: polygon(0 8%, 100% 0, 100% 94%, 0 100%); margin-top: -8vh; }
.section-hop { background: var(--void); clip-path: polygon(0 6%, 100% 0, 100% 92%, 0 100%); margin-top: -6vh; }
.section-proxy { background: var(--indigo); clip-path: polygon(0 8%, 100% 0, 100% 96%, 0 100%); margin-top: -8vh; }
.section-redact { clip-path: polygon(0 4%, 100% 0, 100% 94%, 0 100%); margin-top: -4vh; }
.section-newaddr { background: var(--void); clip-path: polygon(0 6%, 100% 0, 100% 96%, 0 100%); margin-top: -6vh; flex-direction: column; gap: 3rem; }
.section-dest { background: var(--void); clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); margin-top: -4vh; min-height: 80vh; flex-direction: column; }

/* Wireframe BG */
.wireframe-bg {
    position: absolute;
    width: 80%;
    max-width: 800px;
    top: 10%;
    left: 10%;
    z-index: 0;
}

/* Hero */
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(5rem, 12vw, 10rem);
    letter-spacing: -0.03em;
    color: var(--ghost);
    line-height: 1;
}
.hero-mono {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1rem, 3vw, 2rem);
    letter-spacing: 1.5em;
    color: var(--cyan);
    margin-top: 1rem;
}

/* Split Screen */
.split-screen {
    display: flex;
    gap: 0;
}
.split-left, .split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.warm-side { background: rgba(196, 133, 74, 0.06); }
.cool-side { background: rgba(0, 212, 255, 0.04); }

.address-display, .address-clear { display: flex; flex-direction: column; gap: 0.75rem; }
.addr-line {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--ghost);
}

.hash-display { display: flex; flex-direction: column; gap: 0.75rem; }
.hash-line {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
}

/* Topology */
.topology-diagram { width: 80%; max-width: 900px; }
.topo-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 3s var(--ease);
}
.topo-line.drawn { stroke-dashoffset: 0; }

/* Proxy Content */
.proxy-content { max-width: 600px; text-align: center; position: relative; z-index: 2; }
.body-text { margin-bottom: 1.5rem; }
.highlight { color: var(--cyan); }

/* Redaction */
.address-redacted { display: flex; flex-direction: column; gap: 0.75rem; }
.redacted { position: relative; overflow: hidden; }
.redact-bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--magenta);
    transform: translateX(-105%);
    transition: transform 0.8s var(--ease);
    box-shadow: 0 0 20px rgba(255, 45, 123, 0.3);
    z-index: 1;
}
.redacted.active .redact-bar { transform: translateX(0); }

/* New Address */
.pobox-wireframe { width: 200px; }
.new-address { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.new-addr-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--slate);
}
.new-addr-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--cyan);
    min-height: 1.5em;
}
.safe-indicator { display: flex; align-items: center; gap: 0.5rem; }
.safe-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(62, 191, 138, 0.4);
    animation: safePulse 2s ease-in-out infinite;
}
@keyframes safePulse {
    0%, 100% { opacity: 0.6; } 50% { opacity: 1; }
}
.safe-text { font-family: var(--font-mono); font-size: 0.75rem; color: var(--green); letter-spacing: 0.1em; }

/* Final */
.final-word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 8rem);
    color: var(--cyan);
    text-align: center;
}
.void-space { height: 30vh; }

/* Morph */
.morph-in {
    opacity: 0;
    transform: scaleY(0.8);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.morph-in.visible { opacity: 1; transform: scaleY(1); }

@media (max-width: 768px) {
    .split-screen { flex-direction: column; }
    .edge-nav { left: 0.5rem; }
    .section { padding: clamp(2rem, 4vw, 5rem); }
}
