.tools-page.tools-showcase-page {
    --tools-cyan: #62e5f2;
    --tools-purple: #c1a0ff;
    --tools-pink: #ff91d8;
    --tools-ink: #080a0c;
    --tools-panel: #111518;
    --tools-line: #ffffff20;
    background-color: var(--tools-ink);
}

.tools-page.tools-showcase-page::before {
    background-image:
        radial-gradient(ellipse at 50% 5%, #14343b55, transparent 38%),
        linear-gradient(#ffffff08 1px, transparent 1px),
        linear-gradient(90deg, #ffffff08 1px, transparent 1px),
        linear-gradient(180deg, rgb(8 10 12 / .9), rgb(8 10 12 / .84) 44%, #080a0cf5 100%),
        var(--page-background-image);
    background-position: center top, center top, center top, center, center top;
    background-repeat: no-repeat, repeat, repeat, no-repeat, no-repeat;
    background-size: auto, 64px 64px, 64px 64px, cover, cover;
}

.tools-page.tools-showcase-page > header {
    min-height: min(72vh, 760px);
    padding: 48px 24px 54px;
    background: linear-gradient(180deg, #080a0c35, #080a0caa);
}

.tools-page.tools-showcase-page > header > a[aria-label="Home"] img {
    max-height: 150px;
    opacity: .9;
}

.tools-page.tools-showcase-page > header > h1 {
    margin: 20px 0 0;
    color: #f3f5f6;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .22em;
    line-height: 1;
    text-indent: .22em;
    animation: tools-title-rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.tools-page.tools-showcase-page > header .tools-hero-tagline {
    margin: 22px 0 0;
    color: #c9faff;
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    font-weight: 700;
    letter-spacing: .22em;
    text-shadow: 0 0 3px #36ddf5, 0 0 12px rgb(54 221 245 / .5), 0 0 28px rgb(54 221 245 / .23);
    animation: tools-arcade-glow 5s ease-in-out infinite;
}

.tools-page.tools-showcase-page > header .tools-hero-subcopy {
    max-width: 620px;
    margin: 10px 0 0;
    color: #d3d9dc;
    font-size: clamp(.72rem, 1.35vw, .9rem);
    letter-spacing: .14em;
    line-height: 1.8;
}

.tools-page.tools-showcase-page > header > p.site-name {
    margin-top: 28px;
}

.tools-page.tools-showcase-page > header > p:last-child {
    margin-bottom: 0;
}

.tools-main {
    width: min(100% - 48px, 1160px);
    max-width: none;
    margin: 0 auto;
    padding-bottom: 18px;
}

.tools-directory-intro {
    max-width: 780px;
    margin: 0 auto;
    padding: 54px 0 26px;
    text-align: left;
}

.tools-directory-intro .tools-intro {
    margin: 0 auto 10px;
    color: #d5dadd;
    font-size: clamp(.95rem, 1.4vw, 1.08rem);
    line-height: 1.8;
}

.tools-directory-intro .tools-intro-japanese {
    margin: 0 auto;
    color: #9da6aa;
    font-size: .9rem;
    line-height: 1.9;
}

.tools-category-nav {
    position: static;
    z-index: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(20px, 6vw, 74px);
    margin: 0 0 32px;
    padding: 18px 12px 30px;
    border: 0;
    background: transparent;
}

.tools-category-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    color: #e6eaec;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.tools-category-link span {
    color: currentColor;
    font-size: .7rem;
    opacity: .7;
}

.tools-category-life { --tools-accent: var(--tools-cyan); }
.tools-category-finance { --tools-accent: var(--tools-purple); }
.tools-category-web { --tools-accent: var(--tools-pink); }

.tools-category-link:hover,
.tools-category-link:focus-visible {
    color: var(--tools-accent);
    transform: translateY(-2px);
}

.tools-category-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.tools-page.tools-showcase-page .tools-directory-section {
    min-height: 0;
    margin: 0;
    padding: 56px 0 66px;
    border: 0;
    border-top: 1px solid var(--tools-line);
    scroll-margin-top: 28px;
}

.tools-page.tools-showcase-page .tools-category-life.tools-directory-section {
    background:
        radial-gradient(ellipse at 4% 0%, #62e5f20c, transparent 42%),
        linear-gradient(120deg, #62e5f209, transparent 48%, #62e5f204);
}

.tools-page.tools-showcase-page .tools-category-finance.tools-directory-section {
    background:
        radial-gradient(ellipse at 96% 0%, #c1a0ff0c, transparent 42%),
        linear-gradient(120deg, #c1a0ff04, transparent 48%, #c1a0ff09);
}

.tools-page.tools-showcase-page .tools-section-heading {
    margin-bottom: 27px;
}

.tools-page.tools-showcase-page .tools-section-heading h2 {
    margin: 0;
    color: #f0f3f4;
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.25;
}

.tools-section-index {
    margin: 0 0 8px;
    color: var(--tools-accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
}

.tools-page.tools-showcase-page .tools-section-subtitle {
    margin: 9px 0 0;
    color: #9ca5a9;
    font-size: .78rem;
    letter-spacing: .14em;
}

.tools-page.tools-showcase-page .tool-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tools-page.tools-showcase-page .tool-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 220px;
    grid-template-columns: 58px minmax(0, 1fr) 22px;
    align-items: start;
    gap: 18px;
    padding: 27px 25px;
    overflow: hidden;
    border: 1px solid #ffffff20;
    border-radius: 3px;
    background:
        linear-gradient(135deg, #ffffff07, transparent 44%),
        linear-gradient(135deg, #161c20, #0d1114 72%);
    box-shadow: inset 0 1px 0 #ffffff0a;
    color: #f2f5f6;
    text-decoration: none;
    transition: transform .24s ease, border-color .24s ease, background-color .24s ease, box-shadow .24s ease;
}

.tools-page.tools-showcase-page .tool-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: var(--tools-accent);
    content: "";
    opacity: .8;
}

.tools-page.tools-showcase-page .tool-card:hover,
.tools-page.tools-showcase-page .tool-card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tools-accent) 48%, #ffffff20);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tools-accent) 8%, transparent), transparent 58%),
        linear-gradient(135deg, #1a2226, #101518 72%);
    box-shadow: 0 12px 32px #0005, 0 0 22px color-mix(in srgb, var(--tools-accent) 10%, transparent);
}

.tools-page.tools-showcase-page .tool-card:focus-visible {
    outline: 2px solid var(--tools-accent);
    outline-offset: 4px;
}

.tool-card-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--tools-accent) 36%, transparent);
    background: color-mix(in srgb, var(--tools-accent) 7%, #0a0d0f);
    color: var(--tools-accent);
    transition: transform .24s ease, background-color .24s ease;
}

.tool-card-icon svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.tool-card:hover .tool-card-icon,
.tool-card:focus-visible .tool-card-icon {
    transform: scale(1.08);
    background: color-mix(in srgb, var(--tools-accent) 12%, #0a0d0f);
}

.tool-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.tools-page.tools-showcase-page .tool-card-title {
    margin: 0;
    color: #f1f4f5;
    font-size: clamp(.88rem, 1.25vw, 1.02rem);
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.tools-page.tools-showcase-page .tool-card-japanese {
    margin-top: 5px;
    color: var(--tools-accent);
    font-size: .86rem;
    line-height: 1.6;
}

.tools-page.tools-showcase-page .tool-card-description {
    margin-top: 15px;
    color: #c7cdd0;
    font-size: .9rem;
    line-height: 1.7;
}

.tools-page.tools-showcase-page .tool-card-japanese-description {
    margin-top: 7px;
    color: #929ca0;
    font-size: .8rem;
    line-height: 1.8;
}

.tool-card-arrow {
    align-self: center;
    color: var(--tools-accent);
    font-size: 1.35rem;
    transition: transform .2s ease;
}

.tool-card:hover .tool-card-arrow,
.tool-card:focus-visible .tool-card-arrow {
    transform: translate(3px, -3px);
}

.tools-page.tools-showcase-page .tool-card-coming-soon {
    border-style: dashed;
    border-color: color-mix(in srgb, var(--tools-accent) 28%, #ffffff20);
    background: linear-gradient(135deg, #ffffff04, #0d111488);
}

.tools-page.tools-showcase-page .tool-card-coming-soon .tool-card-title {
    color: var(--tools-accent);
    letter-spacing: .16em;
}

.tools-page.tools-showcase-page .tool-card-coming-soon .tool-card-description {
    margin-top: 10px;
    color: #e0e5e7;
    font-size: .95rem;
}

.tools-page.tools-showcase-page .tool-card-coming-soon .tool-card-icon {
    border-style: dashed;
    opacity: .75;
}

.tools-page.tools-showcase-page .tools-lab-section {
    position: relative;
    margin-top: 10px;
    padding: 70px 26px 78px;
    border: 1px solid #ff91d833;
    background:
        radial-gradient(ellipse at 88% 0%, #ff5ec51b, transparent 36%),
        linear-gradient(125deg, #151017, #0c0e12 65%, #101117);
}

.tools-page.tools-showcase-page .tools-lab-section::after {
    position: absolute;
    top: 0;
    right: 0;
    width: min(38%, 320px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tools-pink));
    content: "";
}

.tools-page.tools-showcase-page .tools-lab-section .tool-card {
    min-height: 285px;
    background:
        linear-gradient(145deg, #ff91d80b, transparent 54%),
        linear-gradient(135deg, #17151b, #0d1014 76%);
}

.tools-page.tools-showcase-page .tools-lab-section .tool-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #ff91d815, #0a0d0f);
}

.tools-page.tools-showcase-page .tools-lab-section .tool-card-icon svg {
    width: 40px;
    height: 40px;
}

.tool-card-eyebrow {
    margin: 0 0 8px;
    color: var(--tools-pink);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.tools-page.tools-showcase-page .tools-lab-section .tool-card-title {
    font-size: clamp(1rem, 1.7vw, 1.3rem);
}

.tools-page.tools-showcase-page .tools-lab-section .tool-card-japanese-description {
    margin-top: 12px;
}

.tools-page.tools-showcase-page .tools-lab-section .tool-card-coming-soon {
    min-height: 220px;
}

.tools-closing {
    padding: 90px 20px 100px;
    text-align: center;
}

.tools-page.tools-showcase-page .tools-closing p {
    max-width: none;
    margin: 0;
    color: #aab4b8;
    font-size: clamp(.72rem, 1.4vw, .9rem);
    letter-spacing: .2em;
    line-height: 1.8;
}

.tools-page.tools-showcase-page .tools-closing .tools-closing-title {
    margin-bottom: 10px;
    color: var(--tools-cyan);
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: .14em;
}

.tools-animations-ready [data-reveal="heading"],
.tools-animations-ready [data-reveal="card"],
.tools-animations-ready [data-reveal="lab"] {
    opacity: 0;
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
}

.tools-animations-ready [data-reveal="heading"] {
    transform: translateX(-22px);
}

.tools-animations-ready [data-reveal="card"] {
    transform: translateY(24px);
}

.tools-animations-ready [data-reveal="lab"] {
    transform: translateY(28px) scale(.985);
}

.tools-animations-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.tools-page.tools-showcase-page .tool-list > :nth-child(2) { transition-delay: 90ms; }
.tools-page.tools-showcase-page .tool-list > :nth-child(3) { transition-delay: 180ms; }

@keyframes tools-title-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tools-arcade-glow {
    0%, 100% { text-shadow: 0 0 3px #36ddf5, 0 0 12px rgb(54 221 245 / .5), 0 0 28px rgb(54 221 245 / .23); }
    50% { text-shadow: 0 0 4px #36ddf5, 0 0 16px rgb(54 221 245 / .62), 0 0 34px rgb(54 221 245 / .28); }
}

@media (max-width: 700px) {
    .tools-page.tools-showcase-page > header {
        min-height: 0;
        padding: 54px 20px 38px;
    }

    .tools-page.tools-showcase-page > header > a[aria-label="Home"] img {
        width: min(80%, 540px);
        max-height: 100px;
    }

    .tools-page.tools-showcase-page > header > h1 {
        margin-top: 22px;
        font-size: 2.2rem;
    }

    .tools-page.tools-showcase-page > header .tools-hero-tagline {
        margin-top: 17px;
        letter-spacing: .16em;
    }

    .tools-page.tools-showcase-page > header .tools-hero-subcopy {
        max-width: 420px;
        font-size: .68rem;
        letter-spacing: .09em;
    }

    .tools-page.tools-showcase-page > header > p.site-name {
        margin-top: 22px;
    }

    .tools-main {
        width: min(100% - 36px, 560px);
    }

    .tools-directory-intro {
        padding: 38px 0 18px;
        text-align: left;
    }

    .tools-directory-intro .tools-intro-japanese {
        font-size: .84rem;
    }

    .tools-category-nav {
        justify-content: flex-start;
        gap: 2px 20px;
        margin-bottom: 18px;
        padding: 8px 0 22px;
    }

    .tools-category-link {
        min-height: 48px;
        gap: 7px;
        font-size: .78rem;
        letter-spacing: .06em;
    }

    .tools-page.tools-showcase-page .tools-directory-section {
        padding: 44px 0 50px;
    }

    .tools-page.tools-showcase-page .tools-section-heading {
        margin-bottom: 21px;
    }

    .tools-page.tools-showcase-page .tool-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .tools-page.tools-showcase-page .tool-card {
        min-height: 0;
        grid-template-columns: 46px minmax(0, 1fr) 18px;
        gap: 13px;
        padding: 21px 17px;
    }

    .tools-page.tools-showcase-page .tool-card-arrow {
        position: relative;
        display: block;
        width: 18px;
        height: 18px;
        overflow: visible;
        font-size: 0;
        line-height: 0;
    }

    .tools-page.tools-showcase-page .tool-card-arrow::before,
    .tools-page.tools-showcase-page .tool-card-arrow::after {
        position: absolute;
        color: currentColor;
        content: "";
    }

    .tools-page.tools-showcase-page .tool-card-arrow::before {
        top: 8px;
        left: 0;
        width: 16px;
        height: 1.5px;
        background: currentColor;
        transform: rotate(-45deg);
    }

    .tools-page.tools-showcase-page .tool-card-arrow::after {
        top: 3px;
        right: 3px;
        width: 6px;
        height: 6px;
        border-top: 1.5px solid currentColor;
        border-right: 1.5px solid currentColor;
    }

    .tool-card-icon {
        width: 44px;
        height: 44px;
    }

    .tool-card-icon svg {
        width: 29px;
        height: 29px;
    }

    .tools-page.tools-showcase-page .tool-card-description {
        margin-top: 11px;
        font-size: .85rem;
    }

    .tools-page.tools-showcase-page .tool-card-japanese-description {
        font-size: .77rem;
    }

    .tools-page.tools-showcase-page .tools-lab-section {
        margin-inline: -10px;
        padding: 42px 15px 48px;
    }

    .tools-page.tools-showcase-page .tools-lab-section .tool-card {
        min-height: 0;
    }

    .tools-page.tools-showcase-page .tools-lab-section .tool-card-icon {
        width: 48px;
        height: 48px;
    }

    .tools-page.tools-showcase-page .tools-lab-section .tool-card-icon svg {
        width: 32px;
        height: 32px;
    }

    .tools-closing {
        padding: 65px 8px 72px;
    }

    .tools-page.tools-showcase-page .tools-closing p {
        font-size: .68rem;
        letter-spacing: .12em;
    }
}

@media (max-width: 600px) {
    .tools-page.tools-showcase-page > header .tools-hero-subcopy-second-line {
        display: block;
    }
}

@media (max-width: 380px) {
    .tools-category-nav {
        gap: 0 12px;
    }

    .tools-category-link {
        font-size: .7rem;
    }

    .tools-page.tools-showcase-page .tool-card {
        grid-template-columns: 38px minmax(0, 1fr) 14px;
        gap: 10px;
        padding: 18px 13px;
    }

    .tools-page.tools-showcase-page .tool-card-arrow {
        width: 14px;
        height: 14px;
    }

    .tools-page.tools-showcase-page .tool-card-arrow::before {
        top: 6px;
        left: -1px;
        width: 14px;
    }

    .tools-page.tools-showcase-page .tool-card-arrow::after {
        top: 2px;
        right: 2px;
        width: 5px;
        height: 5px;
    }

    .tool-card-icon {
        width: 38px;
        height: 38px;
    }

    .tool-card-icon svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 700px) {
    .tools-animations-ready [data-reveal="heading"],
    .tools-animations-ready [data-reveal="card"],
    .tools-animations-ready [data-reveal="lab"] {
        transform: translateY(10px);
        transition-duration: .35s;
    }

    .tools-animations-ready [data-reveal].is-visible {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .tools-page.tools-showcase-page > header > h1 {
        animation: none;
    }

    .tools-page.tools-showcase-page *,
    .tools-page.tools-showcase-page *::before,
    .tools-page.tools-showcase-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .tools-animations-ready [data-reveal],
    .tools-animations-ready [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }
}
