:root {
    --bg-cream: #FDFBF7;
    --text-brown: #5C4A42;
    --text-light: #8E7F78;
    --accent-green: #9CB293;
    --accent-yellow: #E6DA87;
    --accent-pink: #E8C1C1;
    --card-bg: #FFFFFF;
}

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

body {
    font-family: 'Kiwi Maru', 'Nunito', serif;
    /* Soft, slightly handwritten styling */
    background-color: var(--bg-cream);
    color: var(--text-brown);
    line-height: 1.8;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    color: var(--accent-green);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--text-brown);
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--accent-green);
}

.btn-login {
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'Kiwi Maru', serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--accent-green);
    color: white;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 6%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}

.hero-left {
    flex: 1;
    max-width: 500px;
}

.tag {
    display: inline-block;
    background: var(--accent-yellow);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-brown);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--text-brown);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 18px;
    font-family: 'Kiwi Maru', serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(92, 74, 66, 0.2);
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #4A3A33;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-brown);
    color: var(--text-brown);
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 18px;
    font-family: 'Kiwi Maru', serif;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #F0ECE1;
}

/* Hero Right: Diary Card UI */
.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.decoration-blob {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--accent-green);
    opacity: 0.2;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: morph 8s ease-in-out infinite both alternate;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.diary-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 380px;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #F0ECE1;
}

.diary-date {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.diary-entry {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-brown);
}

.ai-correction {
    background: #F8F5EE;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.ai-icon {
    font-size: 24px;
}

.feedback-msg {
    font-size: 14px;
    margin-bottom: 8px;
}

.corrected {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--accent-green);
}

.social-actions {
    display: flex;
    gap: 20px;
    font-family: 'Nunito', sans-serif;
    color: var(--text-light);
    font-weight: 600;
}

/* Steps */
.steps {
    padding: 80px 6%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.steps h2 {
    font-size: 2rem;
    margin-bottom: 60px;
}

.step-container {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.step-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    flex: 1;
    max-width: 320px;
}

.step-img {
    font-size: 48px;
    margin-bottom: 20px;
}

.step-card h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 20px;
    background: #FAF7F0;
    margin-top: 60px;
}

.footer .logo {
    margin-bottom: 15px;
}

.footer p {
    color: var(--text-light);
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .step-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Demo Section */
.demo-section {
    padding: 80px 6%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: white;
    border-radius: 40px;
    margin-top: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.demo-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.demo-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
}

.demo-subtitle small {
    font-size: 0.8rem;
    color: #b0a49e;
}

.demo-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.demo-btn {
    background: #FDFBF7;
    border: 2px solid #F0ECE1;
    padding: 16px 24px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: var(--text-brown);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.demo-btn:hover {
    border-color: var(--accent-green);
    background: #f4fbf1;
    transform: translateX(10px);
}

.demo-result {
    width: 100%;
    margin-top: 20px;
}

.demo-diary-card {
    text-align: left;
    margin: 0 auto;
}

.highlight-text {
    font-weight: 800;
    color: var(--accent-green);
    background: linear-gradient(120deg, #d4f0ca 0%, #d4f0ca 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 80%;
}

.thinking-animation {
    display: inline-block;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-8px);
    }
}

.pop-animation {
    animation: pop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
        color: #ff4b4b;
    }

    100% {
        transform: scale(1);
    }
}

.demo-cta {
    margin-top: 40px;
}

.demo-cta p {
    font-weight: 500;
    margin-bottom: 20px;
}