@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================================
   VARIABLES
========================================================= */
:root {
    --primary: #5b48d4;
    --primary-dark: #2e1f8c;
    --primary-light: #efedff;
    --purple-soft: #f5f3ff;
    --blue-soft: #f1f5ff;
    --text: #0d1a3d;
    --text-light: #2f3a5c;
    --muted: #4a5478;
    --border: #e0e2f0;
    --white: #ffffff;
    --background: #f6f7fe;
    --arrow: #6a6a95;
    --shadow: 0 8px 25px rgba(65, 60, 135, 0.08);
    --shadow-hover: 0 14px 35px rgba(65, 60, 135, 0.14);
}

/* =========================================================
   RESET
========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(221, 217, 255, 0.45), transparent 25%),
        radial-gradient(circle at 90% 30%, rgba(220, 235, 255, 0.4), transparent 25%),
        var(--background);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* =========================================================
   HEADER
========================================================= */
.header {
    position: sticky;
    top: 12px;
    z-index: 999;
    width: min(1120px, calc(100% - 35px));
    min-height: 66px;
    margin: 12px auto 0;
    padding: 9px 15px 9px 22px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(220, 222, 240, 0.9);
    border-radius: 17px;
    box-shadow: 0 8px 25px rgba(56, 52, 125, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.header img { width: 31px; height: 31px; object-fit: contain; }

.header h1 {
    margin-right: auto;
    color: var(--text);
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.header a {
    position: relative;
    padding: 7px 11px;
    color: #3a4467;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.25s ease, transform 0.25s ease;
}

.header a:hover { color: var(--primary); transform: translateY(-1px); }

.header a:last-child {
    padding: 10px 18px;
    color: white;
    background: linear-gradient(135deg, #7765ed, #5945ce);
    border-radius: 999px;
    box-shadow: 0 7px 17px rgba(98, 82, 220, 0.28);
}

.header a:last-child:hover { color: white; transform: translateY(-2px); }

/* =========================================================
   MAIN
========================================================= */
main {
    width: min(1050px, calc(100% - 35px));
    margin: auto;
    padding: 20px 0 70px;
}

main > div { margin: 14px 0; }

main > h1 {
    margin: 26px 2px 2px;
    font-size: clamp(19px, 2.6vw, 25px);
}

main h1,
main h2 {
    font-family: 'Sora', sans-serif;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

main h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.65;
}

main h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
}

/* =========================================================
   DISCLAIMER
========================================================= */
#disclaimer {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    margin: 22px 0 26px;
    padding: 22px 26px 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 231, 190, 0.5), transparent 55%),
        linear-gradient(135deg, #fffdf8 0%, #fff7ea 100%);
    border: 1px solid #f2ddb6;
    border-left: 4px solid #e8a03a;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(180, 130, 40, 0.1);
}

#disclaimer::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 205, 120, 0.3), transparent 70%);
    pointer-events: none;
}

.disclaimer-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #c97d16;
    background: linear-gradient(145deg, #fff6e4, #ffe9c2);
    border: 1px solid #f0d194;
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(200, 140, 30, 0.16);
}
.disclaimer-icon svg { width: 24px; height: 24px; }

.disclaimer-body { position: relative; z-index: 1; }

.disclaimer-badge {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 11px;
    color: #a0650d;
    background: rgba(232, 160, 58, 0.16);
    border: 1px solid rgba(232, 160, 58, 0.32);
    border-radius: 999px;
    font-family: 'Sora', sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#disclaimer h2 {
    margin: 0 0 8px;
    color: #7a4c08;
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

#disclaimer p {
    margin: 0;
    color: #6b5a3d;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.75;
}

/* =========================================================
   HERO — full illustration background, centered text
========================================================= */
#studySmarter {
    position: relative;
    min-height: 480px;
    padding: 70px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #f6f7fe;
    border: 1px solid #e0e2f2;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

/* illustration fills the entire card */
#studySmarter > img {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    margin: 0;
    filter: none;
    animation: none;
    -webkit-mask-image: none;
    mask-image: none;
}

/* soft white radial glow so text stays readable */
#studySmarter::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse 60% 70% at 50% 50%,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.62) 35%,
        rgba(255, 255, 255, 0) 72%
    );
}

/* text sits above image + overlay */
#studySmarter > h2,
#studySmarter > h3,
#studySmarter > a {
    position: relative;
    z-index: 2;
}

#studySmarter h2 {
    max-width: 620px;
    font-size: clamp(28px, 3.6vw, 42px);
    color: var(--text);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

#studySmarter h3 {
    max-width: 560px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.7;
}

#studySmarter > a {
    width: fit-content;
    margin-top: 24px;
    padding: 12px 22px;
    color: white;
    background: linear-gradient(135deg, #7662e9, #5944ce);
    border-radius: 11px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(98, 82, 220, 0.26);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#studySmarter > a:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 25px rgba(98, 82, 220, 0.32);
}

/* =========================================================
   MBTI / STUDY HABITS CARDS
========================================================= */
#whatIs,
#whatAreStudyHabbits {
    min-height: 105px;
    padding: 20px 26px;
    display: grid;
    grid-template-columns: 85px 1fr;
    column-gap: 20px;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(63, 60, 130, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#whatIs:hover,
#whatAreStudyHabbits:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

#whatIs img,
#whatAreStudyHabbits img {
    grid-row: 1 / span 3;
    width: 72px;
    height: 72px;
    padding: 10px;
    object-fit: contain;
    background: linear-gradient(145deg, #f0eeff, #e7e4ff);
    border-radius: 50%;
}

#whatIs h2,
#whatAreStudyHabbits h2 { font-size: 17px; }

#whatIs h3,
#whatAreStudyHabbits h3 {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-light);
}

#whatIs a {
    display: inline-block;
    margin-top: 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* =========================================================
   WHY PERSONIUM — base grid (pre-JS markup)
========================================================= */
#whyPersonium {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 30px
        minmax(0, 1fr) 30px
        minmax(0, 1fr) 30px
        minmax(0, 1fr) 30px
        minmax(0, 1fr);
    column-gap: 0;
    row-gap: 12px;
    align-items: center;
    justify-items: center;
    padding: 28px 30px 32px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

#whyPersonium > h2 {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    width: 100%;
    margin-bottom: 4px;
    font-size: 20px;
}

#whyPersonium > h3:nth-of-type(1) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    width: 100%;
    margin-bottom: 22px;
    font-size: 12.5px;
    line-height: 1.7;
    font-weight: 500;
    color: var(--text-light);
}

#whyPersonium > img {
    width: 64px;
    height: 64px;
    padding: 14px;
    object-fit: contain;
    background: linear-gradient(145deg, #ffffff, #f0eeff);
    border: 1px solid #dcd8ff;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 4px rgba(238, 235, 255, 0.75),
        0 6px 14px rgba(82, 70, 170, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#whyPersonium > img:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 20px rgba(82, 70, 170, 0.16);
}

#whyPersonium > h3:nth-of-type(2),
#whyPersonium > h3:nth-of-type(3),
#whyPersonium > h3:nth-of-type(4),
#whyPersonium > h3:nth-of-type(5) {
    color: var(--arrow);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    padding: 0;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

#whyPersonium > h1 {
    margin: 0;
    padding: 0;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#whyPersonium > img:nth-of-type(1) { grid-area: 3 / 1; }
#whyPersonium > img:nth-of-type(2) { grid-area: 3 / 3; }
#whyPersonium > img:nth-of-type(3) { grid-area: 3 / 5; }
#whyPersonium > img:nth-of-type(4) { grid-area: 3 / 7; }
#whyPersonium > img:nth-of-type(5) { grid-area: 3 / 9; }

#whyPersonium > h3:nth-of-type(2) { grid-area: 3 / 2; }
#whyPersonium > h3:nth-of-type(3) { grid-area: 3 / 4; }
#whyPersonium > h3:nth-of-type(4) { grid-area: 3 / 6; }
#whyPersonium > h3:nth-of-type(5) { grid-area: 3 / 8; }

#whyPersonium > h1:nth-of-type(1) { grid-area: 4 / 1; }
#whyPersonium > h1:nth-of-type(2) { grid-area: 4 / 3; }
#whyPersonium > h1:nth-of-type(3) { grid-area: 4 / 5; }
#whyPersonium > h1:nth-of-type(4) { grid-area: 4 / 7; }
#whyPersonium > h1:nth-of-type(5) { grid-area: 4 / 9; }

/* --- restructured layout (JS builds .reason-list) --- */
#whyPersonium:has(.reason-list) { display: block; }

.reason-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    justify-items: center;
    gap: 12px 0;
}

.reason-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
    text-align: center;
}

.reason-item:not(:last-child)::after {
    content: "➡";
    position: absolute;
    top: 22px;
    right: -9px;
    color: var(--arrow);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.reason-item img {
    width: 64px;
    height: 64px;
    padding: 14px;
    object-fit: contain;
    background: linear-gradient(145deg, #ffffff, #f0eeff);
    border: 1px solid #dcd8ff;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 4px rgba(238, 235, 255, 0.75),
        0 6px 14px rgba(82, 70, 170, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reason-item img:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 20px rgba(82, 70, 170, 0.16);
}

.reason-item span {
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* =========================================================
   HOW IT WORKS — base grid (pre-JS markup)
========================================================= */
#howItWorks {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 6px;
    row-gap: 0;
    padding: 28px 30px 32px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

#howItWorks > h2 {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 6px;
    font-size: 20px;
}

#howItWorks > h3:nth-of-type(1) {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 26px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-light);
}

#howItWorks > img {
    justify-self: center;
    align-self: start;
    width: 64px;
    height: 64px;
    padding: 14px;
    object-fit: contain;
    background: linear-gradient(145deg, #ffffff, #f0eeff);
    border: 1px solid #d9d5ff;
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(79, 68, 166, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

#howItWorks > img:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 20px rgba(79, 68, 166, 0.16);
}

#howItWorks > h3:nth-of-type(2),
#howItWorks > h3:nth-of-type(4),
#howItWorks > h3:nth-of-type(6),
#howItWorks > h3:nth-of-type(8),
#howItWorks > h3:nth-of-type(10),
#howItWorks > h3:nth-of-type(12) {
    justify-self: end;
    align-self: start;
    margin-top: 22px;
    padding-right: 2px;
    color: var(--arrow);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 3;
}

#howItWorks > h3:nth-of-type(3),
#howItWorks > h3:nth-of-type(5),
#howItWorks > h3:nth-of-type(7),
#howItWorks > h3:nth-of-type(9),
#howItWorks > h3:nth-of-type(11),
#howItWorks > h3:nth-of-type(13) {
    align-self: start;
    margin-top: 16px;
    padding: 0 6px;
    text-align: center;
    color: var(--text);
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#howItWorks > h4 {
    align-self: start;
    margin-top: 6px;
    padding: 0 8px;
    text-align: center;
    color: var(--text-light);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.55;
}

#howItWorks > img:nth-of-type(1) { grid-area: 3 / 1; }
#howItWorks > img:nth-of-type(2) { grid-area: 3 / 2; }
#howItWorks > img:nth-of-type(3) { grid-area: 3 / 3; }
#howItWorks > img:nth-of-type(4) { grid-area: 3 / 4; }
#howItWorks > img:nth-of-type(5) { grid-area: 3 / 5; }
#howItWorks > img:nth-of-type(6) { grid-area: 3 / 6; }

#howItWorks > h3:nth-of-type(2)  { grid-area: 3 / 1; }
#howItWorks > h3:nth-of-type(4)  { grid-area: 3 / 2; }
#howItWorks > h3:nth-of-type(6)  { grid-area: 3 / 3; }
#howItWorks > h3:nth-of-type(8)  { grid-area: 3 / 4; }
#howItWorks > h3:nth-of-type(10) { grid-area: 3 / 5; }
#howItWorks > h3:nth-of-type(12) { grid-area: 3 / 6; }

#howItWorks > h3:nth-of-type(3)  { grid-area: 4 / 1; }
#howItWorks > h3:nth-of-type(5)  { grid-area: 4 / 2; }
#howItWorks > h3:nth-of-type(7)  { grid-area: 4 / 3; }
#howItWorks > h3:nth-of-type(9)  { grid-area: 4 / 4; }
#howItWorks > h3:nth-of-type(11) { grid-area: 4 / 5; }
#howItWorks > h3:nth-of-type(13) { grid-area: 4 / 6; }

#howItWorks > h4:nth-of-type(1) { grid-area: 5 / 1; }
#howItWorks > h4:nth-of-type(2) { grid-area: 5 / 2; }
#howItWorks > h4:nth-of-type(3) { grid-area: 5 / 3; }
#howItWorks > h4:nth-of-type(4) { grid-area: 5 / 4; }
#howItWorks > h4:nth-of-type(5) { grid-area: 5 / 5; }
#howItWorks > h4:nth-of-type(6) { grid-area: 5 / 6; }

/* --- restructured layout (JS builds .work-list) --- */
#howItWorks:has(.work-list) { display: block; }

.work-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 14px;
}

.work-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 2px;
    text-align: center;
}

.work-step img {
    width: 64px;
    height: 64px;
    padding: 14px;
    object-fit: contain;
    background: linear-gradient(145deg, #ffffff, #f0eeff);
    border: 1px solid #d9d5ff;
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(79, 68, 166, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-step img:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 20px rgba(79, 68, 166, 0.16);
}

.work-step h3 {
    margin: 0;
    color: var(--text);
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.work-step h4 {
    margin: 0;
    color: var(--text-light);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.55;
}

/* =========================================================
   REMEMBER
========================================================= */
#rememberMbti {
    padding: 22px 28px;
    background: linear-gradient(100deg, #efedff, #f6f6ff);
    border: 1px solid #d8d5f5;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(70, 63, 140, 0.06);
}

#rememberMbti h1 {
    margin-bottom: 4px;
    color: var(--primary-dark);
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 800;
}

#rememberMbti h2 {
    max-width: 880px;
    color: var(--text-light);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0;
}

/* =========================================================
   DID YOU KNOW — AUTO-SCROLLING CARD CAROUSEL
========================================================= */
#didYouKnow {
    padding: 22px 26px 26px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

#didYouKnow > h1 {
    margin-bottom: 6px;
    color: var(--text);
    font-family: 'Sora', sans-serif;
    font-size: 19px;
    font-weight: 800;
}

#didYouKnow > h4 {
    max-width: 880px;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

.fact-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 6%,
        #000 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 6%,
        #000 94%,
        transparent 100%
    );
}

.fact-viewport {
    overflow: hidden;
}

.fact-track {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 14px 0;
    list-style: none;
    width: max-content;
    animation: factScrollRightToLeft 55s linear infinite;
    will-change: transform;
}

@keyframes factScrollRightToLeft {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

.fact-carousel:hover .fact-track,
.fact-carousel:focus-within .fact-track {
    animation-play-state: paused;
}

.fact-slide {
    flex: 0 0 300px;
    width: 300px;
    list-style: none;
}

.fact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    height: 100%;
    min-height: 210px;
    padding: 24px 20px 26px;
    background: linear-gradient(160deg, #ffffff 0%, #f4f1ff 100%);
    border: 1px solid #e5e1fb;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(82, 70, 170, 0.08);
    transition:
        transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    user-select: none;
}

.fact-card:hover {
    transform: translateY(-6px);
    border-color: #cdc4ff;
    box-shadow: 0 14px 30px rgba(98, 82, 220, 0.18);
}

.fact-media {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #ece8ff);
    border: 1px solid #ddd8ff;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 4px rgba(240, 237, 255, 0.85),
        0 6px 14px rgba(82, 70, 170, 0.12);
    flex-shrink: 0;
}

.fact-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.fact-copy {
    margin: 0;
    color: var(--text-light);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.65;
}

.fact-copy strong {
    color: var(--text);
    font-weight: 700;
}

/* =========================================================
   FINAL CTA
========================================================= */
main > a:last-of-type {
    display: block;
    width: fit-content;
    margin: 30px auto 8px;
    padding: 12px 24px;
    color: white;
    background: linear-gradient(135deg, #7662e9, #5944ce);
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 9px 20px rgba(98, 82, 220, 0.26);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

main > a:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 25px rgba(98, 82, 220, 0.32);
}

main > a:last-of-type ~ h3 {
    text-align: center;
    color: var(--text);
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

main > a:last-of-type ~ h4 {
    max-width: 680px;
    margin: 5px auto 0;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
}

/* =========================================================
   SCROLL ANIMATION (base)
========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* =========================================================
   TABLET  (≤ 900px)
========================================================= */
@media (max-width: 900px) {

    .header { width: calc(100% - 25px); }
    .header a { padding: 6px 8px; font-size: 10px; }

    #studySmarter {
        min-height: 440px;
        padding: 55px 32px;
    }
    #studySmarter > img { object-position: center center; }
    #studySmarter h2 { font-size: 32px; }
    #studySmarter h3 { font-size: 12px; }

    #whyPersonium {
        grid-template-columns:
            minmax(0, 1fr) 22px
            minmax(0, 1fr) 22px
            minmax(0, 1fr) 22px
            minmax(0, 1fr) 22px
            minmax(0, 1fr);
        padding: 22px 20px 26px;
    }
    #whyPersonium > img { width: 56px; height: 56px; padding: 12px; }
    #whyPersonium > h3:nth-of-type(2),
    #whyPersonium > h3:nth-of-type(3),
    #whyPersonium > h3:nth-of-type(4),
    #whyPersonium > h3:nth-of-type(5) { font-size: 17px; }
    #whyPersonium > h1 { font-size: 11px; }

    .reason-item img { width: 56px; height: 56px; padding: 12px; }
    .reason-item span { font-size: 11px; }
    .reason-item:not(:last-child)::after {
        font-size: 14px;
        right: -7px;
        top: 19px;
    }

    #howItWorks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 10px;
    }

    .work-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    #howItWorks > h3:nth-of-type(2),
    #howItWorks > h3:nth-of-type(4),
    #howItWorks > h3:nth-of-type(6),
    #howItWorks > h3:nth-of-type(8),
    #howItWorks > h3:nth-of-type(10),
    #howItWorks > h3:nth-of-type(12) { display: none; }

    #howItWorks > img:nth-of-type(1) { grid-area: 3 / 1; }
    #howItWorks > img:nth-of-type(2) { grid-area: 3 / 2; }
    #howItWorks > img:nth-of-type(3) { grid-area: 3 / 3; }
    #howItWorks > h3:nth-of-type(3)  { grid-area: 4 / 1; }
    #howItWorks > h3:nth-of-type(5)  { grid-area: 4 / 2; }
    #howItWorks > h3:nth-of-type(7)  { grid-area: 4 / 3; }
    #howItWorks > h4:nth-of-type(1)  { grid-area: 5 / 1; }
    #howItWorks > h4:nth-of-type(2)  { grid-area: 5 / 2; }
    #howItWorks > h4:nth-of-type(3)  { grid-area: 5 / 3; }

    #howItWorks > img:nth-of-type(4) { grid-area: 6 / 1; }
    #howItWorks > img:nth-of-type(5) { grid-area: 6 / 2; }
    #howItWorks > img:nth-of-type(6) { grid-area: 6 / 3; }
    #howItWorks > h3:nth-of-type(9)  { grid-area: 7 / 1; }
    #howItWorks > h3:nth-of-type(11) { grid-area: 7 / 2; }
    #howItWorks > h3:nth-of-type(13) { grid-area: 7 / 3; }
    #howItWorks > h4:nth-of-type(4)  { grid-area: 8 / 1; }
    #howItWorks > h4:nth-of-type(5)  { grid-area: 8 / 2; }
    #howItWorks > h4:nth-of-type(6)  { grid-area: 8 / 3; }

    /* fact carousel */
    .fact-track { gap: 14px; }
    .fact-slide { flex: 0 0 260px; width: 260px; }
    .fact-card { min-height: 195px; padding: 20px 16px 22px; }
    .fact-media { width: 60px; height: 60px; }
    .fact-copy { font-size: 11px; }
}

/* =========================================================
   MOBILE  (≤ 650px)
========================================================= */
@media (max-width: 650px) {

    .header {
        top: 7px;
        width: calc(100% - 16px);
        min-height: 0;
        margin-top: 7px;
        padding: 9px 12px;
        gap: 6px 4px;
        border-radius: 14px;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 6px;
    }

    .header img { width: 22px; height: 22px; flex-shrink: 0; }

    .header h1 {
        font-size: 12px;
        margin-right: 0;
        flex-shrink: 0;
        letter-spacing: 0;
    }

    .header a {
        font-size: 9px;
        padding: 6px 8px;
        flex-shrink: 0;
        letter-spacing: 0;
    }

    .header a:last-child {
        padding: 7px 11px;
        font-size: 9px;
    }

    main { width: calc(100% - 16px); padding-top: 13px; }

    /* ---------- DISCLAIMER (mobile) ---------- */
    #disclaimer {
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 0;
        align-items: start;
        margin: 14px 0 18px;
        padding: 16px 16px 18px;
        border-left-width: 3px;
        border-radius: 13px;
    }

    .disclaimer-icon {
        width: 40px;
        height: 40px;
        margin-top: 2px;
    }
    .disclaimer-icon svg { width: 18px; height: 18px; }

    .disclaimer-body { min-width: 0; }

    .disclaimer-badge {
        display: inline-block;
        margin-bottom: 6px;
        padding: 2px 9px;
        font-size: 8.5px;
        letter-spacing: 0.1em;
    }

    #disclaimer h2 {
        margin: 0 0 6px;
        font-size: 13.5px;
        line-height: 1.35;
    }

    #disclaimer p {
        font-size: 11px;
        line-height: 1.65;
    }

        /* ---------- HERO (mobile) — image BELOW the text ---------- */

#studySmarter {
    min-height: 0;
    padding: 26px 22px 20px;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    border-radius: 19px;
}

/*
   Desktop uses the illustration as an absolute background.
   Mobile makes it a normal element below the content.
*/

#studySmarter > h2 {
    order: 1;
}

#studySmarter > h3 {
    order: 2;
}

#studySmarter > a {
    order: 3;
}

#studySmarter > img {
    order: 4;

    position: relative;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    width: min(100%, 520px);
    height: auto;
    max-height: none;

    margin: 22px auto 0;

    object-fit: contain;
    object-position: center center;

    opacity: 1;
    z-index: 0;

    pointer-events: none;
    flex-shrink: 0;
}

#studySmarter::after {
    display: none;
}

#studySmarter h2 {
    font-size: 24px;
    max-width: 100%;
    line-height: 1.2;
    margin-top: 0;
}

#studySmarter h3 {
    font-size: 11.5px;
    max-width: 100%;
    margin-top: 10px;
}

#studySmarter > a {
    margin-top: 16px;
    padding: 10px 18px;
    font-size: 10.5px;
}

    #whatIs,
    #whatAreStudyHabbits {
        grid-template-columns: 58px 1fr;
        column-gap: 13px;
        padding: 17px;
    }
    #whatIs img,
    #whatAreStudyHabbits img { width: 58px; height: 58px; }
    #whatIs h2,
    #whatAreStudyHabbits h2 { font-size: 15px; }
    #whatIs h3,
    #whatAreStudyHabbits h3 { font-size: 10.5px; }

    #whyPersonium,
    #howItWorks,
    #rememberMbti,
    #didYouKnow { padding: 18px; }

    #whyPersonium > h2,
    #howItWorks > h2 { font-size: 17px; }

    #whyPersonium > h3:nth-of-type(1),
    #howItWorks > h3:nth-of-type(1) { font-size: 11px; }

    /* ---------- WHY PERSONIUM ---------- */
    #whyPersonium {
        grid-template-columns:
            minmax(0, 1fr) 16px
            minmax(0, 1fr) 16px
            minmax(0, 1fr) 16px
            minmax(0, 1fr) 16px
            minmax(0, 1fr);
        row-gap: 10px;
    }
    #whyPersonium > img { width: 46px; height: 46px; padding: 10px; }
    #whyPersonium > h3:nth-of-type(2),
    #whyPersonium > h3:nth-of-type(3),
    #whyPersonium > h3:nth-of-type(4),
    #whyPersonium > h3:nth-of-type(5) { font-size: 13px; }
    #whyPersonium > h1 { font-size: 9px; }

    .reason-list { gap: 10px 0; }
    .reason-item { gap: 8px; padding: 0 3px; }
    .reason-item img { width: 46px; height: 46px; padding: 10px; }
    .reason-item span { font-size: 9px; }
    .reason-item:not(:last-child)::after {
        font-size: 11px;
        right: -6px;
        top: 15px;
    }

    /* ---------- HOW IT WORKS ---------- */
    #howItWorks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 18px;
    }
    #howItWorks > h3:nth-of-type(1) { margin-bottom: 20px; }

    #howItWorks > img:nth-of-type(1) { grid-area: 3 / 1; }
    #howItWorks > img:nth-of-type(2) { grid-area: 3 / 2; }
    #howItWorks > h3:nth-of-type(3)  { grid-area: 4 / 1; }
    #howItWorks > h3:nth-of-type(5)  { grid-area: 4 / 2; }
    #howItWorks > h4:nth-of-type(1)  { grid-area: 5 / 1; }
    #howItWorks > h4:nth-of-type(2)  { grid-area: 5 / 2; }

    #howItWorks > img:nth-of-type(3) { grid-area: 6 / 1; }
    #howItWorks > img:nth-of-type(4) { grid-area: 6 / 2; }
    #howItWorks > h3:nth-of-type(7)  { grid-area: 7 / 1; }
    #howItWorks > h3:nth-of-type(9)  { grid-area: 7 / 2; }
    #howItWorks > h4:nth-of-type(3)  { grid-area: 8 / 1; }
    #howItWorks > h4:nth-of-type(4)  { grid-area: 8 / 2; }

    #howItWorks > img:nth-of-type(5) { grid-area: 9 / 1; }
    #howItWorks > img:nth-of-type(6) { grid-area: 9 / 2; }
    #howItWorks > h3:nth-of-type(11) { grid-area: 10 / 1; }
    #howItWorks > h3:nth-of-type(13) { grid-area: 10 / 2; }
    #howItWorks > h4:nth-of-type(5)  { grid-area: 11 / 1; }
    #howItWorks > h4:nth-of-type(6)  { grid-area: 11 / 2; }

    #howItWorks > img { width: 52px; height: 52px; padding: 11px; }

    #howItWorks > h3:nth-of-type(3),
    #howItWorks > h3:nth-of-type(5),
    #howItWorks > h3:nth-of-type(7),
    #howItWorks > h3:nth-of-type(9),
    #howItWorks > h3:nth-of-type(11),
    #howItWorks > h3:nth-of-type(13) {
        font-size: 11px;
        margin-top: 10px;
        padding: 0 4px;
    }

    #howItWorks > h4 { font-size: 9.5px; padding: 0 4px; }

    .work-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }
    .work-step img { width: 52px; height: 52px; padding: 11px; }
    .work-step h3 { font-size: 11px; }
    .work-step h4 { font-size: 9.5px; }

    /* ---------- DID YOU KNOW CAROUSEL ---------- */
    .fact-track { gap: 12px; padding: 10px 0; }
    .fact-slide { flex: 0 0 230px; width: 230px; }
    .fact-card { min-height: 185px; padding: 18px 14px 20px; gap: 12px; }
    .fact-media { width: 54px; height: 54px; }
    .fact-copy { font-size: 10.5px; line-height: 1.55; }

    #rememberMbti h1 { font-size: 16px; }
    #rememberMbti h2 { font-size: 11px; }

    main > a:last-of-type ~ h3 { font-size: 14px; }

    .back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
    .scroll-progress { height: 2.5px; }
    .reveal-left, .reveal-right { transform: translateY(30px); }
}

/* =========================================================
   SMALL MOBILE  (≤ 420px)
========================================================= */
@media (max-width: 420px) {

    .header { padding: 8px 8px; gap: 5px 3px; }
    .header img { width: 20px; height: 20px; }
    .header h1 { font-size: 11px; }
    .header a { font-size: 8.5px; padding: 5px 6px; }
    .header a:last-child { padding: 6px 9px; font-size: 8.5px; }

    #whyPersonium,
    #howItWorks { padding: 15px; }

    #whyPersonium {
        grid-template-columns:
            minmax(0, 1fr) 12px
            minmax(0, 1fr) 12px
            minmax(0, 1fr) 12px
            minmax(0, 1fr) 12px
            minmax(0, 1fr);
    }
    #whyPersonium > img { width: 40px; height: 40px; padding: 9px; }
    #whyPersonium > h3:nth-of-type(2),
    #whyPersonium > h3:nth-of-type(3),
    #whyPersonium > h3:nth-of-type(4),
    #whyPersonium > h3:nth-of-type(5) { font-size: 11px; }
    #whyPersonium > h1 { font-size: 8px; }

    .reason-item img { width: 40px; height: 40px; padding: 9px; }
    .reason-item span { font-size: 8px; }
    .reason-item:not(:last-child)::after {
        font-size: 9px;
        right: -5px;
        top: 13px;
    }

    #howItWorks > img { width: 46px; height: 46px; padding: 10px; }
    #howItWorks > h3:nth-of-type(3),
    #howItWorks > h3:nth-of-type(5),
    #howItWorks > h3:nth-of-type(7),
    #howItWorks > h3:nth-of-type(9),
    #howItWorks > h3:nth-of-type(11),
    #howItWorks > h3:nth-of-type(13) { font-size: 10px; }
    #howItWorks > h4 { font-size: 9px; }

    .work-step img { width: 46px; height: 46px; padding: 10px; }
    .work-step h3 { font-size: 10px; }
    .work-step h4 { font-size: 9px; }

    /* fact carousel */
    .fact-slide { flex: 0 0 200px; width: 200px; }
    .fact-card { min-height: 175px; padding: 16px 12px 18px; }
    .fact-media { width: 48px; height: 48px; }
    .fact-copy { font-size: 10px; }

        /* HERO (small mobile) */
    #studySmarter {
        min-height: 0;
        padding: 22px 18px 16px;
    }

    #studySmarter > img {
        width: min(100%, 380px);
        height: auto;
        margin-top: 18px;
        object-fit: contain;
        object-position: center center;
    }

    #studySmarter h2 {
        font-size: 21px;
        max-width: 100%;
    }

    #studySmarter h3 {
        font-size: 10.5px;
        max-width: 100%;
        margin-top: 8px;
    }

    #studySmarter > a {
        margin-top: 14px;
        padding: 9px 16px;
        font-size: 10px;
    }

    /* DISCLAIMER */
    #disclaimer {
        grid-template-columns: 34px minmax(0, 1fr);
        column-gap: 10px;
        padding: 14px 14px 16px;
        margin: 12px 0 16px;
    }
    .disclaimer-icon {
        width: 34px;
        height: 34px;
    }
    .disclaimer-icon svg { width: 15px; height: 15px; }

    .disclaimer-badge {
        font-size: 8px;
        padding: 2px 8px;
        margin-bottom: 5px;
    }
    #disclaimer h2 {
        font-size: 12.5px;
        margin-bottom: 5px;
    }
    #disclaimer p { font-size: 10.5px; line-height: 1.6; }
}

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   HAMBURGER NAV
========================================================= */
.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(98, 82, 220, 0.08);
    border: 1px solid rgba(98, 82, 220, 0.15);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    transition: background 0.25s ease;
}

.nav-toggle-label:hover {
    background: rgba(98, 82, 220, 0.15);
}

.nav-toggle-label span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    display: inline-block;
    padding: 7px 11px;
    color: #3a4467;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-links a:last-child {
    padding: 10px 18px;
    color: white;
    background: linear-gradient(135deg, #7765ed, #5945ce);
    border-radius: 999px;
    box-shadow: 0 7px 17px rgba(98, 82, 220, 0.28);
}

.nav-links a:last-child:hover {
    color: white;
    transform: translateY(-2px);
}

.header > a { display: none; }

/* =========================================================
   HAMBURGER — MOBILE
========================================================= */
@media (max-width: 650px) {

    .header {
        position: sticky;
        top: 10px;
        width: calc(100% - 16px);
        margin-top: 7px;
        padding: 10px 14px;
        border-radius: 14px;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        row-gap: 10px;
    }

    .header img { width: 24px; height: 24px; margin-top: 10px; }

    .header h1 {
        font-size: 13px;
        margin-right: auto;
        margin-left: 8px;
        margin-top: 10px;
    }

    .nav-toggle-label { display: flex; }

    .nav-links {
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);

        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            transform 0.25s ease;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 10px;
        background: rgba(98, 82, 220, 0.06);
        border: 1px solid rgba(98, 82, 220, 0.12);
    }

    .nav-links a:last-child {
        margin-top: 4px;
        padding: 11px 14px;
        box-shadow: 0 6px 14px rgba(98, 82, 220, 0.28);
    }

    .nav-toggle:checked ~ .nav-links {
        max-height: 320px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* =========================================================
   HAMBURGER — SMALL MOBILE
========================================================= */
@media (max-width: 420px) {

    .header { padding: 9px 12px; }
    .header img { width: 22px; height: 22px; }
    .header h1 { font-size: 12px; }

    .nav-toggle-label {
        width: 30px;
        height: 30px;
    }
    .nav-toggle-label span { width: 14px; }

    .nav-links a {
        font-size: 10px;
        padding: 9px 12px;
    }
}

/* ============================================================
   SCROLL PROGRESS BAR
========================================================= */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7662e9 0%, #a893ff 50%, #7662e9 100%);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 10000;
    pointer-events: none;
    animation: progressShimmer 3s ease-in-out infinite;
    transition: transform 0.1s linear;
}
@keyframes progressShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ============================================================
   BACK TO TOP BUTTON
========================================================= */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7662e9, #5944ce);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(98, 82, 220, 0.32);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.25s ease;
    z-index: 9999;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 32px rgba(98, 82, 220, 0.45);
}
.back-to-top:active {
    transform: translateY(-1px) scale(1.02);
}
.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
   REVEAL VARIANTS
========================================================= */
.reveal {
    opacity: 0;
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.7s ease;
    will-change: opacity, transform;
}
.reveal-up     { transform: translateY(36px); }
.reveal-left   { transform: translateX(-44px); }
.reveal-right  { transform: translateX(44px); }
.reveal-scale  { transform: scale(0.94); }
.reveal-blur   { transform: translateY(22px); filter: blur(8px); }

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* ============================================================
   CARD TILT
========================================================= */
.tilt-active {
    transition:
        transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.35s ease !important;
    will-change: transform;
}

/* ============================================================
   RIPPLE EFFECT
========================================================= */
#studySmarter > a,
main > a:last-of-type,
#whatIs a {
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: scale(0);
    pointer-events: none;
    animation: ripplePop 0.75s ease-out forwards;
}
@keyframes ripplePop {
    to {
        transform: scale(22);
        opacity: 0;
    }
}

/* ============================================================
   ICON FLOAT
========================================================= */
@keyframes iconBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
.reason-item img.float,
.work-step img.float,
#whyPersonium > img.float,
#howItWorks > img.float {
    animation: iconBob 3s ease-in-out infinite;
}
.reason-item:nth-child(2) img.float,
.work-step:nth-child(2) img.float { animation-delay: 0.35s; }
.reason-item:nth-child(3) img.float,
.work-step:nth-child(3) img.float { animation-delay: 0.70s; }
.reason-item:nth-child(4) img.float,
.work-step:nth-child(4) img.float { animation-delay: 1.05s; }
.reason-item:nth-child(5) img.float,
.work-step:nth-child(5) img.float { animation-delay: 1.40s; }
.work-step:nth-child(6) img.float { animation-delay: 1.75s; }

/* ============================================================
   HEADER SCROLLED STATE
========================================================= */
.header.scrolled {
    box-shadow: 0 14px 34px rgba(54, 51, 110, 0.14);
    background: rgba(255, 255, 255, 0.98);
}

/* ============================================================
   REDUCED MOTION SAFETY
========================================================= */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress { display: none; }
    .ripple { display: none; }

    .reveal, .reveal-up, .reveal-left, .reveal-right,
    .reveal-scale, .reveal-blur {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    #whyPersonium > img.float,
    #howItWorks > img.float,
    .reason-item img.float,
    .work-step img.float {
        animation: none !important;
    }
    .fact-track { animation: none !important; }
    .fact-card { transition: none !important; }
}