:root {
    --bg: #e6f4ff;
    --bg-accent: #cfe9fb;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #102f4a;
    --muted: #557590;
    --line: rgba(16, 47, 74, 0.1);
    --brand: #4aa3ff;
    --brand-deep: #1f6fe5;
    --brand-soft: #d8ecff;
    --gold: #82b8ff;
    --shadow: 0 24px 60px rgba(31, 111, 229, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    transition:
    background .3s ease,
    color .3s ease,
    border-color .3s ease;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(74, 163, 255, 0.18), transparent 28%),
        radial-gradient(circle at right 20%, rgba(142, 203, 255, 0.18), transparent 22%),
        linear-gradient(180deg, #f7fbff 0%, var(--bg) 55%, #dcedff 100%);
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    background-image:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);

    background-size: 3px 3px;

    pointer-events: none;

    opacity: .3;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #4aa3ff;
    outline-offset: 4px;
}

.loading-screen {
    position: fixed;
    inset: 0;
    background: #f7faff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gradient-loader {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(var(--brand), #7aa4ff, var(--gold), var(--brand));
    animation: spin 1s linear infinite;
    position: relative;
}

.gradient-loader::before {
    content: "";
    position: absolute;
    inset: 8px;
    background: #f7faff;
    border-radius: 50%;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   PSES LEARNING — HERO
   ========================================= */

.hero-shell {
    position: relative;
    overflow: hidden;

    width: 97%;
    margin: 10px auto 0;
    padding: 32px 48px;

    min-height: 360px;

    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);

    align-items: center;
    gap: 30px;

    color: #fff;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255, 255, 255, 0.16),
            transparent 25%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(132, 74, 255, 0.65),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #185bbf 0%,
            #3189e8 55%,
            #6674ed 100%
        );

    box-shadow:
        0 25px 60px rgba(31, 111, 229, 0.22);

    isolation: isolate;
}


/* subtle background lines */

.hero-shell::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(255,255,255,.05) 45%,
            transparent 46%
        );

    pointer-events: none;
}


/* =========================================
   TOP LINE
   ========================================= */

.hero-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;

    max-width: 760px;

    margin-bottom: 28px;

    padding-bottom: 10px;

    border-bottom: 1px solid rgba(255,255,255,.22);

    font-size: .65rem;
    font-weight: 800;

    letter-spacing: .16em;

    color: rgba(255,255,255,.78);
}


/* =========================================
   HERO COPY
   ========================================= */

.hero-brand {
    position: relative;
    z-index: 2;

    padding: 0;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 12px;

    font-size: .78rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .14em;

    color: rgba(255,255,255,.72);
}


.hero-copy h1 {
    margin: 0;

    font-family: "Playfair Display", serif;

    font-size: clamp(2.2rem, 4.1vw, 3.5rem);

    line-height: 1.12;

    letter-spacing: -1.5px;

    font-weight: 700;
}


.hero-copy h1 span {
    display: block;

    color: #dcecff;

    font-size: clamp(2rem, 3.5vw, 3rem);
}


.hero-subtitle {
    max-width: 560px;

    margin: 18px 0 0;

    font-size: .92rem;

    line-height: 1.55;

    color: rgba(255,255,255,.82);
}


/* =========================================
   BUTTON
   ========================================= */

.hero-actions {
    display: flex;
    
    margin-top: 20px;
}

.hero-actions .btn {
    min-height: 44px;

    padding: 0 19px;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    border-radius: 999px;

    font-size: .88rem;
}

.hero-actions .btn span {
    font-size: 1.2rem;

    transition: transform .25s ease;
}

.hero-actions .btn:hover span {
    transform: translateX(4px);
}


/* =========================================
   RIGHT VISUAL
   ========================================= */

.hero-visual {
    position: relative;

    min-height: 270px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2;
}


.visual-card {
    position: absolute;

    width: 120px;
    height: 145px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 1px solid rgba(255,255,255,.28);

    border-radius: 18px;

    background: rgba(255,255,255,.10);

    backdrop-filter: blur(14px);

    box-shadow:
        0 25px 50px rgba(10,35,90,.18);

    transform: rotate(-8deg);
}


.visual-card-two {
    margin-left: 140px;
    margin-top: 60px;

    transform: rotate(8deg);

    background: rgba(255,255,255,.14);
}


.visual-number {
    font-family: "Playfair Display", serif;

    font-size: 3.2rem;

    line-height: 1;

    font-weight: 700;
}


.visual-label {
    margin-top: 10px;

    font-size: .65rem;

    font-weight: 800;

    letter-spacing: .2em;

    color: rgba(255,255,255,.7);
}


.hero-symbol {
    position: absolute;

    top: 10px;
    right: 15px;

    font-size: 1.6rem;

    opacity: .7;
}


.visual-text {
    position: absolute;

    bottom: 0px;
    left: 15px;

    margin: 0;

    font-size: .55rem;

    line-height: 1.8;

    letter-spacing: .2em;

    font-weight: 800;

    color: rgba(255,255,255,.5);
}


/* =========================================
   DECORATIVE ORBITS
   ========================================= */

.orbit {
    position: absolute;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 50%;
}


.orbit-one {
    width: 330px;
    height: 330px;
}


.orbit-two {
    width: 230px;
    height: 230px;
}

.page-shell {
    width: 96%;
    margin: 0 auto;
    padding: 34px 0 80px;
}

.surface-section {
    margin-top: 22px;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.35);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-kicker {
    background: linear-gradient(90deg,#0080ff,#ff6b6b);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.section-heading h2,
.contact-card h2 {
    margin: 0 0 12px;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.12;
}

.surface-section,
.book-card,
.feature-card,
.contact-panel {
    position: relative;
    overflow: hidden;
}

.surface-section::before,
.book-card::before,
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.18),
        transparent
    );

    transform: translateX(-120%);
    transition: transform .8s ease;
}

.surface-section:hover::before,
.book-card:hover::before,
.feature-card:hover::before {
    transform: translateX(120%);
}

.section-heading p,
.about-note p,
.contact-card p,
.resource-card p,
.contact-panel p,
.book-card-content p,
.feature-card p,
.footer-about p,
.footer-contact p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.intro-grid {
    display: grid;
    gap: 24px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-caption {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    text-align: center;
    background: var(--surface-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 40px rgba(18, 41, 96, 0.08);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover,
.image-caption:hover,
.book-card:hover,
.feature-card:hover,
.contact-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 52px rgba(18, 41, 96, 0.12);
}

.resources-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 30px;
    align-items: start;
}

.resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card {
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.resource-card i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.image-caption img {
    aspect-ratio: 5/4;
    width: 100%;
    border-radius: 14px;
}

.image-caption figcaption {
    font-weight: 700;
    font-size: 1rem;
}

.resource-grid,
.book-grid,
.feature-list,
.contact-layout {
    display: grid;
    gap: 22px;
}

.resource-grid,
.book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card,
.book-card,
.feature-card,
.contact-panel {
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(18, 41, 96, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.book-card a {
    display: grid;
    font-family: Arial, Helvetica, sans-serif;
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 24px;
    height: 100%;
}

.book-card img {
    width: 100%;
    max-width: 160px;
    height: 100%;
    max-height: 200px;
    margin: 0 auto;
    border-radius: 15px;
    filter: drop-shadow(0 18px 30px rgba(16, 45, 135, 0.14));
}

.book-card-content h3,
.feature-card h3,
.resource-card h3,
.contact-panel h3,
.footer h2,
.footer h3 {
    margin: 0 0 10px;
}

.book-card-content h3 {
    font-size: 1.7rem;
}

.book-label {
    color: var(--brand);
    margin-bottom: 10px;
}

.book-link,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-weight: 700;
    color: var(--brand);
}

.book-link::after,
.text-link::after {
    content: "\2192";
}

.features-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 30px;
    align-items: start;
}

.feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    padding: 24px;
}

.book-card:hover,
.feature-card:hover {
    border-color: rgba(255, 107, 107, 0.4);
}

.about-note {
    grid-column: 1 / -1;
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #edf3ff, #fffaf0);
    border: 1px solid rgba(25, 71, 229, 0.08);
}

.contact-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: stretch;
}

.contact-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(25, 71, 229, 0.06), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(25, 71, 229, 0.08);
}

.contact-methods {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.contact-methods a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
}

.contact-methods i {
    color: var(--brand);
    font-size: 1.1rem;
}

.contact-panel {
    padding: 28px;
}

.footer {
    padding: 36px 0 18px;
    color: #fff;
    background: linear-gradient(145deg, #1b47a4, #1947e5);
        border-top: 1px solid rgba(255, 0, 0, 0.18);
        box-shadow: 0 24px 60px rgba(229, 25, 107, 0.14);
}

.footer-container,
.footer-bottom {
    width: 96%;
    margin: 0 auto;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 10px;
}

.footer p,
.footer-links a {
    color: rgba(255, 255, 255, 0.84);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}

.btn-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    font-size: 15px;
    padding: 12px 18px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    gap: 8px;
    box-shadow: 0 16px 28px rgba(16, 45, 135, 0.22);
    transition: transform 0.3s ease, background 0.25s ease, color 0.25s ease;
}

.btn-top:hover {
    transform: translateY(-3px);
}

.btn-top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}