@font-face {
    font-family: "Poppins";
    src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Poppins";
    src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype");
    font-weight: 500;
}

@font-face {
    font-family: "Poppins";
    src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
}

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

:root {
    --lilac: #8d6a9d;
    --lilac-dark: #6d4f7c;
    --lilac-light: #f3edf5;
    --cream: #faf8fa;
    --white: #ffffff;
    --text: #302933;
    --muted: #8d828e;
    --line: #e1d9e3;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    background: var(--cream);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

button,
a {
    font-family: inherit;
}

button {
    cursor: pointer;
}

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

.hidden-screen {
    display: none !important;
}

.screen {
    width: 100%;
    min-height: 100vh;
}


/* HERO */

.hero-screen {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 72% 47%,
            rgba(217, 201, 224, 0.35),
            transparent 34%
        ),
        #fbfafb;
    overflow: hidden;
}

.hero-header {
    height: 82px;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
}

.back-vanelly {
    justify-self: start;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    transition: 0.2s ease;
}

.back-vanelly span {
    margin-right: 7px;
    color: var(--lilac);
}

.back-vanelly:hover {
    color: var(--lilac);
}

.hero-logo img {
    width: 74px;
    display: block;
}

.hero-contact {
    justify-self: end;
    padding: 10px 22px;
    border: 1px solid var(--lilac);
    color: var(--lilac);
    font-size: 9px;
    letter-spacing: 1.5px;
    transition: 0.2s ease;
}

.hero-contact:hover {
    background: var(--lilac);
    color: white;
}

.hero-content {
    width: min(1180px, 90%);
    min-height: calc(100vh - 160px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 40px;
}

.hero-copy {
    max-width: 560px;
}

.hero-eyebrow {
    display: block;
    margin-bottom: 20px;
    color: var(--lilac);
    font-size: 9px;
    letter-spacing: 3px;
}

.hero-copy h1 {
    max-width: 570px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5vw, 73px);
    line-height: 0.99;
    font-weight: 400;
}

.hero-copy h1 em {
    color: var(--lilac);
    font-style: italic;
}

.hero-copy p {
    max-width: 500px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.start-button {
    margin-top: 30px;
    padding: 17px 25px;
    display: inline-flex;
    align-items: center;
    gap: 30px;
    border: 0;
    background: var(--lilac);
    color: white;
    font-size: 10px;
    letter-spacing: 1px;
    transition: 0.25s ease;
}

.start-button:hover {
    background: var(--lilac-dark);
    transform: translateY(-2px);
}

.start-button span {
    font-size: 16px;
}

.hero-art {
    position: relative;
    height: 510px;
}

.hero-circle {
    position: absolute;
    width: 440px;
    height: 440px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(221, 207, 226, 0.52),
            rgba(243, 237, 245, 0.2) 64%,
            transparent 65%
        );
    border: 1px solid rgba(141, 106, 157, 0.14);
}

.hero-note {
    position: absolute;
    right: 9%;
    top: 8%;
    width: 135px;
    padding: 18px;
    background: white;
    box-shadow: 0 18px 50px rgba(66, 48, 72, 0.09);
    transform: rotate(4deg);
}

.hero-note span {
    display: block;
    margin-bottom: 9px;
    color: var(--lilac);
    font-size: 7px;
    letter-spacing: 2px;
}

.hero-note strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
}

.hero-flower {
    position: absolute;
    color: var(--lilac);
    font-family: Georgia, serif;
}

.flower-one {
    left: 23%;
    top: 25%;
    font-size: 85px;
    opacity: 0.65;
}

.flower-two {
    right: 20%;
    bottom: 19%;
    font-size: 105px;
    opacity: 0.48;
}

.flower-three {
    left: 38%;
    bottom: 12%;
    font-size: 66px;
    opacity: 0.36;
}

.hero-bottom {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 28px;
    display: flex;
    justify-content: space-between;
    color: #a097a2;
    font-size: 8px;
    letter-spacing: 1.2px;
}


/* CREATOR */

.creator-screen {
    min-height: 100vh;
    background: #fbfafb;
}

.creator-header {
    height: 72px;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--line);
}

.creator-back {
    justify-self: start;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.8px;
}

.creator-back:hover {
    color: var(--lilac);
}

.creator-brand img {
    width: 60px;
    display: block;
}

.creator-title {
    justify-self: end;
    text-align: right;
}

.creator-title span {
    display: block;
    color: #a197a3;
    font-size: 7px;
    letter-spacing: 2px;
}

.creator-title strong {
    display: block;
    margin-top: 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
}

.creator-title em {
    color: var(--lilac);
}

.creator-layout {
    height: calc(100vh - 72px);
    min-height: 600px;
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
}

.catalog-panel {
    padding: 26px 22px;
    background: var(--lilac-light);
    border-right: 1px solid var(--line);
    overflow-y: auto;
}

.catalog-intro > span {
    color: var(--lilac);
    font-size: 8px;
    letter-spacing: 2px;
}

.catalog-intro h2 {
    margin-top: 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.05;
    font-weight: 400;
}

.catalog-intro h2 em {
    color: var(--lilac);
    font-style: italic;
}

.catalog-intro p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.65;
}

.category-tabs {
    margin-top: 21px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.category-tab {
    padding: 9px 5px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid #dbd2df;
    color: #766a79;
    font-size: 8px;
    transition: 0.2s ease;
}

.category-tab.active {
    background: var(--lilac);
    border-color: var(--lilac);
    color: white;
}

.catalog-title {
    margin-top: 19px;
    padding-bottom: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dbd2df;
}

.catalog-title span {
    color: #685c6b;
    font-size: 7px;
    letter-spacing: 1.7px;
}

.catalog-title small {
    color: #9b909d;
    font-size: 7px;
}

.items-grid {
    margin-top: 11px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.item-card {
    height: 93px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid #ddd5df;
    transition: 0.2s ease;
}

.item-card:hover {
    border-color: var(--lilac);
    transform: translateY(-2px);
}

.item-card img {
    width: 58px;
    height: 64px;
    object-fit: contain;
    pointer-events: none;
}

.item-card span {
    width: 100%;
    color: #716573;
    font-size: 6.5px;
    line-height: 1.1;
    text-align: center;
}


/* WORK AREA */

.creator-work {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: white;
}

.work-top {
    height: 75px;
    padding: 14px 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.work-top > div > span {
    color: #a197a3;
    font-size: 7px;
    letter-spacing: 2px;
}

.work-top h2 {
    margin-top: 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.work-top h2 em {
    color: var(--lilac);
}

.reset-button {
    padding: 8px 13px;
    background: white;
    border: 1px solid var(--line);
    color: #756a78;
    font-size: 7px;
}

.reset-button:hover {
    border-color: var(--lilac);
    color: var(--lilac);
}

.bouquet-workspace {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at center,
            #ffffff,
            #faf7fb
        );
}

.workspace-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(217, 201, 224, 0.13);
    filter: blur(10px);
}

.bouquet-canvas {
    position: relative;
    width: min(590px, 78%);
    height: min(365px, 72%);
    min-height: 310px;
    background:
        radial-gradient(
            ellipse at center bottom,
            rgba(210, 193, 218, 0.13),
            transparent 65%
        );
    border: 1px solid rgba(221, 213, 224, 0.45);
    z-index: 2;
    overflow: visible;
}

.bouquet-canvas::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 220px;
    height: 23px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(62, 46, 68, 0.09);
    filter: blur(13px);
    z-index: 0;
    pointer-events: none;
}

.empty-state {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200px;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.empty-symbol {
    width: 43px;
    height: 43px;
    margin: 0 auto 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dcd2df;
    border-radius: 50%;
    color: var(--lilac);
}

.empty-state strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;
}

.empty-state p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.5;
}

.empty-state.hidden {
    display: none;
}


/* ELEMENTOS */

.element-wrapper {
    position: absolute;
    width: 118px;
    height: 145px;
    z-index: 10;
    transform-origin: center center;
    touch-action: none;
}

.element-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.element-wrapper.selected {
    z-index: 500 !important;
}

.selection-box {
    position: absolute;
    inset: -5px;
    border: 1px dashed transparent;
    pointer-events: none;
}

.element-wrapper.selected .selection-box {
    border-color: rgba(141, 106, 157, 0.85);
}

.selection-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--lilac);
    pointer-events: auto;
}

.dot-top-left {
    left: -4px;
    top: -4px;
    cursor: nwse-resize;
}

.dot-top-right {
    right: -4px;
    top: -4px;
    cursor: nesw-resize;
}

.dot-bottom-left {
    left: -4px;
    bottom: -4px;
    cursor: nesw-resize;
}

.dot-bottom-right {
    right: -4px;
    bottom: -4px;
    cursor: nwse-resize;
}

.rotate-line {
    position: absolute;
    left: 50%;
    top: -28px;
    width: 1px;
    height: 23px;
    background: var(--lilac);
    transform: translateX(-50%);
    pointer-events: none;
}

.rotate-handle {
    position: absolute;
    left: 50%;
    top: -37px;
    width: 15px;
    height: 15px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: white;
    border: 1px solid var(--lilac);
    color: var(--lilac);
    font-size: 8px;
    line-height: 13px;
    text-align: center;
    cursor: grab;
    pointer-events: auto;
}

.rotate-handle:active {
    cursor: grabbing;
}

.element-tools {
    position: absolute;
    left: 50%;
    bottom: -31px;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    padding: 4px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 7px 18px rgba(53, 40, 59, 0.12);
    pointer-events: auto;
    white-space: nowrap;
}

.element-tool {
    width: 24px;
    height: 22px;
    border: 0;
    background: #faf8fb;
    color: #6f6273;
    font-size: 9px;
    cursor: pointer;
}

.element-tool:hover {
    background: var(--lilac);
    color: white;
}

.element-name {
    position: absolute;
    left: 50%;
    top: -53px;
    transform: translateX(-50%);
    padding: 4px 7px;
    background: #302933;
    color: white;
    font-size: 6px;
    letter-spacing: 0.5px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.element-wrapper.selected .element-name {
    opacity: 1;
}

.workspace-hint {
    position: absolute;
    right: 19px;
    bottom: 16px;
    color: #a59ba6;
    font-size: 6px;
    letter-spacing: 1.5px;
    z-index: 10;
}


/* BOTTOM */

.work-bottom {
    height: 76px;
    padding: 12px 27px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    background: white;
}

.creation-message {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.creation-message span {
    color: #7c717e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
}

.creation-message strong {
    color: var(--lilac);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
}

.work-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.flower-count {
    color: #9a909c;
    font-size: 7px;
}

.quote-button {
    min-width: 190px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    background: var(--lilac);
    color: white;
    font-size: 8px;
    letter-spacing: 0.8px;
    transition: 0.2s ease;
}

.quote-button:hover {
    background: var(--lilac-dark);
    transform: translateY(-1px);
}

.quote-arrow {
    font-size: 13px;
}


/* FINAL */

.final-section {
    position: relative;
    min-height: 650px;
    padding: 90px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(224, 211, 229, 0.45),
            transparent 45%
        ),
        #fbfafb;
    border-top: 1px solid var(--line);
}

.final-decoration {
    position: absolute;
    color: var(--lilac);
    opacity: 0.25;
    font-family: Georgia, serif;
}

.final-decoration-one {
    left: 10%;
    top: 20%;
    font-size: 75px;
}

.final-decoration-two {
    right: 11%;
    bottom: 17%;
    font-size: 90px;
}

.final-content {
    width: min(850px, 92%);
    text-align: center;
    position: relative;
    z-index: 2;
}

.final-eyebrow {
    color: var(--lilac);
    font-size: 8px;
    letter-spacing: 3px;
}

.final-content h1 {
    max-width: 750px;
    margin: 17px auto 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(39px, 5vw, 60px);
    line-height: 1.03;
    font-weight: 400;
}

.final-content h1 em {
    display: block;
    color: var(--lilac);
    font-style: italic;
}

.final-content > p {
    max-width: 600px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.final-phrase {
    width: min(620px, 100%);
    margin: 40px auto 0;
    padding: 25px 35px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.final-phrase span {
    display: block;
    margin-bottom: 9px;
    color: var(--lilac);
    font-size: 7px;
    letter-spacing: 3px;
}

.final-phrase strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 400;
    font-style: italic;
}

.final-quote-box {
    width: min(720px, 100%);
    margin: 42px auto 0;
    padding: 27px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    text-align: left;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 18px 55px rgba(66, 48, 72, 0.08);
}

.final-quote-copy > span {
    color: var(--lilac);
    font-size: 7px;
    letter-spacing: 2px;
}

.final-quote-copy h2 {
    margin-top: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 400;
}

.final-quote-copy h2 em {
    color: var(--lilac);
}

.final-quote-copy p {
    max-width: 470px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.6;
}

.final-quote-button {
    flex-shrink: 0;
    min-width: 165px;
    padding: 14px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--lilac);
    color: white;
    font-size: 8px;
    letter-spacing: 0.8px;
    transition: 0.2s ease;
}

.final-quote-button:hover {
    background: var(--lilac-dark);
    transform: translateY(-2px);
}

.final-quote-button span {
    font-size: 14px;
}

.final-home {
    display: inline-block;
    margin-top: 27px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1px;
    transition: 0.2s ease;
}

.final-home:hover {
    color: var(--lilac);
}


/* TOAST */

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 20px);
    padding: 10px 16px;
    background: #302933;
    color: white;
    font-size: 8px;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    transition: 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* RESPONSIVE */

@media (max-width: 1050px) {

    .creator-layout {
        grid-template-columns: 255px minmax(0, 1fr);
    }

    .catalog-panel {
        padding-left: 17px;
        padding-right: 17px;
    }

    .hero-content {
        width: 92%;
    }

    .hero-copy h1 {
        font-size: 54px;
    }

}

@media (max-width: 800px) {

    .hero-header {
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 60px 0 100px;
        text-align: center;
    }

    .hero-copy {
        margin: auto;
    }

    .hero-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-art {
        display: none;
    }

    .hero-bottom {
        left: 20px;
        right: 20px;
    }

    .hero-bottom span:first-child {
        max-width: 450px;
    }

    .creator-layout {
        height: auto;
        min-height: 0;
        display: block;
    }

    .catalog-panel {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .items-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .creator-work {
        height: 650px;
    }

    .final-section {
        min-height: 700px;
    }

    .final-quote-box {
        flex-direction: column;
        align-items: stretch;
    }

    .final-quote-button {
        width: 100%;
    }

}

@media (max-width: 550px) {

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

    .hero-logo {
        display: none;
    }

    .hero-contact {
        justify-self: end;
    }

    .hero-copy h1 {
        font-size: 43px;
    }

    .hero-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .items-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .creator-header {
        padding: 0 15px;
    }

    .creator-back {
        font-size: 7px;
    }

    .creator-title {
        display: none;
    }

    .work-top,
    .work-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }

    .creation-message {
        display: none;
    }

    .work-bottom {
        justify-content: center;
    }

    .bouquet-canvas {
        width: 91%;
        height: 390px;
        min-height: 340px;
    }

    .workspace-hint {
        display: none;
    }

    .work-actions {
        width: 100%;
        justify-content: center;
    }

    .quote-button {
        min-width: 180px;
    }

    .final-section {
        padding: 70px 20px;
    }

    .final-content h1 {
        font-size: 40px;
    }

    .final-phrase {
        padding-left: 20px;
        padding-right: 20px;
    }

    .final-phrase strong {
        font-size: 17px;
    }

    .final-quote-box {
        padding: 23px 20px;
    }

} 
.element-wrapper .selection-box {
    display: none;
}

.element-wrapper.selected .selection-box {
    display: block;
}