:root {
    --background: #f3f2ef;
    --surface: #fffdf9;
    --surface-muted: #ebecea;
    --ink: #151515;
    --muted: #70736f;
    --soft: #a7aaa5;
    --line: rgba(36, 42, 38, 0.1);
    --accent: #43857d;
    --accent-dark: #2f6962;
    --accent-soft: #dce8e5;
    --shadow: 0 24px 70px rgba(31, 43, 37, 0.12);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header,
.site-footer,
main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
}

.brand {
    color: var(--accent-dark);
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.nav-links,
.footer-links,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a,
.footer-links a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 650;
}

.nav-links a:hover,
.footer-links a:hover {
    color: var(--accent-dark);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 64px;
    align-items: center;
    min-height: calc(100vh - 96px);
    padding: 34px 0 74px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(3.4rem, 8vw, 6.8rem);
    line-height: 0.92;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.hero-subtitle {
    max-width: 620px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 750;
}

.button.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.62);
    color: var(--accent-dark);
}

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

.phone-frame {
    position: relative;
    overflow: hidden;
    width: min(100%, 300px);
    aspect-ratio: 9 / 19.5;
    border: 10px solid #101110;
    border-radius: 44px;
    background: #ececea;
    box-shadow: var(--shadow);
}

.phone-frame::before {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 50%;
    width: 34%;
    height: 22px;
    content: "";
    transform: translateX(-50%);
    border-radius: 0 0 16px 16px;
    background: #101110;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-phone {
    width: min(100%, 340px);
}

.section {
    padding: 88px 0;
}

.intro {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.intro p,
.note-section p,
.support-hero p,
.support-card p {
    color: var(--muted);
    font-size: 1.08rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

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

.feature-card,
.support-card,
.note-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.82);
    box-shadow: 0 12px 36px rgba(31, 43, 37, 0.06);
}

.feature-card {
    min-height: 230px;
    padding: 24px;
}

.feature-card p {
    color: var(--muted);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 850;
}

.screens-section {
    overflow: hidden;
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.screen-card {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.72);
}

.screen-card .phone-frame {
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
}

.screen-card figcaption {
    margin-top: 18px;
    color: var(--muted);
    font-weight: 750;
    text-align: center;
}

.featured-screen {
    transform: translateY(28px);
}

.note-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 36px;
    padding: 34px;
    margin-bottom: 70px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 0 46px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer p {
    margin: 0;
    font-size: 0.92rem;
}

.support-page {
    max-width: 860px;
    padding: 70px 0 90px;
}

.support-hero {
    margin-bottom: 28px;
}

.support-card {
    padding: 28px;
    margin-top: 16px;
}

.support-card h2 {
    font-size: 1.45rem;
}

@media (max-width: 920px) {
    .hero,
    .intro,
    .note-section {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 40px;
        min-height: auto;
        padding-top: 30px;
    }

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

    .featured-screen {
        transform: none;
    }
}

@media (max-width: 640px) {
    .site-header,
    .site-footer,
    main {
        width: min(100% - 28px, 1120px);
    }

    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links,
    .footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .feature-grid,
    .screens-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 62px 0;
    }

    .feature-card {
        min-height: 0;
    }

    .screen-card {
        padding: 18px;
    }

    .phone-frame {
        border-width: 8px;
        border-radius: 38px;
    }
}
