/* layer2.id - Glassmorphism Frosted SaaS */
/* Colors: #764BA2, #FFFFFF, #667EEA, #34D399, #A78BFA */
/* Fonts: Plus Jakarta Sans, Space Mono */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    background: #0F0B1A;
    overflow-x: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 50%, #0F0B1A 100%);
    z-index: -3;
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent 70%);
    top: -200px;
    right: -100px;
    animation: floatOrb1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.25), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: floatOrb2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb3 18s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, 30px); }
    66% { transform: translate(20px, -20px); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -40px); }
    66% { transform: translate(-20px, 20px); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    position: relative;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 560px;
    margin-bottom: 60px;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    gap: 60px;
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 56px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #667EEA, #A78BFA, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto;
}

/* Glassmorphism Identity Cards */
.identity-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.identity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.card-inner-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 20px 20px 0 0;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 40px;
}

/* Central Identity Card */
.central-card {
    width: 600px;
    max-width: 90vw;
    opacity: 0;
    transform: scale(0.95);
}

.central-card.visible {
    animation: cardFadeIn 500ms ease-out forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Avatar */
.avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    width: 120px;
    margin-left: auto;
    margin-right: auto;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-svg {
    width: 100%;
    height: 100%;
}

/* Verification Badge */
.verification-badge {
    position: absolute;
    bottom: 0;
    right: -4px;
    width: 32px;
    height: 32px;
}

.verification-badge svg {
    width: 100%;
    height: 100%;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #34D399;
    opacity: 0;
}

.pulse-ring.animate {
    animation: pulseAttention 800ms ease-out forwards;
}

@keyframes pulseAttention {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
        box-shadow: 0 0 20px 10px rgba(52, 211, 153, 0);
    }
}

.card-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 4px;
}

.card-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 32px;
}

/* Credential Slots */
.credential-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.credential-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.slot-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.slot-icon svg {
    width: 100%;
    height: 100%;
}

/* Credential Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    width: 100%;
}

.credential-card .card-content {
    padding: 32px;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.credential-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
}

.credential-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #34D399;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    width: 100%;
}

.feature-item {
    padding: 32px;
}

.feature-number {
    margin-bottom: 16px;
}

.mono-text {
    font-family: 'Space Mono', monospace;
}

.feature-number .mono-text {
    font-size: 14px;
    color: #667EEA;
    font-weight: 700;
}

.feature-item h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Network Section */
.network-visualization {
    width: 100%;
    max-width: 800px;
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#networkCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* CTA Section */
.cta-section {
    padding: 100px 40px 60px;
}

.cta-card {
    max-width: 700px;
    width: 100%;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* CTA Stats */
.cta-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Footer */
.footer {
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #A78BFA;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

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

.slide-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.slide-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Card Tilt on Hover (3D) */
.credential-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

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

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

    .cta-stats {
        gap: 24px;
    }

    .section {
        padding: 80px 20px;
    }

    .central-card {
        width: 100%;
    }
}
