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

:root {
    --cream: #fbf4e7;
    --cream-light: #fffaf1;
    --ink: #15120f;
    --muted: #6e665d;
    --coral: #ff826c;
    --coral-dark: #db624f;
    --mint: #a9dfcf;
    --mint-dark: #4c9a83;
    --yellow: #f5d77c;
    --yellow-dark: #c9962f;
    --peach: #efc0a9;
    --blue: #bce4ec;
    --lilac: #d8c9ef;
    --brown: #7b5235;
    --line: rgba(21, 18, 15, 0.11);
    --shadow: 0 24px 64px rgba(78, 58, 37, 0.14);
    --soft-shadow: 0 16px 38px rgba(78, 58, 37, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background:
        linear-gradient(90deg, rgba(255, 130, 108, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(76, 154, 131, 0.04) 1px, transparent 1px),
        var(--cream);
    background-size: 88px 88px;
    color: var(--ink);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.58;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header,
.hero,
.quick-stats,
.alert-strip,
.section,
.references {
    width: min(1180px, calc(100% - 36px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.9);
    box-shadow: var(--soft-shadow);
    padding: 12px 14px;
    backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.nav-cta,
.button,
.ghost-button {
    display: inline-flex;
    align-items: center;
}

.brand {
    gap: 10px;
    min-width: 0;
    font-family: "Nunito", "Inter", sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.brand__mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 130, 108, 0.34);
    border-radius: 8px;
    background: #ffffff;
}

.brand__mark img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.site-nav {
    justify-content: center;
    gap: 6px;
}

.site-nav a,
.nav-cta {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    min-height: 38px;
    padding: 9px 12px;
}

.site-nav a {
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(169, 223, 207, 0.44);
    color: var(--ink);
    outline: none;
}

.nav-cta {
    justify-content: center;
    background: var(--coral);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(219, 98, 79, 0.22);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
    gap: 30px;
    align-items: center;
    min-height: calc(100vh - 88px);
    padding: 70px 0 54px;
}

.eyebrow {
    color: var(--coral-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Nunito", "Inter", sans-serif;
    font-weight: 900;
    line-height: 0.98;
}

h1 {
    margin-top: 14px;
    max-width: 680px;
    font-size: clamp(48px, 7vw, 86px);
}

h2 {
    margin-top: 10px;
    font-size: clamp(34px, 4.6vw, 62px);
}

h3 {
    font-size: 22px;
}

.hero__copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.deploy-section > div > p {
    margin-top: 18px;
    max-width: 660px;
    color: var(--muted);
    font-size: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button,
.ghost-button {
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
    padding: 13px 18px;
}

.button--primary {
    background: var(--coral);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(219, 98, 79, 0.24);
}

.button--secondary,
.ghost-button {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
}

.hero__visual {
    position: relative;
    min-height: 560px;
    isolation: isolate;
}

.hero__shape {
    position: absolute;
    inset: 30px 22px 26px 34px;
    z-index: -1;
    border-radius: 42% 58% 38% 62% / 52% 40% 60% 48%;
    background: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), var(--shadow);
}

.hero__rabbit {
    position: absolute;
    right: 26px;
    bottom: 34px;
    width: min(86%, 620px);
    height: min(76%, 430px);
    border: 10px solid rgba(255, 250, 241, 0.82);
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 24px 54px rgba(78, 58, 37, 0.16);
}

.floating-note {
    position: absolute;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.92);
    box-shadow: var(--soft-shadow);
    padding: 13px 14px;
}

.floating-note i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--yellow);
}

.floating-note span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.floating-note strong {
    font-size: 32px;
    line-height: 1;
}

.floating-note--one {
    left: 4px;
    top: 92px;
}

.floating-note--two {
    right: 0;
    top: 24px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    box-shadow: var(--soft-shadow);
}

.quick-stats article {
    display: grid;
    gap: 6px;
    background: rgba(255, 250, 241, 0.9);
    padding: 20px 22px;
}

.quick-stats span,
.scan-card__header span,
.stack-card span,
.references span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.quick-stats strong {
    font-family: "Nunito", "Inter", sans-serif;
    font-size: 32px;
    line-height: 1;
}

.section {
    padding: 86px 0 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

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

.signal-card {
    display: grid;
    justify-items: center;
    align-content: start;
    min-height: 330px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 44px;
    color: var(--ink);
    text-align: center;
    padding: 28px 18px 18px;
}

.signal-card--coral {
    background: var(--coral);
}

.signal-card--mint {
    background: var(--mint);
}

.signal-card--yellow {
    background: var(--yellow);
}

.signal-card--peach {
    background: var(--peach);
}

.signal-card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    font-size: 19px;
}

.signal-card h3 {
    max-width: 170px;
    margin-top: 18px;
    font-size: 23px;
    line-height: 1.08;
}

.signal-card__image {
    position: relative;
    width: min(150px, 82%);
    aspect-ratio: 1;
    margin-top: 26px;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 250, 241, 0.55);
}

.pellet-dot,
.shape-dot,
.signal-card__image--line span,
.signal-card__image--cluster span {
    position: absolute;
    display: block;
    background: var(--brown);
    box-shadow: inset -6px -7px 11px rgba(0, 0, 0, 0.14);
}

.pellet-dot {
    border-radius: 50%;
}

.pellet-dot--one {
    left: 30px;
    top: 54px;
    width: 46px;
    height: 42px;
}

.pellet-dot--two {
    right: 30px;
    top: 42px;
    width: 38px;
    height: 36px;
}

.pellet-dot--three {
    left: 62px;
    bottom: 30px;
    width: 26px;
    height: 24px;
}

.shape-dot {
    border-radius: 48% 52% 42% 58%;
}

.shape-dot--one {
    left: 25px;
    top: 42px;
    width: 48px;
    height: 35px;
    transform: rotate(-18deg);
}

.shape-dot--two {
    right: 28px;
    top: 56px;
    width: 37px;
    height: 48px;
    transform: rotate(10deg);
}

.shape-dot--three {
    left: 57px;
    bottom: 29px;
    width: 44px;
    height: 32px;
    transform: rotate(20deg);
}

.signal-card__image--line span {
    left: 18px;
    top: 66px;
    width: 116px;
    height: 15px;
    border-radius: 999px;
    transform: rotate(-16deg);
}

.signal-card__image--cluster span {
    inset: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 32%, var(--brown) 0 16%, transparent 17%),
        radial-gradient(circle at 62% 28%, var(--brown) 0 15%, transparent 16%),
        radial-gradient(circle at 46% 61%, var(--brown) 0 18%, transparent 19%),
        radial-gradient(circle at 72% 65%, var(--brown) 0 14%, transparent 15%);
    box-shadow: none;
}

.alert-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-top: 78px;
    border: 1px solid rgba(219, 98, 79, 0.24);
    border-radius: 8px;
    background: rgba(255, 130, 108, 0.12);
    color: #70453b;
    padding: 18px 20px;
}

.alert-strip i {
    margin-top: 4px;
    color: var(--coral-dark);
}

.analyzer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 20px;
}

.scan-card,
.results-card,
.model-grid article,
.stack-card {
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.92);
    box-shadow: var(--soft-shadow);
}

.scan-card,
.results-card {
    padding: 18px;
}

.scan-card {
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.95), rgba(255, 255, 255, 0.78));
}

.scan-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.scan-card__header strong {
    display: block;
    margin-top: 4px;
    font-family: "Nunito", "Inter", sans-serif;
    font-size: 25px;
    font-weight: 900;
}

.drop-zone {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 122px;
    border: 2px dashed rgba(76, 154, 131, 0.38);
    border-radius: 8px;
    background: rgba(169, 223, 207, 0.28);
    color: var(--ink);
    text-align: center;
    padding: 18px;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.drop-zone i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--mint-dark);
    font-size: 20px;
}

.drop-zone span {
    font-weight: 900;
}

.drop-zone small {
    color: var(--muted);
}

.drop-zone.is-dragging {
    border-color: var(--coral-dark);
    background: rgba(255, 130, 108, 0.16);
    transform: translateY(-2px);
}

.image-stage {
    position: relative;
    min-height: 430px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.96), transparent 27%),
        linear-gradient(135deg, #f8eddd, #f0dbc8 48%, #dbbca4);
}

.image-stage img {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.image-stage.has-upload img {
    display: block;
}

.image-stage.has-upload .sample-litter {
    display: none;
}

.sample-litter {
    position: absolute;
    inset: 0;
}

.sample-litter::before {
    content: "";
    position: absolute;
    inset: 44px;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(235, 214, 196, 0.36)),
        repeating-linear-gradient(18deg, transparent 0 18px, rgba(109, 91, 74, 0.08) 19px 20px);
    box-shadow: inset 0 0 0 1px rgba(109, 91, 74, 0.1);
}

.pellet {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    background: #6e5037;
    box-shadow: inset -5px -6px 9px rgba(0, 0, 0, 0.16), 0 7px 14px rgba(93, 76, 59, 0.2);
}

.pellet--one {
    left: 22%;
    top: 41%;
    width: 48px;
    height: 43px;
}

.pellet--two {
    left: 35%;
    top: 56%;
    width: 42px;
    height: 39px;
}

.pellet--three {
    left: 62%;
    top: 39%;
    width: 44px;
    height: 41px;
}

.pellet--four {
    left: 72%;
    top: 61%;
    width: 38px;
    height: 36px;
}

.pellet--small {
    left: 52%;
    top: 58%;
    width: 24px;
    height: 22px;
    background: #755b3d;
}

.pellet--string {
    left: 22%;
    top: 68%;
    width: 132px;
    height: 13px;
    border-radius: 999px;
    background: #786249;
    transform: rotate(-14deg);
}

.pellet--cluster {
    left: 66%;
    top: 22%;
    width: 92px;
    height: 72px;
    background:
        radial-gradient(circle at 24% 30%, #6f573d 0 17%, transparent 18%),
        radial-gradient(circle at 54% 24%, #6f573d 0 17%, transparent 18%),
        radial-gradient(circle at 38% 60%, #6f573d 0 18%, transparent 19%),
        radial-gradient(circle at 72% 58%, #6f573d 0 17%, transparent 18%);
    box-shadow: none;
}

.detection {
    position: absolute;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    min-width: 136px;
    border: 2px solid var(--coral-dark);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.9);
    color: var(--coral-dark);
    font-size: 12px;
    font-weight: 900;
    padding: 5px 7px;
}

.detection strong {
    color: var(--ink);
}

.detection--small {
    left: 48%;
    top: 54%;
}

.detection--shape {
    left: 31%;
    top: 52%;
    border-color: var(--yellow-dark);
    color: #9e7625;
}

.detection--hair {
    left: 20%;
    top: 66%;
    border-color: #9b86c7;
    color: #6d5aa4;
}

.detection--ceco {
    left: 63%;
    top: 20%;
    border-color: var(--mint-dark);
    color: #387866;
}

.results-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.risk-meter {
    display: grid;
    gap: 6px;
    border-radius: 8px;
    background: var(--mint);
    padding: 22px;
}

.risk-meter span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.risk-meter strong {
    font-family: "Nunito", "Inter", sans-serif;
    color: var(--ink);
    font-size: 62px;
    font-weight: 900;
    line-height: 1;
}

.risk-meter small {
    color: rgba(21, 18, 15, 0.72);
    font-weight: 800;
}

.risk-bar {
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.risk-bar span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mint-dark), var(--yellow-dark), var(--coral-dark));
}

.result-list {
    display: grid;
    gap: 10px;
}

.result-item {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-left: 7px solid var(--coral);
    border-radius: 8px;
    background: #ffffff;
    padding: 13px 14px;
}

.result-item:nth-child(2) {
    border-left-color: var(--yellow);
}

.result-item:nth-child(3) {
    border-left-color: var(--lilac);
}

.result-item:nth-child(4) {
    border-left-color: var(--mint);
}

.result-item strong {
    color: var(--ink);
}

.result-item span,
.summary-box p,
.stack-card li,
.model-grid p {
    color: var(--muted);
    font-size: 14px;
}

.summary-box {
    border: 1px solid rgba(219, 98, 79, 0.18);
    border-radius: 8px;
    background: rgba(255, 130, 108, 0.1);
    padding: 16px;
}

.summary-box span {
    color: #70453b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.summary-box p {
    margin-top: 8px;
}

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

.model-grid article {
    padding: 24px;
    text-align: center;
}

.model-avatar {
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    margin: 0 auto 18px;
    border: 8px solid rgba(255, 250, 241, 0.72);
    border-radius: 50%;
    color: var(--ink);
    font-size: 34px;
}

.model-avatar--coral {
    background: var(--coral);
}

.model-avatar--mint {
    background: var(--mint);
}

.model-avatar--yellow {
    background: var(--yellow);
}

.model-grid p {
    margin-top: 10px;
}

.deploy-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 54px;
}

.stack-card {
    padding: 24px;
}

.stack-card ul {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    list-style: none;
}

.stack-card li {
    border-left: 5px solid var(--mint);
    padding-left: 12px;
}

.references {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    padding: 28px 0 38px;
}

.references a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 800;
    padding: 8px 10px;
}

@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: auto auto;
    }

    .site-nav {
        display: none;
    }

    .nav-cta {
        justify-self: end;
    }

    .hero,
    .analyzer-grid,
    .deploy-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero__visual {
        min-height: 500px;
    }

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

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

@media (max-width: 680px) {
    .site-header,
    .hero,
    .quick-stats,
    .alert-strip,
    .section,
    .references {
        width: min(100% - 24px, 1180px);
    }

    .site-header {
        top: 8px;
        grid-template-columns: 1fr;
    }

    .nav-cta {
        width: 100%;
    }

    .hero {
        padding-top: 46px;
    }

    .hero__actions,
    .hero__actions .button {
        width: 100%;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__visual {
        min-height: 410px;
    }

    .hero__shape {
        inset: 28px 0 26px;
    }

    .hero__rabbit {
        right: 16px;
        bottom: 30px;
        width: calc(100% - 32px);
        height: 300px;
    }

    .floating-note {
        position: relative;
        inset: auto;
        width: fit-content;
        max-width: 92%;
        margin: 0 0 10px;
    }

    .quick-stats,
    .signal-grid,
    .model-grid {
        grid-template-columns: 1fr;
    }

    .signal-card {
        min-height: 292px;
    }

    .scan-card__header {
        align-items: stretch;
        flex-direction: column;
    }

    .ghost-button {
        width: 100%;
    }

    .image-stage,
    .image-stage img {
        min-height: 360px;
    }

    .detection {
        min-width: 116px;
        font-size: 10px;
    }

    .detection--small {
        left: 45%;
    }

    .detection--shape {
        left: 18%;
    }

    .detection--hair {
        left: 13%;
    }

    .detection--ceco {
        left: 48%;
    }
}
