/* EduPath-AI landing page — Gen-Z sticker style. Videos are kept (hero rotation, About panel, CTA band). */
:root {
    --lp-ink: #14232c; --lp-paper: #fff8ee; --lp-card: #ffffff; --lp-text: #14232c; --lp-muted: #44565f;
    --lp-line: #14232c; --lp-shadow: #14232c;
    --lp-pop: #FF4D8D; --lp-lime: #C6F135; --lp-sun: #FFD23F; --lp-sky: #5EE1FF; --lp-violet: #7C5CFF; --lp-coral: #FF6B35; --lp-mint: #2EE6A6;
    --lp-bounce: cubic-bezier(.3, 1.5, .5, 1);
}
html[data-theme="dark"] {
    --lp-paper: #110e29; --lp-card: #1c1840; --lp-text: #f4f0ff; --lp-muted: #bdb6dc;
    --lp-line: #b9a8ff; --lp-shadow: #000;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body, 'Figtree', system-ui, sans-serif); color: var(--lp-text); background: var(--lp-paper); overflow-x: hidden; -webkit-text-size-adjust: 100%; transition: background .3s, color .3s; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--lp-text) 10%, transparent) 1.3px, transparent 1.5px) 0 0 / 22px 22px; }
img, video { max-width: 100%; }
a { color: inherit; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
h1, h2, h3, h4, h5 { font-family: var(--font-display, 'Bricolage Grotesque', system-ui, sans-serif); }

/* ---------- buttons ---------- */
.btn-cta, .btn-ghost, .btn-nav {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem; text-decoration: none; cursor: pointer;
    font-weight: 900; border: 3px solid var(--lp-ink); border-radius: 18px; padding: .85rem 1.6rem; font-size: 1.02rem;
    transition: transform .16s var(--lp-bounce), box-shadow .16s;
}
.btn-cta { background: var(--lp-lime); color: var(--lp-ink); box-shadow: 0 6px 0 var(--lp-ink); }
.btn-cta:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 9px 0 var(--lp-ink); color: var(--lp-ink); }
.btn-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--lp-ink); }
.btn-ghost { background: #fff; color: var(--lp-ink); box-shadow: 0 6px 0 var(--lp-ink); }
.btn-ghost:hover { transform: translateY(-3px) rotate(1deg); box-shadow: 0 9px 0 var(--lp-ink); color: var(--lp-ink); }
.btn-ghost:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--lp-ink); }

/* ---------- navbar (floating pill) ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 999; padding: calc(12px + env(safe-area-inset-top, 0px)) 0 0; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(255, 255, 255, .94); color: var(--lp-ink);
    border: 3px solid var(--lp-ink); border-radius: 22px; padding: .55rem .7rem .55rem 1rem; box-shadow: 0 5px 0 var(--lp-ink); backdrop-filter: blur(10px); transition: transform .25s; }
html[data-theme="dark"] .nav-bar { background: rgba(28, 24, 64, .94); color: #f4f0ff; border-color: #b9a8ff; box-shadow: 0 5px 0 #000; }
.site-nav.scrolled .nav-bar { transform: scale(.985); }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 1.3rem; text-decoration: none; color: inherit; }
.brand i { width: 38px; height: 38px; display: grid; place-items: center; background: var(--lp-sun); color: var(--lp-ink); border: 2.5px solid var(--lp-ink); border-radius: 12px; transform: rotate(-6deg); font-size: 1.15rem; }
.brand .bt { display: inline; } .brand em { font-style: normal; color: var(--lp-pop); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a:not(.btn-nav) { font-weight: 800; text-decoration: none; padding: .45rem .85rem; border-radius: 999px; border: 2.5px solid transparent; transition: transform .15s var(--lp-bounce), background .15s, border-color .15s; color: inherit; }
.nav-links a:not(.btn-nav):hover { background: var(--lp-sun); color: var(--lp-ink); border-color: var(--lp-ink); transform: rotate(-2deg) translateY(-2px); }
.btn-nav { background: var(--lp-pop); color: #fff; padding: .5rem 1.2rem; border-radius: 14px; font-size: .95rem; box-shadow: 0 4px 0 var(--lp-ink); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lp-ink); color: #fff; }
.theme-toggle { width: 42px; height: 42px; display: grid; place-items: center; background: #fff; color: var(--lp-ink); border: 2.5px solid var(--lp-ink); border-radius: 13px; box-shadow: 0 3px 0 var(--lp-ink); cursor: pointer; transition: transform .2s var(--lp-bounce); }
.theme-toggle:hover { transform: rotate(18deg) scale(1.08); }
html[data-theme="dark"] .theme-toggle { background: #231e50; color: #ffd23f; border-color: #b9a8ff; box-shadow: 0 3px 0 #000; }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--lp-sky); color: var(--lp-ink); border: 2.5px solid var(--lp-ink); border-radius: 13px; box-shadow: 0 3px 0 var(--lp-ink); font-size: 1.4rem; cursor: pointer; }
.nav-drawer { display: none; margin-top: .6rem; background: var(--lp-card); color: var(--lp-text); border: 3px solid var(--lp-line); border-radius: 20px; box-shadow: 0 5px 0 var(--lp-shadow); padding: .4rem; }
.nav-drawer a { display: block; padding: .8rem 1rem; font-weight: 800; text-decoration: none; border-radius: 14px; color: inherit; }
.nav-drawer a:hover { background: var(--lp-sun); color: var(--lp-ink); }
.site-nav.is-open .nav-drawer { display: block; }

/* ---------- hero (video background kept) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 130px 0 90px; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -3; background: #1b1240; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.hero-media video.is-active { opacity: 1; }
.hero-veil { position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(105deg, rgba(20, 8, 60, .88) 0%, rgba(60, 20, 110, .66) 45%, rgba(10, 60, 90, .55) 100%),
        radial-gradient(ellipse at 85% 15%, rgba(255, 77, 141, .35), transparent 55%); }
.hero-grain { position: absolute; inset: 0; z-index: -1; opacity: .35; mix-blend-mode: overlay; pointer-events: none;
    background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .55) 1px, transparent 1.4px) 0 0 / 16px 16px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--lp-lime); color: var(--lp-ink); border: 3px solid var(--lp-ink); border-radius: 999px; padding: .3rem 1rem; font-weight: 900; font-size: .88rem; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--lp-ink); }
.hero-title { font-weight: 800; font-size: clamp(2.3rem, 5.6vw, 4.3rem); line-height: 1.02; letter-spacing: -.03em; margin: 1.2rem 0 1rem; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.hero-title mark { background: none; color: var(--lp-ink); padding: 0 .25em; border-radius: .25em; text-shadow: none; display: inline-block; transform: rotate(-1.5deg); border: 3px solid var(--lp-ink); box-shadow: 4px 4px 0 var(--lp-ink); }
.hero-title mark.m1 { background: var(--lp-sun); } .hero-title mark.m2 { background: var(--lp-sky); }
.hero-sub { font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.65; max-width: 580px; color: rgba(255, 255, 255, .94); text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.hero-chips span { background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: .25rem .8rem; font-weight: 800; font-size: .82rem; backdrop-filter: blur(4px); }

/* sample card */
.hero-card-wrap { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-card { position: relative; background: var(--lp-card); color: var(--lp-text); border: 3px solid var(--lp-ink); border-radius: 26px; box-shadow: 9px 9px 0 var(--lp-ink); padding: 1.3rem; transform: rotate(2.5deg); animation: lpFloat 5s ease-in-out infinite; }
html[data-theme="dark"] .hero-card { border-color: #b9a8ff; box-shadow: 9px 9px 0 #000; }
.hero-card .hc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.hero-card .hc-tag { background: var(--lp-pop); color: #fff; border: 2.5px solid var(--lp-ink); border-radius: 999px; padding: .1rem .8rem; font-weight: 900; font-size: .75rem; }
.hero-card .hc-sample { font-size: .72rem; font-weight: 800; color: var(--lp-muted); }
.hc-row { display: flex; align-items: center; gap: .8rem; padding: .7rem; border: 2.5px solid var(--lp-line); border-radius: 16px; margin-bottom: .6rem; background: color-mix(in srgb, var(--tint) 30%, var(--lp-card)); }
.hc-row .hc-rank { width: 34px; height: 34px; display: grid; place-items: center; font-weight: 900; border: 2.5px solid var(--lp-ink); border-radius: 50%; background: var(--tint); color: var(--lp-ink); flex: none; }
.hc-row b { display: block; font-size: .92rem; line-height: 1.15; }
.hc-row small { color: var(--lp-muted); font-weight: 700; }
.hc-row .hc-pct { margin-left: auto; font-weight: 900; font-size: 1.05rem; }
.hc-riasec { display: flex; gap: .35rem; margin-top: .8rem; }
.hc-riasec i { font-style: normal; flex: 1; text-align: center; font-weight: 900; color: var(--lp-ink); border: 2.5px solid var(--lp-ink); border-radius: 10px; padding: .2rem 0; background: var(--tint); }
.hero-sticker { position: absolute; font-size: 2.4rem; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35)); animation: lpFloat 4s ease-in-out infinite; pointer-events: none; }
.hero-sticker.s1 { top: -28px; left: -22px; animation-delay: -1s; } .hero-sticker.s2 { bottom: -22px; right: -14px; animation-delay: -2s; } .hero-sticker.s3 { top: 40%; right: -34px; animation-delay: -3s; font-size: 1.9rem; }
@keyframes lpFloat { 0%, 100% { transform: translateY(0) rotate(var(--r, 2.5deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 2.5deg) * -1)); } }
.hero-card { --r: 2.5deg; } .hero-sticker.s1 { --r: -10deg; } .hero-sticker.s2 { --r: 12deg; } .hero-sticker.s3 { --r: 8deg; }

.hero-video-dots { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; gap: 0; }
.hero-video-dots button { width: 36px; height: 36px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.hero-video-dots button::after { content: ''; width: 22px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .4); border: 2px solid #fff; transition: background .25s, width .25s; }
.hero-video-dots button.is-active::after { background: var(--lp-lime); width: 34px; border-color: var(--lp-ink); box-shadow: 0 0 0 2px var(--lp-lime); }

/* ---------- ticker ---------- */
.ticker { background: var(--lp-lime); color: var(--lp-ink); border-block: 3px solid var(--lp-ink); overflow: hidden; transform: rotate(-1deg) scale(1.02); margin: -18px 0 18px; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: lpMarquee 28s linear infinite; }
.ticker-track span { font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 1.15rem; padding: .7rem 1.4rem; white-space: nowrap; }
@keyframes lpMarquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-label { display: inline-block; background: var(--lp-sun); color: var(--lp-ink); border: 2.5px solid var(--lp-ink); border-radius: 999px; padding: .15rem .9rem; font-weight: 900; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--lp-ink); }
.section-title { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.025em; line-height: 1.08; margin-top: .9rem; color: var(--lp-text); }
.section-sub { color: var(--lp-muted); font-size: 1.08rem; line-height: 1.65; margin-top: .8rem; max-width: 620px; }
.feat-head { text-align: center; }
.feat-head .section-sub { margin-inline: auto; }
.mt-1 { margin-top: .9rem; } .mt-2 { margin-top: .6rem; } .mb-3 { margin-bottom: 1rem; }

.stats-band { padding: 26px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.stat-item { background: color-mix(in srgb, var(--tint) 55%, var(--lp-card)); color: var(--lp-text); border: 3px solid var(--lp-line); border-radius: 22px; box-shadow: 6px 6px 0 var(--lp-shadow); padding: 1.1rem 1.2rem; transition: transform .25s var(--lp-bounce); }
.stat-item:nth-child(odd) { transform: rotate(-1.2deg); } .stat-item:nth-child(even) { transform: rotate(1.2deg); }
.stat-item:hover { transform: rotate(0) translateY(-5px) scale(1.03); }
.stat-num { display: block; font-family: var(--font-display, sans-serif); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: var(--lp-text); }
.stat-lbl { display: block; margin-top: .35rem; font-weight: 800; font-size: .88rem; color: var(--lp-text); opacity: .85; }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 3rem; }
.feat-item { background: color-mix(in srgb, var(--tint) 24%, var(--lp-card)); color: var(--lp-text); border: 3px solid var(--lp-line); border-radius: 26px; box-shadow: 7px 7px 0 var(--tint); padding: 1.5rem; transition: transform .25s var(--lp-bounce), box-shadow .25s; position: relative; }
.feat-item:hover { transform: translateY(-8px) rotate(-1.3deg); box-shadow: 10px 12px 0 var(--tint); }
.feat-icon { width: 58px; height: 58px; display: grid; place-items: center; background: var(--tint); color: var(--lp-ink); border: 3px solid var(--lp-ink); border-radius: 18px; font-size: 1.6rem; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--lp-ink); margin-bottom: 1rem; transition: transform .3s var(--lp-bounce); }
.feat-item:hover .feat-icon { transform: rotate(6deg) scale(1.12); }
.feat-title { font-weight: 800; font-size: 1.22rem; margin-bottom: .45rem; color: var(--lp-text); }
.feat-desc { color: var(--lp-muted); line-height: 1.6; font-size: .96rem; }

.hiw-bg { background: color-mix(in srgb, var(--lp-violet) 12%, var(--lp-paper)); border-block: 3px solid var(--lp-line); }
.hiw-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.step-list { display: grid; gap: 1.2rem; }
.step-row { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--lp-card); color: var(--lp-text); border: 3px solid var(--lp-line); border-radius: 24px; box-shadow: 6px 6px 0 var(--lp-shadow); padding: 1.2rem 1.3rem; transition: transform .25s var(--lp-bounce); }
.step-row:hover { transform: translateX(8px) rotate(-.6deg); }
.step-num { flex: none; width: 62px; height: 62px; display: grid; place-items: center; font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 1.5rem; background: var(--tint); color: var(--lp-ink); border: 3px solid var(--lp-ink); border-radius: 20px; transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--lp-ink); }
.step-body h5 { font-weight: 800; font-size: 1.15rem; margin-bottom: .3rem; color: var(--lp-text); }
.step-body p { color: var(--lp-muted); line-height: 1.6; font-size: .95rem; }

.about-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; }
.about-lead { color: var(--lp-muted); font-size: 1.08rem; line-height: 1.7; margin-bottom: 1.2rem; }
.about-check { list-style: none; display: grid; gap: .6rem; }
.about-check li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 700; background: var(--lp-card); border: 2.5px solid var(--lp-line); border-radius: 16px; padding: .65rem .9rem; box-shadow: 3px 3px 0 var(--lp-shadow); }
.about-check i { color: var(--lp-mint); font-size: 1.15rem; margin-top: .1rem; }
.about-panel { position: relative; border: 3px solid var(--lp-ink); border-radius: 30px; overflow: hidden; min-height: 400px; box-shadow: 10px 10px 0 var(--lp-pop); transform: rotate(1.5deg); background: #1b1240; }
html[data-theme="dark"] .about-panel { border-color: #b9a8ff; }
.about-panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-panel-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 8, 60, .05) 35%, rgba(20, 8, 60, .88) 100%); }
.about-panel-copy { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; background: var(--lp-sun); color: var(--lp-ink); border: 3px solid var(--lp-ink); border-radius: 20px; padding: 1rem 1.2rem; box-shadow: 4px 4px 0 var(--lp-ink); transform: rotate(-1.5deg); }
.about-panel-copy h3 { font-weight: 800; font-size: 1.3rem; margin-bottom: .2rem; color: var(--lp-ink); }
.about-panel-copy p { font-weight: 600; font-size: .92rem; line-height: 1.5; color: #2b3640; }

.cta-band { position: relative; overflow: hidden; padding: 110px 0; text-align: center; color: #fff; isolation: isolate; border-top: 3px solid var(--lp-ink); }
.cta-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(60, 10, 90, .9), rgba(20, 20, 90, .78) 50%, rgba(255, 77, 141, .55)); }
.cta-band h2 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.025em; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.cta-band p { max-width: 560px; margin: 1rem auto 1.8rem; font-size: 1.1rem; line-height: 1.6; color: rgba(255, 255, 255, .95); text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }

/* ---------- footer ---------- */
footer { background: #0e0a26; color: #d9d3f2; border-top: 3px solid var(--lp-ink); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.2rem; }
footer .brand { color: #fff; margin-bottom: .6rem; } footer .brand i { box-shadow: 2px 2px 0 #000; }
footer h6 { color: #fff; font-weight: 900; font-size: 1rem; margin-bottom: .9rem; }
footer ul { list-style: none; } footer li { margin-bottom: .55rem; }
footer a, footer .legal-link { color: #d9d3f2; text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; transition: color .15s, transform .15s; display: inline-block; }
footer a:hover, footer .legal-link:hover { color: var(--lp-lime); transform: translateX(3px); }
footer hr { border: 0; border-top: 2px dashed rgba(255, 255, 255, .2); margin: 1.8rem 0 1.1rem; }
.footer-legal { font-size: .85rem; color: #b8b0dc; }
.footer-legal .sep { margin: 0 .5em; opacity: .5; }
.footer-legal a, .footer-legal .legal-link { color: var(--lp-lime); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .6s ease, transform .6s var(--lp-bounce); }
.reveal.visible { opacity: 1; transform: none; }
.stat-item.reveal.visible:nth-child(odd) { transform: rotate(-1.2deg); } .stat-item.reveal.visible:nth-child(even) { transform: rotate(1.2deg); }
.stat-item.reveal.visible:hover { transform: rotate(0) translateY(-5px) scale(1.03); }

/* ---------- login pop-up (iframe) ---------- */
.auth-modal .modal-dialog { max-width: min(480px, calc(100vw - 28px)); margin: max(.75rem, env(safe-area-inset-top, 0px)) auto; width: calc(100% - 28px); }
.auth-modal.register-wide .modal-dialog { max-width: min(680px, calc(100vw - 28px)); }
.auth-modal .modal-content { background: transparent; border: 3px solid var(--lp-ink); box-shadow: 9px 9px 0 var(--lp-ink); border-radius: 28px; overflow: hidden; }
.auth-modal .modal-body { padding: 0; position: relative; background: transparent; }
.auth-modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--lp-ink); background: #fff; color: var(--lp-ink); display: grid; place-items: center; font-size: 1rem; cursor: pointer; box-shadow: 2px 2px 0 var(--lp-ink); transition: transform .2s var(--lp-bounce), background .15s; }
.auth-modal-close:hover { background: var(--lp-pop); color: #fff; transform: rotate(90deg); }
.auth-frame { width: 100%; height: min(78vh, 78dvh, 700px); border: 0; display: block; background: #fffaf3; }
.auth-modal.register-wide .auth-frame { height: min(86vh, 86dvh, 800px); }
.modal-backdrop.auth-backdrop { background: rgba(20, 8, 60, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .nav-links { display: none; } .nav-toggle { display: inline-flex; }
    .hero { padding-top: 120px; } .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
    .hero-card-wrap { justify-self: start; width: min(100%, 360px); margin-left: 8px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hiw-layout, .about-layout { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-frame { height: min(80vh, 80dvh, 720px); }
}
@media (max-width: 575.98px) {
    .brand { font-size: 1.08rem; } .brand i { width: 32px; height: 32px; font-size: 1rem; } .nav-bar { padding-left: .6rem; gap: .4rem; } .btn-nav { padding: .45rem .9rem; }
    .section { padding: 60px 0; }
    .feat-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: .8rem; } .stat-item { padding: .9rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn-cta, .hero-actions .btn-ghost { width: 100%; }
    .hero-sticker.s3 { display: none; }
    .step-row { flex-direction: column; gap: .8rem; }
    .about-panel { min-height: 330px; }
    .auth-modal .modal-dialog { max-width: calc(100vw - 16px); width: calc(100% - 16px); }
    .auth-frame { height: min(88svh, 88dvh, 740px); }
    .auth-modal.register-wide .auth-frame { height: min(90svh, 90dvh, 820px); }
}
@media (hover: none) { .feat-item:hover, .step-row:hover, .stat-item:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .ticker-track, .hero-card, .hero-sticker { animation: none; }
    .hero-media video { transition: none; }
    html { scroll-behavior: auto; }
}
