/* saram.quest — Surreal Dreamscape Promo */
/* Fonts: Cormorant 600/700, Lato 400/500, Space Grotesk 500/600 */
/* Palette: #1A0A2E #2D1B40 #3D2050 #E8B4C8 #C4B5FD #F0E6F6 #8A7BA0 #FF7EB3 #2A1A3E */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #8A7BA0;
}

/* =========================================================
   DREAMSCAPE — Gradient Sky Background
   ========================================================= */
.dreamscape {
    background: linear-gradient(180deg, #1A0A2E 0%, #2D1B40 40%, #3D2050 70%, #E8B4C8 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* =========================================================
   FLOATING GEOMETRIC SHAPES
   ========================================================= */
.floating-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.c1 {
    width: 80px;
    height: 80px;
    background: rgba(196, 181, 253, 0.12);
    top: 12%;
    left: 8%;
    animation: drift 20s ease-in-out infinite;
}

.c2 {
    width: 50px;
    height: 50px;
    background: rgba(232, 180, 200, 0.10);
    top: 38%;
    right: 12%;
    animation: drift2 25s ease-in-out infinite 5s;
}

.c3 {
    width: 65px;
    height: 65px;
    background: rgba(196, 181, 253, 0.08);
    top: 68%;
    left: 18%;
    animation: drift3 22s ease-in-out infinite 10s;
}

.c4 {
    width: 40px;
    height: 40px;
    background: rgba(232, 180, 200, 0.10);
    top: 20%;
    right: 25%;
    animation: drift 28s ease-in-out infinite 7s;
}

.c5 {
    width: 55px;
    height: 55px;
    background: rgba(196, 181, 253, 0.06);
    top: 82%;
    right: 8%;
    animation: drift2 30s ease-in-out infinite 12s;
}

.floating-triangle {
    position: fixed;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(232, 180, 200, 0.08);
    pointer-events: none;
    z-index: 0;
}

.t1 {
    top: 22%;
    right: 6%;
    animation: drift3 18s ease-in-out infinite 3s;
}

.t2 {
    top: 55%;
    left: 4%;
    animation: drift 24s ease-in-out infinite 8s;
}

.t3 {
    top: 78%;
    right: 30%;
    border-bottom-color: rgba(196, 181, 253, 0.06);
    animation: drift2 26s ease-in-out infinite 15s;
}

/* =========================================================
   STAR PARTICLES (✦)
   ========================================================= */
.star-particle {
    position: fixed;
    font-size: 12px;
    color: #C4B5FD;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    animation: twinkle 6s ease-in-out infinite;
}

.s1 { top: 8%; left: 20%; animation-delay: 0s; }
.s2 { top: 15%; right: 18%; animation-delay: 1s; }
.s3 { top: 30%; left: 45%; animation-delay: 2s; }
.s4 { top: 42%; right: 35%; animation-delay: 0.5s; }
.s5 { top: 55%; left: 12%; animation-delay: 3s; }
.s6 { top: 65%; right: 22%; animation-delay: 1.5s; }
.s7 { top: 75%; left: 38%; animation-delay: 4s; }
.s8 { top: 85%; right: 10%; animation-delay: 2.5s; }

/* =========================================================
   KEYFRAME ANIMATIONS
   ========================================================= */
@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -20px); }
    75% { transform: translate(-15px, 10px); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-12px, -18px); }
    66% { transform: translate(8px, 14px); }
}

@keyframes drift3 {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(15px, -10px); }
    50% { transform: translate(-8px, 20px); }
    80% { transform: translate(12px, -5px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.06; }
    50% { opacity: 0.14; }
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 181, 253, 0.35); }
    50% { box-shadow: 0 0 24px 6px rgba(196, 181, 253, 0.18); }
}

@keyframes glowText {
    0%, 100% { text-shadow: 0 0 40px rgba(196, 181, 253, 0.2); }
    50% { text-shadow: 0 0 60px rgba(196, 181, 253, 0.35), 0 0 80px rgba(196, 181, 253, 0.1); }
}

@keyframes fadeQuoteIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeQuoteOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

/* =========================================================
   SECTION COMMON
   ========================================================= */
.gradient-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, #C4B5FD, transparent);
    opacity: 0.3;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.section-heading {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #F0E6F6;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

/* =========================================================
   HERO — The Awakening
   ========================================================= */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8rem 2rem 5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.headline {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5.5vw, 3.4rem);
    color: #F0E6F6;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    animation: glowText 5s ease-in-out infinite;
}

.hero-sub {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: #8A7BA0;
    max-width: 480px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.hero-korean {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #C4B5FD;
    opacity: 0.5;
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
}

.quest-cta {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1A0A2E;
    background: #C4B5FD;
    padding: 0.85rem 2.4rem;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.3s ease, transform 0.2s ease;
    animation: ctaPulse 3s ease-in-out infinite;
}

.quest-cta:hover {
    background: #FF7EB3;
    transform: translateY(-2px);
}

/* =========================================================
   PATHS — The Paths (Story Paths)
   ========================================================= */
.paths {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.path-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.path-card {
    background: rgba(45, 27, 64, 0.6);
    border: 1px solid #2A1A3E;
    border-radius: 16px;
    padding: 2rem 2rem 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.3s ease;
}

.path-card:nth-child(odd) {
    margin-left: 8%;
}

.path-card:nth-child(even) {
    margin-left: auto;
    margin-right: 8%;
}

.path-card:hover {
    border-color: #C4B5FD;
    transform: translateY(-3px);
}

.path-accent-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.08;
}

.accent-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #C4B5FD;
    top: -15px;
    right: -15px;
}

.accent-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 44px solid #E8B4C8;
    bottom: -10px;
    left: -10px;
}

.accent-circle-sm {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #FF7EB3;
    top: -10px;
    right: -10px;
}

.chapter-num {
    font-family: 'Cormorant', serif;
    font-size: 2rem;
    color: #C4B5FD;
    opacity: 0.25;
    position: absolute;
    top: 0.6rem;
    right: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.path-name {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #F0E6F6;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.path-premise {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    color: #8A7BA0;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.path-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: #C4B5FD;
    opacity: 0.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =========================================================
   CHOICE — The Choice (Branching Interface)
   ========================================================= */
.choice-preview {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.choice-panel {
    background: rgba(26, 10, 46, 0.85);
    border: 1px solid #2A1A3E;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.choice-question {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #F0E6F6;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.choice-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.choice-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    letter-spacing: 0.02em;
}

.choice-btn:hover {
    transform: translateY(-2px);
}

.btn-a {
    background: #C4B5FD;
    color: #1A0A2E;
}

.btn-a:hover {
    box-shadow: 0 4px 20px rgba(196, 181, 253, 0.3);
}

.btn-a.selected {
    box-shadow: 0 0 0 3px #C4B5FD, 0 4px 20px rgba(196, 181, 253, 0.3);
    transform: translateY(-2px) scale(1.03);
}

.btn-b {
    background: #FF7EB3;
    color: #1A0A2E;
}

.btn-b:hover {
    box-shadow: 0 4px 20px rgba(255, 126, 179, 0.3);
}

.btn-b.selected {
    box-shadow: 0 0 0 3px #FF7EB3, 0 4px 20px rgba(255, 126, 179, 0.3);
    transform: translateY(-2px) scale(1.03);
}

/* Branch Indicator — Y-shaped diverging path */
.branch-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.branch-stem {
    width: 2px;
    height: 20px;
    background: #8A7BA0;
    opacity: 0.4;
}

.branch-fork {
    display: flex;
    gap: 0;
}

.branch-line {
    width: 2px;
    height: 28px;
    opacity: 0.6;
    transition: opacity 0.4s ease, height 0.4s ease;
}

.branch-line.left {
    background: #C4B5FD;
    transform: rotate(-20deg);
    transform-origin: top center;
}

.branch-line.right {
    background: #FF7EB3;
    transform: rotate(20deg);
    transform-origin: top center;
}

.branch-line.left.highlight {
    opacity: 1;
    height: 40px;
}

.branch-line.right.highlight {
    opacity: 1;
    height: 40px;
}

.choice-result {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    color: #E8B4C8;
    min-height: 1.5em;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.choice-result.show {
    opacity: 1;
}

/* =========================================================
   REFLECTIONS — The Echo
   ========================================================= */
.reflections {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.reflection-container {
    position: relative;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reflection-quote {
    position: absolute;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    width: 100%;
}

.reflection-quote.active {
    opacity: 1;
    transform: translateY(0);
}

.quote-text {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    color: #F0E6F6;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.reflection-author {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #C4B5FD;
    font-style: normal;
    display: block;
}

.reflection-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2A1A3E;
    border: 1px solid #8A7BA0;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.dot.active {
    background: #C4B5FD;
    border-color: #C4B5FD;
}

.dot:hover {
    border-color: #C4B5FD;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 5rem 2rem 3rem;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.footer-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.fc1 {
    width: 50px;
    height: 50px;
    background: #C4B5FD;
    bottom: 30%;
    left: 10%;
    animation: drift 20s ease-in-out infinite;
}

.fc2 {
    width: 35px;
    height: 35px;
    background: #E8B4C8;
    bottom: 20%;
    right: 15%;
    animation: drift2 22s ease-in-out infinite 4s;
}

.footer-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid rgba(196, 181, 253, 0.06);
    bottom: 40%;
    right: 30%;
    animation: drift3 18s ease-in-out infinite 6s;
}

.footer-tagline {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #F0E6F6;
    margin-bottom: 1.2rem;
    position: relative;
}

.footer-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    color: #C4B5FD;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #FF7EB3;
}

.footer-copy {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    color: #8A7BA0;
    opacity: 0.6;
    position: relative;
}

/* =========================================================
   SCROLL REVEAL (fade-in)
   ========================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 600px) {
    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .path-card:nth-child(odd),
    .path-card:nth-child(even) {
        margin-left: 0;
        margin-right: 0;
    }

    .choice-buttons {
        flex-direction: column;
        align-items: center;
    }

    .choice-btn {
        width: 100%;
        max-width: 260px;
    }

    .headline {
        font-size: 2.2rem;
    }

    .paths,
    .choice-preview,
    .reflections {
        padding: 3rem 1.5rem;
    }
}
