/* =========================================================
   CyberKid Home Page
   ========================================================= */

/* HERO */
.ck-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 126px;
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 197, 72, .28) 0, rgba(255, 197, 72, 0) 28%),
        radial-gradient(circle at 64% 42%, #f1efff 0, rgba(241, 239, 255, .72) 36%, #fff 74%);
}

.ck-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr);
    gap: 56px;
    align-items: center;
}

.ck-hero__copy {
    position: relative;
    z-index: 3;
}

.ck-kicker,
.ck-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ck-kicker {
    background: var(--guardian-blue);
    color: #fff;
    padding: 11px 21px;
    font-size: 13px;
    box-shadow: 0 18px 42px rgba(83, 81, 246, .22);
}

.ck-eyebrow {
    color: var(--guardian-blue);
    font-size: 13px;
    margin-bottom: 16px;
}

.ck-hero h1 {
    max-width: 760px;
    margin: 28px 0 24px;
    color: var(--cyber-night);
    font-family: var(--font-heading);
    font-size: clamp(56px, 6.25vw, 92px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -.018em;
}

.ck-hero h1 em {
    color: var(--guardian-blue);
    font-style: normal;
}

/* English headings are longer than the original Slovenian copy. */
@media (min-width: 1181px) {
    html[lang="en"] .ck-hero h1 {
        font-size: clamp(56px, 5.4vw, 80px);
    }
}

.ck-hero p {
    max-width: 590px;
    margin: 0 0 34px;
    font-size: 22px;
    line-height: 1.55;
    font-weight: 650;
}

.ck-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ck-audience-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    color: var(--cyber-night);
    font-size: 18px;
    font-weight: 800;
}

.ck-audience-note img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.ck-hero__visual {
    position: relative;
    min-height: 610px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ck-mascots {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    width: min(100%, 820px);
    filter: drop-shadow(0 30px 34px rgba(31, 15, 108, .18));
    animation: ckFloat 7s ease-in-out infinite;
}

.ck-mascots img {
    width: 31%;
    max-height: 448px;
    object-fit: contain;
}

.ck-mascots img:nth-child(2) {
    width: 29%;
    transform: translateY(-4px);
}

.ck-float-card {
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 36px;
    box-shadow: 0 24px 70px rgba(31, 15, 108, .13);
    z-index: 5;
    animation: ckFloatCard 5.6s ease-in-out infinite;
}

.ck-float-card--lock {
    top: 86px;
    left: 24%;
}

.ck-float-card--cloud {
    top: 178px;
    left: 51%;
    animation-delay: .7s;
}

.ck-float-card--heart {
    top: 124px;
    right: 10%;
    color: var(--message-red);
    animation-delay: 1.1s;
}

.ck-blob {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: .92;
}

.ck-blob--yellow {
    right: -120px;
    top: 44px;
    width: 286px;
    height: 176px;
    background: var(--cloud-yellow);
}

.ck-blob--blue {
    left: -105px;
    bottom: 34px;
    width: 232px;
    height: 196px;
    background: var(--guardian-blue);
}

.ck-blob--pink {
    right: 19%;
    bottom: 74px;
    width: 112px;
    height: 112px;
    background: rgba(255, 91, 91, .16);
}

@keyframes ckFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes ckFloatCard {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* COMMON HOME SECTION */
.ck-section {
    padding: 94px 0;
}

.ck-section-heading {
    max-width: 870px;
    margin: 0 auto 50px;
    text-align: center;
}

.ck-section-heading--wide {
    max-width: 980px;
}

.ck-section-heading span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--guardian-blue);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ck-section-heading h2,
.ck-intro h2,
.ck-panel h2,
.ck-home-about h2,
.ck-game-showcase h2,
.ck-cta h2 {
    margin: 0;
    color: var(--cyber-night);
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.014em;
}

.ck-section-heading h2 {
    font-size: clamp(38px, 4.2vw, 64px);
}

.ck-section-heading p {
    margin: 18px auto 0;
    font-size: 20px;
    line-height: 1.65;
    font-weight: 650;
}

/* LOGO STORY */
.ck-logo-story {
    background: #fff;
}

.ck-symbol-band {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 22px;
    max-width: 680px;
    margin: 0 auto 44px;
    padding: 26px 34px;
    border-radius: 38px;
    background: linear-gradient(135deg, #f7f6ff, #fff7df);
    box-shadow: 0 16px 50px rgba(31, 15, 108, .08);
}

.ck-symbol-band::after {
    content: "";
    position: absolute;
    left: 38px;
    right: 38px;
    bottom: 22px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--guardian-blue), var(--cloud-yellow), var(--message-red));
    opacity: .9;
}

.ck-symbol-band img {
    position: relative;
    z-index: 2;
    height: 132px;
    object-fit: contain;
}

.ck-logo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ck-logo-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(31, 15, 108, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ck-logo-card:hover {
    transform: translateY(-8px) rotate(-.4deg);
    box-shadow: 0 26px 70px rgba(31, 15, 108, .12);
}

.ck-logo-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 11px;
    background: var(--guardian-blue);
}

.ck-logo-card--yellow::before { background: var(--cloud-yellow); }
.ck-logo-card--red::before { background: var(--message-red); }

.ck-logo-card__icon {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 28px;
    background: var(--soft);
}

.ck-logo-card__icon img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.ck-logo-card small {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--guardian-blue);
    font-weight: 900;
    letter-spacing: .08em;
}

.ck-logo-card--yellow small { color: #d99900; }
.ck-logo-card--red small { color: var(--message-red); }

.ck-logo-card h3 {
    margin: 0 0 16px;
    color: var(--cyber-night);
    font-family: var(--font-heading);
    font-size: 31px;
    font-weight: 400;
    line-height: 1.08;
}

.ck-logo-card p {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.65;
}

.ck-logo-card strong {
    display: block;
    margin-top: auto;
    color: var(--guardian-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ck-logo-card--yellow strong { color: #d99900; }
.ck-logo-card--red strong { color: var(--message-red); }

.ck-logo-summary {
    max-width: 980px;
    margin: 44px auto 0;
    padding: 28px 34px;
    border-radius: 30px;
    background: var(--cyber-night);
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}

.ck-logo-summary p {
    margin: 0;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.65;
}

/* INTRO */
.ck-intro {
    background:
        radial-gradient(circle at 10% 18%, rgba(83, 81, 246, .08), transparent 32%),
        linear-gradient(180deg, #fff, #f8f7ff);
}

.ck-intro__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.ck-intro h2 {
    max-width: 650px;
    font-size: clamp(38px, 4vw, 62px);
}

.ck-intro__copy p {
    max-width: 600px;
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 1.7;
}

.ck-intro__cards {
    display: grid;
    gap: 18px;
}

.ck-intro__cards article {
    position: relative;
    padding: 28px 30px 28px 94px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(31, 15, 108, .06);
}

.ck-intro__cards span {
    position: absolute;
    left: 28px;
    top: 28px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--guardian-blue);
    color: #fff;
    font-weight: 900;
}

.ck-intro__cards h3 {
    margin: 0 0 8px;
    color: var(--cyber-night);
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 400;
}

.ck-intro__cards p {
    margin: 0;
    line-height: 1.6;
}

/* AUDIENCE + GOALS */
.ck-audience-goals {
    padding-top: 82px;
}

.ck-audience-goals__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ck-panel {
    position: relative;
    overflow: hidden;
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 36px;
    box-shadow: 0 18px 52px rgba(31, 15, 108, .08);
}

.ck-panel--audience {
    background: linear-gradient(135deg, #f5f3ff, #fff);
}

.ck-panel--goals {
    background: linear-gradient(135deg, #fff8e6, #fff);
}

.ck-panel h2 {
    max-width: 560px;
    font-size: clamp(34px, 3.2vw, 50px);
}

.ck-audience-list,
.ck-checks {
    display: grid;
    gap: 16px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.ck-audience-list li,
.ck-checks li {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 28px rgba(31, 15, 108, .04);
}

.ck-audience-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--cyber-night);
    font-weight: 900;
}

.ck-audience-list span {
    display: block;
}

.ck-checks li {
    position: relative;
    padding-left: 52px;
}

.ck-checks li::before {
    content: "✓";
    position: absolute;
    left: 20px;
    top: 17px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--guardian-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

/* ACTIVITIES */
.ck-activities {
    padding-top: 88px;
}

.ck-game-showcase {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 58px;
    border-radius: 42px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 197, 72, .22), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(255, 91, 91, .20), transparent 28%),
        var(--cyber-night);
    color: #fff;
    box-shadow: var(--shadow);
}

.ck-game-showcase .ck-eyebrow {
    color: var(--cloud-yellow);
}

.ck-game-showcase h2 {
    color: #fff;
    font-size: clamp(38px, 4.5vw, 60px);
}

.ck-game-showcase p {
    margin: 18px 0 28px;
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.65;
}

.ck-game-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-width: 0;
    align-self: stretch;
    align-content: center;
}

.ck-game-featured__visual {
    display: grid;
    place-items: center;
    min-height: 200px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 30px;
    background: rgba(255, 255, 255, .08);
}

.ck-game-featured__visual img {
    width: 160px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .16));
}

.ck-game-list {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.ck-game-list .ck-game-link {
    display: grid;
    gap: 10px;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    color: var(--cyber-night);
    transition: transform .22s ease;
}

.ck-game-list .ck-game-link:hover {
    transform: translateY(-3px);
}

.ck-game-list .ck-game-link:focus-visible,
.ck-game-featured .ck-btn:focus-visible {
    outline: 3px solid var(--cloud-yellow);
    outline-offset: 4px;
}

.ck-game-link__title {
    font-family: var(--font-heading);
    font-size: 25px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ck-game-list small {
    font-size: 15px;
    line-height: 1.55;
    font-weight: 650;
    color: var(--ink);
}

.ck-game-link__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--guardian-blue);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (min-width: 721px) and (max-width: 1180px) {
    .ck-game-featured {
        grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr);
        align-items: center;
    }
}

.ck-audience-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.ck-audience-tile {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(31, 15, 108, .06);
    transition: transform .22s ease, box-shadow .22s ease;
}

.ck-audience-tile:hover {
    transform: translateY(-6px) rotate(-.6deg);
    box-shadow: 0 22px 58px rgba(31, 15, 108, .10);
}

.ck-audience-tile span {
    color: var(--cyber-night);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 400;
    line-height: 1.05;
}

.ck-audience-tile small {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.ck-audience-tile--blue { background: linear-gradient(135deg, rgba(83, 81, 246, .14), #fff); }
.ck-audience-tile--yellow { background: linear-gradient(135deg, rgba(255, 197, 72, .26), #fff); }
.ck-audience-tile--red { background: linear-gradient(135deg, rgba(255, 91, 91, .18), #fff); }
.ck-audience-tile--light { background: linear-gradient(135deg, #fff, #f7f6ff); }

/* HOME ABOUT */
.ck-home-about {
    padding-top: 56px;
}

.ck-home-about__inner {
    display: grid;
    grid-template-columns: 1fr .9fr auto;
    gap: 32px;
    align-items: center;
    padding: 42px;
    border-radius: 36px;
    background: linear-gradient(135deg, #f7f6ff, #fff7df);
    box-shadow: 0 18px 52px rgba(31, 15, 108, .08);
}

.ck-home-about h2 {
    font-size: clamp(32px, 3.4vw, 52px);
}

.ck-home-about p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
}

/* CTA */
.ck-cta {
    padding: 30px 0 94px;
}

.ck-cta__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 30px 42px;
    border-radius: 34px;
    background: var(--cyber-night);
    color: #fff;
    box-shadow: var(--shadow);
}

.ck-cta img {
    width: 106px;
    flex: 0 0 auto;
}

.ck-cta h2 {
    color: #fff;
    font-size: 40px;
}

.ck-cta p {
    margin: 6px 0 0;
    color: rgba(255,255,255,.82);
}

.ck-cta .ck-btn {
    margin-left: auto;
    flex: 0 0 auto;
}

/* RESPONSIVE */
@media (max-width: 1180px) {
    .ck-hero__grid,
    .ck-intro__grid,
    .ck-audience-goals__grid,
    .ck-home-about__inner {
        grid-template-columns: 1fr;
    }

    .ck-hero__visual {
        min-height: 460px;
    }

    .ck-logo-cards,
    .ck-game-showcase {
        grid-template-columns: 1fr;
    }

    .ck-audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ck-home-about__inner .ck-btn {
        width: fit-content;
    }
}

@media (max-width: 820px) {
    .ck-hero {
        padding: 38px 0 70px;
        background: radial-gradient(circle at 50% 22%, #fff 0, #f1efff 42%, #fff 78%);
    }

    .ck-hero__grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }

    .ck-hero__visual {
        min-height: 270px;
        width: 100%;
    }

    .ck-mascots {
        width: min(100%, 430px);
        gap: 4px;
    }

    .ck-mascots img {
        width: 34%;
        max-height: 235px;
    }

    .ck-mascots img:nth-child(2) {
        width: 31%;
    }

    .ck-float-card {
        width: 58px;
        height: 58px;
        font-size: 24px;
        box-shadow: 0 12px 36px rgba(31, 15, 108, .12);
    }

    .ck-float-card--lock { top: 2px; left: 11%; }
    .ck-float-card--cloud { top: 86px; left: 47%; }
    .ck-float-card--heart { top: 18px; right: 10%; }

    .ck-blob--yellow { right: -90px; top: 20px; width: 190px; height: 120px; }
    .ck-blob--blue { left: -100px; bottom: -35px; width: 170px; height: 150px; }
    .ck-blob--pink { display: none; }

    .ck-hero h1 {
        font-size: clamp(44px, 13vw, 64px);
        line-height: 1.06;
        margin: 22px 0 18px;
    }

    .ck-hero p,
    .ck-section-heading p,
    .ck-intro__copy p {
        font-size: 18px;
    }

    .ck-section {
        padding: 66px 0;
    }

    .ck-symbol-band {
        padding: 20px 24px;
        border-radius: 30px;
    }

    .ck-symbol-band img {
        height: 92px;
    }

    .ck-logo-card,
    .ck-panel,
    .ck-home-about__inner,
    .ck-game-showcase {
        border-radius: 28px;
        padding: 30px;
    }

    .ck-intro__cards article {
        padding: 26px;
    }

    .ck-intro__cards span {
        position: static;
        margin-bottom: 16px;
    }

    .ck-cta__inner {
        display: grid;
        text-align: center;
        padding: 30px;
    }

    .ck-cta img {
        margin: 0 auto;
    }

    .ck-cta .ck-btn {
        margin: 0 auto;
    }
}

@media (max-width: 540px) {
    .ck-hero__visual {
        min-height: 220px;
    }

    .ck-hero h1 {
        font-size: 44px;
    }

    .ck-actions {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .ck-btn {
        width: 100%;
    }

    .ck-audience-note {
        align-items: flex-start;
        font-size: 16px;
    }

    .ck-logo-cards,
    .ck-audience-grid {
        grid-template-columns: 1fr;
    }

    .ck-logo-card {
        min-height: 0;
    }

    .ck-symbol-band {
        gap: 8px;
    }

    .ck-symbol-band img {
        height: 78px;
    }

    .ck-audience-tile span {
        font-size: 20px;
    }

    .ck-game-showcase h2 {
        font-size: 38px;
    }

    .ck-cta h2 {
        font-size: 33px;
    }
}

@media (max-width: 420px) {
    .ck-panel h2 {
        font-size: 30px;
        overflow-wrap: anywhere;
    }
}
