/* penclo.com - Privacy Encloser / Neomorphism + Muji */
/* Colors: #e8e4df, #eeeae5, #bebab5, #3d3a37, #7a7570, #d4c5a9, #ffffff */
/* Fonts: Nunito (700 display, 400 body), IBM Plex Mono (labels) */

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

body {
    font-family: 'Nunito', sans-serif;
    background: #e8e4df;
    color: #3d3a37;
    overflow-x: hidden;
}

/* Neomorphic Surfaces */
.neo-convex {
    box-shadow: 8px 8px 16px #bebab5, -8px -8px 16px #ffffff;
}

.neo-concave {
    box-shadow: inset 4px 4px 8px #bebab5, inset -4px -4px 8px #ffffff;
}

/* Layers */
.layer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    position: relative;
}

.layer-container {
    max-width: 700px;
    width: 100%;
    padding: 60px 50px;
    border-radius: 32px;
    background: #eeeae5;
    text-align: center;
    transform: scale(0.92);
    opacity: 0.7;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.layer.visible .layer-container {
    transform: scale(1);
    opacity: 1;
}

/* Progressive nesting - each layer slightly smaller */
.layer-2 .layer-container {
    max-width: 640px;
    border-radius: 28px;
}

.layer-3 .layer-container {
    max-width: 580px;
    border-radius: 24px;
}

.layer-4 .layer-container {
    max-width: 500px;
    border-radius: 20px;
}

/* Layer Badge */
.layer-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #7a7570;
    text-transform: uppercase;
    display: block;
    margin-bottom: 30px;
}

/* Domain Name */
.domain-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 72px;
    letter-spacing: 0.08em;
    color: #3d3a37;
    line-height: 1;
}

.tagline {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #7a7570;
    margin-top: 8px;
    letter-spacing: 0.1em;
}

.description {
    font-size: 16px;
    line-height: 1.7;
    color: #7a7570;
    max-width: 440px;
    margin: 24px auto 40px;
}

/* Nesting Diagram */
.nesting-diagram {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.nest-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #d4c5a9;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.6s ease;
}

.ring-1 {
    width: 180px;
    height: 180px;
    animation: pulseRing 4s ease-in-out infinite;
}

.ring-2 {
    width: 130px;
    height: 130px;
    animation: pulseRing 4s ease-in-out infinite 0.5s;
}

.ring-3 {
    width: 80px;
    height: 80px;
    animation: pulseRing 4s ease-in-out infinite 1s;
}

.nest-core {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d4c5a9;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(212, 197, 169, 0.4);
}

@keyframes pulseRing {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

.scroll-hint {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #bebab5;
    letter-spacing: 0.1em;
    display: block;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Section Titles */
.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #3d3a37;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.section-body {
    font-size: 16px;
    line-height: 1.7;
    color: #7a7570;
    max-width: 440px;
    margin: 0 auto 36px;
}

/* Feature Cards */
.feature-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-card {
    width: 150px;
    padding: 24px 16px;
    border-radius: 16px;
    background: #e8e4df;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon svg {
    display: block;
}

.feature-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #7a7570;
}

/* Progress Bar */
.progress-bar-container {
    height: 12px;
    border-radius: 6px;
    background: #e8e4df;
    overflow: hidden;
    margin: 0 auto 12px;
    max-width: 400px;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #d4c5a9;
    border-radius: 6px;
    transition: width 1.5s ease;
}

.progress-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #bebab5;
    display: block;
    margin-bottom: 30px;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #3d3a37;
}

.stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #bebab5;
}

/* Core Section */
.core-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.core-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #e8e4df;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.core-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #3d3a37;
    letter-spacing: 0.1em;
}

.core-sub {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: #7a7570;
    margin-top: 4px;
}

.core-desc {
    margin-bottom: 30px;
}

.domain-footer {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #bebab5;
    border-top: 1px solid #d4c5a9;
    padding-top: 20px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .domain-name {
        font-size: 48px;
    }

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

    .layer-container {
        padding: 40px 24px;
    }

    .feature-row {
        flex-direction: column;
        align-items: center;
    }

    .stats-row {
        gap: 20px;
    }

    .stat-value {
        font-size: 24px;
    }
}
