:root {
    --bg: #f5f6fb;
    --surface: rgba(255, 255, 255, .88);
    --text: #202135;
    --muted: #76798d;
    --line: rgba(35, 37, 58, .08);
    --primary: #6757df;
    --shadow: 0 18px 50px rgba(45, 40, 100, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        linear-gradient(180deg, #fafaff 0%, var(--bg) 42%, #f7f8fc 100%);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
    width: min(1160px, calc(100% - 36px));
    margin-inline: auto;
}

.page-glow {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.page-glow-one {
    width: 380px;
    height: 380px;
    top: -130px;
    right: -120px;
    background: radial-gradient(circle, rgba(130, 104, 255, .20), transparent 68%);
}

.page-glow-two {
    width: 360px;
    height: 360px;
    top: 360px;
    left: -180px;
    background: radial-gradient(circle, rgba(74, 198, 212, .14), transparent 68%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255,255,255,.7);
    background: rgba(250, 250, 255, .76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #7161e8, #45a9d9);
    box-shadow: 0 8px 22px rgba(103, 87, 223, .28);
}

.app-count {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.8);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.hero {
    padding: 82px 0 54px;
    text-align: center;
}

.hero-badge {
    width: fit-content;
    margin: 0 auto 20px;
    padding: 8px 13px;
    border: 1px solid rgba(103, 87, 223, .13);
    border-radius: 999px;
    color: #6658cd;
    background: rgba(255,255,255,.72);
    box-shadow: 0 10px 34px rgba(50, 44, 110, .06);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.hero h1 {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.07;
    letter-spacing: -.055em;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, #6658dc, #308ebd);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero p {
    max-width: 620px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.search-box {
    position: relative;
    width: min(610px, 100%);
    margin: 34px auto 0;
}

.search-box > i {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #8b8ea0;
    font-size: 18px;
}

.search-box input {
    width: 100%;
    height: 58px;
    padding: 0 52px;
    border: 1px solid rgba(49, 44, 90, .10);
    border-radius: 18px;
    outline: 0;
    color: var(--text);
    background: rgba(255,255,255,.92);
    box-shadow: 0 15px 45px rgba(42, 36, 97, .09);
    font-size: 16px;
    transition: border .2s, box-shadow .2s, transform .2s;
}

.search-box input:focus {
    border-color: rgba(103, 87, 223, .38);
    box-shadow: 0 18px 55px rgba(74, 62, 160, .15);
    transform: translateY(-1px);
}

.search-box button {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 11px;
    color: #8b8ea0;
    background: transparent;
    cursor: pointer;
}

.apps-section {
    padding: 18px 0 92px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.eyebrow {
    color: #7669d2;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .17em;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: 28px;
    letter-spacing: -.035em;
}

.section-heading p {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 13px;
}

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

.app-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 25px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--app-accent) 7%, white), rgba(255,255,255,.92) 42%);
    box-shadow: var(--shadow);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.app-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: "";
    background: var(--app-accent);
    opacity: .86;
}

.app-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--app-accent) 26%, white);
    box-shadow: 0 26px 68px rgba(46, 40, 100, .16);
}

.card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--app-accent);
    background: color-mix(in srgb, var(--app-accent) 10%, white);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.card-top {
    padding: 28px 26px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.app-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    color: white;
    background: var(--app-accent);
    box-shadow: 0 13px 28px color-mix(in srgb, var(--app-accent) 26%, transparent);
    font-size: 25px;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.launch-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: #838698;
    background: rgba(255,255,255,.72);
}

.card-body {
    flex: 1;
    padding: 15px 26px 24px;
}

.card-body h3 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -.035em;
}

.subtitle {
    margin-top: 5px;
    color: var(--app-accent);
    font-size: 13px;
    font-weight: 800;
}

.card-body p {
    min-height: 4.9em;
    margin: 15px 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-list span {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #727587;
    background: rgba(255,255,255,.64);
    font-size: 11px;
    font-weight: 700;
}

.card-footer {
    min-height: 62px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.56);
}

.card-footer > span {
    overflow: hidden;
    color: #9698a6;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--app-accent);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.empty-state {
    padding: 70px 25px;
    border: 1px dashed rgba(63, 59, 98, .16);
    border-radius: 25px;
    text-align: center;
    background: rgba(255,255,255,.55);
}

.empty-state > span {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #7365d5;
    background: #eeebff;
    font-size: 26px;
}

.empty-state h2 {
    margin: 0;
    font-size: 20px;
}

.empty-state p {
    margin: 10px 0 0;
    color: var(--muted);
}

.search-empty { margin-top: 20px; }

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.45);
}

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

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer span,
.site-footer small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 900px) {
    .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .container { width: min(100% - 26px, 1160px); }

    .header-inner { min-height: 64px; }

    .hero { padding: 58px 0 42px; }

    .hero h1 {
        font-size: clamp(38px, 13vw, 56px);
    }

    .hero p {
        font-size: 15px;
        line-height: 1.75;
    }

    .search-box input {
        height: 54px;
        border-radius: 16px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .app-card {
        border-radius: 22px;
    }

    .card-body p {
        min-height: 0;
    }

    .site-footer .container {
        align-items: flex-start;
        flex-direction: column;
    }
}
