:root {
    --hub-bg: #f6f7f8;
    --hub-surface: #ffffff;
    --hub-soft: #f8faf9;
    --hub-text: #202525;
    --hub-strong: #101414;
    --hub-muted: #737c7a;
    --hub-line: #e7eae9;
    --hub-primary: #1b615a;
    --hub-primary-dark: #124942;
    --hub-primary-soft: #e7f3f0;
    --hub-shadow: 0 24px 70px rgba(16, 20, 20, 0.08);
    --hub-font:
        Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    min-height: 100%;
}
body {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 34px);
    font-family: var(--hub-font);
    color: var(--hub-text);
    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(27, 97, 90, 0.04),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 84%,
            rgba(16, 20, 20, 0.04),
            transparent 30%
        ),
        linear-gradient(135deg, #fff 0%, var(--hub-bg) 100%);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
.hub-shell {
    width: min(1160px, 100%);
    min-height: min(560px, calc(100dvh - 68px));
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: center;
    gap: clamp(18px, 3vh, 30px);
}
.hub-intro {
    display: grid;
    justify-items: center;
    gap: 20px;
    text-align: center;
}
.hub-logo {
    width: min(420px, 82vw);
    display: grid;
    place-items: center;
    animation: hubFadeUp 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hub-logo img {
    width: 100%;
    max-height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(16, 20, 20, 0.08));
}
.hub-copy {
    display: grid;
    justify-items: center;
    gap: 10px;
    animation: hubFadeUp 0.68s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}
.hub-copy span {
    color: var(--hub-primary);
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: 0.16em;
}
.hub-copy h1 {
    max-width: 760px;
    margin: 0;
    color: var(--hub-strong);
    font-size: clamp(30px, 4.4vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}
.hub-copy p {
    max-width: 650px;
    margin: 0;
    color: var(--hub-muted);
    font-size: clamp(13px, 1.4vw, 15px);
    line-height: 1.65;
}
.hub-apps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.hub-app-card {
    min-height: 220px;
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    border: 1px solid var(--hub-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 42px rgba(16, 20, 20, 0.055);
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    animation: hubCardIn 0.58s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transition:
        transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}
.hub-app-card:nth-child(1) {
    animation-delay: 0.16s;
}
.hub-app-card:nth-child(2) {
    animation-delay: 0.22s;
}
.hub-app-card:nth-child(3) {
    animation-delay: 0.28s;
}
.hub-app-card:nth-child(4) {
    animation-delay: 0.34s;
}
.hub-app-card:hover,
.hub-app-card.is-focus {
    transform: translateY(-5px) scale(1.012);
    border-color: rgba(27, 97, 90, 0.34);
    background: #fff;
    box-shadow: 0 24px 54px rgba(16, 20, 20, 0.11);
}
.hub-app-card:active {
    transform: translateY(-1px) scale(0.992);
}
.hub-app-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: var(--hub-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.05em;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hub-app-card:hover .hub-app-icon {
    transform: rotate(-3deg) scale(1.06);
}
.hub-app-card.is-work .hub-app-icon {
    background: var(--hub-primary-dark);
}
.hub-app-card.is-web .hub-app-icon {
    background: #2d7b58;
}
.hub-app-card.is-client .hub-app-icon {
    background: #102d2b;
}
.hub-app-body small,
.hub-app-body h2,
.hub-app-body p {
    display: block;
}
.hub-app-body small {
    color: var(--hub-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hub-app-body h2 {
    margin: 8px 0 8px;
    color: var(--hub-strong);
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.055em;
}
.hub-app-body p {
    margin: 0;
    color: var(--hub-muted);
    font-size: 12.5px;
    line-height: 1.55;
}
.hub-app-cta {
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--hub-primary-dark);
    background: var(--hub-primary-soft);
    font-size: 11.5px;
    font-weight: 820;
}
.hub-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--hub-muted);
    font-size: 11px;
    animation: hubFadeUp 0.58s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s both;
}
.hub-footer strong {
    color: var(--hub-strong);
}
@media (max-width: 1020px) {
    body {
        overflow: auto;
    }
    .hub-shell {
        min-height: calc(100dvh - 32px);
    }
    .hub-apps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hub-app-card {
        min-height: 190px;
    }
}
@media (max-width: 620px) {
    body {
        padding: 14px;
    }
    .hub-shell {
        min-height: calc(100dvh - 28px);
        gap: 16px;
    }
    .hub-logo {
        width: min(320px, 84vw);
    }
    .hub-logo img {
        max-height: 74px;
    }
    .hub-copy h1 {
        font-size: 32px;
        line-height: 1.02;
    }
    .hub-copy p {
        font-size: 13px;
    }
    .hub-apps {
        grid-template-columns: 1fr;
    }
    .hub-app-card {
        min-height: 0;
        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }
    .hub-app-icon {
        grid-row: span 2;
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }
    .hub-app-body h2 {
        font-size: 22px;
        margin: 5px 0 5px;
    }
    .hub-app-cta {
        grid-column: 2;
    }
    .hub-footer {
        flex-wrap: wrap;
    }
}
@media (max-height: 700px) and (min-width: 1021px) {
    .hub-shell {
        gap: 16px;
    }
    .hub-logo {
        width: 320px;
    }
    .hub-logo img {
        max-height: 68px;
    }
    .hub-copy h1 {
        font-size: 40px;
    }
    .hub-copy p {
        font-size: 13px;
    }
    .hub-app-card {
        min-height: 184px;
        padding: 15px;
    }
    .hub-app-body h2 {
        font-size: 23px;
    }
    .hub-app-body p {
        font-size: 12px;
    }
}
@keyframes hubFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
@keyframes hubCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
