:root {
    --sage: #A3B5A6;
    --sand: #E6DFD3;
    --blush: #E8D5C4;
    --ink: #4A4A48;
    --ink-light: #7A7A75;
    --paper: #F7F5F0;
    --glass: rgba(247, 245, 240, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
}

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

body {
    font-family: 'Noto Serif SC', serif;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 300;
}

/* Atmospheric Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -3;
    filter: blur(20px);
}

.ambient-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.6;
    animation: drift 25s infinite alternate ease-in-out;
}

.light-1 {
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(163,181,166,0.5) 0%, rgba(247,245,240,0) 70%);
    top: -10%;
    left: -10%;
}

.light-2 {
    width: 50vw;
    height: 70vh;
    background: radial-gradient(circle, rgba(232,213,196,0.4) 0%, rgba(247,245,240,0) 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -12s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

/* Typography & Layout */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.logo {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--sage);
}

.whisper {
    font-size: 0.9rem;
    color: var(--ink-light);
    letter-spacing: 3px;
    opacity: 0.8;
}

/* Dynamic Wind Chimes */
.wind-chimes {
    position: fixed;
    top: 0;
    right: 8%;
    display: flex;
    gap: 30px;
    z-index: 50;
    pointer-events: none;
}

.chime {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    animation: sway 6s ease-in-out infinite alternate;
}

.chime-1 { animation-delay: 0s; height: 180px; }
.chime-2 { animation-delay: -2s; height: 230px; }
.chime-3 { animation-delay: -4s; height: 160px; }
.chime-4 { animation-delay: -1s; height: 200px; }

.string {
    width: 1px;
    height: 100%;
    background-color: var(--ink-light);
    opacity: 0.4;
}

.ornament {
    margin-top: -1px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.moon {
    transform: rotate(-10deg);
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #5C4A3D;
    border-radius: 50%;
}

.bar {
    width: 26px;
    height: 2px;
    background-color: #5C4A3D;
}

.circle {
    width: 16px;
    height: 16px;
    background-color: #A67B5B;
    border-radius: 50%;
}

@keyframes sway {
    0% { transform: rotate(-6deg); }
    100% { transform: rotate(6deg); }
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 600px;
    border-radius: 40px;
    border: 8px solid rgba(255,255,255,0.7);
    background: var(--paper);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    position: relative;
    backdrop-filter: blur(10px);
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-phone {
    transform: rotate(4deg);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-phone:hover {
    transform: rotate(0deg) scale(1.02);
}

.showcase-phone {
    transform: translateY(0);
    transition: transform 0.8s ease;
}

.showcase-phone:hover {
    transform: translateY(-10px);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
}

.hero-content {
    flex: 1.2;
    max-width: 600px;
    padding-right: 2rem;
}

.poetic-title {
    margin-bottom: 2rem;
}

.poetic-title .line {
    display: block;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--ink-light);
    margin-bottom: 3.5rem;
    line-height: 2;
    letter-spacing: 1px;
    max-width: 480px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--sage);
    color: var(--paper);
    padding: 1.2rem 3rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(163, 181, 166, 0.2);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(163, 181, 166, 0.4);
    background-color: transparent;
    color: var(--sage);
    border-color: var(--sage);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Showcase Section */
.showcase {
    padding: 6rem 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

.showcase.reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
    max-width: 500px;
}

.section-label {
    font-size: 0.85rem;
    color: var(--sage);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.showcase h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--ink);
    letter-spacing: 1px;
}

.showcase p {
    color: var(--ink-light);
    line-height: 2;
    font-size: 1.05rem;
}

.showcase-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    max-width: 420px;
    position: relative;
}

.ai-quote {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--sage);
    line-height: 1.8;
}

/* Feature Stack Section */
.feature-stack-section {
    padding: 6rem 10% 10rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.stack-text {
    flex: 1;
    max-width: 450px;
}

.feature-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-item {
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.4s ease;
    padding-left: 0;
}

.feature-item.active {
    opacity: 1;
    padding-left: 1rem;
    border-left: 2px solid var(--sage);
}

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.feature-item p {
    color: var(--ink-light);
    font-size: 1rem;
    line-height: 1.8;
}

.stack-visual {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 650px;
}

.phone-stack {
    position: relative;
    width: 280px;
    height: 600px;
}

.stack-phone {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 600px;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Fanned out by default */
.phone-1 {
    transform: translateX(-100px) rotate(-8deg) translateY(30px) scale(0.92);
    z-index: 1;
    opacity: 0.65;
    filter: blur(1px);
    box-shadow: -10px 20px 40px rgba(0,0,0,0.05);
}

.phone-2 {
    transform: translateX(0) translateY(0) scale(1);
    z-index: 3;
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.phone-3 {
    transform: translateX(100px) rotate(8deg) translateY(30px) scale(0.92);
    z-index: 1;
    opacity: 0.65;
    filter: blur(1px);
    box-shadow: 10px 20px 40px rgba(0,0,0,0.05);
}


.click-hint {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--sage);
    letter-spacing: 3px;
    opacity: 0.7;
    animation: pulse 2.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; text-shadow: 0 0 10px rgba(163, 181, 166, 0.4); }
}

/* Footer */
.minimal-footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(163, 181, 166, 0.2);
    margin: 0 10%;
}

.minimal-footer p {
    color: var(--ink-light);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.minimal-footer .copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease;
}
.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-slow {
    opacity: 0;
    transition: opacity 2s ease 0.5s;
}
.fade-in-slow.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .hero, .showcase {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
        gap: 3rem;
    }
    
    .showcase.reverse {
        flex-direction: column;
    }
    
    .hero-content, .showcase-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .poetic-title .line {
        font-size: 2.8rem;
    }
    
    .subtitle {
        margin: 0 auto 3rem;
    }
    
    .wind-chimes {
        display: none; /* Hide on smaller screens to avoid overlap */
    }
    
    .phone-mockup {
        width: 240px;
        height: 520px;
        margin: 0 auto;
    }
    
    .navbar {
        padding: 2rem 5%;
    }
    
    .feature-stack-section {
        flex-direction: column;
        padding: 4rem 5% 8rem;
        text-align: center;
        gap: 3rem;
    }
    
    .stack-text {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .stack-visual {
        height: 550px;
        width: 100%;
    }
    
    .phone-stack {
        width: 200px;
        height: 440px;
    }
    
    .stack-phone {
        width: 200px;
        height: 440px;
    }
    
    .phone-1 {
        transform: translateX(-60px) rotate(-8deg) translateY(20px);
    }
    
    .phone-3 {
        transform: translateX(60px) rotate(8deg) translateY(20px);
    }
    
    .phone-stack:hover .phone-1 {
        transform: translateX(-80px) rotate(-12deg) translateY(10px);
    }
    .phone-stack:hover .phone-3 {
        transform: translateX(80px) rotate(12deg) translateY(10px);
    }
}

@media (max-width: 480px) {
    .hero, .showcase, .feature-stack-section {
        padding-top: 100px;
    }
    
    .poetic-title .line {
        font-size: 2.2rem;
    }
    
    .showcase h2 {
        font-size: 1.8rem;
    }
    
    .stack-phone, .phone-stack {
        width: 180px;
        height: 396px;
    }
    
    .phone-1 {
        transform: translateX(-40px) rotate(-8deg) translateY(15px) scale(0.92);
    }
    
    .phone-3 {
        transform: translateX(40px) rotate(8deg) translateY(15px) scale(0.92);
    }


    .glass-panel {
        padding: 2.5rem 1.5rem;
    }
    
    .ai-quote {
        font-size: 1.15rem;
    }
}
