@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --pink: #ff78a9;
    --pink-light: #ffe0ec;
    --yellow: #ffe58f;
    --purple: #cbb8ff;
    --green: #bcebbd;
    --blue: #bde8ff;
    --ink: #51364c;
    --paper: #fffaf1;
    --white: #ffffff;
    --shadow: 0 9px 0 rgba(113, 74, 102, 0.09);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, #ffe2ef 0, transparent 25%),
        radial-gradient(circle at 90% 32%, #fff0bd 0, transparent 25%),
        radial-gradient(circle at 15% 70%, #e5dcff 0, transparent 23%),
        var(--paper);
    overflow-x: hidden;
}

button, input, textarea, select {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

button:focus-visible, a:focus-visible,
input:focus-visible, textarea:focus-visible,
select:focus-visible {
    outline: 3px dashed #ad6fe0;
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.topbar {
    width: min(1160px, 92%);
    margin: 18px auto;
    padding: 13px 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 5;
}

.logo {
    font-size: 1.45rem;
    font-weight: 900;
    white-space: nowrap;
}

.logo span {
    color: var(--pink);
    margin-left: 3px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 17px;
}

nav a {
    font-size: 0.88rem;
    font-weight: 800;
    transition: color 0.2s, transform 0.2s;
}

nav a:hover {
    color: #e34d8b;
    transform: translateY(-2px);
}

.nav-button {
    background: var(--yellow);
    padding: 10px 15px;
    border: 2px solid #f6d568;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 900;
    white-space: nowrap;
}

.hero {
    width: min(1120px, 90%);
    min-height: 500px;
    margin: 45px auto 55px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 38px;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    color: #a34e82;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.hero h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2.9rem, 5.6vw, 5rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 23px;
}

.hero h1 span {
    color: #f15b9a;
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: var(--yellow);
    border-radius: 50%;
    z-index: -1;
    transform: rotate(-2deg);
}

.hero-text > p {
    max-width: 490px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #755d72;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 27px;
}

.button {
    border: 2px solid transparent;
    border-radius: 17px;
    padding: 13px 19px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-weight: 900;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 6px 0 rgba(83, 53, 78, 0.13);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.primary {
    background: var(--pink);
    color: #fff;
    border-color: #f25b96;
}

.secondary {
    background: white;
    color: var(--ink);
    border-color: #f0c8dc;
}

.tiny-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.tiny-stats span {
    background: white;
    border: 1px dashed #e6b9d0;
    border-radius: 30px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-art {
    min-height: 430px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 4px solid white;
    border-radius: 48% 48% 28px 28px;
    background: linear-gradient(#c8edff 0%, #fff0b7 73%, #b6e8ac 73%);
    box-shadow: 0 13px 0 #f7d2e1, 0 18px 30px #e9c8d9;
}

.art-sticker {
    position: absolute;
    z-index: 3;
    animation: bob 3s ease-in-out infinite;
}

.sun {
    right: 12%;
    top: 9%;
    font-size: 3.4rem;
}

.butterfly {
    top: 32%;
    left: 13%;
    font-size: 2.2rem;
    animation-delay: 0.4s;
}

.star {
    top: 17%;
    left: 22%;
    font-size: 1.7rem;
    animation-delay: 1s;
}

.cloud-one {
    top: 10%;
    left: 6%;
    font-size: 2.7rem;
}

.cloud-two {
    top: 24%;
    right: 8%;
    font-size: 2.2rem;
}

.rainbow {
    position: absolute;
    top: 14%;
    left: 35%;
    font-size: 5rem;
    transform: rotate(-8deg);
}

.hill {
    position: absolute;
    border-radius: 50% 50% 0 0;
    bottom: -20%;
    width: 120%;
    height: 52%;
}

.hill-back {
    background: #a7dfa4;
    left: -35%;
    bottom: -7%;
}

.hill-front {
    background: #82cd92;
    right: -36%;
    bottom: -22%;
    transform: rotate(-7deg);
}

.garden-flower {
    position: absolute;
    z-index: 2;
    font-size: clamp(2.4rem, 4vw, 4rem);
    filter: drop-shadow(0 4px 0 rgba(73, 111, 67, 0.1));
    animation: bob 3.5s ease-in-out infinite;
}

.f1 { bottom: 20%; left: 10%; }
.f2 { bottom: 13%; left: 29%; animation-delay: 0.5s; }
.f3 { bottom: 24%; left: 47%; animation-delay: 1s; }
.f4 { bottom: 12%; right: 23%; animation-delay: 0.7s; }
.f5 { bottom: 23%; right: 7%; animation-delay: 1.2s; }
.f6 { bottom: 4%; left: 53%; animation-delay: 0.3s; }

.art-note {
    position: absolute;
    top: 43%;
    right: 7%;
    z-index: 3;
    background: #fff9f1;
    border: 2px dashed #ec9bbd;
    border-radius: 8px 20px 8px 20px;
    padding: 12px 16px;
    text-align: center;
    font-weight: 900;
    font-size: 0.85rem;
    transform: rotate(7deg);
    box-shadow: 3px 5px 0 #e8c2d2;
}

.art-note span {
    display: block;
    color: #f15b9a;
    font-size: 1.4rem;
}

.tiny-sign {
    position: absolute;
    z-index: 3;
    bottom: 5%;
    left: 30%;
    background: #fff3bb;
    border: 2px solid white;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.7rem;
    font-weight: 900;
    transform: rotate(-3deg);
}

.sticker {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    font-size: 3rem;
    opacity: 0.7;
}

.sticker-top {
    top: 23%;
    right: 1%;
    transform: rotate(15deg);
}

.sticker-side {
    top: 67%;
    left: 1%;
    transform: rotate(-14deg);
}

.sticker-bottom {
    bottom: 3%;
    right: 3%;
}

.ticker {
    padding: 17px 5%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    background: #ffe4a7;
    border-top: 3px dashed #f6ca76;
    border-bottom: 3px dashed #f6ca76;
    font-weight: 900;
    font-size: 0.8rem;
    color: #805b46;
}

.section {
    width: min(1100px, 90%);
    margin: 100px auto;
    position: relative;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 37px;
    position: relative;
}

.section-heading h2,
.ai-section h2,
.about-section h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.2;
    margin-bottom: 13px;
}

.section-heading p {
    color: #826b7e;
    line-height: 1.8;
}

.floating-doodle {
    position: absolute;
    right: 2%;
    top: -20px;
    font-size: 3.5rem;
    color: #f4a0c5;
    transform: rotate(15deg);
}

.petal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.petal-card {
    min-width: 0;
    position: relative;
    text-align: left;
    padding: 26px 19px 20px;
    border: 3px solid white;
    border-radius: 25px 25px 25px 9px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 270px;
    transition: transform 0.22s, box-shadow 0.22s;
    color: var(--ink);
}

.petal-card:hover {
    transform: translateY(-8px) rotate(-1.5deg);
    box-shadow: 0 14px 0 rgba(113, 74, 102, 0.1);
}

.pink { background: #ffd7e7; }
.yellow { background: #fff0b1; }
.purple { background: #e5d9ff; }
.green { background: #d5f2cd; }

.card-tape {
    position: absolute;
    top: -11px;
    left: 25%;
    padding: 5px 11px;
    background: rgba(255,255,255,0.8);
    border: 1px dashed #dba4c0;
    font-size: 0.61rem;
    font-weight: 900;
    transform: rotate(-3deg);
}

.big-emoji {
    font-size: 3.5rem;
    margin: 10px 0 12px;
    filter: drop-shadow(2px 4px 0 rgba(85, 51, 76, 0.1));
}

.card-title {
    font-size: 1.55rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.card-description {
    line-height: 1.65;
    color: #6c5268;
    font-size: 0.9rem;
}

.card-bottom {
    margin-top: auto;
    padding-top: 20px;
    font-weight: 900;
    font-size: 0.83rem;
}

.mini-sticker {
    position: absolute;
    top: 34px;
    right: 14px;
    font-size: 1.5rem;
    transform: rotate(12deg);
}

.activity-panel {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 34px;
    text-align: center;
    background: white;
    border: 3px dashed #f2a8ca;
    border-radius: 30px 15px 30px 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.panel-sticker {
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
}

.activity-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.activity-panel p {
    line-height: 1.8;
    margin: 10px 0 20px;
}

.activity-time {
    display: inline-block;
    background: #fff0b1;
    padding: 7px 12px;
    border-radius: 15px;
    font-weight: 800;
}

.ai-section {
    width: min(1100px, 90%);
    margin: 100px auto;
    padding: 65px 5%;
    border: 4px solid white;
    border-radius: 40px;
    background:
        radial-gradient(circle at 0% 100%, #ffe0ed 0, transparent 30%),
        radial-gradient(circle at 100% 0%, #e6dcff 0, transparent 30%),
        #fff0c9;
    box-shadow: 0 12px 0 #f3d7b7;
}

.ai-section > .section-heading {
    margin-bottom: 38px;
}

.ai-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: stretch;
}

.ai-decoration {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f6dfff;
    border: 3px solid white;
    border-radius: 30px 15px 30px 15px;
}

.ai-big-flower {
    font-size: 5rem;
    margin-bottom: 20px;
}

.ai-decoration h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.9rem;
    line-height: 1.25;
    margin-bottom: 15px;
}

.ai-decoration p {
    line-height: 1.7;
    max-width: 240px;
}

.ai-cloud, .ai-heart, .ai-sparkle {
    position: absolute;
    font-size: 2.5rem;
}

.ai-cloud { right: 8%; top: 10%; }
.ai-heart { right: 12%; bottom: 12%; }
.ai-sparkle { right: 18%; top: 38%; color: #b05aa0; }

.ai-box {
    padding: 29px;
    background: rgba(255,255,255,0.94);
    border: 3px solid white;
    border-radius: 15px 30px 15px 30px;
    box-shadow: 0 8px 0 #f2d7d9;
}

.ai-box label, .jar-card label {
    display: block;
    margin: 17px 0 8px;
    font-weight: 900;
}

.ai-box textarea,
.ai-box select,
.jar-card input {
    width: 100%;
    padding: 13px 14px;
    background: #fffaf5;
    border: 2px solid #eed4e3;
    border-radius: 13px;
    color: var(--ink);
    outline: none;
}

.ai-box textarea {
    resize: vertical;
    min-height: 105px;
}

.ai-box textarea:focus,
.ai-box select:focus,
.jar-card input:focus {
    border-color: #ec81b2;
}

.full-button {
    width: 100%;
    margin-top: 22px;
}

.status, .small-message {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 15px;
    color: #795d76;
}

.result {
    margin-top: 20px;
    padding: 22px;
    border-radius: 22px;
    background: #e2f6d9;
    border: 2px dashed #9bcf92;
    text-align: center;
}

.result-flower {
    font-size: 3rem;
}

.result h3 {
    margin: 8px 0;
    font-size: 1.45rem;
}

.result p {
    line-height: 1.7;
    margin: 10px 0;
}

.result-detail, .privacy-note {
    color: #7b6876;
    font-size: 0.8rem;
}

.privacy-note {
    margin-top: 22px;
    line-height: 1.7;
}

.personal-garden {
    padding: 30px;
    background: #e1f4d8;
    border: 4px solid white;
    border-radius: 35px;
    box-shadow: 0 10px 0 #c2e6bb;
}

.garden-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.score-icon {
    font-size: 3rem;
}

.score-label {
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 8px 0;
}

.garden-score strong {
    font-family: 'Quicksand', sans-serif;
    font-size: 3.4rem;
    color: #36764c;
}

.flower-bed {
    min-height: 140px;
    margin: 25px 0;
    padding: 25px;
    background: rgba(255,255,255,0.65);
    border: 2px dashed #9fcf98;
    border-radius: 24px;
    position: relative;
}

.bed-sticker {
    position: absolute;
    right: 20px;
    top: 12px;
    font-size: 1.8rem;
}

.my-flowers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    align-items: center;
}

.my-flowers p {
    padding: 20px 5px;
    text-align: center;
    color: #668263;
}

.collected-flower {
    font-size: 2.7rem;
    animation: bloom-in 0.4s ease-out both;
}

.garden-actions {
    text-align: center;
}

.quest-card, .quick-card, .kindness-card {
    position: relative;
    text-align: center;
    padding: 48px 30px;
    border: 4px solid white;
    border-radius: 32px 15px 32px 15px;
    box-shadow: var(--shadow);
}

.quest-card {
    background: #e5dcff;
}

.quest-sticker, .quick-sticker, .kindness-sticker {
    display: block;
    font-size: 3.2rem;
    margin-bottom: 15px;
}

.quest-card h2, .quick-card h2, .kindness-card h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    margin-bottom: 13px;
}

.quest-card p, .quick-card p, .kindness-card p {
    max-width: 620px;
    margin: 0 auto 24px;
    line-height: 1.8;
}

.quick-card {
    background: #fff0b1;
}

.quick-result {
    font-weight: 900;
    margin-top: 23px !important;
    color: #805b46;
}

.kindness-card {
    background: #ffddea;
}

.joy-jar-section {
    max-width: 800px;
}

.jar-card {
    background: #fff;
    padding: 30px;
    border: 3px solid #f3c4da;
    border-radius: 30px 15px 30px 15px;
    box-shadow: var(--shadow);
}

.jar-top {
    margin: -30px -30px 25px;
    padding: 15px;
    text-align: center;
    border-radius: 25px 10px 0 0;
    background: #f7d9ff;
    font-weight: 900;
    letter-spacing: 2px;
}

.jar-card label {
    margin-top: 0;
}

.jar-card .button {
    margin-top: 15px;
}

.jar-items {
    margin-top: 25px;
    display: grid;
    gap: 10px;
}

.jar-items > p {
    text-align: center;
    padding: 15px;
    color: #876d81;
}

.jar-item {
    padding: 13px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #fff0c8;
    border: 2px dashed #e8ca83;
    border-radius: 15px;
    overflow-wrap: anywhere;
}

.jar-item span {
    line-height: 1.5;
}

.remove-jar {
    flex-shrink: 0;
    border: 0;
    background: #ffdce9;
    border-radius: 10px;
    padding: 7px 10px;
    color: #813a5c;
    font-weight: 900;
}

.about-section {
    width: min(850px, 90%);
    position: relative;
    margin: 100px auto;
    padding: 65px 8%;
    text-align: center;
    border: 4px solid white;
    border-radius: 45% 45% 25px 25px;
    background: #dff5d9;
    box-shadow: 0 10px 0 #c6e8bd;
}

.about-section h2 {
    margin-bottom: 20px;
}

.about-section > p {
    line-height: 1.9;
    color: #5c7659;
}

.about-sticker {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 17px;
}

.tech-note {
    margin-top: 23px;
    font-weight: 900;
}

footer {
    margin-top: 80px;
    padding: 32px 5%;
    background: #51364c;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    text-align: center;
}

footer p {
    color: #f5dce9;
    font-size: 0.88rem;
}

footer > a:last-child {
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 800;
}

@keyframes bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@keyframes bloom-in {
    from { transform: scale(0.4) rotate(-25deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

@media (max-width: 900px) {
    .topbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav {
        order: 3;
        width: 100%;
    }

    .hero {
        gap: 22px;
    }

    .petal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-layout {
        grid-template-columns: 1fr;
    }

    .ai-decoration {
        min-height: 270px;
    }
}

@media (max-width: 600px) {
    .topbar {
        width: 94%;
        padding: 14px 10px;
        gap: 12px;
    }

    nav {
        gap: 10px 14px;
    }

    nav a {
        font-size: 0.78rem;
    }

    .hero {
        width: 90%;
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-art {
        min-height: 350px;
    }

    .rainbow {
        font-size: 4rem;
    }

    .tiny-stats {
        gap: 7px;
    }

    .tiny-stats span {
        font-size: 0.7rem;
    }

    .ticker {
        gap: 12px 18px;
        font-size: 0.68rem;
    }

    .section, .ai-section {
        margin-top: 65px;
        margin-bottom: 65px;
    }

    .petal-grid {
        gap: 14px;
    }

    .petal-card {
        min-height: 250px;
        padding: 23px 14px 16px;
    }

    .big-emoji {
        font-size: 2.8rem;
    }

    .card-title {
        font-size: 1.35rem;
    }

    .card-description {
        font-size: 0.83rem;
    }

    .card-tape {
        font-size: 0.5rem;
        left: 12%;
    }

    .ai-section {
        padding: 40px 17px;
        border-radius: 28px;
    }

    .ai-box {
        padding: 20px 15px;
    }

    .activity-panel, .personal-garden,
    .quest-card, .quick-card, .kindness-card,
    .jar-card {
        padding: 25px 17px;
    }

    .jar-top {
        margin: -25px -17px 22px;
    }

    .about-section {
        padding: 55px 7% 40px;
        border-radius: 35% 35% 25px 25px;
    }

    .sticker {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
