:root {
    --primary: #4F46E5;
    --secondary: #10B981;
    --accent: #F59E0B;
    --light: #F3F4F6;
    --dark: #1F2937;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 14px rgba(17, 24, 39, 0.08);
    z-index: 50;
}

.nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand__logo {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

.brand__name {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.brand__tagline {
    font-size: 14px;
    color: #6B7280;
    white-space: nowrap;
}

.section {
    padding: 80px 0;
}

.section--light {
    background: var(--light);
}

.section--white {
    background: #fff;
}

.hero {
    padding-top: 112px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(16, 185, 129, 0.06));
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.hero__media {
    width: 100%;
}

.hero__title {
    margin: 0 0 20px;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
}

.hero__title .accent {
    color: var(--primary);
}

.hero__desc {
    margin: 0;
    font-size: 18px;
    color: #4B5563;
}

.hero__highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bubble {
    --bubble-bg: rgba(255, 255, 255, 0.88);
    --bubble-border: rgba(17, 24, 39, 0.08);
    position: relative;
    background: var(--bubble-bg);
    border: 1px solid var(--bubble-border);
    border-radius: 18px;
    padding: 14px 14px 12px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(8px);
}

.bubble--primary {
    --bubble-bg: rgba(79, 70, 229, 0.08);
    --bubble-border: rgba(79, 70, 229, 0.18);
}

.bubble--secondary {
    --bubble-bg: rgba(16, 185, 129, 0.08);
    --bubble-border: rgba(16, 185, 129, 0.18);
}

.bubble--accent {
    --bubble-bg: rgba(245, 158, 11, 0.10);
    --bubble-border: rgba(245, 158, 11, 0.22);
}

.bubble--tail::after,
.bubble--tail-right::after {
    content: "";
    position: absolute;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: var(--bubble-bg);
    border-right: 1px solid var(--bubble-border);
    border-bottom: 1px solid var(--bubble-border);
    transform: rotate(45deg);
}

.bubble--tail::after {
    left: 18px;
}

.bubble--tail-right::after {
    right: 18px;
}

.bubble__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(17, 24, 39, 0.06);
}

.bubble__icon i {
    color: var(--primary);
    font-size: 18px;
}

.bubble__title {
    margin-top: 10px;
    font-weight: 800;
}

.bubble__desc {
    margin-top: 2px;
    font-size: 14px;
    color: #4B5563;
}

.card-image {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 800;
}

.section-subtitle {
    margin: 0 auto;
    max-width: 720px;
    color: #4B5563;
}

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

.feature-card {
    background: var(--light);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.feature-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-main {
    min-width: 0;
}

.feature-shot img {
    width: 100%;
}

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

.feature-shot--row {
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.feature-shot--row .feature-shot__main {
    flex: 0 0 220px;
    max-width: 220px;
}

.feature-card--ltl .feature-shot--row .feature-shot__main {
    flex: 0 0 200px;
    max-width: 200px;
}

.feature-shot__main {
    width: 100%;
    max-width: 400px;
}

.feature-shot__main img {
    width: 100%;
}

.feature-shot__thumbs {
    width: 100%;
    max-width: 380px;
    margin-top: 12px;
}

.feature-shot__thumbs.thumb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-shot__thumbs .thumb {
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

.icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.icon-badge i {
    font-size: 24px;
    color: var(--primary);
}

.feature-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
}

.feature-desc {
    margin: 0 0 18px;
    color: #4B5563;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list li i {
    color: var(--secondary);
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.thumb {
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.miniapp__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.miniapp__text h2 {
    margin: 0 0 18px;
    font-size: 32px;
    font-weight: 800;
}

.miniapp__text p {
    margin: 0 0 16px;
    color: #4B5563;
}

.miniapp__qr {
    background: #fff;
    padding: 18px;
}

.qr-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: var(--light);
    border: 1px solid rgba(17, 24, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-box__placeholder {
    color: #6B7280;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.miniapp__note {
    margin: 12px 0 0;
    font-size: 14px;
    color: #6B7280;
    text-align: center;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.about__text h2 {
    margin: 0 0 18px;
    font-size: 32px;
    font-weight: 800;
}

.about__text p {
    margin: 0 0 16px;
    color: #4B5563;
}

.about__text p:last-child {
    margin-bottom: 0;
}

.footer {
    background: var(--dark);
    color: #fff;
    padding: 32px 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer h3,
.footer h4 {
    margin: 0 0 8px;
    font-weight: 800;
}

.footer p,
.footer a {
    color: rgba(243, 244, 246, 0.72);
    font-size: 14px;
}

.footer a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(243, 244, 246, 0.12);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
    margin-top: 12px;
}

.icp {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icp img {
    width: 20px;
    height: 20px;
}

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

@media (min-width: 640px) {
    .thumb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero__highlights {
        max-width: 560px;
        justify-self: center;
    }

    .hero__title {
        font-size: 48px;
    }

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

    .feature-row {
        display: grid;
        grid-template-columns: 1fr 420px;
        align-items: center;
    }

    .feature-card--ltl .feature-row {
        grid-template-columns: 1fr 550px;
    }

    .feature-shot {
        align-items: flex-end;
    }

    .feature-shot--row {
        overflow-x: visible;
        padding-bottom: 0;
    }

    .feature-shot--row .feature-shot__main {
        flex: 1 1 0;
        max-width: none;
    }

    .miniapp__grid {
        grid-template-columns: 1fr 360px;
    }

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

    .footer__top {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

@media (max-width: 520px) {
    .hero__highlights {
        grid-template-columns: 1fr;
    }

    .bubble--tail::after,
    .bubble--tail-right::after {
        display: none;
    }
}
