:root {
    --background: #ffffff;
    --background-alt: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #007aff;
    --card-bg: rgba(255, 255, 255, 0.7);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes liquid-shadow {
    0% {
        box-shadow: 0 20px 40px rgba(0, 122, 255, 0.2), 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    50% {
        box-shadow: 0 30px 60px rgba(0, 122, 255, 0.3), 0 15px 30px rgba(0, 0, 0, 0.08);
    }

    100% {
        box-shadow: 0 20px 40px rgba(0, 122, 255, 0.2), 0 10px 20px rgba(0, 0, 0, 0.05);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-stack);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    font-size: 17px;
    font-weight: 400;
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Header / Hero */
.hero {
    text-align: center;
    padding: 140px 0 100px;
    background: radial-gradient(circle at 50% 30%, rgba(0, 122, 255, 0.03) 0%, transparent 70%), var(--background);
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 22px;
    position: relative;
    z-index: 1;
}

.hero-app-icon {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    margin-bottom: 40px;
    /* Liquid Glass Effect */
    animation: float 6s ease-in-out infinite, liquid-shadow 6s ease-in-out infinite;
    transition: transform 0.3s ease;
    will-change: transform, box-shadow;
}

.hero-app-icon:hover {
    transform: scale(1.05) translateY(-5px);
    animation: none;
    /* Pause float on hover for stability */
    box-shadow: 0 35px 70px rgba(0, 122, 255, 0.4), 0 20px 40px rgba(0, 0, 0, 0.1);
}

.eyebrow {
    font-size: 21px;
    line-height: 1.19048;
    font-weight: 600;
    letter-spacing: .011em;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards 0.2s;
}

h1 {
    font-size: 64px;
    line-height: 1.0625;
    font-weight: 700;
    letter-spacing: -0.009em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards 0.4s;
}

.lead {
    font-size: 24px;
    line-height: 1.33341;
    font-weight: 400;
    letter-spacing: .009em;
    color: var(--text-primary);
    margin: 0 auto 40px;
    max-width: 600px;
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards 0.6s;
}

.cta-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards 0.8s;
}

.cta-group img {
    height: 50px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-group a:hover img {
    transform: scale(1.05);
}

.cta-group a:hover {
    text-decoration: none;
}

/* Sections */
.section {
    padding: 120px 0;
    background-color: var(--background-alt);
}

.section:nth-child(even) {
    background-color: var(--background);
}

.section h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 700;
    letter-spacing: -0.003em;
    text-align: center;
    margin-bottom: 20px;
}

/* Fixed Selector: Added .container to path */
.section .container>p {
    text-align: center;
    font-size: 24px;
    line-height: 1.33341;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 80px;
}

/* Grid / Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.card h3 {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    letter-spacing: .009em;
    margin-bottom: 12px;
}

.card p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Screenshots */
.shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.shot-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shot-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
    border: 8px solid #fff;
    margin-bottom: 30px;
    transition: transform 0.4s ease;
}

.shot-card:hover img {
    transform: scale(1.02);
}

.shot-card span {
    font-size: 19px;
    line-height: 1.4211;
    font-weight: 600;
    letter-spacing: .012em;
    color: var(--text-primary);
}

/* Prose (Policies) */
.subpage {
    padding: 100px 0;
    background-color: var(--background);
    min-height: 80vh;
}

.prose {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 22px;
}

.prose h1 {
    font-size: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}

.prose h2 {
    font-size: 28px;
    margin-top: 50px;
    margin-bottom: 15px;
}

.prose h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.prose p,
.prose li {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.prose ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.prose a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--background-alt);
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
    color: var(--text-secondary);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer nav a {
    color: var(--text-secondary);
    margin-right: 20px;
    text-decoration: none;
}

.footer nav a:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1068px) {

    .grid,
    .shots-grid {
        gap: 20px;
    }
}

@media (max-width: 800px) {
    h1 {
        font-size: 48px;
    }

    .hero {
        padding: 100px 0;
    }

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

    .shots-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        gap: 20px;
    }
}