/* ========================================
   persopass.io - Graffiti Authentication
   Street Art Identity System
   ======================================== */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --street-black: #0A0A0A;
    --pure-white: #FAFAFA;
    --graffiti-yellow: #FFD030;
    --graffiti-red: #E83838;
    --star-silver: #B0B8C8;
    --concrete-gray: #404048;
    --spray-blue: #3888E8;
}

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

body {
    background: var(--street-black);
    color: var(--pure-white);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.75;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
.domain-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4vw, 60px);
    letter-spacing: -0.01em;
    color: var(--pure-white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.domain-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3.5vw, 48px);
    letter-spacing: -0.01em;
    color: var(--pure-white);
    margin-bottom: 20px;
}

.street-label {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--graffiti-yellow);
    display: block;
    margin-bottom: 12px;
}

.section-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.75;
    color: var(--pure-white);
    max-width: 600px;
}

.hero-tagline {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 600ms ease 300ms, transform 600ms ease 300ms;
}

.hero-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === PARALLAX CONTAINER === */
.parallax-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.parallax-fg {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.parallax-mid {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.25;
}

.parallax-bg {
    z-index: 1;
    pointer-events: none;
}

/* === HERO SECTION === */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.auth-diagram {
    opacity: 0;
    transition: opacity 800ms ease 400ms;
}

.auth-diagram.visible {
    opacity: 1;
}

/* SVG stroke animation */
.diagram-stroke {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1200ms ease;
}

.diagram-stroke.animate {
    stroke-dashoffset: 0;
}

/* Spray burst */
.spray-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 208, 48, 0.15) 0%, rgba(255, 208, 48, 0.05) 30%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.spray-burst.flash {
    animation: sprayFlash 600ms ease-out forwards;
}

@keyframes sprayFlash {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* === STAR ELEMENTS === */
.star {
    position: absolute;
    opacity: 0;
    transition: opacity 800ms ease, transform 300ms ease, filter 300ms ease;
    filter: drop-shadow(0 0 4px rgba(176, 184, 200, 0.3));
}

.star.visible {
    opacity: 0.5;
}

.star.glow {
    filter: drop-shadow(0 0 10px rgba(176, 184, 200, 0.7));
    opacity: 0.8;
}

.star:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px rgba(176, 184, 200, 0.8));
}

/* Star positions - Hero */
.star-1 { top: 12%; left: 8%; }
.star-2 { top: 25%; right: 12%; }
.star-3 { bottom: 30%; left: 15%; }
.star-4 { top: 18%; left: 45%; }
.star-5 { bottom: 20%; right: 8%; }
.star-6 { top: 60%; right: 25%; }

/* Star positions - Sections */
.star-section-1 { top: 15%; right: 10%; }
.star-section-2 { bottom: 25%; left: 8%; }
.star-auth-1 { top: 20%; left: 5%; }
.star-auth-2 { bottom: 15%; right: 6%; }
.star-feat-1 { top: 10%; right: 15%; }
.star-how-1 { top: 18%; left: 10%; }
.star-how-2 { bottom: 20%; right: 12%; }
.star-footer-1 { top: 10%; left: 12%; }
.star-footer-2 { top: 30%; right: 8%; }
.star-footer-3 { bottom: 20%; left: 20%; }

/* === CONTENT SECTIONS === */
.content-section {
    padding: 80px 0;
    position: relative;
}

.content-section .parallax-fg {
    min-height: auto;
    padding: 80px 20px;
}

.section-inner {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* === SLIDE REVEAL === */
.slide-reveal {
    opacity: 0;
    transition: opacity 500ms ease, transform 500ms ease;
}

.slide-reveal.slide-left {
    transform: translateX(-60px);
}

.slide-reveal.slide-right {
    transform: translateX(60px);
}

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

/* Hover shift */
.slide-reveal.revealed:hover {
    transform: translateX(4px);
}

/* === SPRAY TEXTURE OVERLAY === */
.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 208, 48, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(232, 56, 56, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(56, 136, 232, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(255, 208, 48, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(232, 56, 56, 0.015) 0%, transparent 35%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    transition: opacity 300ms ease;
}

.content-section:hover::before {
    opacity: 0.08;
}

/* === SECTION HOVER BORDER === */
.content-section {
    border-left: 3px solid transparent;
    transition: border-color 300ms ease;
}

.content-section:hover {
    border-left-color: var(--graffiti-yellow);
}

/* === IDENTITY CARDS === */
.identity-cards {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.id-card {
    flex: 1;
    min-width: 160px;
    background: rgba(64, 64, 72, 0.2);
    border: 1px solid var(--concrete-gray);
    padding: 30px 20px;
    text-align: center;
    transition: border-color 300ms ease, transform 300ms ease;
}

.id-card:hover {
    border-color: var(--graffiti-yellow);
    transform: translateY(-4px);
}

.id-card svg {
    margin-bottom: 16px;
}

.id-card .street-label {
    font-size: 11px;
    margin-bottom: 0;
    color: var(--star-silver);
}

/* === AUTH FLOW VISUAL === */
.auth-flow-visual {
    max-width: 720px;
    width: 100%;
    margin: 40px auto 0;
    padding: 0 20px;
}

.auth-flow-svg {
    width: 100%;
    height: auto;
}

/* Flow animation */
.flow-step {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 800ms ease;
}

.flow-step.animate {
    stroke-dashoffset: 0;
}

.flow-arrow {
    opacity: 0;
    transition: opacity 400ms ease;
}

.flow-arrow.animate {
    opacity: 1;
}

/* === FEATURE BLOCKS === */
.feature-blocks {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature-block {
    flex: 1;
    min-width: 180px;
    padding: 30px 20px;
    border-top: 3px solid var(--concrete-gray);
    transition: border-color 300ms ease;
}

.feature-block:hover {
    border-top-color: var(--graffiti-yellow);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-block .street-label {
    font-size: 11px;
    color: var(--pure-white);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    color: var(--star-silver);
    line-height: 1.6;
}

/* === PROCESS STEPS === */
.process-steps {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--concrete-gray);
    transition: border-color 300ms ease;
}

.process-step:hover {
    border-left-color: var(--graffiti-yellow);
}

.step-number {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 3vw, 48px);
    color: var(--concrete-gray);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 12px;
    transition: color 300ms ease;
}

.process-step:hover .step-number {
    color: var(--graffiti-yellow);
}

.step-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--pure-white);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: var(--star-silver);
    line-height: 1.6;
}

/* === GEOMETRIC PATTERNS (midground decorations) === */
.geometric-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
}

.identity-pattern {
    background:
        linear-gradient(45deg, transparent 48%, rgba(255, 208, 48, 0.04) 48%, rgba(255, 208, 48, 0.04) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(232, 56, 56, 0.03) 48%, rgba(232, 56, 56, 0.03) 52%, transparent 52%);
    background-size: 100px 100px;
}

.auth-pattern {
    background:
        radial-gradient(circle at 30% 50%, rgba(56, 136, 232, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(255, 208, 48, 0.04) 0%, transparent 40%);
}

.features-pattern {
    background:
        linear-gradient(0deg, transparent 49%, rgba(64, 64, 72, 0.06) 49%, rgba(64, 64, 72, 0.06) 51%, transparent 51%),
        linear-gradient(90deg, transparent 49%, rgba(64, 64, 72, 0.04) 49%, rgba(64, 64, 72, 0.04) 51%, transparent 51%);
    background-size: 80px 80px;
}

/* === FOOTER / PASSPORT STAMP === */
#footer-stamp {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

#footer-stamp .parallax-fg {
    min-height: auto;
    align-items: center;
    justify-content: center;
}

.stamp-container {
    text-align: center;
    margin-bottom: 40px;
}

.passport-stamp {
    width: 280px;
    height: 280px;
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    transition: opacity 400ms ease, transform 400ms ease;
}

.passport-stamp.stamped {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.footer-text {
    text-align: center;
}

.footer-text .street-label {
    color: var(--star-silver);
    font-size: 12px;
    letter-spacing: 0.08em;
}

/* === GEOMETRIC ABSTRACT HOVER === */
.auth-diagram:hover .diagram-stroke[stroke="#FFD030"],
.auth-flow-svg:hover .flow-step[stroke="#FFD030"] {
    stroke: #E83838;
    transition: stroke 300ms ease;
}

.auth-diagram:hover .diagram-stroke[fill="#FFD030"],
.auth-flow-svg:hover .flow-step[fill="#FFD030"] {
    fill: #E83838;
    transition: fill 300ms ease;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .identity-cards,
    .feature-blocks,
    .process-steps {
        flex-direction: column;
        gap: 20px;
    }

    .parallax-mid {
        display: none;
    }

    .auth-flow-visual {
        overflow-x: auto;
    }

    .auth-flow-svg {
        min-width: 600px;
    }

    #hero .parallax-mid {
        display: none;
    }

    .passport-stamp {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .section-inner {
        padding: 0 16px;
    }

    .content-section .parallax-fg {
        padding: 60px 16px;
    }
}
