
:root {
    --bg-app: #faf8f4;
    --bg-shell: rgba(30, 29, 27, 0.05);
    --bg-card: #ffffff;
    --bg-inset: #f6f4ef;
    --text-primary: #1a1917;
    --text-secondary: #5a5550;
    --text-tertiary: #918d86;
    --border-light: #e9e6e0;
    --edu: #d97757;
    --edu-light: #fbf1ed;
    --biz: #0f766e;
    --biz-light: #eaf7f4;
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

[data-theme="dark"] {
    --bg-app: #171614;
    --bg-shell: rgba(255, 255, 255, 0.055);
    --bg-card: #232120;
    --bg-inset: #1d1c1a;
    --text-primary: #ece9e4;
    --text-secondary: #a8a49d;
    --text-tertiary: #767370;
    --border-light: #34312d;
    --edu-light: rgba(217, 119, 87, 0.14);
    --biz-light: rgba(15, 118, 110, 0.18);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60rem 32rem at 50% -12%, rgba(217, 119, 87, 0.07), transparent 65%),
        radial-gradient(44rem 28rem at 88% 108%, rgba(15, 118, 110, 0.055), transparent 62%);
}

.topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 30px;
}

.lang-row {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: var(--bg-shell);
    border-radius: 999px;
}

.lang-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.lang-btn:hover { color: var(--text-primary); }

.lang-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lang-btn:focus-visible { outline: 2px solid var(--edu); outline-offset: 2px; }

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: var(--bg-shell);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.icon-btn:hover { color: var(--text-primary); }
.icon-btn:active { transform: scale(0.93); }
.icon-btn:focus-visible { outline: 2px solid var(--edu); outline-offset: 2px; }

.wrap {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 30px 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro {
    width: 100%;
    min-width: 0;
    max-width: 520px;
    margin-bottom: 44px;
    text-align: center;
}

.intro-mark {
    color: var(--edu);
    margin-bottom: 20px;
    opacity: 0;
    animation: rise 0.8s var(--ease) 0.02s forwards;
}

.intro h1 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 3.9rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 0.98;
    opacity: 0;
    animation: rise 0.8s var(--ease) 0.08s forwards;
}

.intro .tag {
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 34ch;
    opacity: 0;
    animation: rise 0.8s var(--ease) 0.14s forwards;
}

.intro .note {
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-tertiary);
    max-width: 44ch;
    opacity: 0;
    animation: rise 0.8s var(--ease) 0.2s forwards;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

.card {
    display: flex;
    padding: 6px;
    border-radius: 26px;
    background: var(--bg-shell);
    text-decoration: none;
    color: inherit;
    opacity: 0;
    animation: rise 0.8s var(--ease) forwards;
    transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.card:nth-of-type(1) { animation-delay: 0.26s; }
.card:nth-of-type(2) { animation-delay: 0.34s; }

.card:hover { transform: translateY(-4px); }
.card--edu:hover { background: var(--edu-light); }
.card--biz:hover { background: var(--biz-light); }
.card:active { transform: translateY(-1px) scale(0.995); }
.card:focus-visible { outline: 2px solid var(--edu); outline-offset: 3px; }

.card-core {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 24px 20px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .card-core { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045); }

.card-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.card--edu .card-icon { background: var(--edu-light); color: var(--edu); }
.card--biz .card-icon { background: var(--biz-light); color: var(--biz); }

.card-head h2 {
    flex: 1;
    margin: 0;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.012em;
}

.badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: var(--edu-light);
    color: var(--edu);
}

.badge--biz { background: var(--biz-light); color: var(--biz); }

.card-desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    min-height: 2.6em;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 18px;
    padding: 13px 4px;
    list-style: none;
    background: var(--bg-inset);
    border-radius: 13px;
}

.card-stats li {
    text-align: center;
    padding: 0 4px;
    font-size: 10px;
    line-height: 1.3;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
}

.card-stats li + li { border-left: 1px solid var(--border-light); }

.card-stats b {
    display: block;
    margin-bottom: 3px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.card-go {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    margin-top: auto;
    padding: 5px 5px 5px 16px;
    border-radius: 999px;
    background: var(--bg-inset);
    font-size: 12.5px;
    font-weight: 600;
}

.card--edu .card-go { color: var(--edu); }
.card--biz .card-go { color: var(--biz); }

.card-go i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--bg-card);
    font-style: normal;
    font-size: 12px;
    transition: transform 0.4s var(--ease);
}

.card:hover .card-go i { transform: translateX(3px); }

footer {
    position: relative;
    padding: 0 30px 26px;
    font-size: 11.5px;
    color: var(--text-tertiary);
    text-align: center;
}

footer a { color: inherit; }

@media (min-width: 761px) and (max-height: 800px) {
    .topbar { padding: 14px 24px; }
    .wrap { padding: 0 30px 20px; }
    .intro { margin-bottom: 24px; }
    .intro-mark { margin-bottom: 10px; }
    .intro-mark svg { width: 36px; height: 36px; }
    .intro h1 { margin-bottom: 7px; font-size: clamp(2.5rem, 5vw, 3.3rem); }
    .intro .tag { line-height: 1.4; }
    .intro .note { margin-top: 12px; padding-top: 10px; line-height: 1.4; }
    .card-core { padding: 19px 22px 16px; }
    .card-head { margin-bottom: 11px; }
    .card-desc { margin-bottom: 12px; }
    .card-stats { margin-bottom: 12px; padding: 10px 4px; }
    footer { padding-bottom: 14px; }
}

@media (max-width: 760px) {
    .topbar { padding: 12px 16px; }
    .wrap { padding: 0 16px 14px; justify-content: flex-start; }
    .intro { margin-bottom: 14px; }
    .intro-mark { margin-bottom: 8px; }
    .intro-mark svg { width: 34px; height: 34px; }
    .intro h1 { margin-bottom: 6px; font-size: 2rem; line-height: 1; }
    .intro .tag { font-size: 14px; line-height: 1.45; }
    .intro .note {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 12px;
        line-height: 1.45;
    }
    .cards { grid-template-columns: 1fr; gap: 10px; }
    .card { padding: 4px; border-radius: 20px; }
    .card-core { padding: 14px 15px 13px; border-radius: 16px; }
    .card-head { gap: 8px; margin-bottom: 10px; }
    .card-icon { width: 30px; height: 30px; border-radius: 9px; }
    .card-icon svg { width: 17px; height: 17px; }
    .card-head h2 { font-size: 16px; }
    .badge { padding: 3px 8px; }
    .card-desc { min-height: 0; margin-bottom: 11px; line-height: 1.5; }
    .card-stats { margin-bottom: 11px; padding: 9px 2px; border-radius: 10px; }
    .card-stats b { margin-bottom: 2px; font-size: 17px; }
    .card-go { gap: 8px; padding: 4px 4px 4px 13px; }
    .card-go i { width: 24px; height: 24px; }
    footer { padding: 0 16px 12px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .intro-mark, .intro h1, .intro .tag, .intro .note, .card { opacity: 1; }
    .card:hover, .card:active { transform: none; }
}
