.hero {
    min-height: 100dvh;
    padding: 80px 24px 64px;
    display: flex;
    align-items: center;
    scroll-margin-top: 96px;
}

#features,
#screenshots,
#about {
    scroll-margin-top: 96px;
}

.hero-inner {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

@media (min-width: 1024px) {
    .hero-inner {
        gap: 64px;
    }
}

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

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--heading);
    margin-bottom: 20px;
    max-width: 14em;
    word-break: keep-all;
    text-wrap: balance;
}

.hero-copy .description {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 42ch;
    margin-bottom: 32px;
    word-break: keep-all;
    text-wrap: pretty;
}

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

@media (min-width: 768px) {
    .hero-visual { justify-content: flex-end; }
}

.phone-frame {
    width: min(280px, 72vw);
    aspect-ratio: 9 / 19;
    padding: 10px;
    border-radius: 36px;
    background: linear-gradient(145deg, var(--heroui-primary-100), var(--surface));
    border: 2px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 28px;
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy h1 { animation: fadeInUp 0.55s ease-out both; }
    .hero-copy .description { animation: fadeInUp 0.55s ease-out 0.07s both; }
    .hero-copy .btn { animation: fadeInUp 0.55s ease-out 0.14s both; }
    .phone-frame { animation: fadeInUp 0.65s ease-out 0.1s both; }
}

.section {
    padding: 88px 24px;
    max-width: var(--page-max);
    margin: 0 auto;
}

.features-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .features-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
    }

    .feature-featured {
        grid-column: 1;
        grid-row: 1 / 3;
        grid-template-columns: 1fr;
        align-content: start;
        padding: 32px;
    }

    .feature-featured-visual {
        max-width: 160px;
        margin: 0;
    }

    .feature-card-wide {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 4px 20px;
        align-items: center;
        padding: 24px 32px;
    }

    .feature-card-wide .feature-icon {
        grid-row: 1 / 3;
        margin-bottom: 0;
        align-self: center;
    }

    .feature-card-wide h3,
    .feature-card-wide p {
        margin-bottom: 0;
    }
}

.feature-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--heroui-primary-100);
    box-shadow: 0 2px 8px rgb(6 183 219 / 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.feature-card:hover {
    box-shadow: 0 8px 24px rgb(6 183 219 / 0.1);
    border-color: var(--heroui-primary-300);
}
.feature-card:active {
    transform: scale(0.995);
}

.feature-card-tint {
    background: linear-gradient(160deg, var(--heroui-primary-50) 0%, var(--surface) 70%);
    border-color: var(--border);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
}

.feature-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, var(--heroui-primary-50) 0%, var(--surface) 60%);
    border-color: var(--border);
}

.feature-featured-visual {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgb(6 183 219 / 0.12);
    max-width: 200px;
    margin: 0 auto;
}
.feature-featured-visual img {
    width: 100%;
    display: block;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--primary);
}
.feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.screenshot-frame {
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 4px 16px rgb(6 183 219 / 0.08);
}
.screenshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about {
    max-width: 640px;
}

.about-lead {
    font-size: 18px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-points {
    list-style: none;
    border-top: 1px solid var(--border);
}

.about-points li {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
}

.about-points strong {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--heroui-primary-800);
    margin-bottom: 4px;
}

@media (max-width: 767px) {
    .hero {
        padding: 80px 20px 48px;
        min-height: auto;
    }
    .hero-inner {
        gap: 32px;
    }
    .hero-copy { text-align: center; }
    .hero-copy h1 { max-width: none; }
    .hero-copy .description { margin-left: auto; margin-right: auto; }
    .hero-copy .btn { width: 100%; max-width: 320px; }
    .phone-frame { width: min(220px, 58vw); }

    .feature-card-wide {
        grid-template-columns: 1fr;
    }

    .feature-card-wide .feature-icon {
        grid-row: auto;
        margin-bottom: 16px;
    }
}

@media (max-width: 1023px) {
    .screenshots-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 8px;
        margin-left: -4px;
        margin-right: -4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .screenshots-grid::-webkit-scrollbar { display: none; }
    .screenshots-grid:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 4px;
        border-radius: var(--radius-xl);
    }
    .screenshot-frame {
        flex: 0 0 min(260px, 72vw);
        scroll-snap-align: center;
    }
}
