:root { --navy: #121c4a; --ink: #202839; --muted: #737987; --blue: #5b5bdf; --line: #e8eaf0; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.landing { margin: 0; color: var(--ink); background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { vertical-align: middle; flex-shrink: 0; }
:focus-visible { outline: 3px solid #7278ee; outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-skip { position: fixed; top: 12px; left: 12px; z-index: 99; padding: 12px; background: white; transform: translateY(-150%); }
.home-skip:focus { transform: translateY(0); }
.home-container { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.home-header { background: #fff; border-bottom: 1px solid #efeff4; }
.home-nav { min-height: 85px; display: flex; align-items: center; gap: 32px; }
.home-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 21px; letter-spacing: -.8px; text-decoration: none; white-space: nowrap; }
.brand-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: #5553cf; }
.brand-dot { margin-left: -9px; color: var(--blue); }
.home-nav-links { display: flex; gap: 30px; margin-left: auto; }
.home-nav-links a, .home-login-link { color: #626774; font-size: 13px; text-decoration: none; }
.home-nav-links a:hover, .home-login-link:hover { color: var(--blue); }
.home-nav-actions { display: flex; align-items: center; gap: 25px; margin-left: 20px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 12px 20px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.home-button-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 10px #5b5bdf18; }
.home-button-primary:hover { background: #4646c5; transform: translateY(-2px); }
.home-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 700px; color: #fff; background: radial-gradient(ellipse at 55% -45%, #2b5380 0, transparent 68%), linear-gradient(145deg, #1c315b 0, #171b49 52%, #180e3b 100%); }
.hero-school-photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.home-hero::after { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(180deg, #13254ba6, #142347a6 45%, #171638e6); pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.hero-orb-one { width: 520px; height: 520px; top: -270px; right: -80px; background: linear-gradient(135deg, #48bcb34d, #4855d705 70%); }
.hero-orb-two { width: 440px; height: 440px; bottom: -290px; left: -100px; background: radial-gradient(circle at 70% 0%, #5b4acf55, #21184605 70%); }
.hero-content { position: relative; z-index: 2; width: min(690px, calc(100% - 48px)); margin: 0 auto; padding: 93px 0 110px; text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 550; letter-spacing: 1.7px; color: #ced4ec; }
.hero-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #99e5ce; box-shadow: 0 0 12px #8ae2c788; }
.hero-school { margin: 16px 0 0; color: #e6ecff; font-size: clamp(13px, 1.3vw, 17px); font-weight: 600; letter-spacing: 2px; }
.hero-content h1 { font-size: clamp(40px, 4.7vw, 68px); line-height: 1.14; font-weight: 650; letter-spacing: -2.7px; margin: 24px -8px 22px; }
.hero-content h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: #b7e7da; font-size: .99em; letter-spacing: -2.8px; }
.hero-description { color: #e1e7f5; font-size: 15px; line-height: 1.85; margin: 0 0 32px; }
.hero-search { display: flex; align-items: center; gap: 14px; max-width: 580px; margin: auto; padding: 7px 7px 7px 19px; border: 1px solid #ffffffc9; border-radius: 10px; background: #fff; box-shadow: 0 12px 45px #0907293b; }
.hero-search-icon { color: #9399ad; }
.hero-search input { width: 100%; min-width: 0; height: 43px; padding: 0; color: #29324a; border: 0; background: transparent; outline-offset: 2px; font-size: 13px; }
.hero-search input::placeholder { color: #8c92a2; }
.hero-search button { display: flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 12px; min-height: 45px; padding: 10px 20px; border: 0; border-radius: 6px; color: white; background: #6262dc; font-size: 12px; font-weight: 600; transition: background .2s; }
.hero-search button:hover { background: #4848c7; }
.hero-search-hint { margin: 13px 0 0; color: #9ea9cc; font-size: 11px; }
.hero-errors { max-width: 580px; margin: 15px auto 0; padding: 12px 16px; background: #fff0ed; color: #8c3428; text-align: left; border-radius: 8px; font-size: 13px; }
.hero-errors ul { margin: 0; padding-left: 18px; }
.hero-numbers { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 36px; }
.hero-numbers > div { display: flex; align-items: center; gap: 10px; }
.hero-numbers strong { font-size: 24px; font-weight: 550; }
.hero-numbers span { color: #b5bfdb; font-size: 11px; }
.hero-number-divider { display: block; width: 1px; height: 28px; background: #ffffff24; }
.hero-art { position: absolute; z-index: 1; width: clamp(230px, 27vw, 390px); top: 135px; pointer-events: none; animation: reader-drift 7s ease-in-out infinite; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-art-left { left: max(-65px, calc(50% - 780px)); }
.hero-art-right { right: max(-60px, calc(50% - 780px)); top: 128px; animation-delay: -3.5s; }
.illustration-float { transform-box: fill-box; transform-origin: center; animation: book-drift 5.5s ease-in-out infinite; }
.illustration-float:nth-of-type(2n) { animation-delay: -2.5s; }
.illustration-spark { transform-box: fill-box; transform-origin: center; animation: star-pulse 4s ease-in-out infinite; }
.hero-stars { position: absolute; inset: 0; z-index: -1; }
.hero-stars i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #b6c6ff; opacity: .45; animation: star-pulse 4s ease-in-out infinite; }
.hero-stars i:nth-child(1) { top: 20%; left: 7%; }
.hero-stars i:nth-child(2) { top: 72%; left: 32%; animation-delay: -2s; }
.hero-stars i:nth-child(3) { top: 16%; left: 72%; animation-delay: -1s; }
.hero-stars i:nth-child(4) { top: 73%; left: 91%; animation-delay: -3s; }
.hero-stars i:nth-child(5) { top: 45%; left: 94%; width: 3px; height: 3px; }
.hero-stars i:nth-child(6) { top: 85%; left: 7%; width: 3px; height: 3px; animation-delay: -2s; }
.hero-stars i:nth-child(7) { top: 9%; left: 43%; width: 2px; height: 2px; }
.hero-stars i:nth-child(8) { top: 86%; left: 68%; width: 2px; height: 2px; }
.hero-bottom { position: absolute; inset: auto 0 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ffffff22; border-radius: 20px; background: #ffffff05; color: #bfc8e5; padding: 8px 12px; font-size: 10px; }
.motion-toggle:hover { background: #ffffff12; }
.motion-toggle:disabled { cursor: default; }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; color: #c4cce2; text-decoration: none; font-size: 11px; }
.hero-scroll span { font-size: 19px; }
.hero-bottom-note { color: #7b88b0; font-size: 8px; letter-spacing: 1.8px; }
.home-collection { padding-block: 78px 72px; scroll-margin-top: 25px; }
.home-popular { padding-block: 64px; background: #f8f8fd; border-bottom: 1px solid var(--line); scroll-margin-top: 25px; }
.book-popular-rank { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 3px 10px #121c4a18; }
.book-popular-rank > span:not(.sr-only) { font-size: 9px; font-weight: 500; color: #d6daf6; }
.home-book-info > .book-popular-count { display: flex; align-items: center; gap: 6px; margin-top: 13px; color: #5c5caa; font-size: 11px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.section-eyebrow { margin: 0 0 12px; color: #6465b5; font-size: 9px; letter-spacing: 1.8px; font-weight: 600; }
.section-heading h2, .home-cta h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 37px; letter-spacing: -1px; line-height: 1.2; margin: 0 0 12px; }
.section-heading p:not(.section-eyebrow), .home-cta p:not(.section-eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; overflow-wrap: anywhere; }
.collection-link { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; font-size: 12px; color: #5454bb; text-decoration: none; padding-bottom: 7px; }
.home-books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.home-book { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .25s, box-shadow .25s; background: #fff; }
.home-book:hover { transform: translateY(-5px); box-shadow: 0 12px 28px #17234409; }
.home-book-cover { height: 244px; position: relative; display: flex; align-items: center; justify-content: center; padding: 25px; text-decoration: none; overflow: hidden; background: #edeef7; }
.cover-color-1 { background: #f0ede7; }
.cover-color-2 { background: #e6f0ec; }
.cover-color-3 { background: #eee9f5; }
.home-book-cover img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; box-shadow: 4px 7px 16px #17213c20; }
.book-cover-placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 143px; height: 196px; padding: 20px 15px 20px 22px; border-radius: 2px 6px 6px 2px; color: #eff0ff; background: #62658b; box-shadow: 4px 6px 12px #27334c1c; border-left: 6px solid #414569; }
.cover-color-1 .book-cover-placeholder { background: #927e60; border-color: #6d593b; }
.cover-color-2 .book-cover-placeholder { background: #577c6c; border-color: #375747; }
.cover-color-3 .book-cover-placeholder { background: #837093; border-color: #5f4e72; }
.book-cover-placeholder > svg { opacity: .75; }
.book-cover-placeholder > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: Georgia, serif; text-align: center; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.book-cover-placeholder small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 8px; opacity: .8; }
.book-cover-placeholder i { width: 30px; height: 1px; background: #ffffff4d; }
.book-cover-arrow { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #ffffffb5; color: #686d80; font-size: 16px; }
.home-book-info { padding: 20px 18px; }
.home-book-category { display: block; margin-bottom: 9px; color: #7e8191; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; }
.home-book-info h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.home-book-info h3 a { text-decoration: none; }
.home-book-info > p { color: var(--muted); font-size: 11px; margin: 0; overflow-wrap: anywhere; }
.home-book-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-top: 18px; padding-top: 15px; border-top: 1px solid #f0f1f5; }
.book-stock { display: inline-flex; align-items: center; gap: 5px; color: #428269; font-size: 10px; }
.book-stock i { width: 4px; height: 4px; border-radius: 50%; background: #4d9978; }
.book-stock-empty { color: #7e8191; }
.book-stock-empty i { background: #9598a6; }
.home-book-bottom a { color: #6363c4; font-size: 10px; text-decoration: none; }
.book-reference-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; padding: 6px 9px; border-radius: 5px; background: #eef5f1; color: #326d58; text-decoration: none; font-size: 11px; font-weight: 600; }
.book-reference-link:hover { background: #dfede6; }
.home-book-cover img { border-radius: 2px 5px 5px 2px; box-shadow: 2px 2px 0 #fff, 4px 4px 0 #d1d2d8, 9px 12px 20px #17213c26; transition: transform .25s; }
.home-book-cover:hover img { transform: translateY(-3px) rotate(-1deg); }
.home-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; padding: 48px 24px; border: 1px dashed #d6d9e5; border-radius: 12px; text-align: center; color: #696e89; }
.home-empty h3 { font-family: Georgia, serif; font-size: 26px; font-weight: 400; margin: 20px 0 10px; }
.home-empty p { font-size: 13px; line-height: 1.8; max-width: 500px; margin: 0 0 20px; }
.home-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 35px; font-size: 12px; }
.home-pagination a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.home-pagination [aria-disabled] { color: #969caa; }
.home-guide { padding-block: 68px 54px; background: #f7f8fc; border-block: 1px solid #edeff7; scroll-margin-top: 25px; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; margin-top: 40px; }
.guide-steps article { position: relative; padding: 4px 0 25px; }
.guide-steps article > svg { color: #6264b8; margin-bottom: 24px; }
.step-number { position: absolute; right: 20px; top: -8px; color: #e3e5f2; font-size: 52px; font-weight: 500; letter-spacing: -3px; }
.guide-steps h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.guide-steps p { max-width: 320px; font-size: 12px; color: var(--muted); line-height: 1.85; margin: 0; }
.home-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 24px 0; margin-top: 22px; border-block: 1px solid #e1e5ef; }
.home-rules > div { display: flex; align-items: center; gap: 15px; color: #696f94; }
.home-rules span { font-size: 10px; color: #81869a; }
.home-rules strong { display: block; font-size: 17px; margin-top: 6px; font-weight: 550; color: #3b4264; }
.home-rules-note { margin: 16px 0 0; color: #84899b; font-size: 10px; line-height: 1.8; }
.home-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 66px; }
.home-cta h2 { font-size: 32px; }
.home-footer { display: flex; align-items: center; gap: 30px; padding-block: 27px; border-top: 1px solid var(--line); }
.home-footer .home-brand { font-size: 15px; }
.home-footer p { color: #9298a6; font-size: 10px; margin: 0; }
.home-footer > a:last-child { margin-left: auto; color: #747b8e; font-size: 10px; text-decoration: none; }
@keyframes reader-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes book-drift { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-13px) rotate(3deg); } }
@keyframes star-pulse { 0%,100% { opacity: .25; } 50% { opacity: .75; } }
.landing[data-motion="paused"] *, .landing[data-motion="paused"] *::before, .landing[data-motion="paused"] *::after { animation-play-state: paused !important; }
@media (max-width: 1199px) {
    .hero-art { width: 275px; top: 275px; opacity: .9; }
    .hero-art-left { left: -80px; }
    .hero-art-right { right: -70px; top: 235px; }
    .hero-content { width: min(620px, calc(100% - 48px)); }
    .hero-content h1 { font-size: 55px; }
    .home-books { gap: 20px; }
    .home-book-cover { padding: 22px 12px; }
    .home-book-info { padding: 17px 13px; }
}
@media (max-width: 900px) {
    .home-container { width: calc(100% - 48px); }
    .home-nav { gap: 18px; }
    .home-nav-links { gap: 20px; }
    .home-nav-actions { gap: 18px; margin-left: 0; }
    .home-brand { font-size: 18px; }
    .hero-art { width: 210px; opacity: .48; top: 380px; }
    .hero-art-left { left: -65px; }
    .hero-art-right { right: -55px; top: 345px; }
    .hero-content { padding-top: 90px; }
    .home-books { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
    .hero-bottom-note { display: none; }
    .home-footer { gap: 15px; }
    .guide-steps { gap: 25px; }
}
@media (max-width: 600px) {
    .home-container { width: calc(100% - 40px); }
    .home-nav { min-height: 75px; gap: 10px; }
    .home-brand { font-size: 16px; gap: 7px; }
    .brand-symbol { width: 30px; height: 30px; border-radius: 8px; }
    .brand-symbol svg { width: 18px; }
    .brand-dot { margin-left: -6px; }
    .home-nav-links { display: none; }
    .home-nav-actions { margin-left: auto; gap: 14px; }
    .home-nav-actions .home-button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
    .home-nav-actions .home-button svg { display: none; }
    .home-login-link { font-size: 12px; }
    .home-hero { min-height: 740px; }
    .hero-content { width: calc(100% - 40px); padding: 62px 0 100px; }
    .hero-eyebrow { font-size: 8px; gap: 7px; letter-spacing: 1px; }
    .hero-content h1 { font-size: clamp(32px, 8.7vw, 48px); line-height: 1.18; letter-spacing: -1.6px; margin: 24px 0 20px; }
    .hero-content h1 em { letter-spacing: -1.4px; }
    .hero-description { font-size: 12px; line-height: 1.9; margin-bottom: 28px; }
    .hero-description br { display: none; }
    .hero-search { padding: 6px; gap: 6px; border-radius: 8px; }
    .hero-search-icon { display: none; }
    .hero-search input { height: 43px; font-size: 16px; padding-left: 9px; }
    .hero-search button { gap: 7px; padding: 10px 13px; font-size: 11px; }
    .hero-search button svg { display: none; }
    .hero-search-hint { font-size: 10px; }
    .hero-numbers { gap: 20px; margin-top: 30px; }
    .hero-numbers > div { display: block; }
    .hero-numbers strong { display: block; font-size: 23px; }
    .hero-numbers span { font-size: 10px; }
    .hero-art { width: 182px; top: auto; bottom: 22px; opacity: 1; }
    .hero-art-left { left: -6px; }
    .hero-art-right { right: -2px; top: auto; bottom: 30px; width: 175px; }
    .hero-bottom { bottom: 20px; justify-content: center; }
    .hero-scroll { display: none; }
    .motion-toggle { font-size: 9px; padding: 6px 10px; background: #10122c88; }
    .home-collection { padding-block: 46px; }
    .home-popular { padding-block: 40px; }
    .book-popular-rank { top: 8px; left: 8px; padding: 5px 8px; font-size: 11px; }
    .home-book-info > .book-popular-count { font-size: 10px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 25px; }
    .section-heading h2, .home-cta h2 { font-size: 29px; }
    .section-heading p:not(.section-eyebrow), .home-cta p:not(.section-eyebrow) { font-size: 12px; }
    .section-eyebrow { font-size: 8px; }
    .home-books { gap: 13px; }
    .home-book { border-radius: 8px; }
    .home-book-cover { height: 180px; padding: 16px 12px; }
    .book-cover-placeholder { width: 105px; height: 146px; padding: 15px 10px 15px 14px; gap: 9px; border-left-width: 4px; }
    .book-cover-placeholder > span { font-size: 14px; }
    .book-cover-placeholder > svg { width: 24px; height: 24px; }
    .book-cover-placeholder small { font-size: 7px; }
    .home-book-info { padding: 15px 11px; }
    .home-book-category { font-size: 8px; }
    .home-book-info h3 { font-size: 13px; }
    .home-book-info > p { font-size: 10px; }
    .home-book-bottom { margin-top: 13px; padding-top: 12px; }
    .home-book-bottom a, .book-stock { font-size: 9px; }
    .home-pagination { gap: 14px; font-size: 10px; }
    .home-guide { padding-block: 44px 34px; }
    .guide-steps { grid-template-columns: 1fr; gap: 25px; margin-top: 30px; }
    .guide-steps article { padding-bottom: 22px; border-bottom: 1px solid #e3e7f1; }
    .guide-steps article:last-child { border-bottom: 0; }
    .guide-steps article > svg { margin-bottom: 15px; }
    .step-number { right: 5px; }
    .guide-steps p { max-width: 290px; }
    .home-rules { grid-template-columns: 1fr; gap: 20px; }
    .home-rules > div { align-items: center; }
    .home-rules span { font-size: 11px; }
    .home-rules strong { font-size: 16px; margin-top: 4px; }
    .home-cta { flex-direction: column; align-items: flex-start; gap: 22px; padding-block: 44px; }
    .home-footer { flex-wrap: wrap; gap: 14px; padding-block: 24px; }
    .home-footer .home-brand { width: 100%; }
    .home-footer p, .home-footer > a:last-child { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
