/* ========================================
   Picasso Rayne Studios - Site Theme
   ======================================== */

:root {
    /* Brand Colors */
    --prs-primary: #6366f1;
    --prs-primary-hover: #4f46e5;
    --prs-primary-light: #e0e7ff;
    --prs-secondary: #0ea5e9;
    --prs-secondary-hover: #0284c7;
    --prs-accent: #f59e0b;
    --prs-accent-hover: #d97706;
    
    /* Neutrals */
    --prs-bg: #ffffff;
    --prs-bg-alt: #f8fafc;
    --prs-bg-dark: #0f172a;
    --prs-text: #1e293b;
    --prs-text-muted: #64748b;
    --prs-text-light: #f8fafc;
    --prs-border: #e2e8f0;
    
    /* Cards */
    --prs-card-bg: #ffffff;
    --prs-card-border: #e2e8f0;
    --prs-card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --prs-card-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --prs-section-padding: 5rem 0;
    --prs-container-max: 1200px;
    
    /* Typography */
    --prs-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --prs-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html, body {
    font-family: var(--prs-font-family);
    color: var(--prs-text);
    background-color: var(--prs-bg);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* App Shell - proper flex layout to prevent footer overlap */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--prs-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

.lead {
    font-size: 1.25rem;
    color: var(--prs-text-muted);
}

a, .btn-link {
    color: var(--prs-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, .btn-link:hover {
    color: var(--prs-primary-hover);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    color: #fff;
    background-color: var(--prs-primary);
    border-color: var(--prs-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--prs-primary-hover);
    border-color: var(--prs-primary-hover);
}

.btn-secondary {
    color: var(--prs-text);
    background-color: var(--prs-bg);
    border-color: var(--prs-border);
}

.btn-secondary:hover {
    background-color: var(--prs-bg-alt);
    border-color: var(--prs-primary);
    color: var(--prs-primary);
}

.btn-accent {
    color: #fff;
    background-color: var(--prs-accent);
    border-color: var(--prs-accent);
}

.btn-accent:hover {
    background-color: var(--prs-accent-hover);
    border-color: var(--prs-accent-hover);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--prs-primary-light);
}

/* ========================================
   Layout
   ======================================== */

.site-header {
    background-color: var(--prs-bg);
    border-bottom: 1px solid var(--prs-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar {
    padding: 1rem 0;
}

.site-header .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--prs-text);
}

.site-header .nav-link {
    color: var(--prs-text-muted);
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .nav-link {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.875rem;
    }
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--prs-primary);
}

.site-footer {
    background-color: var(--prs-bg-dark);
    color: var(--prs-text-light);
    padding: 4rem 0 2rem;
}

.site-footer a {
    color: var(--prs-text-light);
    opacity: 0.8;
}

.site-footer a:hover {
    opacity: 1;
    color: var(--prs-primary-light);
}

.site-footer h5 {
    color: var(--prs-text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--prs-bg) 0%, var(--prs-primary-light) 100%);
}

.hero-section.hero-dark {
    background: linear-gradient(135deg, var(--prs-bg-dark) 0%, #1e1b4b 100%);
    color: var(--prs-text-light);
}

.hero-section.hero-dark h1,
.hero-section.hero-dark h2 {
    color: var(--prs-text-light);
}

.hero-section .hero-title {
    margin-bottom: 1.5rem;
}

.hero-section .hero-subtitle {
    font-size: 1.25rem;
    color: var(--prs-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-section.hero-dark .hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.hero-section .hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 8rem 0;
    }
}

/* ========================================
   Cards
   ======================================== */

.prs-card {
    background: var(--prs-card-bg);
    border: 1px solid var(--prs-card-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--prs-card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.prs-card:hover {
    box-shadow: var(--prs-card-shadow-hover);
    transform: translateY(-4px);
}

.prs-card.card-highlighted {
    border-color: var(--prs-primary);
    box-shadow: 0 0 0 2px var(--prs-primary-light), var(--prs-card-shadow);
}

.prs-card .card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--prs-primary-light);
    color: var(--prs-primary);
    border-radius: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.prs-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.prs-card .card-tagline {
    font-size: 0.875rem;
    color: var(--prs-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.prs-card .card-description {
    color: var(--prs-text-muted);
    margin-bottom: 1.5rem;
}

.prs-card .card-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prs-card .card-status.status-live {
    background: #dcfce7;
    color: #166534;
}

.prs-card .card-status.status-coming-soon {
    background: #fef3c7;
    color: #92400e;
}

.prs-card .card-status.status-beta {
    background: #e0e7ff;
    color: #3730a3;
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: var(--prs-section-padding);
}

.section-alt {
    background-color: var(--prs-bg-alt);
}

.section-dark {
    background-color: var(--prs-bg-dark);
    color: var(--prs-text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--prs-text-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-title {
    margin-bottom: 1rem;
}

.section-header .section-subtitle {
    color: var(--prs-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Feature List
   ======================================== */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.feature-list li::before {
    content: "?";
    color: var(--prs-primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   Pricing
   ======================================== */

.pricing-card {
    text-align: center;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--prs-text);
    margin-bottom: 0.5rem;
}

.pricing-card .price-period {
    font-size: 1rem;
    color: var(--prs-text-muted);
    font-weight: 400;
}

.pricing-card.card-highlighted .price {
    color: var(--prs-primary);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--prs-primary) 0%, var(--prs-secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-section .btn {
    background: white;
    color: var(--prs-primary);
    border: none;
}

.cta-section .btn:hover {
    background: var(--prs-bg-alt);
}

/* ========================================
   YouTube Embed
   ======================================== */

.youtube-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--prs-bg-alt);
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.75rem;
}

.youtube-embed-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--prs-bg-alt);
    border-radius: 0.75rem;
}

/* ========================================
   Series Card (Click-out YouTube)
   ======================================== */

.series-card .series-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--prs-bg-alt);
}

.series-card .series-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.series-card:hover .series-thumbnail img {
    transform: scale(1.05);
}

.series-card .thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--prs-primary-light) 0%, var(--prs-bg-alt) 100%);
    font-size: 3rem;
    color: var(--prs-primary);
}

.series-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 3rem;
    text-decoration: none;
}

.series-card:hover .play-overlay {
    opacity: 1;
}

.series-card .play-overlay i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.2s ease;
}

.series-card:hover .play-overlay i {
    transform: scale(1.1);
}

/* ========================================
   Video Card (YouTubeCatalog)
   ======================================== */

.video-card .video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--prs-bg-alt);
}

.video-card .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-card .thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--prs-primary-light) 0%, var(--prs-bg-alt) 100%);
    font-size: 3rem;
    color: var(--prs-primary);
}

.video-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 3rem;
    text-decoration: none;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card .play-overlay i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.2s ease;
}

.video-card:hover .play-overlay i {
    transform: scale(1.1);
}

.video-card.coming-soon {
    opacity: 0.8;
}

.video-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--prs-card-shadow);
}

.video-card .coming-soon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
}

.video-card .coming-soon-overlay .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* ========================================
   Legal Document Layout
   ======================================== */

.legal-header h1 {
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content hr {
    margin: 2.5rem 0;
    opacity: 0.15;
}

/* Related legal docs card - auto-size to content */
.prs-card.card-compact {
    height: auto;
}

/* ========================================
   Forms
   ======================================== */

.form-control {
    border-radius: 0.5rem;
    border-color: var(--prs-border);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--prs-primary);
    box-shadow: 0 0 0 3px var(--prs-primary-light);
}

/* ========================================
   Utilities
   ======================================== */

.text-primary {
    color: var(--prs-primary) !important;
}

.text-muted {
    color: var(--prs-text-muted) !important;
}

.bg-primary {
    background-color: var(--prs-primary) !important;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* ========================================
   Error Handling
   ======================================== */

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE44MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 767.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-section .hero-cta {
        flex-direction: column;
    }
    
    .hero-section .hero-cta .btn {
        width: 100%;
    }
}

/* ========================================
   Motion & Depth  (progressive enhancement)
   --------------------------------------------------------------
   site-enhancements.js adds the .reveal class only to elements that
   are below the fold when it runs; if the script never runs, nothing
   is hidden. Effects use transform/opacity only, so they never shift
   layout (no CLS impact) and honor prefers-reduced-motion below.
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ---- Animated aurora behind the hero (decorative, always on) ---- */
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-section.hero-dark::before,
.hero-section.hero-dark::after,
.hero-section:not(.hero-dark)::before {
    content: "";
    position: absolute;
    inset: -25%;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

.hero-section.hero-dark::before {
    background:
        radial-gradient(38% 48% at 18% 28%, rgba(99, 102, 241, 0.55), transparent 60%),
        radial-gradient(34% 44% at 82% 18%, rgba(14, 165, 233, 0.45), transparent 62%),
        radial-gradient(42% 52% at 68% 82%, rgba(245, 158, 11, 0.28), transparent 60%);
    filter: blur(28px);
    animation: prs-aurora 20s ease-in-out infinite alternate;
}

.hero-section.hero-dark::after {
    background:
        radial-gradient(30% 40% at 72% 32%, rgba(99, 102, 241, 0.30), transparent 60%),
        radial-gradient(36% 46% at 24% 74%, rgba(14, 165, 233, 0.22), transparent 62%);
    filter: blur(38px);
    animation: prs-aurora-2 28s ease-in-out infinite alternate;
}

.hero-section:not(.hero-dark)::before {
    background:
        radial-gradient(40% 50% at 82% 14%, rgba(99, 102, 241, 0.16), transparent 60%),
        radial-gradient(36% 46% at 10% 82%, rgba(14, 165, 233, 0.14), transparent 62%);
    filter: blur(32px);
    animation: prs-aurora 24s ease-in-out infinite alternate;
}

@keyframes prs-aurora {
    0%   { transform: translate3d(-3%, -2%, 0) scale(1.05) rotate(0deg); }
    50%  { transform: translate3d(3%, 2%, 0)   scale(1.12) rotate(2deg); }
    100% { transform: translate3d(2%, -3%, 0)  scale(1.06) rotate(-2deg); }
}

@keyframes prs-aurora-2 {
    0%   { transform: translate3d(2%, 3%, 0)   scale(1.08); }
    100% { transform: translate3d(-3%, -2%, 0) scale(1.16); }
}

/* ---- Scroll reveal (JS adds .reveal only to below-fold elements) ---- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.72, 0.2, 1),
                transform 0.5s cubic-bezier(0.22, 0.72, 0.2, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---- Richer card hover (deeper lift + brand-tinted glow) ---- */
.prs-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 22px 45px -18px rgba(99, 102, 241, 0.45),
                var(--prs-card-shadow-hover);
}

/* ---- Back-to-top button (element injected by site-enhancements.js) ---- */
#prs-back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1020;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    background: linear-gradient(135deg, var(--prs-primary), var(--prs-secondary));
    box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.6);
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

#prs-back-to-top.is-shown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#prs-back-to-top:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 14px 30px -8px rgba(99, 102, 241, 0.7);
}

#prs-back-to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ---- Honor reduced-motion: never hide, no motion ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .hero-section.hero-dark::before,
    .hero-section.hero-dark::after,
    .hero-section:not(.hero-dark)::before {
        animation: none;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #prs-back-to-top,
    #prs-back-to-top.is-shown {
        transform: none;
        transition: opacity 0.2s ease;
    }
}