:root {
    --page-width: 760px;

    --black: #0b0b0c;
    --text: #111113;
    --secondary: #8b8b91;

    --radius-large: 30px;
    --radius-small: 26px;
}


/* RESET */

* {
    box-sizing: border-box;
}

html {
    background: transparent;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;

    background: #fff;
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        Inter,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
}

img {
    display: block;
}


/* PAGE */

.page {
    width: 100%;
    max-width: 680px;

    margin: 0 auto;

    overflow: hidden;

    background: #fff;

    container-type: inline-size;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 620px;

    padding: calc(28px + env(safe-area-inset-top)) 18px 56px;

    overflow: visible;
}


/* GLASS */

.hero-glass {
    position: absolute;

    width: 760px;
    height: 620px;

    top: 0;
    right: -250px;

    object-fit: cover;

    opacity: .72;

    pointer-events: none;
    user-select: none;

    z-index: 0;

    -webkit-mask-image:
        linear-gradient(
            to left,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,.95) 45%,
            rgba(0,0,0,.15) 80%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to left,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,.95) 45%,
            rgba(0,0,0,.15) 80%,
            transparent 100%
        );
}


/* HEADER */

.header {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    line-height: 1;

    font-weight: 750;
    letter-spacing: 4px;
}

.profile-button {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: transparent;
    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    cursor: pointer;
}

.profile-button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: #8e9299;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* HERO CONTENT */

.hero-content {
    position: relative;
    z-index: 3;

    padding-top: 120px;
}

.eyebrow {
    display: block;

    color: #97979d;

    font-size: 10px;
    line-height: 1;

    font-weight: 750;
    letter-spacing: 2.2px;
}

.hero h1 {
    margin: 16px 0 0;

    max-width: 560px;

    font-size: clamp(48px, 11vw, 76px);
    line-height: .94;

    font-weight: 800;
    letter-spacing: -4.5px;
}

.hero-content p {
    margin: 25px 0 0;

    color: #888b91;

    font-size: 17px;
    line-height: 1.45;

    letter-spacing: -.25px;
}


/* =========================
   APPLICATIONS
========================= */

.apps {
    position: relative;
    z-index: 5;

    padding: 0 18px;
}

.section-heading {
    margin: 0 6px 20px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.section-heading h2 {
    margin: 7px 0 0;

    font-size: 27px;
    line-height: 1;

    letter-spacing: -1px;
}

.apps-count {
    padding-bottom: 2px;

    color: #aaaab0;

    font-size: 11px;
    font-weight: 600;
}


/* =========================
   CARD
========================= */

.app-card {
    position: relative;

    display: block;

    overflow: hidden;

    border-radius: var(--radius-large);

    isolation: isolate;
}

.card-background {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -3;
}

.card-overlay {
    position: absolute;

    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.56) 0%,
            rgba(0,0,0,.20) 49%,
            rgba(0,0,0,0) 78%
        );
}

.card-content {
    position: absolute;

    left: 25px;
    bottom: 25px;

    z-index: 3;
}

.card-category {
    display: block;

    margin-bottom: 8px;

    color: rgba(0,0,0,.40);

    font-size: 9px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: 1.8px;
}

.card-content h3 {
    margin: 0;

    font-size: 31px;
    line-height: 1;

    font-weight: 750;
    letter-spacing: -1.3px;
}

.card-content p {
    margin: 10px 0 0;

    color: rgba(0,0,0,.48);

    font-size: 14px;
    line-height: 1.35;
}


/* LIGHT CARD TEXT */

.card-content--light {
    color: #fff;
}

.card-content--light .card-category {
    color: rgba(255,255,255,.58);
}

.card-content--light p {
    color: rgba(255,255,255,.67);
}


/* ARROW */

.card-arrow {
    position: absolute;

    top: 20px;
    right: 20px;

    z-index: 4;

    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.76);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.6);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.card-arrow svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: #111;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-arrow--dark {
    background: rgba(255,255,255,.17);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.2);
}

.card-arrow--dark svg {
    stroke: #fff;
}


/* GYM */

.app-card--gym {
    width: 100%;
    height: 285px;

    background: #151515;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.app-card--gym:active {
    transform: scale(.985);
}


/* GRID */

.apps-grid {
    margin-top: 14px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* SQUARE */

.app-card--square {
    aspect-ratio: 1 / 1;

    border-radius: var(--radius-small);

    transition:
        transform .2s ease,
        opacity .2s ease;
}


/* FINANCE */

.app-card--finance {
    background: #dff5ed;
}

.app-card--finance:active {
    transform: scale(.98);
}

.card-background--finance {
    object-position: center center;
}


/* =========================
   COMING SOON
========================= */

.app-card--soon {
    background:
        linear-gradient(
            145deg,
            #f8f8f9,
            #f0f0f2
        );

    cursor: default;
}

.app-card--soon .card-content {
    top: 25px;
    bottom: auto;
}

.app-card--soon .card-content p {
    margin-top: 8px;
}

.soon-label {
    display: inline-flex;

    margin-top: 18px;

    padding: 7px 10px;

    border-radius: 100px;

    background: rgba(255,255,255,.65);

    color: #96969c;

    font-size: 9px;
    line-height: 1;

    font-weight: 700;
    letter-spacing: .4px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* DECORATION */

.soon-decoration {
    position: absolute;

    width: 180px;
    height: 180px;

    right: -65px;
    bottom: -70px;

    border-radius: 50%;

    filter: blur(3px);

    opacity: .7;
}

.soon-decoration--violet {
    background:
        radial-gradient(
            circle,
            rgba(199,190,255,.75),
            rgba(220,215,255,.2) 60%,
            transparent 72%
        );
}

.soon-decoration--orange {
    background:
        radial-gradient(
            circle,
            rgba(255,215,173,.72),
            rgba(255,235,211,.2) 60%,
            transparent 72%
        );
}

.soon-decoration--blue {
    background:
        radial-gradient(
            circle,
            rgba(187,221,248,.72),
            rgba(219,238,252,.2) 60%,
            transparent 72%
        );
}


/* FOOTER */

.footer {
    margin: 70px 24px 0;

    padding:
        20px 0
        calc(30px + env(safe-area-inset-bottom));

    display: flex;
    justify-content: space-between;

    border-top: 1px solid #eeeeef;

    color: #b1b1b6;

    font-size: 10px;

    font-weight: 650;
    letter-spacing: 1px;
}


/* =========================
   SMALL IPHONES
========================= */

@container (max-width: 430px) {

    .hero {
        min-height: auto;
    }

    .hero-glass {
        width: 680px;
        height: 570px;

        right: -310px;
    }

    .hero-content {
        padding-top: 105px;
    }

    .hero h1 {
        font-size: 52px;
        letter-spacing: -3.5px;
    }

    .app-card--gym {
        height: 255px;
    }

    .card-content {
        left: 21px;
        bottom: 21px;
    }

    .card-content h3 {
        font-size: 28px;
    }

}


/* =========================
   VERY SMALL
========================= */


/* FRVME — BRAND LOGO */

.header .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header .logo img {
    display: block;
    width: 145px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}



/* FRVME — единый фон */
html {
    min-height: 100%;
    background: #f3f4f6;
}

body {
    min-height: 100vh;
    background: #f3f4f6 url('/assets/gym-background.png')
        center top / cover no-repeat;
}

/* Убираем белые подложки основных контейнеров */
body > main,
body > .app,
body > .container,
body > .page,
body > .wrapper,
.hero,
.hero-section,
.hero-glass {
    background: transparent !important;
}

/* Скрываем старый декоративный слой */
.hero-glass {
    display: none !important;
}


/* FRVME — компактная главная */
.hero,
.hero-section {
    min-height: 0 !important;
    height: auto !important;
    padding-top: calc(env(safe-area-inset-top) + 25px);
    padding-bottom: 0;
    margin-bottom: 0;
}

.hero h1,
.hero p:not(.eyebrow),
.hero-description,
.hero-subtitle {
    display: none !important;
}

.hero .eyebrow {
    display: none !important;
}

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



.header {
    position: relative;
}


/* FRVME — Glass Waves */





@container (max-width: 600px) {
    .profile-button {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }


    

    .header .logo img {
        width: 80px;
        height: auto;
    }

    .hero {
        min-height: 0;
        height: auto;
    }

    .hero-content {
        padding-top: 0;
    }

}


/* FRVME — минималистичная шапка */
.header-title {
    color: #777e87;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-decoration: none;
    white-space: nowrap;
}

/* FRVME — стеклянный логотип */
.frvme-brand-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 145px;
    overflow: hidden;
    pointer-events: none;
}

.frvme-brand-hero__logo {
    display: block;
    width: 88%;
    height: auto;
    opacity: 0.10;
    filter:
        drop-shadow(0 1px 0 rgba(255,255,255,.95))
        drop-shadow(0 9px 18px rgba(100,120,145,.12));
    transform: translateZ(0);
}

@container (max-width: 600px) {
    .frvme-brand-hero {
        height: 145px;
    }

    .frvme-brand-hero__logo {
        width: 88%;
    }
}
