/* StudyGrid Visual Refresh 2026 */
:root {
    --primary-color: #2563eb !important;
    --primary-dark: #1d4ed8 !important;
    --secondary-color: #0f172a !important;
    --accent-color: #38bdf8 !important;
    --bg: #f8fbff !important;
    --light-bg: #f8fbff !important;
    --card: rgba(255, 255, 255, 0.82) !important;
    --white: #ffffff !important;
    --text: #0f172a !important;
    --text-color: #0f172a !important;
    --muted: #64748b !important;
    --gray-dark: #64748b !important;
    --border-color: rgba(148, 163, 184, 0.22) !important;
    --shadow-sm: 0 10px 30px rgba(37, 99, 235, 0.08) !important;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.10) !important;
    --shadow-lg: 0 34px 90px rgba(37, 99, 235, 0.16) !important;
}

html {
    background: #f8fbff;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text) !important;
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.14), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(125, 211, 252, 0.24), transparent 34rem),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 46%, #f5f9ff 100%) !important;
    letter-spacing: 0;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
}

body::before {
    width: 48vw;
    height: 48vw;
    min-width: 420px;
    min-height: 420px;
    right: -18vw;
    top: 76px;
    border: 78px solid rgba(37, 99, 235, 0.07);
    box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.75);
}

body::after {
    width: 34vw;
    height: 34vw;
    min-width: 300px;
    min-height: 300px;
    left: -14vw;
    bottom: 8vh;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.62), rgba(255, 255, 255, 0));
    border: 1px solid rgba(37, 99, 235, 0.08);
}

header {
    background: rgba(255, 255, 255, 0.78) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05) !important;
    backdrop-filter: blur(22px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
}

.header-content,
.header-inner,
.container {
    max-width: 1200px;
}

.logo,
.logo-fallback {
    color: var(--primary-color) !important;
}

nav a {
    color: #475569 !important;
    border-radius: 999px !important;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease !important;
}

nav a:hover {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.08) !important;
    transform: translateY(-1px);
}

.hero {
    position: relative !important;
    isolation: isolate;
    color: var(--text) !important;
    background:
        radial-gradient(circle at 78% 30%, rgba(37, 99, 235, 0.18), transparent 22rem),
        radial-gradient(circle at 42% 0%, rgba(255, 255, 255, 0.96), transparent 28rem),
        linear-gradient(135deg, #f8fbff 0%, #eef6ff 54%, #ffffff 100%) !important;
    overflow: hidden !important;
}

.hero::before {
    content: "" !important;
    position: absolute !important;
    inset: auto -9rem -14rem auto !important;
    width: min(56vw, 720px) !important;
    height: min(56vw, 720px) !important;
    border-radius: 50% !important;
    border: 72px solid rgba(37, 99, 235, 0.08) !important;
    background: transparent !important;
    animation: sgFloat 14s ease-in-out infinite !important;
    opacity: 1 !important;
}

.hero::after {
    content: "" !important;
    position: absolute;
    left: -12rem;
    top: 7rem;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.42), rgba(255, 255, 255, 0.08));
    filter: blur(1px);
    z-index: -1;
}

@keyframes sgFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-18px, -22px, 0) rotate(3deg); }
}

.hero-content,
.hero > *,
main.hero > * {
    position: relative;
    z-index: 1;
}

.hero-text h1,
.hero h1,
.section-title,
.section h2,
.features h2,
.downloads h2,
main h1 {
    color: #0f172a !important;
    letter-spacing: -0.03em !important;
    text-shadow: none !important;
}

.hero-text p,
.hero p,
.section-subtitle,
.feature-card p,
.download-card p,
.why-card p,
.job-card p,
.stat-card p,
.stat-box p,
.info-card p,
.doc-card p,
main li,
main p {
    color: #64748b !important;
}

.cta-button,
.header-cta,
.download-btn,
.button,
.btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
}

.cta-button:hover,
.header-cta:hover,
.download-btn:hover,
.button:hover,
.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 24px 44px rgba(37, 99, 235, 0.28) !important;
}

.cta-secondary,
.button-secondary,
.btn-secondary {
    background: rgba(255, 255, 255, 0.72) !important;
    color: #0f172a !important;
    border: 1px solid rgba(37, 99, 235, 0.16) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06) !important;
    backdrop-filter: blur(14px);
}

.carousel,
.hero-card,
.card,
.feature-card,
.download-card,
.why-card,
.job-card,
.update-card,
.chart-card,
.form-container,
.stat-card,
.stats-card,
.stat-box,
.info-card,
.doc-card,
.form-card,
.wrap,
body > main:not(.hero),
.chat-window,
.password-mock {
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09) !important;
    backdrop-filter: blur(18px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
}

.feature-card,
.download-card,
.why-card,
.job-card,
.update-card,
.chart-card,
.stat-card,
.stats-card,
.stat-box,
.info-card,
.doc-card,
.form-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.feature-card:hover,
.download-card:hover,
.why-card:hover,
.job-card:hover,
.update-card:hover,
.chart-card:hover,
.stat-card:hover,
.stats-card:hover,
.stat-box:hover,
.info-card:hover,
.doc-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(37, 99, 235, 0.26) !important;
    box-shadow: 0 32px 90px rgba(37, 99, 235, 0.13) !important;
}

.carousel {
    width: min(720px, 52vw) !important;
    max-width: none !important;
    aspect-ratio: 16 / 10 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transform: none !important;
    animation: sgImageFloat 8s ease-in-out infinite;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.carousel::before {
    content: none !important;
}

.carousel::after {
    content: none !important;
}

@keyframes sgImageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
    border-radius: 30px;
    background: transparent;
    box-shadow:
        0 34px 90px rgba(15, 23, 42, 0.16),
        0 12px 34px rgba(37, 99, 235, 0.12);
    outline: 1px solid rgba(255, 255, 255, 0.74);
    outline-offset: -1px;
    image-rendering: auto;
    transform: translateZ(0);
}

.carousel-slides,
.carousel-slide {
    border-radius: 30px;
}

.hero-content {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) !important;
}

.hero-image {
    justify-content: flex-end !important;
}

.carousel-btn {
    opacity: 0;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14) !important;
}

.carousel:hover .carousel-btn,
.carousel:focus-within .carousel-btn {
    opacity: 1;
}

.carousel-dots {
    bottom: -28px !important;
}

.carousel-dot {
    background: rgba(37, 99, 235, 0.22) !important;
}

.carousel-dot.active {
    background: #2563eb !important;
}

.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -82px;
    top: -72px;
    border-radius: 999px;
    border: 36px solid rgba(37, 99, 235, 0.08);
}

.hero-card::after {
    content: "";
    position: absolute;
    left: 9%;
    right: 9%;
    bottom: 20px;
    height: 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(10px);
}

.section-wrapper.bg-white,
.section-wrapper.bg-light,
.why-volunteer,
.downloads {
    background: transparent !important;
}

.section-wrapper,
.section,
.features,
.downloads,
.form-section {
    position: relative;
}

.section-wrapper::before,
.features::before,
.downloads::before {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 18rem;
    height: 18rem;
    right: 4%;
    top: -5rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 68%);
    z-index: -1;
}

.about-logo-circle {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(219, 234, 254, 0.86)),
        linear-gradient(135deg, #2563eb, #38bdf8) !important;
    color: #2563eb !important;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 26px 70px rgba(37, 99, 235, 0.18) !important;
}

.message.system,
.message.user,
.password-item,
.status-pill,
.pill,
input[type=text],
input[type=email],
input[type=password],
select,
textarea,
.input-area input {
    background: rgba(248, 251, 255, 0.9) !important;
    border: 1px solid rgba(148, 163, 184, 0.20) !important;
    color: #334155 !important;
}

.status-pill,
.pill {
    color: #1d4ed8 !important;
}

.submit-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24) !important;
}

.download-btn.disabled,
.btn:disabled,
.submit-btn:disabled {
    background: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.download-btn.disabled:hover,
.btn:disabled:hover,
.submit-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.contact-section {
    background:
        radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.13), transparent 28rem),
        linear-gradient(135deg, #eff6ff, #ffffff) !important;
    color: #0f172a !important;
}

.contact-section .section-title,
.contact-section .section-subtitle,
.contact-section p,
.contact-section a {
    color: #0f172a !important;
}

.contact-section .contact-item h3 {
    color: #2563eb !important;
}

.contact-divider {
    border-top-color: rgba(148, 163, 184, 0.22) !important;
}

footer,
.footer {
    background: transparent !important;
    border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
    color: #64748b !important;
}

.product-showcase {
    align-items: stretch;
}

.product-showcase .device-item {
    display: grid;
    gap: 22px;
    align-content: start;
}

.product-render {
    position: relative;
    min-height: 260px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.14), transparent 11rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.78));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.11);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.product-render:hover {
    transform: translateY(-8px);
    box-shadow: 0 36px 96px rgba(37, 99, 235, 0.16);
}

.product-render::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 62%;
    height: 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.11);
    filter: blur(14px);
    transform: translateX(-50%);
}

.product-pedestal {
    position: absolute;
    left: 50%;
    bottom: 44px;
    width: 58%;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #dbeafe);
    border: 1px solid rgba(37, 99, 235, 0.13);
    transform: translateX(-50%);
}

.book-stack {
    position: absolute;
    left: 50%;
    bottom: 76px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    transform: translateX(-50%);
}

.book {
    width: 42px;
    height: 118px;
    border-radius: 9px 13px 13px 9px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.book:nth-child(1) { height: 98px; background: linear-gradient(135deg, #2563eb, #93c5fd); }
.book:nth-child(2) { background: linear-gradient(135deg, #0f766e, #99f6e4); }
.book:nth-child(3) { height: 132px; background: linear-gradient(135deg, #7c3aed, #c4b5fd); }
.book:nth-child(4) { height: 108px; background: linear-gradient(135deg, #dc2626, #fecaca); }

.render-laptop {
    position: absolute;
    left: 50%;
    top: 54px;
    width: 72%;
    height: 136px;
    border-radius: 18px;
    background: #0f172a;
    padding: 9px;
    transform: translateX(-50%) perspective(900px) rotateX(2deg);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.20);
}

.render-screen {
    height: 100%;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0 24%, transparent 24%),
        linear-gradient(135deg, #ffffff, #eff6ff);
    padding: 16px;
    display: grid;
    gap: 10px;
}

.render-line {
    height: 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
}

.render-line.short { width: 58%; }

.render-base {
    position: absolute;
    left: 50%;
    top: 194px;
    width: 58%;
    height: 18px;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, #e2e8f0, #ffffff);
    transform: translateX(-50%);
}

.cloud-orbit {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 144px;
    height: 92px;
    transform: translate(-50%, -50%);
    border-radius: 48px;
    background: linear-gradient(180deg, #ffffff, #dbeafe);
    box-shadow: 0 24px 54px rgba(37, 99, 235, 0.18);
}

.cloud-orbit::before,
.cloud-orbit::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: inherit;
}

.cloud-orbit::before {
    width: 76px;
    height: 76px;
    left: 18px;
    top: -30px;
}

.cloud-orbit::after {
    width: 92px;
    height: 92px;
    right: 10px;
    top: -42px;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.10);
}

.node.one { left: 18%; top: 35%; }
.node.two { right: 18%; top: 34%; }
.node.three { left: 48%; bottom: 18%; }

.shield-render {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 130px;
    height: 154px;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #2563eb, #7dd3fc);
    clip-path: polygon(50% 0, 92% 17%, 84% 76%, 50% 100%, 16% 76%, 8% 17%);
    box-shadow: 0 28px 60px rgba(37, 99, 235, 0.25);
}

.shield-render::after {
    content: "";
    position: absolute;
    inset: 18px;
    background: rgba(255, 255, 255, 0.72);
    clip-path: inherit;
}

@media (max-width: 900px) {
    body::before {
        right: -260px;
        top: 90px;
    }

    .hero {
        padding-top: 100px !important;
    }

    .carousel {
        width: min(100%, 720px) !important;
        transform: none;
        animation: none;
    }

    .carousel::after {
        bottom: -12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
