/* cbdc.studio - Glassmorphic Design Atelier */

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

:root {
    --gradient-start: #667EEA;
    --gradient-mid: #764BA2;
    --gradient-end: #F093FB;
    --accent-teal: #2DD4BF;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --glass-fill: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-highlight: rgba(255, 255, 255, 0.35);
    --glass-hover: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.16);
}

body {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    background-size: 400% 400%;
    animation: gradient-drift 30s ease infinite;
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradient-drift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glass Panel Base */
.glass-panel {
    background: var(--glass-fill);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.glass-panel:hover {
    background: var(--glass-hover);
    box-shadow: var(--glass-shadow-hover);
}

.glass-card {
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    background: rgba(255, 255, 255, 0.10);
    border-radius: 20px;
}

.glass-pill {
    border-radius: 100px;
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

.mono-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.section-heading {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    letter-spacing: 0.01em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

/* ============================
   HERO
   ============================ */

#hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.glass-hero {
    width: 60vw;
    max-width: 700px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

#hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.8s;
}

#hero-title.visible {
    opacity: 1;
}

#hero-tagline {
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 500px;
    opacity: 0;
    transition: opacity 0.4s ease 1s;
}

#hero-tagline.visible {
    opacity: 1;
}

/* ============================
   GALLERY
   ============================ */

#gallery {
    padding: 6rem 4vw;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.prototype-card {
    min-height: 48vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: crosshair;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.prototype-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.prototype-illustration {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.proto-note {
    width: 200px;
    height: 100px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem;
}

.proto-note.wide {
    width: 220px;
    height: 90px;
}

.proto-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.proto-circle.small {
    width: 30px;
    height: 30px;
}

.proto-1 .proto-circle { background: rgba(102, 126, 234, 0.4); }
.proto-3 .proto-circle { background: rgba(59, 130, 246, 0.4); }

.proto-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 1rem;
    flex: 1;
}

.proto-lines span {
    display: block;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.proto-lines span:nth-child(1) { width: 100%; }
.proto-lines span:nth-child(2) { width: 80%; }
.proto-lines span:nth-child(3) { width: 60%; }

.proto-lines.vertical {
    flex-direction: row;
    gap: 8px;
    margin-left: 1rem;
}

.proto-lines.vertical span {
    width: 3px;
    height: 40px;
}

.proto-denomination {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-tertiary);
}

.proto-wallet {
    width: 180px;
    height: 120px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.proto-wallet.dark {
    background: rgba(0, 0, 0, 0.15);
}

.wallet-header {
    height: 4px;
    width: 40%;
    background: rgba(118, 75, 162, 0.5);
    border-radius: 2px;
}

.wallet-header.teal {
    background: rgba(45, 212, 191, 0.5);
}

.wallet-balance {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.wallet-bar {
    height: 6px;
    width: 100%;
    background: rgba(118, 75, 162, 0.3);
    border-radius: 3px;
}

.wallet-bar.short {
    width: 60%;
}

.wallet-bar.teal-bar {
    background: rgba(45, 212, 191, 0.3);
}

.card-content {
    padding: 1.5rem 2rem 2rem;
}

.card-content h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: var(--text-primary);
    margin: 0.75rem 0 0.5rem;
}

.card-content p {
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================
   PROCESS
   ============================ */

#process {
    padding: 6rem 4vw;
}

.process-pills {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.process-pill {
    width: 100%;
    max-width: 700px;
    min-height: 12vh;
    display: flex;
    align-items: center;
    padding: 2rem 3rem;
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.process-pill.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.pill-number {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-right: 2rem;
    flex-shrink: 0;
}

.pill-content h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pill-content p {
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================
   PALETTE SHOWCASE
   ============================ */

#palette {
    padding: 6rem 4vw;
}

.palette-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.palette-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: width 0.2s ease, height 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.palette-circle:hover {
    width: 80px;
    height: 80px;
}

.palette-label {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.2s ease;
}

.palette-label em {
    font-family: 'IBM Plex Mono', monospace;
    font-style: normal;
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.palette-circle:hover .palette-label {
    max-height: 60px;
}

/* ============================
   FOOTER
   ============================ */

#atelier-footer {
    padding: 3rem 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-wordmark {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav span {
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-nav span:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {
    .glass-hero {
        width: 90vw;
        padding: 3rem 2rem;
    }

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

    .process-pill {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .pill-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .palette-row {
        gap: 1rem;
    }

    #atelier-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
