/* ============================================
   persopass.io — Dark-Academia Candy Vault
   Colors: #E04878, #40C8D8, #E0D040, #E8D8E0,
           #141018, #A090A8, #181014
   Fonts:  Bebas Neue, Inter, Space Grotesk
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #A090A8;
    background: #141018;
    overflow-x: hidden;
}

/* ---------- SVG Filters (hidden) ---------- */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- Noise Overlay - Archival Grain 3% ---------- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ---------- Typography ---------- */
.hero-title,
.hero-title-suffix,
.section-heading,
.footer-brand {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    color: #E8D8E0;
}

.candy-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #E04878;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
}

.candy-label.candy-cyan {
    color: #40C8D8;
}

.candy-label.candy-yellow {
    color: #E0D040;
}

p, .section-body, .card-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    color: #A090A8;
}

/* ---------- Layout: Split-Screen ---------- */
.hero-section,
.content-section {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.split-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
}

.left-panel {
    width: 55%;
    background: #141018;
}

.right-panel {
    width: 45%;
    background: #181014;
    border-left: 2px solid #E04878;
}

.panel-content {
    max-width: 520px;
    width: 100%;
}

/* ---------- Hero Section ---------- */
.hero-section {
    height: 100vh;
    min-height: 100vh;
}

.hero-title-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.15em;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    line-height: 1;
    letter-spacing: 0.05em;
}

.hero-title-suffix {
    font-size: clamp(1.6rem, 3.5vw, 3rem);
    color: #E04878;
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: #A090A8;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

/* ---------- Scroll Hint ---------- */
.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 3rem;
    opacity: 0;
    animation: scrollHintFade 1.5s ease-out 2s forwards;
}

.scroll-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: #A090A8;
    opacity: 0.5;
}

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

@keyframes scrollHintFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ---------- Vault Emblem ---------- */
.vault-emblem {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.emblem-svg {
    width: 160px;
    height: 160px;
    animation: emblemPulse 6s ease-in-out infinite;
}

@keyframes emblemPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.right-panel-content {
    text-align: center;
}

.vault-descriptor {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #A090A8;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.right-panel .candy-label {
    text-align: center;
}

/* ---------- Vault Keyhole ---------- */
.vault-keyhole {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.keyhole-svg {
    width: 40px;
    height: 60px;
    opacity: 0.6;
    animation: keyholeBreath 4s ease-in-out infinite;
}

@keyframes keyholeBreath {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ---------- Flourish SVGs ---------- */
.flourish {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 2rem 0;
}

.flourish-hero {
    margin-top: 0;
}

.flourish-wide {
    max-width: 500px;
}

.flourish-footer {
    max-width: 200px;
    margin: 0.8rem auto;
}

/* ---------- Section Headings ---------- */
.section-heading {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

/* ---------- Section Body ---------- */
.section-body {
    margin-bottom: 2rem;
}

/* ---------- Cards with Hover-Lift ---------- */
.card {
    background: rgba(232, 216, 224, 0.03);
    border: 1px solid rgba(232, 216, 224, 0.06);
    border-radius: 4px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}

.hover-card {
    transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms ease-out;
    cursor: default;
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.accent-card.accent-cyan {
    border-left: 2px solid #40C8D8;
}

.accent-card.accent-cyan:hover {
    border-left-color: #40C8D8;
    box-shadow: 0 8px 24px rgba(64, 200, 216, 0.1);
}

.accent-card.accent-yellow {
    border-left: 2px solid #E0D040;
}

.accent-card.accent-yellow:hover {
    border-left-color: #E0D040;
    box-shadow: 0 8px 24px rgba(224, 208, 64, 0.1);
}

.card .candy-label {
    margin-bottom: 0.75rem;
}

.card-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #E8D8E0;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.card-text {
    font-weight: 300;
    color: #A090A8;
}

/* ---------- Vault Stats ---------- */
.vault-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    background: rgba(232, 216, 224, 0.03);
    border: 1px solid rgba(232, 216, 224, 0.06);
    border-radius: 4px;
    padding: 1.2rem 0.8rem;
    text-align: center;
}

.stat-item:hover {
    border-color: rgba(224, 72, 120, 0.2);
}

.stat-number {
    display: block;
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: 1.8rem;
    color: #E04878;
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    color: #A090A8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ---------- Archive Grid ---------- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.archive-item {
    background: rgba(232, 216, 224, 0.03);
    border: 1px solid rgba(232, 216, 224, 0.06);
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.archive-item:hover {
    border-color: rgba(224, 72, 120, 0.15);
}

.archive-icon {
    width: 40px;
    height: 40px;
}

.archive-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: #A090A8;
    text-transform: uppercase;
}

/* ---------- Philosophy Quotes ---------- */
.philosophy-quotes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vault-quote {
    background: rgba(232, 216, 224, 0.03);
    border: 1px solid rgba(232, 216, 224, 0.06);
    border-left: 2px solid #E04878;
    border-radius: 4px;
    padding: 1.5rem 2rem;
}

.vault-quote:hover {
    border-left-color: #E04878;
    box-shadow: 0 8px 24px rgba(224, 72, 120, 0.08);
}

.vault-quote p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: #E8D8E0;
    line-height: 1.7;
    font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #141018;
    border-top: 1px solid rgba(224, 72, 120, 0.15);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    display: block;
}

.footer-note {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #A090A8;
    letter-spacing: 0.05em;
    display: block;
}

.footer-sigil {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.footer-sigil svg {
    width: 40px;
    height: 40px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawPath {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flourish path animation */
.flourish path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-out;
}

.flourish.animate path {
    stroke-dashoffset: 0;
}

/* Split panel border entrance */
.right-panel {
    position: relative;
}

.right-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 2px;
    height: 0;
    background: #E04878;
    transition: height 1.2s ease-out;
    z-index: 1;
}

.hero-section .right-panel::before {
    height: 100%;
    transition-delay: 0.5s;
}

.right-panel.border-animated::before {
    height: 100%;
}

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

    .left-panel,
    .right-panel {
        width: 100%;
    }

    .right-panel {
        border-left: none;
        border-top: 2px solid #E04878;
    }

    .right-panel::before {
        display: none;
    }

    .split-panel {
        padding: 3rem 1.5rem;
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
    }

    .vault-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 500px) {
    .split-panel {
        padding: 2rem 1rem;
    }

    .hero-title-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .vault-stats {
        grid-template-columns: 1fr;
    }

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