:root {
    --bg-top: #4cb8e0;
    --bg-mid: #1a78ad;
    --bg-bottom: #083d64;
    --panel: rgba(17, 63, 90, 0.38);
    --panel-strong: rgba(14, 52, 76, 0.54);
    --panel-border: rgba(237, 252, 255, 0.24);
    --panel-highlight: rgba(255, 255, 255, 0.18);
    --text-primary: rgba(248, 255, 255, 0.96);
    --text-secondary: rgba(221, 246, 255, 0.85);
    --accent: #8fe9ff;
    --shadow: rgba(2, 18, 29, 0.34);
    --button-fill: linear-gradient(180deg, rgba(128, 220, 255, 0.54), rgba(95, 185, 238, 0.82));
    --button-fill-soft: linear-gradient(180deg, rgba(165, 235, 255, 0.22), rgba(109, 197, 245, 0.28));
    --font-title: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-body: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 20% 15%, rgba(197, 246, 255, 0.24), transparent 18%),
        radial-gradient(circle at 78% 24%, rgba(183, 239, 255, 0.16), transparent 16%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-bottom) 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.13), transparent 22%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 72%);
    pointer-events: none;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 54px 0 40px;
    display: flex;
    flex-direction: column;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-lockup,
.footer-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.brand-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1;
}

.brand-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    letter-spacing: 0;
    color: rgba(221, 245, 255, 0.72);
}

.site-nav,
.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-nav a,
.footer-right a,
.inline-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 160ms ease;
}

.inline-link {
    overflow-wrap: anywhere;
}

.site-nav a:hover,
.footer-right a:hover,
.inline-link:hover {
    color: var(--text-primary);
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
    min-height: 0;
    padding: 0;
}

.hero-copy h1,
.document-hero h1,
.section-heading h2 {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(3.3rem, 7vw, 6rem);
    line-height: 0.94;
}

.hero-subtitle {
    margin: 14px 0 0;
    font-size: clamp(1.2rem, 1.8vw, 1.7rem);
    color: rgba(220, 245, 255, 0.72);
}

.hero-copy--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 760px;
}

.brand-lockup--hero {
    margin-top: 34px;
    justify-content: center;
}

.brand-lockup--hero .brand-title {
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
}

.brand-lockup--hero .brand-subtitle {
    font-size: clamp(1.08rem, 1.9vw, 1.46rem);
    position: relative;
    top: 0.34em;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.hero-text,
.document-hero .hero-text {
    max-width: 38rem;
    margin: 24px 0 0;
    color: var(--text-secondary);
    font-size: clamp(1.04rem, 1.45vw, 1.22rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

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

.app-store-badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 160ms ease, opacity 160ms ease;
}

.app-store-badge-link:hover {
    transform: translateY(-1px);
}

.app-store-badge-link.is-disabled {
    opacity: 0.78;
    cursor: default;
}

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

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 194px;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1px solid rgba(242, 252, 255, 0.24);
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(0, 18, 31, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-action {
    background: var(--button-fill);
}

.secondary-action {
    background: var(--button-fill-soft);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 18, 31, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.primary-action.is-disabled {
    opacity: 0.72;
    cursor: default;
}

.app-icon {
    width: clamp(128px, 20vw, 192px);
    aspect-ratio: 1;
    border-radius: 30px;
    box-shadow: 0 24px 40px rgba(3, 14, 26, 0.22);
}

.app-icon--hero {
    position: static;
}

.content-band,
.document-main {
    padding: 0 0 68px;
}

.section-heading {
    margin-bottom: 26px;
}

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

.three-up-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.glass-card {
    padding: 22px 20px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(68, 126, 163, 0.3), rgba(23, 75, 107, 0.42));
    border: 1px solid var(--panel-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 14px 30px rgba(3, 20, 33, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-card h3,
.glass-card h2,
.feature-row h3,
.document-section h2 {
    margin: 0 0 10px;
    font-family: var(--font-title);
    font-size: 1.4rem;
}

.glass-card p,
.feature-row p,
.document-section p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-list {
    display: grid;
    gap: 16px;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(149, 229, 255, 0.16);
    border: 1px solid rgba(240, 252, 255, 0.18);
    color: var(--text-primary);
}

.document-main {
    width: min(880px, 100%);
    align-self: center;
}

.document-hero {
    padding: 14px 0 28px;
}

.document-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.document-section {
    padding: 0 0 30px;
}

.document-meta {
    margin: 20px 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.document-intro {
    margin: 20px 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.document-list {
    margin: 16px 0 16px 22px;
    padding: 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.document-list li {
    margin: 0 0 2px;
}

.site-footer {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copyright {
    color: rgba(221, 246, 255, 0.68);
    font-size: 0.92rem;
}

body[data-page="home"] main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not([data-page="home"]) main {
    flex: 1 1 auto;
}

.floating-bubble {
    position: fixed;
    bottom: -40px;
    width: var(--size);
    height: var(--size);
    left: var(--x);
    border-radius: 999px;
    border: 1px solid rgba(244, 253, 255, 0.38);
    background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.36), rgba(245, 253, 255, 0.16) 55%, rgba(245, 253, 255, 0.05) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 18px rgba(223, 247, 255, 0.16);
    opacity: 0.8;
    pointer-events: none;
    animation: bubble-rise var(--duration) linear infinite;
    animation-delay: var(--delay);
    z-index: 0;
}

@keyframes bubble-rise {
    0% {
        transform: translate3d(0, 0, 0) scale(0.92);
        opacity: 0;
    }
    10% {
        opacity: 0.76;
    }
    72% {
        opacity: 0.42;
    }
    100% {
        transform: translate3d(var(--drift), -110vh, 0) scale(1.06);
        opacity: 0;
    }
}

@media (max-width: 980px) {
    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 12px;
    }

    .three-up-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 42px;
        padding-bottom: 46px;
    }

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

    .site-nav,
    .footer-right {
        gap: 14px;
    }

    .site-nav a,
    .footer-right a {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
    }

    .brand-lockup,
    .footer-left {
        flex-wrap: wrap;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-action,
    .secondary-action {
        flex: 1 1 100%;
        min-width: 0;
    }

    .feature-chip {
        min-width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 430px) {
    .brand-lockup--hero {
        margin-top: 26px;
    }

    .hero-text,
    .document-hero .hero-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .document-hero {
        padding-bottom: 24px;
    }

    .document-hero h1 {
        font-size: 2.35rem;
    }

    .document-section {
        padding-bottom: 26px;
    }

    .document-section h2 {
        font-size: 1.22rem;
        line-height: 1.25;
    }
}
