:root {
    --passport-navy: #1b2a4a;
    --cream-vellum: #f5f0e0;
    --gold-foil: #c8a850;
    --deep-ink: #2d2d3a;
    --security-blue: #6889a8;
    --alert-vermillion: #c44536;
    --aged-parchment: #d8ceb4;
    --dim-gold: #a08030;
    --highlight-cream: #f0e6a0;
}

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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--passport-navy);
    color: var(--cream-vellum);
    overflow-x: hidden;
}

.passport-booklet {
    width: 100%;
}

/* Spread Layout */
.spread {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    scroll-snap-align: start;
    position: relative;
}

.spread-left {
    background: var(--passport-navy);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spread-right {
    background: var(--cream-vellum);
    color: var(--deep-ink);
    padding: clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Guilloche Patterns */
.guilloche-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    animation: rotateGuilloche 60s linear infinite;
}

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

/* Embossed Seal */
.embossed-seal {
    position: relative;
    z-index: 2;
    width: 200px;
    height: 200px;
    animation: pulseGlow 4s ease-in-out infinite;
}

.seal-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(200, 168, 80, 0.2));
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(200, 168, 80, 0.15)); }
    50% { filter: drop-shadow(0 0 30px rgba(200, 168, 80, 0.3)); }
}

/* Watermark */
.watermark-text {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(200, 168, 80, 0.06);
    text-transform: uppercase;
    z-index: 1;
    user-select: none;
    white-space: nowrap;
}

/* Cover Content */
.cover-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.passport-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--security-blue);
    opacity: 0.8;
}

.domain-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--deep-ink);
    line-height: 1.1;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--dim-gold);
    letter-spacing: 0.08em;
}

.cover-line {
    width: 60px;
    height: 1px;
    background: var(--gold-foil);
    opacity: 0.6;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--deep-ink);
    opacity: 0.7;
    line-height: 1.6;
    max-width: 400px;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    cursor: pointer;
}

.scroll-indicator span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--security-blue);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid var(--security-blue);
    border-bottom: 1.5px solid var(--security-blue);
    transform: rotate(45deg);
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(4px, 4px); }
}

/* Page Number */
.page-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--aged-parchment);
    position: absolute;
    top: 2rem;
    right: 2rem;
}

/* Section Titles */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--deep-ink);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold-foil);
    margin-top: 0.75rem;
}

/* Document Fields */
.document-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(216, 206, 180, 0.5);
}

.field-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--security-blue);
}

.field-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--deep-ink);
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--deep-ink);
    opacity: 0.8;
    margin-top: 1.5rem;
    max-width: 480px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid var(--aged-parchment);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--gold-foil);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.feature-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--deep-ink);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--deep-ink);
    opacity: 0.7;
}

/* Security Badge */
.security-badge {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-foil);
    border-radius: 50%;
    opacity: 0.4;
    animation: rotateBadge 20s linear infinite;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

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

.badge-inner {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--gold-foil);
    opacity: 0.7;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(216, 206, 180, 0.3);
}

.step-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold-foil);
    line-height: 1;
    min-width: 50px;
}

.step-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--deep-ink);
    margin-bottom: 0.4rem;
}

.step-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--deep-ink);
    opacity: 0.7;
}

/* MRZ Zone */
.mrz-zone {
    background: var(--passport-navy);
    padding: 1.5rem 2rem;
    margin: 1rem 0 1.5rem;
    overflow: hidden;
}

.mrz-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    letter-spacing: 0.15em;
    color: var(--cream-vellum);
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.8;
}

.mrz-explanation {
    font-size: 0.8rem;
}

/* Footer */
.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--aged-parchment);
}

.footer-domain {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--dim-gold);
}

.footer-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--aged-parchment);
}

/* Reveal Animations */
.spread-right > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.spread-right.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.spread-right > *:nth-child(1) { transition-delay: 0.1s; }
.spread-right > *:nth-child(2) { transition-delay: 0.2s; }
.spread-right > *:nth-child(3) { transition-delay: 0.3s; }
.spread-right > *:nth-child(4) { transition-delay: 0.4s; }
.spread-right > *:nth-child(5) { transition-delay: 0.5s; }
.spread-right > *:nth-child(6) { transition-delay: 0.6s; }

/* Cover always visible */
.cover-spread .spread-right > * {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .spread {
        grid-template-columns: 1fr;
        grid-template-rows: 30vh 1fr;
    }

    .spread-left {
        min-height: 30vh;
    }

    .spread-right {
        padding: 2rem 1.5rem;
    }

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

    .process-step {
        gap: 1rem;
    }
}
