:root {
    --color-bg: #070D1A;
    --color-bg-light: #0B1527;
    --color-bg-card: #162036;
    --color-teal: #5DE5D5;
    --color-gold: #D4A843;
    --color-text: #E8F0FF;
    --color-slate: #7B8FAF;
    --color-navy: #3A4A6B;
    --color-parchment: #C4B99A;

    --font-display: 'Nunito Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Bubbles Background */
.bubbles-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, transparent 40%, rgba(93, 229, 213, 0.06) 100%);
    border: 1px solid rgba(93, 229, 213, 0.08);
    animation: bubbleRise linear infinite;
}

.bubble--1 { width: 120px; height: 120px; left: 10%; bottom: -150px; animation-duration: 18s; animation-delay: 0s; }
.bubble--2 { width: 80px; height: 80px; left: 30%; bottom: -100px; animation-duration: 14s; animation-delay: 3s; }
.bubble--3 { width: 160px; height: 160px; left: 55%; bottom: -200px; animation-duration: 22s; animation-delay: 6s; }
.bubble--4 { width: 60px; height: 60px; left: 75%; bottom: -80px; animation-duration: 16s; animation-delay: 1s; }
.bubble--5 { width: 200px; height: 200px; left: 85%; bottom: -250px; animation-duration: 25s; animation-delay: 8s; }
.bubble--6 { width: 100px; height: 100px; left: 45%; bottom: -120px; animation-duration: 20s; animation-delay: 4s; }
.bubble--7 { width: 140px; height: 140px; left: 20%; bottom: -170px; animation-duration: 19s; animation-delay: 10s; }

@keyframes bubbleRise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-110vh) scale(0.6); opacity: 0; }
}

/* Content */
.content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Bento Sections */
.bento-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--color-teal);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    letter-spacing: 0.02em;
    color: var(--color-text);
}

/* Bento Grids */
.bento-grid {
    display: grid;
    gap: 1rem;
}

.bento-grid--hero {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    min-height: 60vh;
}

.bento-grid--principles {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
}

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

/* Bento Cells */
.bento-cell {
    background: var(--color-bg-card);
    border: 1px solid rgba(93, 229, 213, 0.08);
    padding: 2rem;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s ease;
}

.bento-cell.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bento-cell:hover {
    border-color: rgba(93, 229, 213, 0.2);
}

/* Hero cells */
.bento-cell--main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
}

.bento-cell--stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bento-cell--accent {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
}

.bento-cell--visual {
    display: none;
}

.scales-icon {
    margin-bottom: 2rem;
}

.scales-svg {
    width: 80px;
    height: 70px;
}

.scales-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw + 0.5rem, 4.5rem);
    letter-spacing: 0.02em;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--color-slate);
    max-width: 380px;
    line-height: 1.8;
}

.stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem;
    color: var(--color-teal);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-slate);
    margin-top: 0.5rem;
}

.accent-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--color-gold);
}

.glow-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 229, 213, 0.15), transparent 70%);
    border: 1px solid rgba(93, 229, 213, 0.1);
    margin: auto;
    animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Principles */
.bento-cell--principle {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.principle-icon {
    margin-bottom: 1.5rem;
}

.principle-icon svg {
    width: 40px;
    height: 40px;
}

.principle-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.principle-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--color-slate);
}

.bento-cell--wide {
    grid-column: 1 / -1;
    background: var(--color-bg-light);
    padding: 2rem 3rem;
}

.wide-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--color-parchment);
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

/* Chambers */
.bento-cell--chamber {
    padding: 2.5rem 2rem;
    position: relative;
}

.bento-cell--tall {
    grid-row: 1 / 3;
}

.bento-cell--wide-chamber {
    grid-column: 1 / -1;
}

.chamber-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--color-teal);
    margin-bottom: 1rem;
}

.chamber-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.chamber-desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--color-slate);
}

.chamber-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(93, 229, 213, 0.03), transparent);
    pointer-events: none;
}

/* Docket */
.docket-list {
    max-width: 640px;
}

.docket-entry {
    display: flex;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(93, 229, 213, 0.06);
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.docket-entry.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.docket-entry__id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-text);
    min-width: 120px;
}

.docket-entry__rule {
    flex: 1;
    height: 1px;
    background: rgba(58, 74, 107, 0.3);
    margin: 0 1.5rem;
}

.docket-entry__status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.status--resolved { color: var(--color-teal); }
.status--pending { color: var(--color-gold); }
.status--sealed { color: var(--color-slate); }

/* Closing */
.bento-section--closing {
    min-height: 60vh;
    align-items: center;
    text-align: center;
}

.closing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.seal-svg {
    width: 100px;
    height: 100px;
}

.closing-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--color-slate);
    font-style: italic;
}

.closing-domain {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: var(--color-navy);
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        padding: 0 1.5rem;
    }

    .bento-grid--hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .bento-cell--main {
        grid-column: 1;
        grid-row: auto;
    }

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

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

    .bento-cell--tall {
        grid-row: auto;
    }

    .bento-cell--wide-chamber {
        grid-column: 1;
    }

    .bento-cell--wide {
        grid-column: 1;
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .bento-cell--accent {
        display: none;
    }
}

@media (max-width: 480px) {
    .bento-section {
        padding: 3rem 0;
    }

    .bento-cell {
        padding: 1.5rem;
    }

    .bento-cell--main {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .docket-entry__id {
        min-width: 90px;
        font-size: 0.65rem;
    }
}
