* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
    color: #102016;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.shell {
    width: min(1380px, calc(100% - 72px));
    margin: auto;
}

.hero-wrap {
    height: 100svh;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.header {
    height: 96px;
    flex: 0 0 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: #102016;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
}

.download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 30px;
    border-radius: 999px;
    background: linear-gradient(100deg, #16a637 0%, #78a426 46%, #ff8210 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(22, 166, 55, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 130, 16, 0.18);
}

a:focus-visible {
    outline: 3px solid #ff8210;
    outline-offset: 4px;
}

.hero {
    height: calc(100svh - 96px);
    min-height: 554px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
    gap: 0;
    align-items: center;
    padding: 0 0 20px;
}

.meal-orbit {
    --orbit-size: min(59vw, calc(100svh - 102px), 840px);
    position: relative;
    margin: 0;
    width: var(--orbit-size);
    height: var(--orbit-size);
    justify-self: start;
    display: grid;
    place-items: center;
}

.meal-circle {
    position: relative;
    z-index: 1;
    width: 86%;
    height: 86%;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f4ef;
    box-shadow: 0 24px 58px rgba(19, 30, 21, 0.11), 0 0 0 9px #fff;
}

.meal {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
}

.loop-line {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.loop-circle {
    animation: dash-flow 10s linear infinite;
}

.orbit-item {
    --orbit-duration: 30s;
    position: absolute;
    z-index: 3;
    inset: 0;
    animation: orbit-spin var(--orbit-duration) linear infinite;
    animation-delay: var(--orbit-delay);
}

.orbit-plan {
    --orbit-delay: 0s;
    color: #16a637;
}

.orbit-log {
    --orbit-delay: -10s;
    color: #ef8a00;
}

.orbit-improve {
    --orbit-delay: -20s;
    color: #c99b08;
}

.pillar-node {
    position: absolute;
    left: 50%;
    top: 2.5%;
    width: 82px;
    height: 82px;
    margin-left: -41px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 24px rgba(19, 30, 21, 0.07);
    border: 1.2px solid currentColor;
    animation: orbit-counter var(--orbit-duration) linear infinite;
    animation-delay: var(--orbit-delay);
}

.pillar-node svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.copy {
    padding-right: 1vw;
    align-self: center;
    transform: translate(-2.3vw, -1vh);
}

.hero h1 {
    font-size: clamp(3.4rem, 5vw, 5.9rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 600;
    margin: 0;
    max-width: 700px;
}

.sub {
    font-size: clamp(1.05rem, 1.25vw, 1.28rem);
    line-height: 1.58;
    color: #4f5a52;
    max-width: 600px;
    margin: 24px 0 30px;
}

.hero-cta {
    min-width: 300px;
}

.footer {
    background: #131e15;
    color: #fff;
    padding: 58px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 0.85fr 0.7fr 1.2fr;
    gap: 54px;
    align-items: start;
}

.brand-footer {
    color: #fff;
    font-size: 1.75rem;
}

.brand-footer .logo-mark {
    width: 46px;
    height: 46px;
}

.footer-brand > p {
    color: #e1e7e2;
    margin: 14px 0 24px;
}

.play {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 17px;
    border: 1px solid #7b867d;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    line-height: 1.05;
}

.play-icon {
    font-size: 1.55rem;
    color: #fff;
}

.play small {
    display: block;
    font-size: 0.58rem;
    margin-bottom: 4px;
}

.footer h2 {
    font-size: 0.78rem;
    color: #72a842;
    letter-spacing: 0.06em;
    margin: 9px 0 20px;
}

.links {
    display: grid;
    gap: 13px;
}

.links a,
.muted-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.96rem;
}

.muted-link {
    opacity: 0.82;
}

.social {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 32px;
}

.social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    transform: translateY(-2px);
}

.social svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid #344137;
    margin-top: 46px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #b8c2ba;
    font-size: 0.84rem;
}

@keyframes orbit-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbit-counter {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -128;
    }
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 0;
    }

    .meal-orbit {
        --orbit-size: min(60vw, calc(100svh - 126px), 720px);
    }

    .meal-circle {
        width: 85%;
        height: 85%;
    }

    .pillar-node {
        width: 72px;
        height: 72px;
        margin-left: -36px;
        font-size: 0.58rem;
    }

    .pillar-node svg {
        width: 20px;
        height: 20px;
    }

    .copy {
        transform: translate(-1vw, -1vh);
    }

    .hero h1 {
        font-size: clamp(3rem, 5.6vw, 4.8rem);
    }
}

@media (max-width: 720px) {
    .hero-wrap {
        height: auto;
        min-height: 100svh;
        overflow: visible;
    }

    .shell {
        width: min(100% - 32px, 1380px);
    }

    .header {
        height: 78px;
        flex-basis: 78px;
    }

    .brand {
        font-size: 1.45rem;
        gap: 9px;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
        border-radius: 9px;
    }

    .header .download {
        min-height: 44px;
        padding: 10px 15px;
        font-size: 0.78rem;
    }

    .hero {
        height: auto;
        min-height: calc(100svh - 78px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 2px 0 34px;
    }

    .meal-orbit {
        order: 0;
        --orbit-size: min(98vw, 56svh, 540px);
        justify-self: auto;
    }

    .meal-circle {
        width: 84%;
        height: 84%;
        box-shadow: 0 18px 44px rgba(19, 30, 21, 0.11), 0 0 0 6px #fff;
    }

    .pillar-node {
        top: 3%;
        width: 62px;
        height: 62px;
        margin-left: -31px;
        gap: 3px;
        font-size: 0.5rem;
    }

    .pillar-node svg {
        width: 17px;
        height: 17px;
    }

    .copy {
        order: 1;
        width: 100%;
        padding: 0;
        transform: none;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 12vw, 4.1rem);
    }

    .sub {
        font-size: 1rem;
        margin: 18px 0 22px;
    }

    .hero-cta {
        min-width: 0;
        width: 100%;
    }

    .footer {
        padding-top: 46px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .social {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 0;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .brand-footer {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-item,
    .pillar-node,
    .loop-circle {
        animation: none;
    }

    .orbit-plan {
        transform: rotate(-65deg);
    }

    .orbit-log {
        transform: rotate(55deg);
    }

    .orbit-improve {
        transform: rotate(175deg);
    }

    .orbit-plan .pillar-node {
        transform: rotate(65deg);
    }

    .orbit-log .pillar-node {
        transform: rotate(-55deg);
    }

    .orbit-improve .pillar-node {
        transform: rotate(-175deg);
    }
}

@media (max-width: 370px) {
    .header .brand span {
        display: none;
    }

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

    .footer-brand,
    .social {
        grid-column: auto;
    }
}
