/* =========================================================
   BASE
========================================================= */

:root {
    --black: #111216;
    --text: #17181d;
    --muted: #686a76;

    --purple: #826cff;
    --purple-light: #f2efff;

    --green: #55b985;
    --green-light: #eefaf3;

    --border: #e9e9ee;
    --white: #ffffff;

    --page-width: 1180px;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: #fefeff;

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


img {
    display: block;
    max-width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input {
    font: inherit;
}


section {
    scroll-margin-top: 90px;
}



/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(255,255,255,.82);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transition:
        box-shadow .25s ease,
        border-color .25s ease;
}


.site-header.scrolled {
    border-bottom: 1px solid rgba(0,0,0,.05);

    box-shadow:
        0 10px 35px rgba(30,25,60,.035);
}


.nav-container {
    width: min(calc(100% - 48px), var(--page-width));
    height: 92px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    width: fit-content;
}


.logo-symbol {
    width: 38px;
    height: 38px;

    object-fit: contain;
}


.logo-name {
    font-size: 19px;

    letter-spacing: -.035em;
}


.logo-name strong {
    font-weight: 650;
}


.desktop-navigation {
    display: flex;

    align-items: center;

    gap: 45px;
}


.desktop-navigation a {
    position: relative;

    padding: 10px 0;

    font-size: 14px;
}


.desktop-navigation a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 2px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--purple);

    opacity: 0;

    transform:
        translateX(-50%)
        translateY(5px);

    transition: .2s;
}


.desktop-navigation a:hover::after {
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}


.nav-button {
    justify-self: end;

    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding: 14px 21px;

    border-radius: 999px;

    background: var(--black);
    color: white;

    font-size: 13px;

    transition:
        transform .2s,
        box-shadow .2s;
}


.nav-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(20,20,30,.15);
}


.menu-button,
.mobile-navigation {
    display: none;
}



/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 720px;

    padding:
        150px 0
        35px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 73% 44%,
            rgba(132,108,255,.13),
            transparent 31%
        );
}


.hero-inner {
    width: min(calc(100% - 48px), var(--page-width));

    min-height: 550px;

    margin: auto;

    display: grid;

    grid-template-columns:
        .92fr 1.08fr;

    align-items: center;

    gap: 55px;
}


.eyebrow {
    margin:
        0 0 25px;

    color: var(--purple);

    font-size: 11px;
    font-weight: 650;

    letter-spacing: .28em;
}


.hero h1 {
    max-width: 570px;

    margin: 0;

    font-size:
        clamp(60px, 5.4vw, 78px);

    line-height: .98;

    font-weight: 620;

    letter-spacing: -.06em;
}


.hero h1 span {
    color: #9584f6;
}


.hero-description {
    max-width: 430px;

    margin:
        35px 0 0;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.7;
}


.hero-buttons {
    margin-top: 42px;

    display: flex;

    align-items: center;

    gap: 30px;
}


.primary-button {
    min-height: 53px;

    padding:
        0 22px;

    display: inline-flex;

    align-items: center;

    gap: 20px;

    border-radius: 9px;

    background: var(--black);

    color: white;

    font-size: 14px;

    transition:
        transform .2s,
        box-shadow .2s;
}


.primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(20,20,30,.16);
}


.secondary-link {
    display: flex;

    align-items: center;

    gap: 13px;

    font-size: 14px;
}


.circle-arrow {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: white;

    transition: transform .2s;
}


.secondary-link:hover .circle-arrow {
    transform: translateY(4px);
}



/* =========================================================
   HERO PHONE
========================================================= */

.hero-phone-area {
    position: relative;

    min-height: 570px;

    display: flex;
    align-items: center;
    justify-content: center;

    perspective: 1200px;

    /*
       Tworzy własny stacking context.
       Aura i ringi nie mogą wejść przed telefon.
    */
    isolation: isolate;
}


/* miękka poświata ZA telefonem */

.hero-phone-area .hero-aura {
    position: absolute;

    z-index: 0;

    left: 50%;
    top: 48%;

    width: 560px;
    height: 560px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(143,121,255,.22),
            rgba(171,154,255,.09) 48%,
            transparent 70%
        );

    pointer-events: none;
}


/* ringi ZA telefonem */

.hero-phone-area .aura-line {
    position: absolute;

    z-index: 1;

    left: 50%;
    top: 48%;

    border:
        1px solid rgba(142,118,255,.11);

    border-radius: 50%;

    transform:
        translate(-50%, -50%);

    pointer-events: none;
}


.hero-phone-area .aura-line-one {
    width: 480px;
    height: 480px;
}


.hero-phone-area .aura-line-two {
    width: 610px;
    height: 610px;
}


/* właściwy PNG telefonu */

.hero-phone-mockup {
    position: relative;

    z-index: 10;

    display: block;

    width: min(100%, 520px);
    height: auto;

    transform:
        rotateX(0deg)
        rotateY(0deg)
        scale(1);

    transform-origin: center center;

    transition:
        transform 0.65s cubic-bezier(.2,.8,.2,1),
        filter 0.65s cubic-bezier(.2,.8,.2,1);

    will-change: transform;

    filter:
        drop-shadow(
            0 28px 32px
            rgba(0,0,0,.12)
        )
        drop-shadow(
            0 8px 12px
            rgba(0,0,0,.06)
        );

    user-select: none;
    -webkit-user-drag: none;

    /*
       Ruch myszy łapie kontener,
       a nie sam PNG.
    */
    pointer-events: none;
}


.hero-phone-area.is-tilting .hero-phone-mockup {
    filter:
        drop-shadow(
            0 36px 40px
            rgba(0,0,0,.15)
        )
        drop-shadow(
            0 12px 16px
            rgba(0,0,0,.07)
        );
}



/* =========================================================
   OLD DEVICE STYLES
   Used by phones in app cards
========================================================= */

.device,
.mini-device {
    position: absolute;

    overflow: hidden;

    background: #fff;

    border:
        6px solid #17181c;

    box-shadow:
        0 35px 65px rgba(28,24,55,.17);
}


.device {
    width: 235px;

    aspect-ratio: 9 / 19.4;

    border-radius: 37px;
}


.device img,
.mini-device img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.device-speaker {
    position: absolute;

    z-index: 10;

    top: 9px;
    left: 50%;

    width: 72px;
    height: 20px;

    transform:
        translateX(-50%);

    border-radius: 20px;

    background: #111216;
}


.device-left {
    z-index: 3;

    left: 17%;
    top: 0;

    transform: rotate(-3deg);
}


.device-right {
    z-index: 2;

    right: 3%;
    top: 58px;

    transform: rotate(3deg);
}



/* =========================================================
   BENEFITS
========================================================= */

.benefits {
    width: min(calc(100% - 48px), var(--page-width));

    margin: auto;
}


.benefits-inner {
    min-height: 120px;

    padding:
        24px 35px;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    align-items: center;

    border:
        1px solid var(--border);

    border-radius: 23px;

    background:
        rgba(255,255,255,.92);

    box-shadow:
        0 12px 40px rgba(30,25,50,.025);
}


.benefit {
    min-height: 68px;

    padding:
        0 35px;

    display: flex;

    align-items: center;

    gap: 21px;

    border-right:
        1px solid var(--border);
}


.benefit:last-child {
    border-right: 0;
}


.benefit-icon {
    flex:
        0 0 62px;

    width: 62px;
    height: 62px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        #f5f2ff;

    color: var(--purple);

    font-size: 29px;
}


.heart {
    font-size: 38px;
    font-weight: 300;
}


.lock-icon span {
    position: relative;

    width: 24px;
    height: 21px;

    border:
        2px solid var(--purple);

    border-radius: 4px;
}


.lock-icon span::before {
    content: "";

    position: absolute;

    left: 4px;
    top: -14px;

    width: 12px;
    height: 13px;

    border:
        2px solid var(--purple);

    border-bottom: 0;

    border-radius:
        8px 8px 0 0;
}


.benefit h2 {
    margin:
        0 0 5px;

    font-size: 15px;
}


.benefit p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;
}



/* =========================================================
   APPS
========================================================= */

.apps-section {
    width: min(calc(100% - 48px), var(--page-width));

    margin: auto;

    padding:
        100px 0
        35px;
}


.section-heading {
    text-align: center;

    margin-bottom: 40px;
}


.section-heading .eyebrow {
    margin-bottom: 14px;
}


.section-heading h2 {
    margin: 0;

    font-size:
        clamp(34px, 4vw, 45px);

    letter-spacing: -.045em;

    font-weight: 610;
}


.apps-grid {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 24px;
}


.app-card {
    position: relative;

    min-height: 445px;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    border:
        1px solid var(--border);

    border-radius: 26px;

    transition:
        transform .3s,
        box-shadow .3s;
}


.app-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 25px 65px rgba(30,25,50,.08);
}


.daily-card {
    background:
        linear-gradient(
            135deg,
            #fff 55%,
            #eee9ff
        );
}


.step-card {
    background:
        linear-gradient(
            135deg,
            #fff 55%,
            #e9f8ef
        );
}


.app-copy {
    position: relative;

    z-index: 5;

    padding:
        36px 15px 35px 32px;
}


.app-icon {
    width: 64px;
    height: 64px;

    margin-bottom: 23px;

    border-radius: 16px;

    box-shadow:
        0 10px 25px rgba(30,25,50,.08);
}


.app-card h3 {
    margin:
        0 0 6px;

    font-size: 26px;

    letter-spacing: -.04em;
}


.app-subtitle {
    margin:
        0 0 23px;

    color: #666873;

    font-size: 14px;
}


.app-description {
    max-width: 220px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


.google-play {
    margin-top: 32px;

    width: fit-content;

    min-width: 145px;

    padding:
        8px 13px;

    display: flex;

    align-items: center;

    gap: 10px;

    border-radius: 7px;

    background: #090a0d;

    color: white;

    transition:
        transform .2s,
        box-shadow .2s;
}


.google-play:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0,0,0,.16);
}


.play-triangle {
    font-size: 24px;

    color: #7cd47b;
}


.google-play span:last-child {
    display: flex;

    flex-direction: column;
}


.google-play small {
    font-size: 7px;
}


.google-play strong {
    font-size: 16px;

    line-height: 1;
}


.card-phone {
    position: relative;

    min-height: 100%;
}


/* DAILY FLOW — gotowy mockup PNG */

.image-card-phone {
    position: absolute;

    width: 340px;
    max-width: none;
    height: auto;

    left: 50%;
    bottom: -38px;

    transform: translateX(-50%);

    display: block;

    filter:
        drop-shadow(
            0 25px 50px
            rgba(25,22,45,.16)
        );
}
.mini-device {
    width: 190px;

    aspect-ratio: 9 / 19.4;

    left: 50%;
    bottom: -38px;

    transform:
        translateX(-50%);

    border-width: 5px;

    border-radius: 30px;

    box-shadow:
        0 25px 50px rgba(25,22,45,.16);
}


.mini-device .device-speaker {
    width: 55px;
    height: 15px;

    top: 7px;
}


.all-apps {
    margin-top: 20px;

    text-align: center;
}


.all-apps a {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding:
        11px 20px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    background: white;

    font-size: 13px;

    transition:
        border-color .2s,
        transform .2s;
}


.all-apps a:hover {
    transform: translateY(-2px);

    border-color: #cbc8d9;
}


/* =========================================================
   MORE IS COMING
========================================================= */

.coming-section {
    position: relative;

    width: min(calc(100% - 48px), var(--page-width));
    min-height: 150px;

    margin:
        70px auto
        28px;

    padding:
        30px 38px;

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 28px;

    overflow: hidden;

    border-radius: 26px;

    background:
        linear-gradient(
            105deg,
            #f0edff 0%,
            #faf9ff 47%,
            #eee9ff 100%
        );
}


/* subtelne dekoracyjne łuki */

.coming-section::before {
    content: "";

    position: absolute;

    z-index: 0;

    width: 540px;
    height: 540px;

    right: 70px;
    top: 40px;

    border:
        1px solid rgba(130,108,255,.10);

    border-radius: 50%;

    pointer-events: none;
}


.coming-section::after {
    content: "";

    position: absolute;

    z-index: 0;

    width: 390px;
    height: 390px;

    right: 150px;
    top: 75px;

    border:
        1px solid rgba(130,108,255,.08);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   ICON
========================================================= */

.coming-icon {
    position: relative;

    z-index: 2;

    flex-shrink: 0;

    width: 72px;
    height: 72px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,.88);

    color: var(--purple);

    font-size: 35px;

    line-height: 1;

    box-shadow:
        0 10px 30px
        rgba(75,60,140,.05);
}


/* =========================================================
   COPY
========================================================= */

.coming-copy {
    position: relative;

    z-index: 2;
}


.coming-copy h2 {
    margin:
        0 0 7px;

    color: var(--black);

    font-size: 26px;

    font-weight: 650;

    letter-spacing: -.035em;
}


.coming-copy p {
    max-width: 620px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   INSTAGRAM CTA
========================================================= */

.instagram-cta {
    position: relative;

    z-index: 3;

    min-width: 320px;

    padding:
        15px 18px;

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 14px;

    border:
        1px solid rgba(130,108,255,.10);

    border-radius: 999px;

    background:
        rgba(255,255,255,.86);

    box-shadow:
        0 10px 35px
        rgba(60,45,110,.045);

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


.instagram-cta:hover {
    transform:
        translateY(-2px);

    background:
        rgba(255,255,255,.97);

    border-color:
        rgba(130,108,255,.20);

    box-shadow:
        0 15px 38px
        rgba(60,45,110,.08);
}


/* Instagram icon */

.instagram-symbol {
    width: 43px;
    height: 43px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    color: var(--purple);

    background:
        linear-gradient(
            145deg,
            #f4f0ff,
            #ffffff
        );
}


/* text */

.instagram-copy {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.instagram-copy strong {
    color: var(--black);

    font-size: 13px;

    font-weight: 650;

    white-space: nowrap;
}


.instagram-copy span {
    color: #7a748d;

    font-size: 11px;

    white-space: nowrap;
}


/* arrow */

.instagram-arrow {
    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: var(--black);

    font-size: 20px;

    transition:
        transform .25s ease,
        background .25s ease;
}


.instagram-cta:hover .instagram-arrow {
    transform:
        translateX(3px);

    background:
        #f3f0ff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .coming-section {
        grid-template-columns:
            auto 1fr;

        padding:
            30px;

        gap:
            22px;
    }


    .instagram-cta {
        grid-column:
            1 / -1;

        width: 100%;

        margin-top: 4px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .coming-section {
        width:
            calc(100% - 32px);

        margin-top: 50px;

        padding:
            28px 24px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

        border-radius: 22px;
    }


    .coming-icon {
        width: 60px;
        height: 60px;

        font-size: 30px;
    }


    .coming-copy h2 {
        font-size: 24px;
    }


    .coming-copy p {
        font-size: 13px;
    }


    .instagram-cta {
        width: 100%;
        min-width: 0;

        margin-top: 5px;

        padding:
            13px 15px;
    }


    .instagram-copy strong {
        font-size: 12px;
    }


    .instagram-copy span {
        font-size: 10px;
    }


    .coming-section::before {
        right: -260px;
        top: 40px;
    }


    .coming-section::after {
        right: -170px;
        top: 80px;
    }

}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: min(calc(100% - 48px), var(--page-width));

    min-height: 120px;

    margin: auto;

    padding:
        25px 0 35px;

    display: grid;

    grid-template-columns:
        1fr auto;

    align-items: end;

    gap: 30px;
}


.footer-logo .logo-symbol {
    width: 30px;
    height: 30px;
}


.footer-logo .logo-name {
    font-size: 15px;
}


.footer-brand p {
    margin:
        10px 0 0;

    color: #7c7e87;

    font-size: 10px;
}


.footer-links {
    display: flex;

    gap: 28px;

    font-size: 11px;

    color: #646670;
}


.footer-links a:hover {
    color: var(--black);
}


.social-links {
    justify-self: end;

    display: flex;
    align-items: center;

    gap: 10px;
}


.social-links a {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid #d9dae0;
    border-radius: 9px;

    color: #17181d;

    background: transparent;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}


.social-links a:hover {
    transform: translateY(-2px);

    border-color: #c8c5d7;

    background: #f7f5ff;
}


.social-links svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.social-links svg .icon-fill {
    fill: currentColor;
    stroke: none;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .desktop-navigation,
    .nav-button {
        display: none;
    }


    .nav-container {
        grid-template-columns:
            1fr auto;
    }


    .menu-button {
        display: block;

        width: 45px;
        height: 45px;

        border: 0;

        background: transparent;

        cursor: pointer;
    }


    .menu-button span {
        display: block;

        width: 22px;
        height: 1px;

        margin: 6px auto;

        background: var(--black);

        transition: .25s;
    }


    .mobile-navigation {
        position: fixed;

        top: 92px;
        left: 0;

        width: 100%;

        padding:
            25px 24px
            40px;

        flex-direction: column;

        background:
            rgba(255,255,255,.98);

        border-bottom:
            1px solid var(--border);
    }


    .mobile-navigation.open {
        display: flex;
    }


    .mobile-navigation a {
        padding: 12px 0;

        font-size: 22px;
    }


    .hero-inner {
        grid-template-columns: 1fr;
    }


    .hero-phone-area {
        min-height: 570px;
    }


    .benefits-inner {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .benefit {
        border-right: 0;

        padding: 10px;
    }


    .apps-grid {
        grid-template-columns: 1fr;
    }


    .footer {
        grid-template-columns: 1fr;

        align-items: start;
    }


    .social-links {
        justify-self: start;
    }

}



@media (max-width: 600px) {

    .nav-container,
    .hero-inner,
    .benefits,
    .apps-section,
    .contact,
    .footer {

        width:
            calc(100% - 32px);

    }


    .nav-container {
        height: 74px;
    }


    .mobile-navigation {
        top: 74px;
    }


    .logo-symbol {
        width: 32px;
        height: 32px;
    }


    .logo-name {
        font-size: 16px;
    }


    .hero {
        padding-top: 120px;
    }


    .hero h1 {
        font-size:
            clamp(49px, 14vw, 64px);
    }


    .hero-description {
        font-size: 16px;
    }


    .hero-buttons {
        align-items: flex-start;

        flex-direction: column;
    }


    /* PHONE */

    .hero-phone-area {
        min-height: 450px;
    }


    .hero-phone-mockup {
        width: min(100%, 390px);
    }


    .hero-phone-area .hero-aura {
        width: 420px;
        height: 420px;
    }


    .hero-phone-area .aura-line-one {
        width: 360px;
        height: 360px;
    }


    .hero-phone-area .aura-line-two {
        width: 450px;
        height: 450px;
    }


    .benefits-inner {
        padding:
            20px;
    }


    .app-card {
        min-height: 620px;

        grid-template-columns: 1fr;
    }


    .app-copy {
        padding:
            30px 30px 10px;
    }


    .app-description {
        max-width: 100%;
    }


    .card-phone {
        min-height: 300px;
    }


    .mini-device {
        width: 175px;
    }


    .contact {
        grid-template-columns: 1fr;

        padding: 30px;
    }


    .contact-button {
        width: 100%;
    }

}



/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-phone-mockup {
        transition: none;

        transform: none !important;
    }

}