:root {
    --bg: #f5fbf7;
    --bg-strong: #e5f2ea;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --border: rgba(26, 42, 61, 0.1);
    --text: #1d2c4a;
    --muted: #557078;
    --accent: #3fbfa5;
    --accent-deep: #1e9f87;
    --shadow: 0 24px 70px rgba(33, 71, 82, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(63, 191, 165, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(120, 168, 230, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fcfa 0%, #eef7f2 100%);
}

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

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow:
        20px 10px 0 0 var(--accent),
        42px -10px 0 0 var(--accent),
        44px 32px 0 0 var(--accent);
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 7px;
    width: 34px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    transform: rotate(32deg);
    transform-origin: left center;
}

.brand-word {
    margin-left: 52px;
    font-size: 1.4rem;
}

.nav {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 24px 0 56px;
}

.doc-page {
    max-width: 760px;
    margin: 9vh auto 0;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--surface-strong);
    box-shadow: 0 16px 40px rgba(29, 44, 74, 0.06);
}

.doc-page h1 {
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.doc-meta {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.doc-lede {
    margin: 20px 0 28px;
    color: var(--muted);
    line-height: 1.7;
}

.doc-section + .doc-section {
    margin-top: 28px;
}

.doc-section h2,
.doc-section h3 {
    letter-spacing: -0.03em;
}

.doc-section h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.doc-section h3 {
    margin: 18px 0 8px;
    font-size: 1.05rem;
}

.doc-section p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.doc-list {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.7;
}

.text-link {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
    margin: 0;
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.hero h1 {
    max-width: 9ch;
    font-size: clamp(3.4rem, 8vw, 6.8rem);
}

.hero h1 span {
    display: block;
    color: var(--accent-deep);
}

.lede,
.section-heading p,
.feature-card p,
.principle p,
.footer-copy,
.copyright {
    color: var(--muted);
    line-height: 1.7;
}

.lede {
    max-width: 58ch;
    margin: 24px 0 0;
    font-size: 1.1rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.app-store-badge img {
    display: block;
    height: 52px;
    width: auto;
}

.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #6acbd1 100%);
    color: #062f33;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(63, 191, 165, 0.26);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 620px;
}

.device-glow {
    position: absolute;
    inset: auto;
    width: min(90%, 420px);
    aspect-ratio: 1;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(63, 191, 165, 0.35) 0%, rgba(63, 191, 165, 0.08) 45%, transparent 72%);
    filter: blur(8px);
}

.phone-shot {
    position: relative;
    width: min(100%, 340px);
    border-radius: 40px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.feature-section,
.principles {
    padding: 72px 0;
}

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

.section-heading h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-heading p {
    margin: 18px 0 0;
    font-size: 1.05rem;
}

.section-heading.narrow {
    max-width: 640px;
}

.feature-grid,
.principle-list {
    display: grid;
    gap: 18px;
}

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

.feature-card,
.principle {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(29, 44, 74, 0.05);
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(63, 191, 165, 0.12);
    color: var(--accent-deep);
    font-weight: 700;
}

.feature-card h3,
.principle h3,
.footer-brand {
    margin: 0 0 10px;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

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

.footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
    margin-top: 24px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--surface-strong);
    box-shadow: 0 16px 40px rgba(29, 44, 74, 0.06);
}

.footer-copy,
.copyright {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    color: var(--muted);
}

.copyright {
    grid-column: 1 / -1;
    font-size: 0.92rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

@media (max-width: 920px) {
    .hero,
    .feature-grid,
    .principle-list,
    .footer {
        grid-template-columns: 1fr;
    }

    .topbar,
    .footer {
        gap: 16px;
    }

    .hero {
        min-height: auto;
        padding-top: 8px;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        order: 0;
        min-height: 0;
        padding-top: 16px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1200px);
        padding-top: 16px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        flex-wrap: wrap;
    }

    .brand-word {
        font-size: 1.25rem;
    }

    .feature-card,
    .principle,
    .footer,
    .doc-page {
        border-radius: 22px;
    }

    .doc-page {
        padding: 24px;
    }
}
