/* dilemma.dev — Neomorphism Decision Theater
   Palette: #E0DCD8 #C8C4C0 #F8F4F0 #D8A8A8 #A8B8D8 #A8C8B0 #3A3838 #8A8488
*/

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #E0DCD8;
    color: #3A3838;
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 12px;
    padding: 8px;
    background: #E0DCD8;
    border-radius: 28px;
    box-shadow: 4px 4px 10px #C8C4C0, -4px -4px 10px #F8F4F0;
}

.nav-pill {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #8A8488;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 24px;
    transition: box-shadow 0.3s ease, color 0.3s ease;
}

.nav-pill:hover {
    color: #3A3838;
}

.nav-pill.active {
    color: #3A3838;
    box-shadow: inset 4px 4px 8px #C8C4C0, inset -4px -4px 8px #F8F4F0;
}

/* Neomorphic Styles */
.neo-raised {
    background: #E0DCD8;
    box-shadow: 8px 8px 16px #C8C4C0, -8px -8px 16px #F8F4F0;
    border-radius: 16px;
}

.neo-pressed {
    background: #E0DCD8;
    box-shadow: inset 4px 4px 8px #C8C4C0, inset -4px -4px 8px #F8F4F0;
    border-radius: 16px;
}

.neo-container {
    background: #E0DCD8;
    box-shadow: 8px 8px 16px #C8C4C0, -8px -8px 16px #F8F4F0;
    border-radius: 24px;
}

.neo-panel {
    background: #E0DCD8;
    box-shadow: 0 0 0 transparent;
    border-radius: 16px;
    padding: 40px 36px;
    transition: box-shadow 0.6s ease;
}

.neo-panel.visible {
    box-shadow: 8px 8px 16px #C8C4C0, -8px -8px 16px #F8F4F0;
}

/* Stacked Sections */
.stacked-section {
    padding: 100px 40px;
    max-width: 960px;
    margin: 0 auto;
}

/* Hero */
#choice-field {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

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

.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: #3A3838;
    margin-bottom: 40px;
    display: inline-block;
}

.title-left,
.title-right {
    display: inline-block;
    animation: splitOscillate 4s ease-in-out infinite;
}

.title-right {
    animation: splitOscillateRight 4s ease-in-out infinite;
}

.title-ext {
    color: #8A8488;
    font-weight: 300;
}

@keyframes splitOscillate {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-3px); }
}

@keyframes splitOscillateRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

@keyframes breatheWeight {
    0%, 100% { font-weight: 600; }
    50% { font-weight: 800; }
}

.hero-title {
    animation: breatheWeight 3s ease-in-out infinite;
}

.hero-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 48px;
    opacity: 0;
    transition: opacity 0.8s ease, box-shadow 0.8s ease;
}

.hero-container.visible {
    opacity: 1;
}

.hero-subtitle {
    color: #3A3838;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
}

/* Sharp Angle Dividers */
.sharp-divider {
    height: 60px;
    clip-path: polygon(0 0, 100% 40%, 100% 60%, 0 100%);
    margin: -1px 0;
}

.divider-rose {
    background: linear-gradient(135deg, rgba(216, 168, 168, 0.15), rgba(168, 184, 216, 0.08));
}

.divider-blue {
    background: linear-gradient(135deg, rgba(168, 184, 216, 0.15), rgba(216, 168, 168, 0.08));
}

.divider-sage {
    background: linear-gradient(135deg, rgba(168, 200, 176, 0.15), rgba(168, 184, 216, 0.08));
}

/* Section Headings */
.section-heading {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    color: #3A3838;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    animation: letterBreathe 5s ease-in-out infinite;
}

@keyframes letterBreathe {
    0%, 100% { letter-spacing: 0.02em; }
    50% { letter-spacing: 0.06em; }
}

.section-meta {
    font-weight: 300;
    font-size: 12px;
    color: #8A8488;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Decision Pairs */
.decision-pair {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 48px;
}

.panel-left,
.panel-right {
    flex: 1;
}

.tension-zone {
    width: 24px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(216, 168, 168, 0.1), rgba(168, 184, 216, 0.1));
    border-radius: 4px;
}

.tension-sage {
    background: linear-gradient(180deg, rgba(168, 200, 176, 0.15), rgba(168, 184, 216, 0.1));
}

.panel-label {
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8A8488;
    margin-bottom: 12px;
}

.panel-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: #3A3838;
    margin-bottom: 16px;
}

.panel-body {
    color: #3A3838;
    margin-bottom: 12px;
}

.panel-meta {
    font-weight: 300;
    font-size: 12px;
    color: #8A8488;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 20px;
}

/* Flip Cards */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.flip-container {
    perspective: 800px;
}

.flip-card {
    position: relative;
    width: 100%;
    min-height: 320px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.flip-back {
    transform: rotateY(180deg);
}

.flip-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0.4;
}

.flip-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #3A3838;
    margin-bottom: 12px;
}

.flip-body {
    color: #3A3838;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Footer */
#footer {
    padding: 80px 40px;
    text-align: center;
}

.footer-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px 40px;
}

.footer-text {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #3A3838;
}

.footer-meta {
    font-weight: 300;
    font-size: 12px;
    color: #8A8488;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .decision-pair {
        flex-direction: column;
        gap: 16px;
    }

    .tension-zone {
        width: 100%;
        height: 24px;
    }

    .flip-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stacked-section {
        padding: 60px 24px;
    }

    #main-nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
    }

    .nav-pill {
        padding: 6px 14px;
        font-size: 12px;
    }
}
