@import "../assets/font/stylesheet.css";

:root {
    --bg: #F2F2F2;
    --surface: #D7E0DD;
    --surface-soft: #edf5f1;
    --header: #1d2634;
    --text: #20283b;
    --muted: #7f8791;
    --muted-strong: #6d7480;
    --accent: #57c7a2;
    --accent-dark: #39a985;
    --line: rgba(32, 40, 59, 0.08);
    --shadow-soft: 0 28px 60px rgba(22, 28, 40, 0.08);
    --content-width: 980px;
    --section-width: 860px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --radius-pill: 999px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--bg);
}

body.menu-open {
    overflow: hidden;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

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

.page-shell {
    overflow: clip;
}

.container {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
}

.section-narrow {
    width: min(100%, var(--section-width));
}

.section-narrow-one {
    width: min(100%, var(--section-width) + 200px);
}

.site-header {
    position: relative;
    z-index: 5;
    padding: 14px 0 12px;
    background: linear-gradient(180deg, rgba(252, 252, 249, 0.94), rgba(252, 252, 249, 0.72));
    backdrop-filter: blur(14px);
}

.header-bar {
    position: relative;
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    background: var(--header);
    box-shadow: 0 12px 26px rgba(10, 14, 22, 0.14);
    z-index: 2;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 58px;
    position: relative;
    z-index: 1;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-logo {
    display: block;
    line-height: 0;
}

.brand-logo img {
    width: 130px;
    height: 40px;
    flex: 0 0 auto;
}

.desktop-nav,
.footer-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav {
    flex: 1;
    justify-content: center;
}

.desktop-nav a,
.footer-nav a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a {
    color: rgba(255, 255, 255, 1);
}

.desktop-nav a:hover,
.footer-nav a:hover {
    opacity: 1;
    color: #57B89D;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.01);
}

.btn-light {
    min-height: 34px;
    padding: 0 18px;
    color: var(--header);
    background: #fff;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #64d0ad 0%, var(--accent-dark) 100%);
    box-shadow: 0 18px 34px rgba(66, 178, 138, 0.26);
}

.header-download {
    min-width: 108px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle {
    position: relative;
    width: 34px;
    height: 34px;
    margin-left: auto;
    padding: 0;
    background: center / 34px 34px no-repeat url("../assets/img/menu-icon.svg");
    transition: background-image 0.2s ease;
}

.menu-toggle.is-open {
    background-image: url("../assets/img/menu-icon (1).svg");
}

.menu-toggle span {
    display: none;
}

.mobile-menu {
    position: absolute;
    top: calc(100% - 24px);
    left: 0;
    right: 0;
    padding: 34px 20px 16px;
    border-radius: 0 0 28px 28px;
    background: var(--header);
    box-shadow: 0 18px 34px rgba(10, 14, 22, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.2s ease;
}

.header-bar.menu-open {
    border-radius: 28px;
}

.header-bar.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav {
    display: grid;
    gap: 20px;
    margin-bottom: 28px;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 500;
}

.mobile-download {
    width: 100%;
    min-height: 44px;
}

.hero-section {
    padding: 22px 0 52px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    align-items: center;
    gap: 26px;
}

.hero-visuals {
    position: relative;
    width: 100%;
    min-height: 388px;
}

.hero-visuals::after {
    content: "";
    position: absolute;
    left: 64px;
    right: 84px;
    bottom: 10px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(29, 38, 52, 0.16) 0%, rgba(29, 38, 52, 0) 72%);
    filter: blur(12px);
}

.hero-phone {
    position: absolute;
    filter: drop-shadow(0 20px 44px rgba(12, 17, 27, 0.14));
}

.hero-phone-back {
    left: 125px;
    width: min(55%, 260px);
}

.hero-phone-front {
    left: 160px;
    top: 8px;
    width: min(49%, 250px);
    transform: rotate(15deg);
}

.hero-copy h1,
.section-heading h2 {
    margin: 0;
    letter-spacing: 0;
    color: var(--text);
}

.hero-copy h1 {
    max-width: 420px;
    font-size: clamp(46px, 5.7vw, 62px);
    line-height: 0.98;
}

.hero-copy p {
    max-width: 380px;
    margin: 20px 0 0;
    font-size: 24px;
    line-height: 1.55;
    color: var(--muted);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.hero-badge {
    width: 123px;
    flex: 0 0 auto;
}

.hero-download {
    min-width: 126px;
}

.section {
    padding: 100px 0 0;
}

.section-heading {
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(30px, 3.8vw, 39px);
    line-height: 1.08;
    font-weight: 600;
}

.section-heading p {
    max-width: 660px;
    margin: 12px auto 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    font-weight: 300;
}

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

.feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: end;
    gap: 10px;
    min-height: 216px;
    padding: 26px 24px 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.feature-card-dark {
    background: var(--surface-soft);
}

.feature-card-reverse {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}

.feature-card-reverse .feature-copy {
    order: 2;
}

.feature-card-reverse .feature-media {
    order: 1;
}

.feature-copy {
    align-self: center;
    max-width: 210px;
    padding-bottom: 28px;
}

.feature-copy h3,
.security-copy h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 400;
    text-align: center;
}

.feature-copy p,
.security-copy p,
.experience-item p,
.footer-copy {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted-strong);
    text-align: center;
    font-weight: 300;
}

.feature-media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 100%;
}

.feature-picture {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}

.feature-media img {
    width: min(100%, 235px);
    transform: translateY(18px);
}

.section-experience {
    padding-top: 100px;
}

.experience-grid {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.experience-list {
    display: grid;
    gap: 40px;
    margin: 0 50px;
}

.experience-item h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.15;
    text-align: center;
}

.experience-visual {
    display: flex;
    justify-content: center;
}

.experience-visual img {
    width: min(100%, 400px);
    filter: drop-shadow(0 30px 56px rgba(12, 17, 27, 0.14));
}

.experience-visual-mobile {
    display: none;
}

.security-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 1px;
    margin-top: 34px;
    padding: 28px 28px 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.security-copy {
    max-width: 365px;
    padding-bottom: 77px;
    text-align: center;
}

.security-device {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.security-device img {
    width: min(100%, 280px);
    transform: translateY(18px);
}

.section-contact {
    padding: 52px 0 0;
}

.contact-form {
    display: grid;
    gap: 10px;
    width: min(100%, 432px);
    margin: 28px auto 0;
}

.field {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(32, 40, 59, 0.06);
    border-radius: var(--radius-pill);
    outline: none;
    color: var(--text);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.field::placeholder {
    color: #1D26347A;
    font-size: 14px;
    font-weight: 400;
}

.field:focus {
    border-color: rgba(87, 199, 162, 0.48);
    box-shadow: 0 0 0 4px rgba(87, 199, 162, 0.12);
}

.field-message {
    min-height: 110px;
    padding-top: 14px;
    resize: vertical;
    border-radius: 18px;
}

.contact-submit {
    justify-self: center;
    min-width: 140px;
    margin-top: 6px;
}

.site-footer {
    padding: 52px 0 28px;
}

.footer-inner {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    text-align: center;
}

.footer-nav {
    justify-content: center;
    gap: 26px;
}

.footer-nav a {
    color: var(--muted-strong);
}

.footer-copy {
    margin-top: 12px;
    font-size: 11px;
    color: rgba(127, 135, 145, 0.82);
}

@media (max-width: 960px) {
    .desktop-nav,
    .header-download {
        display: none;
    }

    .header-bar {
        padding: 5px 18px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .brand {
        gap: 0;
    }

    .brand-logo img {
        width: 46px;
        height: 42px;
    }

    .header-main {
        min-height: 50px;
    }

    .hero-grid,
    .feature-grid,
    .experience-grid,
    .security-card {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 12px;
    }

    .hero-visuals {
        min-height: 352px;
        max-width: 420px;
        margin: 0 auto;
        justify-self: center;
    }

    .hero-phone-back {
        left: 30px;
        bottom: 18px;
        width: min(45%, 215px);
    }

    .hero-phone-front {
        left: 152px;
        top: 4px;
        width: min(46%, 220px);
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy h1,
    .hero-copy p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .feature-card,
    .feature-card-reverse {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
        padding: 24px 22px 0;
    }

    .feature-card-reverse .feature-copy,
    .feature-card-reverse .feature-media {
        order: initial;
    }

    .feature-copy,
    .security-copy {
        max-width: none;
        padding-bottom: 14px;
        text-align: center;
    }

    .feature-media img,
    .security-device img {
        width: min(100%, 220px);
        transform: translateY(14px);
    }

    .experience-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 18px;
        text-align: center;
    }

    .experience-visual-desktop {
        display: none;
    }

    .experience-visual-mobile {
        display: flex;
        grid-column: 1 / -1;
        order: 3;
        margin: 4px auto 2px;
    }

    .experience-visual-mobile img {
        width: min(100%, 260px);
    }

    .security-card {
        gap: 10px;
        padding-top: 24px;
    }

    .security-copy {
        padding-bottom: 0;
    }

    .security-device-left,
    .security-device-right {
        display: inline-flex;
    }

    .security-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .security-copy {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 14px), var(--content-width));
    }

    .site-header {
        padding: 6px 0 10px;
    }

    .header-bar {
        padding: 5px 15px 9px 18px;
    }

    .brand {
        font-size: 13px;
    }

    .header-main {
        min-height: 42px;
    }

    .hero-section {
        padding: 6px 0 30px;
    }

    .hero-grid {
        gap: 8px;
    }

    .hero-visuals {
        min-height: 395px;
        max-width: 260px;
        justify-self: center;
    }

    .hero-visuals::after {
        left: 34px;
        right: 34px;
        bottom: 4px;
        height: 24px;
    }

    .hero-phone-back {
        left: 16px;
        bottom: 16px;
        width: 240px;
    }

    .hero-phone-front {
        left: 90px;
        top: 2px;
        width: 130px;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-copy h1 {
        font-size: 48px;
        line-height: 1.02;
        font-weight: 800;
    }

    .hero-copy p {
        margin-top: 12px;
        font-size: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
        margin-top: 18px;
    }

    .hero-badge {
        width: 108px;
        margin: 0 auto;
    }

    .hero-download {
        width: 100%;
    }

    .section {
        padding-top: 24px;
    }

    .section-heading h2 {
        font-size: 24px;
        line-height: 1.08;
    }

    .section-heading p {
        margin-top: 8px;
        font-size: 16px;
        line-height: 1.5;
    }

    .feature-grid,
    .section-experience .section-heading,
    .section-contact .section-heading {
        margin-top: 20px;
    }

    .feature-grid {
        gap: 10px;
    }

    .feature-card,
    .feature-card-reverse {
        padding: 18px 14px 0;
        border-radius: 16px;
    }

    .feature-copy {
        padding-bottom: 10px;
        text-align: center;
    }

    .feature-copy h3,
    .security-copy h3,
    .experience-item h3 {
        font-size: 18px;
    }

    .feature-copy p,
    .security-copy p,
    .experience-item p {
        font-weight: 300;
        font-size: 14px;
        line-height: 1.45;
    }

    .feature-media img {
        width: min(100%, 186px);
        transform: translateY(10px);
    }

    .header-bar.menu-open .mobile-menu {
        padding: 32px 14px 8px;
    }

    .mobile-nav {
        gap: 18px;
        margin-bottom: 26px;
    }

    .mobile-download {
        min-height: 45px;
        font-size: 13px;
    }

    .section-experience {
        padding-top: 30px;
    }

    .experience-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .experience-item {
        text-align: center;
    }

    .experience-visual-mobile {
        margin: 0 auto;
    }

    .experience-visual-mobile img {
        width: min(100%, 214px);
    }

    .security-card {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 20px;
        padding: 18px 10px 0;
        border-radius: 18px;
    }

    .security-copy {
        padding: 0 6px;
    }

    .security-device img {
        width: min(100%, 164px);
        transform: translateY(8px);
    }

    .section-contact {
        padding-top: 34px;
    }

    .contact-form {
        margin-top: 18px;
        gap: 8px;
    }

    .field {
        min-height: 40px;
        padding: 0 14px;
        font-size: 12px;
    }

    .field-message {
        min-height: 92px;
        padding-top: 12px;
    }

    .contact-submit {
        width: 100%;
        min-width: 0;
    }

    .site-footer {
        padding: 34px 0 20px;
    }

    .footer-inner {
        padding-top: 16px;
    }

    .footer-nav {
        gap: 18px;
        flex-wrap: wrap;
    }

    .footer-nav a {
        font-size: 10.5px;
    }

    .footer-copy {
        margin-top: 10px;
        font-size: 10px;
    }
}
