/* Jingrui Yuetao - Main Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.5; color: #fff; background: #000; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: #e82127; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
p { font-size: 1rem; color: #c8c8c8; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; overflow: hidden; }
.section-sm { padding: 80px 0; }
.text-center { text-align: center; }
.eyebrow { text-transform: uppercase; font-size: .85rem; letter-spacing: .25em; color: #e82127; margin-bottom: 16px; font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 999px; font-weight: 600; font-size: .95rem; letter-spacing: .03em; transition: all .35s cubic-bezier(.2,.7,.2,1); border: 1.5px solid transparent; position: relative; overflow: hidden; cursor: pointer; }
.btn-primary { background: #e82127; color: #fff; }
.btn-primary:hover { background: #ff3b3b; transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(232,33,39,.6); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; color: #000; border-color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid #fff; }
.btn-outline:hover { background: #fff; color: #000; }

.btn-arrow { display: inline-flex; align-items: center; gap: 6px; }
.btn-arrow svg { transition: transform .35s ease; }
.btn-arrow:hover svg { transform: translateX(6px); }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 18px 0; transition: all .4s ease; background: transparent; }
.site-header.scrolled { background: rgba(0,0,0,.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 16px; font-size: .92rem; font-weight: 500; color: #d6d6d6; position: relative; }
.nav a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: #e82127; transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav a.active { color: #fff; }
.header-cta { margin-left: 12px; }
.menu-toggle { display: none; width: 36px; height: 36px; position: relative; background: none; border: none; cursor: pointer; }
.menu-toggle span { position: absolute; left: 6px; right: 6px; height: 2px; background: #fff; transition: all .3s ease; }
.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 17px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-toggle.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; top: 0; right: 0; height: 100vh; width: min(360px, 80vw); background: #0a0a0a; transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.7,.2,1); z-index: 999; padding: 100px 32px 32px; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { padding: 14px 0; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 998; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.75) 70%, #000 100%); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { 0% { transform: scale(1.05); } 100% { transform: scale(1.18); } }
.hero-inner { position: relative; z-index: 2; max-width: 980px; padding: 0 24px; }
.hero h1 { margin-bottom: 18px; opacity: 0; transform: translateY(30px); animation: fadeUp 1s .25s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.3rem); color: #d6d6d6; max-width: 720px; margin: 0 auto 36px; opacity: 0; transform: translateY(30px); animation: fadeUp 1s .55s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; opacity: 0; transform: translateY(30px); animation: fadeUp 1s .85s cubic-bezier(.2,.7,.2,1) forwards; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; opacity: .7; }
.scroll-hint span { display: block; width: 22px; height: 36px; border: 1.5px solid #fff; border-radius: 14px; position: relative; }
.scroll-hint span::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translate(-50%,0); opacity: 1; } 100% { transform: translate(-50%, 16px); opacity: 0; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.page-header { position: relative; padding: 200px 0 100px; text-align: center; overflow: hidden; background: #050505; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 30%, rgba(232,33,39,.18), transparent 70%); }
.page-header h1 { margin-bottom: 18px; }
.page-header p { max-width: 720px; margin: 0 auto; color: #bcbcbc; font-size: 1.1rem; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.feature-card { background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 32px; transition: all .4s cubic-bezier(.2,.7,.2,1); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 200px at var(--mx,50%) var(--my,0%), rgba(232,33,39,.15), transparent 60%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(232,33,39,.4); box-shadow: 0 20px 40px -20px rgba(232,33,39,.35); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #1a1a1a, #0c0c0c); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-icon svg { width: 28px; height: 28px; fill: #e82127; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-media { border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 4/3; background: #0c0c0c; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.split-media:hover img { transform: scale(1.04); }
.split-content h2 { margin-bottom: 18px; }
.split-content p { margin-bottom: 16px; font-size: 1.05rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 24px; margin-top: 40px; }
.stat { text-align: center; padding: 20px; }
.stat .num { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; background: linear-gradient(180deg, #fff, #999); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: #b3b3b3; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }

.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.app-card { position: relative; background: #0a0a0a; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 28px; overflow: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .35s ease; }
.app-card:hover { transform: translateY(-6px); border-color: rgba(232,33,39,.4); }
.app-card .glow { position: absolute; inset: -1px; background: radial-gradient(400px 200px at 80% 0%, rgba(232,33,39,.18), transparent 60%); opacity: 0; transition: opacity .4s ease; }
.app-card:hover .glow { opacity: 1; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: linear-gradient(135deg, #1c1c1c, #0e0e0e); border: 1px solid rgba(255,255,255,.1); }
.app-icon svg { width: 38px; height: 38px; }
.app-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.app-card p { color: #b6b6b6; font-size: .95rem; }
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: rgba(232,33,39,.1); color: #ff7676; border: 1px solid rgba(232,33,39,.25); letter-spacing: .04em; text-transform: uppercase; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.value-card { padding: 28px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; position: relative; transition: all .4s ease; }
.value-card:hover { background: rgba(232,33,39,.04); border-color: rgba(232,33,39,.3); transform: translateY(-4px); }
.value-card .v-num { font-size: 2.2rem; font-weight: 800; color: #e82127; margin-bottom: 12px; opacity: .7; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { font-size: .92rem; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.news-card { background: #0a0a0a; border: 1px solid rgba(255,255,255,.06); border-radius: 18px; overflow: hidden; transition: all .4s ease; }
.news-card:hover { border-color: rgba(232,33,39,.4); transform: translateY(-4px); }
.news-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; background: #0a0a0a; }
.news-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .7s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { padding: 24px; }
.news-meta { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: #888; margin-bottom: 12px; }
.news-meta .pill { background: rgba(232,33,39,.12); color: #ff8080; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; }
.news-card p { font-size: .92rem; margin-bottom: 16px; }
.news-card .read-more { color: #e82127; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.news-card .read-more svg { width: 16px; height: 16px; transition: transform .3s ease; }
.news-card:hover .read-more svg { transform: translateX(4px); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info-card { background: linear-gradient(180deg, #0e0e0e, #070707); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 32px; margin-bottom: 16px; transition: all .35s ease; }
.contact-info-card:hover { border-color: rgba(232,33,39,.3); }
.contact-info-card .ci-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(232,33,39,.12); color: #e82127; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.contact-info-card .ci-icon svg { width: 22px; height: 22px; fill: currentColor; }
.contact-info-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: #fff; }
.contact-info-card p { font-size: .95rem; color: #c2c2c2; word-break: break-word; }
.contact-form { background: #0a0a0a; border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .8rem; color: #b6b6b6; letter-spacing: .06em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 16px; background: #060606; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #fff; font-family: inherit; font-size: 1rem; transition: border-color .25s ease, background .25s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #e82127; background: #0a0a0a; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit { width: 100%; padding: 16px; border-radius: 999px; background: #e82127; color: #fff; font-weight: 600; letter-spacing: .04em; transition: all .3s ease; border: none; cursor: pointer; }
.form-submit:hover { background: #ff3b3b; transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(232,33,39,.6); }

.site-footer { background: #050505; border-top: 1px solid rgba(255,255,255,.06); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 60px; }
.footer-brand p { margin-top: 16px; font-size: .92rem; max-width: 320px; }
.footer-col h4 { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #b6b6b6; font-size: .92rem; transition: color .25s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #888; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; transition: all .3s ease; }
.social-row a:hover { background: #e82127; transform: translateY(-3px); }
.social-row svg { width: 16px; height: 16px; fill: #fff; }

.legal-wrap { max-width: 920px; margin: 0 auto; }
.legal-wrap h1 { margin-bottom: 16px; }
.legal-meta { color: #888; font-size: .9rem; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.legal-toc { background: #0a0a0a; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 24px; margin-bottom: 40px; }
.legal-toc h3 { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.legal-toc ol { padding-left: 22px; }
.legal-toc li { margin-bottom: 8px; font-size: .92rem; }
.legal-toc a { color: #d2d2d2; }
.legal-toc a:hover { color: #e82127; }
.legal-wrap h2 { margin: 56px 0 16px; padding-top: 12px; font-size: 1.6rem; border-top: 1px solid rgba(255,255,255,.08); }
.legal-wrap h2:first-of-type { border-top: none; padding-top: 0; margin-top: 24px; }
.legal-wrap h3 { font-size: 1.15rem; margin: 24px 0 10px; color: #fff; }
.legal-wrap p, .legal-wrap li { color: #c8c8c8; font-size: .98rem; line-height: 1.7; margin-bottom: 12px; }
.legal-wrap ul, .legal-wrap ol { padding-left: 24px; margin-bottom: 16px; }
.legal-wrap ul li, .legal-wrap ol li { margin-bottom: 8px; }
.legal-wrap strong { color: #fff; }
.legal-wrap code { background: #0e0e0e; padding: 2px 8px; border-radius: 4px; font-size: .9em; color: #ffb3b3; }
.legal-callout { background: linear-gradient(90deg, rgba(232,33,39,.08), transparent); border-left: 3px solid #e82127; padding: 16px 20px; border-radius: 8px; margin: 20px 0; }
.legal-callout p { margin: 0; color: #e6e6e6; }

.cookie-banner { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 2000; max-width: 720px; margin: 0 auto; background: #0a0a0a; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .9rem; color: #d4d4d4; flex: 1 1 280px; margin: 0; }
.cookie-banner .cb-actions { display: flex; gap: 8px; }
.cookie-banner button { padding: 9px 18px; border-radius: 999px; font-size: .85rem; font-weight: 600; transition: all .25s ease; border: none; cursor: pointer; }
.cb-accept { background: #e82127; color: #fff; }
.cb-accept:hover { background: #ff3b3b; }
.cb-reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.2); }
.cb-reject:hover { background: rgba(255,255,255,.06); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay='1'] { transition-delay: .1s; }
.reveal[data-delay='2'] { transition-delay: .2s; }
.reveal[data-delay='3'] { transition-delay: .3s; }
.reveal[data-delay='4'] { transition-delay: .4s; }
.reveal[data-delay='5'] { transition-delay: .5s; }

.marquee { overflow: hidden; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); background: #050505; }
.marquee-track { display: flex; gap: 60px; animation: marquee 30s linear infinite; white-space: nowrap; align-items: center; }
.marquee-track span { font-size: 1.5rem; font-weight: 700; color: #6a6a6a; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 60px; }
.marquee-track span::after { content: '\25C6'; color: #e82127; font-size: 1rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.cta-banner { position: relative; padding: 100px 0; background: linear-gradient(120deg, #0a0a0a 0%, #1a0608 50%, #0a0a0a 100%); overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 400px at 20% 50%, rgba(232,33,39,.25), transparent 60%), radial-gradient(800px 400px at 80% 50%, rgba(232,33,39,.15), transparent 60%); }
.cta-banner h2 { margin-bottom: 18px; position: relative; z-index: 1; }
.cta-banner p { margin-bottom: 32px; max-width: 640px; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }

.split-list { list-style: none; padding: 0; margin: 16px 0 0; }
.split-list li { padding: 10px 0 10px 30px; position: relative; color: #d6d6d6; font-size: 1rem; }
.split-list li::before { content: ''; position: absolute; left: 0; top: 18px; width: 16px; height: 2px; background: #e82127; }

.timeline { position: relative; margin-top: 60px; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #e82127, rgba(232,33,39,.1)); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -29px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #e82127; box-shadow: 0 0 0 4px rgba(232,33,39,.15); }
.timeline-year { font-size: .85rem; color: #e82127; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline-item p { font-size: .95rem; color: #c2c2c2; }


@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 2.2rem; }
  .page-header { padding: 150px 0 70px; }
  .page-header h1 { font-size: 2rem; }
  .legal-wrap h2 { font-size: 1.35rem; }
  .contact-form { padding: 24px; }
  .feature-grid, .app-grid, .values-grid { grid-template-columns: 1fr; max-width: 560px; }
}

/* ============== Scroll progress bar ============== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #e82127, #ff6b6b); z-index: 1100; transition: width .15s ease-out; box-shadow: 0 0 8px rgba(232,33,39,.6); pointer-events: none; }

/* ============== Back-to-top button ============== */
.back-to-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: #e82127; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 900; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: all .35s cubic-bezier(.2,.7,.2,1); box-shadow: 0 8px 24px -6px rgba(232,33,39,.6); border: none; }
.back-to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: #ff3b3b; transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px -8px rgba(232,33,39,.7); }
.back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Adjust back-to-top position when cookie banner is visible */
.cookie-banner.show ~ .back-to-top { bottom: 140px; }

/* ============== Subtle page fade-in ============== */
html.js-ready body { animation: pageFadeIn .6s ease-out; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============== prefers-reduced-motion ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js-ready body { animation: none; }
}

/* ============== Focus visibility for accessibility ============== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #e82127; outline-offset: 3px; border-radius: 4px; }

/* ============== Skip-to-content link ============== */
.skip-link { position: absolute; left: -9999px; top: 0; background: #e82127; color: #fff; padding: 12px 20px; z-index: 9999; font-weight: 600; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

::selection { background: #e82127; color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #e82127; }
