:root {
    --ink: #071426;
    --ink-soft: #14263f;
    --navy: #09214a;
    --blue: #187ad6;
    --green: #20b852;
    --orange: #ff7a1a;
    --paper: #ffffff;
    --mist: #f2f6f8;
    --line: rgba(7, 20, 38, 0.12);
    --muted: #647084;
    --shadow: 0 22px 60px rgba(7, 20, 38, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.sr-only,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 9999;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    color: var(--paper);
    background: var(--ink);
    border-radius: 8px;
}

.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(255, 255, 255, 0.94);
    border-color: var(--line);
    box-shadow: 0 12px 28px rgba(7, 20, 38, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: 138px;
    height: auto;
}

.site-header:not(.is-scrolled):not(.is-open) .brand img {
    filter: brightness(0) invert(1);
    opacity: 0.94;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 800;
    padding: 10px 12px;
    border-radius: 8px;
    transition: color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled .site-nav a,
.site-header.is-open .site-nav a {
    color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(24, 122, 214, 0.12);
    color: var(--blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    color: var(--paper);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.site-header.is-scrolled .lang-switch,
.site-header.is-open .lang-switch {
    color: var(--ink);
    background: var(--mist);
    border-color: var(--line);
}

.lang-switch span {
    min-width: 34px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    border-radius: 6px;
}

.lang-switch span[aria-current="true"] {
    background: var(--paper);
    color: var(--blue);
}

.lang-switch .is-muted {
    opacity: 0.55;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--paper);
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
    color: var(--ink);
    border-color: var(--line);
    background: var(--paper);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--paper);
    background: var(--green);
    box-shadow: 0 16px 30px rgba(32, 184, 82, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #159a44;
}

.btn-secondary {
    color: var(--paper);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.btn-light {
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.btn-small {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 14px;
}

.btn-large {
    min-height: 56px;
    padding: 16px 24px;
    font-size: 17px;
}

.hero {
    position: relative;
    min-height: 88svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--paper);
    background:
        linear-gradient(90deg, rgba(3, 12, 24, 0.92) 0%, rgba(3, 12, 24, 0.72) 43%, rgba(3, 12, 24, 0.24) 100%),
        url("../images/bigbackground_summerbeach.png") center / cover no-repeat,
        var(--ink);
    padding: 122px 0 72px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    background:
        linear-gradient(180deg, rgba(3, 12, 24, 0), rgba(3, 12, 24, 0.54)),
        radial-gradient(circle at 18% 72%, rgba(24, 122, 214, 0.24), transparent 28%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero-content h1 {
    max-width: 820px;
    margin: 0;
    font-size: 68px;
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 21px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-row span {
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.section {
    padding: 92px 0;
}

.section-tight {
    padding-top: 76px;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-eyebrow {
    color: #88d7ff;
}

h2 {
    margin: 0;
    color: var(--ink);
    font-size: 42px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
}

.section-head p:not(.eyebrow),
.split-layout > div > p,
.story-intro p:not(.eyebrow),
.app-layout > div > p,
.final-cta p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
}

.notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px 20px;
    color: var(--ink);
    background: #eef7ff;
    border: 1px solid rgba(24, 122, 214, 0.22);
    border-radius: 8px;
    font-weight: 800;
}

.notice a {
    color: var(--blue);
    font-weight: 950;
}

.feature-grid,
.benefit-grid,
.health-grid {
    display: grid;
    gap: 16px;
}

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

.benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

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

.feature-card,
.benefit-card,
.health-grid article,
.why-stack article {
    min-height: 190px;
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(7, 20, 38, 0.07);
}

.feature-number {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: var(--paper);
    background: var(--blue);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 950;
}

.feature-card p,
.benefit-card p,
.health-grid p,
.why-stack p,
.story-item p,
.step p,
.faq-item p,
.page-footer p {
    color: var(--muted);
}

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

.section-ink h2,
.section-ink h3 {
    color: var(--paper);
}

.section-ink .eyebrow {
    color: #7fd7ff;
}

.section-ink p,
.section-ink .why-stack p,
.section-ink .health-grid p {
    color: rgba(255, 255, 255, 0.72);
}

.section-ink .health-grid article {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
        linear-gradient(180deg, rgba(24, 122, 214, 0.18), rgba(32, 184, 82, 0.08));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.section-ink .health-grid article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.section-ink .health-grid h3 {
    color: var(--paper);
}

.section-ink .health-grid p {
    color: rgba(255, 255, 255, 0.76);
}

.split-layout {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 54px;
    align-items: center;
}

.split-layout h2,
.story-intro h2,
.app-layout h2 {
    margin-bottom: 20px;
}

.split-layout .btn {
    margin-top: 20px;
}

.why-stack {
    display: grid;
    gap: 14px;
}

.why-stack article {
    min-height: auto;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.visual-band {
    background: var(--mist);
}

.media-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr 1.1fr;
    gap: 16px;
    align-items: stretch;
}

.media-grid img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: var(--paper);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-story {
    background: var(--paper);
}

.story-intro {
    max-width: 820px;
    margin-bottom: 36px;
}

.story-list {
    display: grid;
    gap: 22px;
}

.story-item {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 28px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.story-item:nth-child(even) {
    grid-template-columns: 1fr 330px;
}

.story-item:nth-child(even) img {
    order: 2;
}

.story-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.story-item h3 {
    font-size: 28px;
}

.story-item a {
    display: inline-flex;
    margin-top: 6px;
    color: var(--blue);
    font-weight: 950;
}

.micro-note {
    max-width: 760px;
    margin: 34px auto 0;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    font-size: 14px;
}

.app-section {
    background: #f7faf8;
}

.app-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: center;
}

.phone-composition {
    position: relative;
    min-height: 540px;
}

.phone-main {
    width: min(430px, 80%);
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.phone-side {
    position: absolute;
    width: 210px;
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 42px rgba(7, 20, 38, 0.16);
}

.phone-side-top {
    top: 18px;
    right: 0;
}

.phone-side-bottom {
    left: 0;
    bottom: 20px;
}

.steps {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}

.step {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.step-no {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--paper);
    background: var(--orange);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 950;
}

.cta-strip {
    color: var(--paper);
    background: linear-gradient(90deg, var(--blue), var(--green));
    padding: 48px 0;
}

.cta-strip h2 {
    color: var(--paper);
    font-size: 34px;
}

.cta-strip .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.faq-section {
    background: var(--mist);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    overflow: hidden;
}

.faq-item summary {
    position: relative;
    display: block;
    padding: 20px 56px 20px 22px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue);
    font-size: 26px;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "×";
}

.faq-item p {
    margin: 0;
    padding: 0 22px 22px;
}

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

.mini-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(7, 20, 38, 0.08);
}

.final-cta {
    text-align: center;
    color: var(--paper);
    background:
        linear-gradient(rgba(7, 20, 38, 0.82), rgba(7, 20, 38, 0.86)),
        url("../images/weights_generic.png") center / cover no-repeat;
}

.final-cta h2 {
    color: var(--paper);
    max-width: 860px;
    margin: 0 auto;
}

.final-cta p:not(.eyebrow) {
    max-width: 680px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.78);
}

.final-cta .hero-cta {
    justify-content: center;
}

.page-footer {
    color: rgba(255, 255, 255, 0.72);
    background: #050d18;
    padding: 58px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.1fr;
    gap: 38px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 16px;
    filter: brightness(1.6);
}

.page-footer h2 {
    color: var(--paper);
    font-size: 18px;
    margin-bottom: 14px;
}

.page-footer a {
    color: #8ed5ff;
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 68px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

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

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

    .header-actions .lang-switch {
        display: none;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .feature-grid,
    .benefit-grid,
    .health-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-layout,
    .app-layout {
        grid-template-columns: 1fr;
    }

    .phone-composition {
        min-height: auto;
        padding-bottom: 110px;
    }

    .phone-side-top {
        right: 24px;
    }

    .phone-side-bottom {
        left: 24px;
        bottom: 0;
    }

    .story-item,
    .story-item:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .story-item:nth-child(even) img {
        order: 0;
    }

    .media-grid,
    .mini-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .wrap,
    .hero-content {
        width: calc(100% - 28px);
        max-width: 1160px;
    }

    .brand img {
        width: 118px;
    }

    .header-actions .btn {
        display: none;
    }

    .hero {
        min-height: 86svh;
        padding: 104px 0 52px;
    }

    .hero-content h1 {
        max-width: 340px;
        font-size: 36px;
        line-height: 1.02;
    }

    .hero-lead {
        max-width: 330px;
        font-size: 18px;
    }

    .hero-cta,
    .trust-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 330px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .trust-row span {
        text-align: center;
    }

    .section {
        padding: 68px 0;
    }

    h2 {
        font-size: 32px;
    }

    .section-head p:not(.eyebrow),
    .split-layout > div > p,
    .story-intro p:not(.eyebrow),
    .app-layout > div > p,
    .final-cta p:not(.eyebrow) {
        font-size: 16px;
    }

    .notice {
        display: block;
    }

    .notice a {
        display: inline-flex;
        margin-top: 10px;
    }

    .feature-grid,
    .benefit-grid,
    .health-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .media-grid img,
    .mini-gallery img {
        height: auto;
        max-height: 330px;
    }

    .story-item {
        padding: 12px;
    }

    .story-item h3 {
        font-size: 24px;
    }

    .phone-side {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    .phone-main {
        width: 100%;
    }

    .phone-composition {
        padding-bottom: 0;
    }

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

    .cta-strip-inner,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-strip h2 {
        font-size: 28px;
    }
}
