/* ==========================================================================
   Gentium Labs — front page styles
   A cute, soft, playful "product studio" look: rounded everything, pastel
   gradients, floating blobs, gentle motion. All animation is CSS; the React
   layer only toggles a couple of state classes. Motion is fully disabled
   under prefers-reduced-motion.
   ========================================================================== */

:root {
    --violet:   #7c5cff;
    --violet-d: #5b3ff0;
    --pink:     #ff8fab;
    --mint:     #4fd1b0;
    --sunny:    #ffc94d;
    --sky:      #6ec6ff;
    --coral:    #ff9d7a;

    --ink:      #241c40;
    --ink-soft: #6b6488;
    --line:     #ece7ff;
    --card:     #ffffff;
    --cream:    #faf7ff;

    --shadow-sm: 0 2px 10px rgba(90, 60, 160, .08);
    --shadow-md: 0 12px 34px rgba(90, 60, 160, .14);
    --shadow-lg: 0 26px 60px rgba(90, 60, 160, .22);

    --radius:    22px;
    --radius-lg: 30px;
    --maxw:      1120px;

    --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
    --font-body:    "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--violet-d); }

/* ---------- boot / noscript ---------- */
.boot-screen {
    position: fixed; inset: 0;
    display: grid; place-items: center;
    background: var(--cream);
    z-index: 50;
}
.boot-mark {
    font-size: 42px; color: var(--violet);
    animation: spin-soft 1.4s ease-in-out infinite;
}
.noscript-note {
    max-width: 640px; margin: 40px auto; padding: 20px 24px;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm);
    text-align: center;
}

/* ==========================================================================
   Animated background
   ========================================================================== */
.bg {
    position: fixed; inset: 0; z-index: -2; overflow: hidden;
    background:
        radial-gradient(1200px 700px at 12% -8%, #efe7ff 0%, transparent 60%),
        radial-gradient(1000px 680px at 100% 0%, #ffe9f0 0%, transparent 55%),
        radial-gradient(900px 700px at 50% 115%, #e6fbf3 0%, transparent 55%),
        var(--cream);
}
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(46px); opacity: .55;
    animation: float 18s ease-in-out infinite;
    will-change: transform;
}
.blob.b1 { width: 380px; height: 380px; top: -60px;  left: -40px;
           background: var(--violet); animation-duration: 22s; }
.blob.b2 { width: 320px; height: 320px; top: 20%; right: -60px;
           background: var(--pink);   animation-duration: 26s; animation-delay: -4s; }
.blob.b3 { width: 300px; height: 300px; bottom: 4%; left: 8%;
           background: var(--mint);   animation-duration: 24s; animation-delay: -8s; }
.blob.b4 { width: 260px; height: 260px; bottom: 18%; right: 14%;
           background: var(--sky);    animation-duration: 28s; animation-delay: -12s; }

.stars { position: absolute; inset: 0; }
.star {
    position: absolute; color: #fff; opacity: 0;
    text-shadow: 0 0 8px rgba(124, 92, 255, .5);
    animation: twinkle 4s ease-in-out infinite;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
section { position: relative; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600;
    font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--violet-d);
    background: #fff; border: 1px solid var(--line);
    padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

h2.section-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(28px, 4.4vw, 44px); line-height: 1.08;
    letter-spacing: -.02em; margin: 18px 0 10px;
}
.section-sub { color: var(--ink-soft); font-size: 18px; max-width: 620px; }

/* Scroll-reveal: elements start shifted/faded, .in class drops them in. */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
    opacity: 1; transform: none;
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
    position: sticky; top: 0; z-index: 30;
    backdrop-filter: saturate(1.4) blur(10px);
    background: rgba(250, 247, 255, .72);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 20px;
    color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.brand .mark {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    color: #fff; font-size: 18px; box-shadow: var(--shadow-sm);
    animation: wiggle 6s ease-in-out infinite;
}
.nav-cta {
    font-family: var(--font-display); font-weight: 600;
    text-decoration: none; color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--violet-d));
    padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 7vw, 80px); text-align: center; }
.hero .eyebrow { animation: pop-in .6s ease both; }
.hero h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(40px, 8.4vw, 86px); line-height: 1.02;
    letter-spacing: -.03em; margin: 22px auto 0; max-width: 14ch;
}
.hero h1 .grad {
    background: linear-gradient(100deg, var(--violet) 0%, var(--pink) 48%, var(--coral) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% auto; animation: shine 7s linear infinite;
}
.hero p.lede {
    margin: 22px auto 0; max-width: 56ch;
    font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft);
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    font-family: var(--font-display); font-weight: 600; font-size: 16px;
    border: none; cursor: pointer; text-decoration: none;
    padding: 15px 26px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 9px;
    transition: transform .18s ease, box-shadow .18s ease, background .2s;
}
.btn-primary {
    color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-d));
    box-shadow: 0 10px 26px rgba(124, 92, 255, .38);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(124, 92, 255, .5); }
.btn-ghost {
    color: var(--ink); background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* floating mascot cluster under the hero */
.mascots {
    margin: 46px auto 0; position: relative; height: 120px; max-width: 520px;
}
.mascot {
    position: absolute; font-size: 44px;
    filter: drop-shadow(0 10px 14px rgba(90,60,160,.18));
    animation: bob 5s ease-in-out infinite;
}
.mascot:nth-child(1) { left: 4%;  top: 30%; animation-delay: -.2s; }
.mascot:nth-child(2) { left: 26%; top: 0;   font-size: 54px; animation-delay: -1.1s; }
.mascot:nth-child(3) { left: 50%; top: 42%; animation-delay: -2s; transform: translateX(-50%); }
.mascot:nth-child(4) { right: 24%; top: 4%; font-size: 50px; animation-delay: -2.8s; }
.mascot:nth-child(5) { right: 2%;  top: 34%; animation-delay: -3.6s; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin: 8px auto 0;
}
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 18px; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat .num {
    font-family: var(--font-display); font-weight: 700; font-size: 34px;
    line-height: 1; color: var(--violet-d);
}
.stat .label { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }

/* ==========================================================================
   Products
   ========================================================================== */
.products { padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); }
.products-head { text-align: center; display: grid; justify-items: center; }

.grid {
    margin-top: 46px;
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px 22px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease, border-color .22s;
    transform-style: preserve-3d;
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: var(--accent, var(--violet));
    opacity: .9;
}
.card::after {
    content: ""; position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--accent, var(--violet)); opacity: .10;
    transition: transform .3s ease, opacity .3s ease;
}
.card:hover {
    transform: translateY(-8px) rotate(-.6deg);
    box-shadow: var(--shadow-lg); border-color: transparent;
}
.card:hover::after { transform: scale(1.6); opacity: .16; }

.card .emoji {
    font-size: 38px; line-height: 1;
    display: inline-grid; place-items: center;
    width: 62px; height: 62px; border-radius: 18px;
    background: color-mix(in srgb, var(--accent) 14%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, #fff);
    transition: transform .3s ease;
}
.card:hover .emoji { transform: rotate(-8deg) scale(1.08); }

.card h3 {
    font-family: var(--font-display); font-weight: 600; font-size: 21px;
    margin: 16px 0 6px; letter-spacing: -.01em;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.card .pill {
    position: absolute; top: 18px; right: 18px;
    font-family: var(--font-display); font-weight: 500; font-size: 11px;
    letter-spacing: .04em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 999px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 26%, #fff);
}
.card .tag {
    display: inline-block; margin-top: 14px;
    font-size: 12px; color: var(--ink-soft);
    background: #f6f4ff; border: 1px solid var(--line);
    padding: 4px 10px; border-radius: 999px;
}

/* staggered card entrance */
.card.reveal { transition-delay: calc(var(--i, 0) * 45ms); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: clamp(60px, 10vw, 120px) 0 clamp(70px, 9vw, 120px); }
.contact-card {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    display: grid; grid-template-columns: 1fr 1.1fr;
    max-width: 940px; margin: 42px auto 0;
}
.contact-aside {
    position: relative;
    padding: 40px 34px; color: #fff;
    background: linear-gradient(150deg, var(--violet) 0%, var(--violet-d) 55%, #7b3ff0 100%);
    overflow: hidden;
}
.contact-aside::after {
    content: "✦"; position: absolute; right: -20px; bottom: -30px;
    font-size: 200px; opacity: .12; line-height: 1;
    animation: spin-soft 22s linear infinite;
}
.contact-aside h2 {
    font-family: var(--font-display); font-weight: 700; font-size: 30px;
    margin: 0 0 12px; letter-spacing: -.02em;
}
.contact-aside p { color: rgba(255,255,255,.9); font-size: 16px; }
.contact-aside .mail {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
    color: #fff; font-weight: 700; text-decoration: none;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
    padding: 10px 16px; border-radius: 999px;
}
.contact-aside .mail:hover { background: rgba(255,255,255,.26); }

.contact-form { padding: 40px 34px; }
.field { margin-bottom: 18px; }
.field label {
    display: block; font-family: var(--font-display); font-weight: 500;
    font-size: 14px; margin-bottom: 8px; color: var(--ink);
}
.field input, .field textarea {
    width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
    padding: 14px 16px; border-radius: 14px;
    border: 1.5px solid var(--line); background: #fbfaff;
    transition: border-color .18s, box-shadow .18s, background .18s;
    resize: vertical;
}
.field textarea { min-height: 130px; }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--violet); background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .16);
}
.field.err input, .field.err textarea { border-color: var(--pink); }
.field .hint { font-size: 13px; color: var(--pink); margin-top: 6px; min-height: 1px; }
.field .counter { float: right; font-size: 12px; color: var(--ink-soft); font-weight: 400; }

/* honeypot: visually and semantically hidden from humans */
.hp {
    position: absolute !important; left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}

.submit {
    width: 100%; justify-content: center; margin-top: 6px;
    font-size: 17px; padding: 16px 26px;
}
.submit[disabled] { opacity: .7; cursor: progress; }
.form-status { text-align: center; margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status.bad { color: var(--pink); font-weight: 600; }

.spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff;
    animation: spin-soft .7s linear infinite;
}

/* success overlay inside the form column */
.sent {
    text-align: center; padding: 30px 10px;
    animation: pop-in .5s cubic-bezier(.2,1.4,.4,1) both;
}
.sent .check {
    width: 78px; height: 78px; margin: 0 auto 16px; border-radius: 50%;
    display: grid; place-items: center; font-size: 40px; color: #fff;
    background: linear-gradient(135deg, var(--mint), #35b894);
    box-shadow: 0 12px 30px rgba(79, 209, 176, .45);
    animation: bounce-in .6s cubic-bezier(.2,1.5,.4,1) both;
}
.sent h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 8px; }
.sent p { color: var(--ink-soft); margin: 0; }
.sent button {
    margin-top: 20px; font-family: var(--font-display); font-weight: 600;
    background: none; border: none; color: var(--violet-d); cursor: pointer;
    font-size: 15px; text-decoration: underline;
}

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i {
    position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 3px;
    animation: fall linear forwards;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--line);
    padding: 40px 0; text-align: center; color: var(--ink-soft);
}
.footer .brand { justify-content: center; margin-bottom: 10px; font-size: 18px; }
.footer .small { font-size: 14px; }
.footer .heart { color: var(--pink); }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -24px) scale(1.06); }
    66%      { transform: translate(-22px, 18px) scale(.96); }
}
@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(.6); }
    50%      { opacity: .9; transform: scale(1); }
}
@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-16px) rotate(3deg); }
}
@keyframes shine { to { background-position: 200% center; } }
@keyframes spin-soft { to { transform: rotate(360deg); } }
@keyframes wiggle {
    0%, 92%, 100% { transform: rotate(0); }
    94% { transform: rotate(-10deg); }
    96% { transform: rotate(8deg); }
    98% { transform: rotate(-4deg); }
}
@keyframes pop-in {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes bounce-in {
    0%   { transform: scale(0);   }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1);   }
}
@keyframes fall {
    to { transform: translateY(105vh) rotate(720deg); opacity: .9; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
    .contact-card { grid-template-columns: 1fr; }
    .contact-aside { padding: 32px 28px; }
}
@media (max-width: 640px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .nav .brand span.full { display: none; }
    .mascots { display: none; }
}

/* ==========================================================================
   Reduced motion — respect it fully
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .blob { opacity: .4; }
    .star { display: none; }
}
