:root {
    --bg: #fffafc;
    --surface: rgba(255,255,255,.82);
    --text: #29263d;
    --muted: #767188;
    --pink: #ff5fa2;
    --pink-dark: #e84689;
    --purple: #8d6bff;
    --blue: #64b9ff;
    --border: rgba(56,44,88,.10);
    --shadow: 0 20px 50px rgba(63,42,94,.10);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(255,95,162,.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(100,185,255,.15),
            transparent 30%
        ),
        var(--bg);
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,250,252,.84);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.8px;
}

.logo span {
    color: var(--pink);
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 650;
}

.nav a:hover {
    color: var(--pink-dark);
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 26px;
}

.hero {
    padding: 90px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 60px;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,95,162,.10);
    color: var(--pink-dark);
    font-weight: 800;
    font-size: 14px;
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0;
    font-size: clamp(48px, 7vw, 82px);
    line-height: .98;
    letter-spacing: -4px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        var(--pink),
        var(--purple)
    );
    -webkit-background-clip: text;
    color: transparent;
}

.hero-copy {
    max-width: 680px;
    font-size: 19px;
    line-height: 1.7;
    color: var(--muted);
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        var(--pink),
        var(--purple)
    );
    color: white;
    font-weight: 800;
    box-shadow:
        0 14px 30px
        rgba(232,70,137,.22);
}

.button.secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.button.small {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 13px;
    font-size: 14px;
}

.hero-art {
    min-height: 470px;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.94),
            rgba(252,231,245,.85)
        );
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,.8);
}

.hero-doodle {
    position: absolute;
    inset: 45px;
    border: 5px solid #2d2942;
    border-radius: 48% 52% 45% 55%;
    transform: rotate(-6deg);
}

.hero-face {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    border: 5px solid #2d2942;
    border-radius: 48%;
}

.hero-eye {
    position: absolute;
    top: 62px;
    width: 14px;
    height: 20px;
    background: #2d2942;
    border-radius: 50%;
}

.hero-eye.one {
    left: 48px;
}

.hero-eye.two {
    right: 48px;
}

.hero-smile {
    position: absolute;
    width: 66px;
    height: 30px;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    border-bottom: 5px solid #2d2942;
    border-radius: 50%;
}

.status {
    margin-top: 22px;
    font-size: 14px;
    color: var(--muted);
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: rgba(255,255,255,.52);
}

.section-header {
    max-width: 760px;
    margin-bottom: 36px;
}

.section-header h2 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -2px;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 17px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(50,40,80,.06);
    transition: .2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card strong,
.category-card span {
    display: block;
}

.category-card strong {
    font-size: 18px;
}

.category-card span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.category-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #fff;
    font-size: 29px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card,
.empty-card {
    padding: 30px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.feature-card .icon {
    font-size: 40px;
}

.feature-card h3 {
    margin: 18px 0 8px;
}

.feature-card p,
.empty-card p {
    color: var(--muted);
    line-height: 1.65;
}

.page-hero {
    padding: 72px 0 35px;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(44px, 7vw, 70px);
    letter-spacing: -3px;
}

.page-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.coloring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.coloring-card {
    overflow: hidden;
    border-radius: 24px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.coloring-card-body {
    padding: 20px;
}

.generator-box {
    padding: 34px;
    border-radius: 30px;
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.generator-box textarea {
    width: 100%;
    min-height: 150px;
    padding: 18px;
    resize: vertical;
    font: inherit;
    border: 1px solid var(--border);
    border-radius: 18px;
    outline: none;
}

.generator-box textarea:focus {
    border-color: var(--pink);
}

.footer {
    padding: 55px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

@media (max-width: 850px) {

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

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

    .category-grid,
    .feature-grid,
    .coloring-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 20px;
        right: 20px;
        padding: 22px;
        flex-direction: column;
        align-items: stretch;
        background: white;
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .nav.is-open {
        display: flex;
    }

    .menu-button {
        display: block;
    }
}

@media (max-width: 560px) {

    .container {
        width: min(100% - 26px, 1180px);
    }

    .hero {
        padding-top: 55px;
    }

    .category-grid,
    .feature-grid,
    .coloring-grid {
        grid-template-columns: 1fr;
    }
}
