:root {
    --ink: #0D1F2D;
    --ink-soft: #6C7280;
    --paper: #FFFFFF;
    --paper-warm: #F7F8F5;
    --surface: #F7F8F5;
    --line: #E2E5EC;
    --night: #0D1F2D;
    --night-2: #1A3050;
    --green: #B7F500;
    --green-dark: #95D600;
    --cyan: #169A9A;
    --orange: #F5A623;
    --red: #E85D4A;
    --green-text: #557000;
    --shadow: 0 18px 60px rgba(13, 31, 45, 0.16);
    --radius: 8px;
    --content: min(1120px, calc(100vw - 40px));
    --app-shot-width: 320px;
    --dashboard-padding: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 20;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 14px;
    left: 50%;
    right: auto;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--content);
    margin: 0;
    padding: 10px 12px 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(13, 31, 45, 0.74);
    color: white;
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(13, 31, 45, 0.94);
    box-shadow: 0 12px 40px rgba(13, 31, 45, 0.24);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-mark {
    display: block;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--green);
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.wordmark,
.hero-wordmark {
    color: #FFFFFF;
}

.wordmark span,
.hero-wordmark span {
    color: var(--green);
}

.site-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.site-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    outline: none;
}

.nav-toggle {
    display: none;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.language-picker {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-weight: 800;
}

.language-picker select {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font: inherit;
    padding: 0 34px 0 10px;
}

.language-picker option {
    color: var(--ink);
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: white;
    background: var(--night);
}

.hero-media,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(13, 31, 45, 0.94) 0%, rgba(13, 31, 45, 0.76) 38%, rgba(13, 31, 45, 0.18) 72%),
        linear-gradient(0deg, rgba(13, 31, 45, 0.9) 0%, rgba(13, 31, 45, 0.1) 44%);
}

.hero-content {
    position: relative;
    width: var(--content);
    max-width: calc(100% - 28px);
    margin: 0 auto;
    padding: 150px 0 54px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green-text);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow,
.section-dark .eyebrow {
    color: var(--green);
}

.section-accent .eyebrow {
    color: var(--night-2);
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: 8.25rem;
    line-height: 0.88;
    letter-spacing: 0;
}

.has-hero-animation .hero .eyebrow,
.has-hero-animation .hero-wordmark,
.has-hero-animation .hero-copy,
.has-hero-animation .hero-actions,
.has-hero-animation .hero-stats div {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(58px);
}

.has-hero-animation.hero-is-ready .hero .eyebrow,
.has-hero-animation.hero-is-ready .hero-wordmark,
.has-hero-animation.hero-is-ready .hero-copy,
.has-hero-animation.hero-is-ready .hero-actions,
.has-hero-animation.hero-is-ready .hero-stats div {
    animation: hero-reveal 980ms cubic-bezier(0.16, 0.84, 0.2, 1) both;
}

.has-hero-animation.hero-is-ready .hero-wordmark {
    animation-delay: 120ms;
}

.has-hero-animation.hero-is-ready .hero-copy {
    animation-delay: 240ms;
}

.has-hero-animation.hero-is-ready .hero-actions {
    animation-delay: 360ms;
}

.has-hero-animation.hero-is-ready .hero-stats div:nth-child(1) {
    animation-delay: 480ms;
}

.has-hero-animation.hero-is-ready .hero-stats div:nth-child(2) {
    animation-delay: 580ms;
}

.has-hero-animation.hero-is-ready .hero-stats div:nth-child(3) {
    animation-delay: 680ms;
}

@keyframes hero-reveal {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(42px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.hero-copy {
    max-width: 660px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.32rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    max-width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 12px 18px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

.button-primary {
    background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--night);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: white;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: 3px solid rgba(183, 245, 0, 0.28);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin: 52px 0 0;
}

.hero-stats div {
    min-height: 108px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-stats dt {
    color: white;
    font-size: 2.6rem;
    font-weight: 950;
    line-height: 1;
}

.hero-stats dd {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.section {
    scroll-margin-top: 96px;
    padding: 92px 0;
}

.section-light {
    background: var(--paper);
}

.section-dark {
    background: var(--night);
    color: white;
}

.section-planning {
    background:
        linear-gradient(180deg, var(--paper-warm) 0%, #FFFFFF 100%);
}

.section-accent {
    background: #EAF8C8;
}

.section-inner {
    width: var(--content);
    margin: 0 auto;
}

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

.has-reveal .reveal-on-scroll {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(72px) scale(0.96);
    will-change: opacity, filter, transform;
}

.has-reveal .reveal-on-scroll.reveal-play {
    animation: scroll-reveal 940ms cubic-bezier(0.16, 0.84, 0.2, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes scroll-reveal {
    from {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(72px) scale(0.96);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

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

.section-heading h2,
.cta h2 {
    margin: 0;
    font-size: 4.2rem;
    line-height: 1;
    letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.section-dark .section-heading p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.72);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.feature-card,
.integration-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-card {
    padding: 24px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    border-radius: 999px;
    background: var(--night);
    color: var(--green);
    font-size: 0.84rem;
    font-weight: 950;
}

.feature-card h3,
.timeline h3,
.integration-grid h3 {
    margin: 20px 0 10px;
    font-size: 1.15rem;
}

.feature-card p,
.timeline p,
.integration-grid p {
    margin: 0;
    color: var(--ink-soft);
}

.planning-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 46px;
    align-items: center;
}

.decision-panel {
    display: grid;
    gap: 12px;
}

.decision-step,
.signal-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 16px 44px rgba(13, 31, 45, 0.08);
}

.decision-step {
    position: relative;
    min-height: 132px;
    padding: 20px 20px 20px 86px;
    overflow: hidden;
}

.decision-step::before {
    position: absolute;
    left: 20px;
    top: 22px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--night);
    color: var(--green);
    font-weight: 950;
    content: "";
}

.decision-step:nth-child(1)::before {
    background: var(--cyan);
    color: white;
    content: "R";
}

.decision-step:nth-child(2)::before {
    content: "B";
}

.decision-step:nth-child(3)::before {
    background: var(--orange);
    color: var(--night);
    content: "Q";
}

.decision-step span {
    display: block;
    color: var(--green-text);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.decision-step strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 1.35rem;
}

.decision-step p,
.signal-grid p,
.session-families p,
.family-list {
    color: var(--ink-soft);
}

.decision-step p,
.signal-grid p {
    margin: 8px 0 0;
}

.planning-detail {
    margin-top: 54px;
}

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

.signal-grid article {
    padding: 22px;
}

.signal-grid h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 1.08rem;
}

.session-families {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    gap: 36px;
    align-items: start;
    margin-top: 46px;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--night);
    color: white;
}

.session-families .eyebrow {
    color: var(--green);
}

.session-families h2 {
    font-size: 2.7rem;
}

.session-families p {
    color: rgba(255, 255, 255, 0.72);
}

.family-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.family-list li {
    position: relative;
    min-height: 64px;
    padding: 16px 18px 16px 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.family-list li::before {
    position: absolute;
    left: 18px;
    top: 21px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    content: "";
}

.data-layout,
.integration-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 54px;
    align-items: center;
}

.panel-dashboard {
    width: 100%;
    padding: var(--dashboard-padding);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        var(--night-2);
    box-shadow: var(--shadow);
}

.metric-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.metric-list span {
    color: rgba(255, 255, 255, 0.62);
}

.rings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.rings span {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--night-2) 0 56%, transparent 57%),
        conic-gradient(var(--green) calc(var(--value) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.rings b {
    font-size: 2.2rem;
    line-height: 1;
}

.rings small {
    display: block;
    margin-top: -34%;
    color: rgba(255, 255, 255, 0.64);
    font-weight: 800;
}

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

.metric-list div {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.workout-flow {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1.1fr 0.8fr 0.65fr;
    gap: 8px;
    height: 48px;
    margin-top: 20px;
}

.workout-flow span {
    border-radius: 4px;
}

.zone-z2 { background: var(--green); }
.zone-z3 { background: var(--cyan); }
.zone-z4 { background: var(--orange); }
.zone-z5 { background: var(--red); }

.check-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: rgba(255, 255, 255, 0.78);
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
    content: "";
}

.app-carousel {
    --carousel-gap: 18px;
    --app-shot-ratio: 920 / 2048;
    margin-top: 30px;
    width: min(100%, var(--app-shot-width));
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
}

.panel-dashboard .app-carousel {
    margin-top: 0;
}

.app-carousel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.app-carousel-actions button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.app-carousel-actions button:hover,
.app-carousel-actions button:focus-visible {
    background: var(--green);
    color: var(--night);
    outline: none;
}

.app-carousel-track {
    display: flex;
    gap: var(--carousel-gap);
    overflow: visible;
    padding: 0;
    transition: transform 620ms cubic-bezier(0.22, 0.72, 0.2, 1);
    will-change: transform;
}

.app-shot {
    position: relative;
    display: grid;
    justify-items: center;
    width: min(100%, var(--app-shot-width));
    max-width: var(--app-shot-width);
    flex: 0 0 min(100%, var(--app-shot-width));
    margin: 0;
    background-color: transparent;
}

.app-shot img,
.app-shot-placeholder {
    display: block;
    width: 100%;
    max-width: var(--app-shot-width);
    aspect-ratio: var(--app-shot-ratio);
    border: 0;
    border-radius: 22px;
    background: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.app-shot img {
    height: auto;
    object-fit: contain;
    object-position: top center;
}

.app-shot-placeholder {
    display: none;
    place-items: center;
    background:
        linear-gradient(160deg, rgba(183, 245, 0, 0.12), rgba(22, 154, 154, 0.08)),
        #FFFFFF;
    color: var(--night);
    font-size: 1.4rem;
    font-weight: 950;
}

.app-shot.is-missing img {
    display: none;
}

.app-shot.is-missing .app-shot-placeholder {
    display: grid;
}

.app-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 8px;
}

.app-carousel-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition:
        width 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.app-carousel-dots button:hover,
.app-carousel-dots button:focus-visible {
    background: rgba(183, 245, 0, 0.72);
    outline: none;
    transform: translateY(-1px);
}

.app-carousel-dots button.is-active {
    width: 24px;
    background: var(--green);
}

.timeline {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.timeline li > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #EAF8C8;
    color: var(--green-text);
    font-weight: 950;
}

.timeline h3 {
    margin-top: 0;
}

.integration-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.integration-grid article {
    padding: 22px;
}

.integration-grid h3 {
    margin-top: 0;
}

.cta {
    padding: 92px 0;
    background: var(--paper-warm);
    text-align: center;
}

.cta-inner {
    width: min(820px, calc(100vw - 40px));
    margin: 0 auto;
}

.cta h2 {
    margin-bottom: 28px;
}

.cta .button-secondary,
.cta .button-primary {
    color: var(--night);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: var(--content);
    margin: 0 auto;
    padding: 28px 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 860px) {
    :root {
        --content: min(100vw - 28px, 720px);
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        padding: 8px;
        border-radius: var(--radius);
        background: rgba(13, 31, 45, 0.96);
        margin-left: 0;
    }

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

    .hero {
        min-height: 94vh;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, rgba(13, 31, 45, 0.95) 0%, rgba(13, 31, 45, 0.62) 58%, rgba(13, 31, 45, 0.28) 100%);
    }

    .hero-content {
        padding-bottom: 36px;
    }

    .hero h1 {
        font-size: 5.25rem;
    }

    .section-heading h2,
    .cta h2 {
        font-size: 3rem;
    }

    .hero-stats,
    .feature-grid,
    .planning-layout,
    .signal-grid,
    .session-families,
    .data-layout,
    .integration-layout,
    .integration-grid {
        grid-template-columns: 1fr;
    }

    .planning-layout,
    .data-layout,
    .integration-layout {
        gap: 34px;
    }

    .session-families {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .hero-content,
    .section-inner,
    .site-footer {
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
    }

    .site-header {
        top: 10px;
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
    }

    .language-picker {
        position: static;
        margin-left: 8px;
    }

    .language-picker span {
        display: none;
    }

    .language-picker select {
        width: 118px;
        padding-right: 10px;
    }

    .site-nav {
        top: calc(100% + 8px);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-copy {
        max-width: min(100%, 320px);
        font-size: 1.06rem;
    }

    .hero-stats dt {
        font-size: 2rem;
    }

    .section-heading h2,
    .cta h2 {
        font-size: 2.35rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-stats div {
        min-height: auto;
    }

    .section {
        scroll-margin-top: 88px;
        padding: 66px 0;
    }

    .timeline li {
        grid-template-columns: 1fr;
    }

    .decision-step {
        min-height: auto;
        padding: 84px 18px 18px;
    }

    .decision-step::before {
        left: 18px;
        top: 18px;
    }

    .session-families h2 {
        font-size: 2.1rem;
    }

    .rings {
        gap: 10px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .has-hero-animation .hero .eyebrow,
    .has-hero-animation .hero-wordmark,
    .has-hero-animation .hero-copy,
    .has-hero-animation .hero-actions,
    .has-hero-animation .hero-stats div,
    .has-reveal .reveal-on-scroll {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .app-carousel-track {
        transition: transform 620ms cubic-bezier(0.22, 0.72, 0.2, 1) !important;
    }
}
