/* diplomatic.day - Cyberpunk Diplomatic Noir */
/* Colors: #d4a04a #1a2a3a #0d0b1a #2dd4a8 #c4b8d8 #8b2232 #3b2d5e #e8e0d0 */
/* Fonts: Archivo Black, Space Mono, Inter */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #0d0b1a;
    color: #e8e0d0;
    font-family: 'Fira Code', 'Space Mono', monospace;
    overflow-x: hidden;
    position: relative;
}

/* Bokeh Candlelight Background */
.bokeh-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bokeh-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(212, 160, 74, 0.25) 0%, rgba(212, 160, 74, 0.08) 40%, transparent 70%);
    pointer-events: none;
}

.bokeh-orb.teal {
    background: radial-gradient(circle at center, rgba(45, 212, 168, 0.15) 0%, rgba(45, 212, 168, 0.05) 40%, transparent 70%);
}

.bokeh-orb.lavender {
    background: radial-gradient(circle at center, rgba(196, 184, 216, 0.12) 0%, rgba(196, 184, 216, 0.04) 40%, transparent 70%);
}

/* Rain Overlay */
.rain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.rain-streak {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(196, 184, 216, 0.08), transparent);
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    background: linear-gradient(to bottom, rgba(13, 11, 26, 0.95), rgba(13, 11, 26, 0));
    transition: background 0.4s ease;
}

.nav-bar.scrolled {
    background: rgba(13, 11, 26, 0.97);
    border-bottom: 1px solid rgba(212, 160, 74, 0.1);
}

.nav-seal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seal-icon {
    width: 32px;
    height: 32px;
}

.nav-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
    color: #d4a04a;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #c4b8d8;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2dd4a8;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #2dd4a8;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #d4a04a;
}

.nav-link.active::after {
    width: 100%;
    background: #d4a04a;
}

/* Dossier Sections (F-pattern layout) */
.dossier-section {
    min-height: 100vh;
    display: flex;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.dossier-content {
    width: 60%;
    padding: 8rem 4rem 4rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dossier-atmosphere {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Classification Stamps */
.classification-stamp {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stamp-text {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #8b2232;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(139, 34, 50, 0.4);
    padding: 0.3rem 0.8rem;
}

.stamp-date {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.6rem;
    color: rgba(196, 184, 216, 0.4);
    letter-spacing: 0.1em;
}

/* Hero Section */
.foyer-section {
    background: linear-gradient(135deg, rgba(13, 11, 26, 1) 0%, rgba(26, 42, 58, 0.3) 50%, rgba(59, 45, 94, 0.2) 100%);
}

.hero-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: clamp(3rem, 7vw, 6rem);
    color: #e8e0d0;
    letter-spacing: -0.02em;
}

.title-line.accent {
    color: #d4a04a;
    font-size: clamp(3.5rem, 8vw, 7rem);
}

.hero-dispatch {
    font-family: 'Source Sans 3', 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(232, 224, 208, 0.7);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.dossier-divider {
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.dossier-divider svg {
    width: 100%;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    animation: pulse-soft 3s ease-in-out infinite;
}

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

.scroll-text {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #2dd4a8;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    animation: bob 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Holographic Seal */
.holographic-seal {
    width: 280px;
    height: 280px;
    animation: seal-rotate 30s linear infinite;
    filter: drop-shadow(0 0 30px rgba(45, 212, 168, 0.15));
}

.holographic-seal svg {
    width: 100%;
    height: 100%;
}

@keyframes seal-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3rem;
    color: rgba(212, 160, 74, 0.15);
    line-height: 1;
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.section-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #e8e0d0;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #2dd4a8;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Briefing Section */
.briefing-section {
    background: linear-gradient(180deg, rgba(13, 11, 26, 0.95), rgba(26, 42, 58, 0.15), rgba(13, 11, 26, 0.98));
}

.briefing-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.briefing-card {
    background: rgba(26, 42, 58, 0.3);
    border: 1px solid rgba(212, 160, 74, 0.08);
    border-left: 3px solid #d4a04a;
    padding: 1.5rem 2rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.briefing-card.revealed {
    opacity: 1;
    transform: translateX(0);
}

.briefing-card:hover {
    background: rgba(26, 42, 58, 0.5);
    border-left-color: #2dd4a8;
    box-shadow: 0 0 30px rgba(45, 212, 168, 0.05);
}

.card-classification {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.55rem;
    color: #8b2232;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.card-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: #d4a04a;
    margin-bottom: 0.75rem;
}

.card-body {
    font-family: 'Source Sans 3', 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(232, 224, 208, 0.65);
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(59, 45, 94, 0.3);
}

.card-ref {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.6rem;
    color: rgba(196, 184, 216, 0.35);
    letter-spacing: 0.1em;
}

.card-status {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

.card-status.active {
    color: #2dd4a8;
    border: 1px solid rgba(45, 212, 168, 0.3);
}

.card-status.pending {
    color: #d4a04a;
    border: 1px solid rgba(212, 160, 74, 0.3);
}

.card-status.resolved {
    color: #c4b8d8;
    border: 1px solid rgba(196, 184, 216, 0.3);
}

/* Atmosphere Text */
.atmosphere-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: rotate(-90deg);
    white-space: nowrap;
}

.atmo-line {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.5rem;
    color: rgba(59, 45, 94, 0.15);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* Cipher Section */
.cipher-section {
    background: linear-gradient(180deg, rgba(13, 11, 26, 0.98), rgba(59, 45, 94, 0.15), rgba(13, 11, 26, 1));
    flex-direction: column;
}

.cipher-section .dossier-content {
    width: 100%;
    max-width: 1100px;
    padding: 8rem 6rem 4rem;
}

.cipher-display {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.cipher-item {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: rgba(26, 42, 58, 0.15);
    border: 1px solid rgba(212, 160, 74, 0.06);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.cipher-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.cipher-visual {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.cipher-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 2px;
}

.cipher-cell {
    border-radius: 1px;
    transition: background 0.3s ease;
}

.cipher-info {
    flex: 1;
}

.cipher-name {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    color: #d4a04a;
    margin-bottom: 0.75rem;
}

.cipher-desc {
    font-family: 'Source Sans 3', 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(232, 224, 208, 0.6);
    margin-bottom: 1.25rem;
}

.cipher-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-label {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.6rem;
    color: rgba(196, 184, 216, 0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.meta-bar {
    flex: 1;
    max-width: 200px;
    height: 3px;
    background: rgba(59, 45, 94, 0.3);
    border-radius: 1.5px;
    overflow: hidden;
}

.meta-fill {
    height: 100%;
    background: linear-gradient(90deg, #2dd4a8, #d4a04a);
    border-radius: 1.5px;
    transition: width 1.5s ease;
}

.meta-value {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #2dd4a8;
    letter-spacing: 0.05em;
}

/* Treaty Section */
.treaty-section {
    background: linear-gradient(180deg, rgba(13, 11, 26, 1), rgba(59, 45, 94, 0.1), rgba(13, 11, 26, 0.98));
}

.treaty-document {
    background: rgba(26, 42, 58, 0.12);
    border: 1px solid rgba(212, 160, 74, 0.1);
    padding: 3rem;
    position: relative;
}

.treaty-document::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a04a, transparent);
    opacity: 0.4;
}

.treaty-header-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.treaty-stamp {
    position: absolute;
    top: -10px;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: 0.6;
    transform: rotate(12deg);
}

.treaty-stamp svg {
    width: 100%;
    height: 100%;
}

.treaty-name {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    color: #d4a04a;
}

.treaty-preamble {
    font-family: 'Source Sans 3', 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(232, 224, 208, 0.6);
    font-style: italic;
    max-width: 500px;
}

.treaty-clauses {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.treaty-clause {
    padding-left: 1.5rem;
    border-left: 2px solid rgba(59, 45, 94, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.treaty-clause.revealed {
    opacity: 1;
    transform: translateY(0);
}

.clause-number {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #2dd4a8;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.clause-text {
    font-family: 'Source Sans 3', 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(232, 224, 208, 0.65);
}

.treaty-signatures {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 160, 74, 0.1);
}

.signature-line {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sig-mark {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, #d4a04a, rgba(212, 160, 74, 0.2));
}

.sig-label {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.6rem;
    color: rgba(196, 184, 216, 0.35);
    letter-spacing: 0.1em;
}

/* Treaty atmosphere */
.treaty-atmo {
    position: relative;
}

.treaty-seal-large {
    width: 300px;
    height: 300px;
    animation: seal-rotate 60s linear infinite;
    opacity: 0.6;
}

.treaty-seal-large svg {
    width: 100%;
    height: 100%;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 3rem 6rem;
    background: rgba(13, 11, 26, 0.98);
}

.footer-divider {
    margin-bottom: 2rem;
}

.footer-divider svg {
    width: 100%;
}

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

.footer-domain {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.85rem;
    color: #d4a04a;
    letter-spacing: 0.05em;
}

.footer-classification {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.55rem;
    color: rgba(196, 184, 216, 0.3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-year {
    font-family: 'Fira Code', 'Space Mono', monospace;
    font-size: 0.55rem;
    color: rgba(196, 184, 216, 0.3);
    letter-spacing: 0.2em;
}

/* Reveal animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
    .dossier-section {
        flex-direction: column;
    }

    .dossier-content {
        width: 100%;
        padding: 6rem 2rem 3rem;
    }

    .dossier-atmosphere {
        width: 100%;
        padding: 2rem;
        min-height: auto;
    }

    .nav-links {
        display: none;
    }

    .cipher-item {
        flex-direction: column;
    }

    .cipher-section .dossier-content {
        padding: 6rem 2rem 3rem;
    }

    .footer-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .treaty-document {
        padding: 2rem 1.5rem;
    }

    .site-footer {
        padding: 2rem;
    }

    .atmosphere-text {
        transform: none;
    }

    .atmo-line {
        font-size: 1.5rem;
    }

    .hero-title .title-line {
        font-size: 2.5rem;
    }

    .hero-title .title-line.accent {
        font-size: 3rem;
    }
}
