/* ============================================
   gamelicensor.com - Neomorphic Licensing Authority
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #E8E8E8;
    color: #636E72;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* --- Grid Line Underlay --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(45, 52, 54, 0.03) 39px, rgba(45, 52, 54, 0.03) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(45, 52, 54, 0.03) 39px, rgba(45, 52, 54, 0.03) 40px);
}

/* --- Sticky Top Bar --- */
#top-bar {
    position: sticky;
    top: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: #E8E8E8;
    box-shadow: inset 2px 2px 5px #BEBEBE, inset -2px -2px 5px #FFFFFF;
    z-index: 100;
}

.top-bar-domain {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #2D3436;
    letter-spacing: -0.02em;
}

.top-bar-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #B2BEC3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Sections --- */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
}

.section-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #2D3436;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 48px;
    text-align: center;
}

/* --- Blur-Focus Entrance --- */
.blur-focus {
    filter: blur(8px);
    opacity: 0.3;
    transition: filter 500ms ease, opacity 500ms ease;
}

.blur-focus.focused {
    filter: blur(0);
    opacity: 1;
}

/* --- Embossed Dividers --- */
.section + .section::before {
    content: '';
    display: block;
    height: 1px;
    margin: 0 auto 0;
    max-width: 1200px;
    box-shadow: 0 -1px 1px #FFFFFF, 0 1px 1px #BEBEBE;
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
}

/* --- Section 1: Identity --- */
.section-identity {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.identity-panel {
    max-width: 640px;
    width: 100%;
    background: #E8E8E8;
    border-radius: 24px;
    box-shadow: 8px 8px 16px #BEBEBE, -8px -8px 16px #FFFFFF;
    padding: 64px 48px;
    text-align: center;
}

.identity-emblem {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.emblem-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #E8E8E8;
    box-shadow: 8px 8px 16px #BEBEBE, -8px -8px 16px #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0984E3;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.15), 0 0 8px rgba(9, 132, 227, 0.4);
}

.identity-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #2D3436;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.identity-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #636E72;
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto;
}

/* --- Section 2: The Grid --- */
.section-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.bento-card {
    background: #E8E8E8;
    border-radius: 24px;
    box-shadow: 8px 8px 16px #BEBEBE, -8px -8px 16px #FFFFFF;
    padding: 32px;
    transition: transform 300ms ease, box-shadow 300ms ease;
    cursor: default;
}

.bento-card:hover {
    transform: scale(1.01);
    box-shadow: 10px 10px 20px #BEBEBE, -10px -10px 20px #FFFFFF;
}

.bento-tall {
    grid-row: span 2;
}

.card-progress-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.progress-ring {
    width: 80px;
    height: 80px;
}

.progress-bg {
    fill: none;
    stroke: #D5D5D5;
    stroke-width: 6;
}

.progress-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1s ease;
}

.progress-blue {
    stroke: #0984E3;
}

.progress-teal {
    stroke: #00B894;
}

.progress-gray {
    stroke: #636E72;
}

.progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #2D3436;
}

.card-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #2D3436;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.card-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #636E72;
    line-height: 1.65;
    margin-bottom: 12px;
}

.card-code {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 13px;
    color: #0984E3;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    background: #E8E8E8;
    box-shadow: inset 2px 2px 4px #BEBEBE, inset -2px -2px 4px #FFFFFF;
}

/* --- Status Indicator Dots --- */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0984E3;
    box-shadow: 0 0 8px rgba(9, 132, 227, 0.4);
    animation: dot-pulse 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 4px rgba(9, 132, 227, 0.2); }
    50% { opacity: 1; box-shadow: 0 0 8px rgba(9, 132, 227, 0.4); }
}

/* --- Section 3: The Process / Timeline --- */
.section-process {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-ridge {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #E8E8E8;
    box-shadow: 2px 2px 4px #BEBEBE, -2px -2px 4px #FFFFFF;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E8E8E8;
    box-shadow: 4px 4px 8px #BEBEBE, -4px -4px 8px #FFFFFF;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0984E3;
    transform: translate(-50%, -50%);
}

.timeline-content {
    width: calc(50% - 32px);
    background: #E8E8E8;
    border-radius: 16px;
    box-shadow: 6px 6px 12px #BEBEBE, -6px -6px 12px #FFFFFF;
    padding: 24px;
}

.timeline-left .timeline-content {
    margin-right: auto;
}

.timeline-right .timeline-content {
    margin-left: auto;
}

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

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

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

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

/* --- Section 4: Technical Specifications --- */
.section-specs {
    max-width: 1200px;
    margin: 0 auto;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.spec-panel {
    background: #D5D5D5;
    border-radius: 24px;
    box-shadow: inset 4px 4px 8px #BEBEBE, inset -4px -4px 8px #F0F0F0;
    padding: 32px;
}

.code-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.code-block code {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 13px;
    color: #0984E3;
    line-height: 1.6;
    display: block;
}

/* Typewriter effect for first code block */
.typewriter-line {
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    max-width: 0;
    border-right: 2px solid #0984E3;
}

.typewriter-line.typing {
    animation: typewrite 0.8s steps(30) forwards;
}

.typewriter-line.typed {
    max-width: 100%;
    border-right: none;
}

@keyframes typewrite {
    to { max-width: 100%; }
}

/* --- Section 5: Authority Seal --- */
.section-seal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-container {
    text-align: center;
}

.authority-seal {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #E8E8E8;
    box-shadow: 12px 12px 24px #BEBEBE, -12px -12px 24px #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
}

.seal-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #0984E3;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.15), 0 0 16px rgba(9, 132, 227, 0.3);
}

.seal-domain {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #2D3436;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.seal-statement {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #B2BEC3;
    line-height: 1.65;
}

/* --- Neomorphic Button Press States --- */
.bento-card:active,
.timeline-content:active {
    box-shadow: inset 4px 4px 8px #BEBEBE, inset -4px -4px 8px #FFFFFF;
    transform: scale(0.99);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section {
        padding: 60px 24px;
    }

    .identity-panel {
        padding: 40px 24px;
    }

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

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

    .bento-tall {
        grid-row: span 1;
    }

    .timeline-content {
        width: calc(50% - 24px);
    }

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

    #top-bar {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .timeline-ridge {
        left: 16px;
    }

    .timeline-node {
        left: 16px;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 48px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-left .timeline-content,
    .timeline-right .timeline-content {
        margin-left: 0;
        margin-right: 0;
    }

    .slide-reveal.timeline-left,
    .slide-reveal.timeline-right {
        transform: translateX(-20px);
    }
}
