/* =========================================================
   NOTESREALM — NOTES LANDING PAGE
   Uses shared design tokens; all selectors are Notes-scoped.
========================================================= */
.notes-page { overflow: clip; }
.notes-container { width: min(1180px, 92%); margin-inline: auto; }
.notes-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(120deg, #f5faff 0%, #eef8fc 54%, #f8fafc 100%); padding: 76px 0 82px; }
.notes-hero::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -170px; top: -260px; border: 1px solid rgba(8,145,178,.13); border-radius: 50%; box-shadow: 0 0 0 55px rgba(8,145,178,.035), 0 0 0 110px rgba(8,145,178,.025); }
.notes-hero-layout { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 52px; }
.notes-hero-copy { max-width: 650px; }
.notes-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: var(--secondary); font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 25px; height: 2px; border-radius: 2px; background: var(--secondary); }
.notes-hero h1 { margin: 0 0 20px; color: var(--primary-dark); font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 850; line-height: 1.08; letter-spacing: -2.2px; }
.notes-hero h1 span { color: var(--secondary); }
.notes-hero-description { max-width: 590px; margin-bottom: 28px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.notes-hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.notes-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 21px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.notes-button:hover { transform: translateY(-2px); }
.notes-button-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(15,76,129,.18); }
.notes-button-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 22px rgba(15,76,129,.23); }
.notes-text-link { color: var(--primary); font-size: 14px; font-weight: 700; }
.notes-text-link span { color: var(--secondary); margin-left: 4px; }
.notes-hero-highlights { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px; color: #52657a; font-size: 12px; font-weight: 650; }
.notes-hero-highlights b { margin-right: 5px; color: #15966b; }

.notes-hero-art { min-height: 340px; position: relative; display: grid; place-items: center; }
.notes-art-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.22), rgba(8,145,178,.04) 65%, transparent 70%); }
.notes-art-card-main { position: relative; z-index: 2; width: min(330px, 78%); min-height: 250px; padding: 18px; border: 1px solid rgba(15,76,129,.12); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 24px 65px rgba(15,76,129,.16); transform: rotate(-3deg); }
.notes-art-window { display: flex; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid #e8eef5; }
.notes-art-window span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.notes-art-window span:first-child { background: #0891b2; }
.notes-art-code { display: grid; gap: 11px; padding: 24px 12px 18px; }
.notes-art-code i { display: block; width: 84%; height: 7px; border-radius: 8px; background: #dceaf4; }
.notes-art-code i:nth-child(2) { width: 65%; margin-left: 18px; background: #a9dce8; }
.notes-art-code i:nth-child(3) { width: 74%; margin-left: 18px; }
.notes-art-code i:nth-child(4) { width: 52%; margin-left: 36px; background: #b7d5ec; }
.notes-art-code i:nth-child(5) { width: 69%; }
.notes-art-caption { display: grid; gap: 4px; padding: 13px 12px; border-radius: 10px; background: #f1f8fc; }
.notes-art-caption strong { color: var(--primary); font-size: 10px; letter-spacing: 1.4px; }
.notes-art-caption small { color: var(--muted); font-size: 11px; }
.notes-art-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(15,76,129,.09); border-radius: 10px; background: #fff; color: var(--primary-dark); box-shadow: 0 10px 25px rgba(15,76,129,.12); font-size: 12px; font-weight: 750; }
.notes-art-chip span { color: var(--secondary); font-size: 17px; }
.notes-art-chip-code { top: 27px; right: 12px; }
.notes-art-chip-visual { left: 0; top: 135px; }
.notes-art-chip-learn { right: 5px; bottom: 25px; }
.notes-art-orbit { position: absolute; border: 1px dashed rgba(8,145,178,.3); border-radius: 50%; transform: rotate(-22deg); }
.notes-art-orbit-one { width: 390px; height: 210px; }
.notes-art-orbit-two { width: 300px; height: 300px; border-color: rgba(15,76,129,.12); }

.notes-browse-section { padding: 78px 0 84px; background: var(--surface); }
.notes-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.notes-section-heading .notes-eyebrow { margin-bottom: 10px; }
.notes-section-heading h2 { margin: 0 0 8px; color: var(--primary-dark); font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.2; letter-spacing: -.8px; }
.notes-section-heading p:not(.notes-eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }
.notes-subject-count { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #d9edf4; border-radius: 30px; background: #f2fbfd; color: var(--primary); font-size: 12px; font-weight: 750; }
.notes-search-panel { margin-bottom: 27px; padding: 17px; border: 1px solid var(--border); border-radius: 13px; background: #fbfdff; }
.notes-search-form { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 4px 5px 4px 14px; border: 1px solid #d7e3ed; border-radius: 9px; background: #fff; }
.notes-search-icon { color: var(--secondary); font-size: 25px; line-height: 1; }
.notes-search-form input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.notes-search-form input:focus-visible { outline: 0; }
.notes-search-form:focus-within { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(8,145,178,.12); }
.notes-search-form button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 750; }
.notes-search-form button:hover { background: var(--primary-dark); }
.notes-filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; color: var(--muted); font-size: 12px; }
.notes-filter-row > span { margin-right: 3px; font-weight: 700; }
.notes-filter-chip { padding: 6px 11px; border: 1px solid transparent; border-radius: 30px; background: #edf3f8; color: #52657a; font-size: 11px; font-weight: 700; }
.notes-filter-chip:hover, .notes-filter-chip.is-active { border-color: #b8e2ed; background: #e8f7fb; color: var(--primary); }
.notes-subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.notes-subject-card { min-height: 270px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-radius: 13px; background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.notes-subject-card:hover { transform: translateY(-4px); border-color: #b6dbe7; box-shadow: 0 14px 32px rgba(15,76,129,.09); }
.notes-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.notes-subject-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #eaf5fb; color: var(--primary); font-size: 17px; font-weight: 850; letter-spacing: -.6px; }
.notes-subject-icon.python-language { background: #fff5df; color: #9b6a00; }
.notes-subject-icon.matlab-language { background: #fff0ec; color: #c54d31; }
.notes-subject-icon.web-language { background: #e9f8fa; color: #087e93; font-size: 14px; }
.notes-subject-icon.computer-organisation { background: #edf0fb; color: #4e5eaa; font-size: 12px; }
.notes-subject-icon.ai-language { background: #f0edff; color: #7054ba; }
.notes-card-category { padding: 5px 9px; border-radius: 20px; background: #f2f6fa; color: #64748b; font-size: 10px; font-weight: 750; }
.notes-card-content h3 { margin: 0 0 9px; color: var(--primary-dark); font-size: 17px; line-height: 1.35; letter-spacing: -.25px; }
.notes-card-content p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.notes-card-meta { margin-top: auto; padding-top: 17px; color: #748397; font-size: 10px; }
.notes-card-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #edf1f5; color: var(--primary); font-size: 12px; font-weight: 800; }
.notes-card-link span:last-child { color: var(--secondary); font-size: 17px; transition: transform .2s ease; }
.notes-card-link:hover span:last-child { transform: translateX(4px); }
.notes-empty-state, .notes-load-error, .notes-loading-card { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); text-align: center; font-size: 14px; }
.notes-empty-state { margin: 15px 0 0; }
.notes-load-error { color: #9f3636; }

.notes-learning-section { padding: 76px 0 83px; background: #f4f8fb; }
.notes-section-heading-centred { justify-content: center; text-align: center; }
.notes-section-heading-centred > div { max-width: 650px; }
.notes-section-heading-centred .notes-eyebrow { justify-content: center; }
.notes-learning-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.notes-learning-step { position: relative; padding: 25px 23px 23px; border: 1px solid #e0e9f0; border-radius: 12px; background: #fff; text-align: center; }
.notes-step-number { position: absolute; top: 15px; right: 17px; color: #b7c8d7; font-size: 11px; font-weight: 850; letter-spacing: 1px; }
.notes-step-icon { width: 53px; height: 53px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 15px; background: #e9f7fb; color: var(--secondary); font-size: 25px; font-weight: 800; }
.notes-learning-step h3 { margin: 0 0 8px; color: var(--primary-dark); font-size: 16px; }
.notes-learning-step p { max-width: 280px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.7; }
.notes-cta-section { padding: 44px 0; background: linear-gradient(110deg, var(--primary-dark), var(--primary)); }
.notes-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.notes-cta-inner .notes-eyebrow { margin-bottom: 8px; color: var(--accent); }
.notes-cta-inner h2 { margin: 0 0 7px; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.notes-cta-inner p:not(.notes-eyebrow) { margin: 0; color: #d4e4f1; font-size: 13px; }
.notes-button-light { flex: 0 0 auto; background: #fff; color: var(--primary); }
.notes-button-light:hover { background: #eaf8fc; }

@media (max-width: 900px) {
    .notes-hero { padding: 62px 0 68px; }
    .notes-hero-layout { grid-template-columns: 1fr .8fr; gap: 18px; }
    .notes-hero-art { min-height: 300px; transform: scale(.92); }
    .notes-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .notes-container { width: min(100% - 34px, 540px); }
    .notes-hero { padding: 49px 0 48px; }
    .notes-hero-layout { grid-template-columns: 1fr; gap: 14px; }
    .notes-hero h1 { font-size: clamp(2.35rem, 11vw, 3.25rem); letter-spacing: -1.5px; }
    .notes-hero-description { font-size: 14px; line-height: 1.75; }
    .notes-hero-art { min-height: 270px; margin: -5px auto 0; width: 100%; max-width: 430px; transform: scale(.88); }
    .notes-hero-highlights { gap: 9px 15px; margin-top: 24px; font-size: 10px; }
    .notes-browse-section, .notes-learning-section { padding: 54px 0 58px; }
    .notes-section-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 21px; }
    .notes-section-heading h2 { font-size: 1.85rem; }
    .notes-search-panel { padding: 12px; }
    .notes-search-form { gap: 8px; padding-left: 10px; }
    .notes-search-form input { font-size: 12px; }
    .notes-search-form button { padding: 0 10px; font-size: 11px; }
    .notes-filter-row { gap: 6px; }
    .notes-filter-chip { padding: 6px 9px; }
    .notes-subject-grid { grid-template-columns: 1fr; gap: 12px; }
    .notes-subject-card { min-height: 0; padding: 18px; }
    .notes-card-content h3 { font-size: 16px; }
    .notes-card-content p { font-size: 12px; }
    .notes-learning-steps { grid-template-columns: 1fr; gap: 12px; }
    .notes-learning-step { padding: 22px 18px; }
    .notes-cta-section { padding: 34px 0; }
    .notes-cta-inner { align-items: flex-start; flex-direction: column; }
    .notes-button-light { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .notes-button, .notes-subject-card, .notes-card-link span:last-child { transition: none; }
}
