:root {
    --home-ink: #102a43;
    --home-muted: #52657a;
    --home-line: #dbe6f4;
    --home-brand: #0f4c81;
    --home-brand-2: #1f7a8c;
    --home-bg: #f5f8fc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--home-ink);
    background: var(--home-bg);
}

.home-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-nav {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(18px, 4vw, 54px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(219, 230, 244, 0.86);
    backdrop-filter: blur(14px);
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--home-ink);
    text-decoration: none;
    font-weight: 850;
}

.home-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.home-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.home-link {
    color: #334155;
    text-decoration: none;
    font-weight: 750;
    font-size: 0.95rem;
}

.home-link:hover {
    color: var(--home-brand);
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--home-brand);
    text-decoration: none;
    font-weight: 800;
}

.home-btn.primary {
    border-color: var(--home-brand);
    background: var(--home-brand);
    color: #ffffff;
}

.home-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.home-hero {
    min-height: 92vh;
    display: grid;
    align-items: center;
    padding: 112px clamp(18px, 5vw, 72px) 48px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(5, 24, 44, 0.92) 0%, rgba(5, 24, 44, 0.78) 42%, rgba(5, 24, 44, 0.32) 100%),
        url("/static/img/schoolos-branding.png") center right 8% / min(520px, 52vw) auto no-repeat,
        linear-gradient(135deg, #08213d 0%, #0f4c81 58%, #1f7a8c 100%);
}

.home-hero-content {
    width: min(760px, 100%);
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 18px 0 14px;
    max-width: 12ch;
    color: #ffffff;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: 0;
}

.home-hero p {
    margin: 0;
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.6;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.home-hero-actions .home-btn {
    border-color: rgba(255, 255, 255, 0.24);
}

.home-hero-actions .home-btn:not(.primary) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.home-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.home-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.home-section {
    padding: 56px clamp(18px, 5vw, 72px);
    scroll-margin-top: 88px;
}

.section-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0 0 10px;
    color: var(--home-ink);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    letter-spacing: 0;
}

.section-head p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.feature-card i {
    color: var(--home-brand-2);
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--home-ink);
}

.feature-card p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.55;
}

.home-band {
    margin: 0 clamp(18px, 5vw, 72px) 56px;
    padding: 28px;
    border: 1px solid #d8e4f2;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.home-band h2 {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

.home-band p {
    margin: 0;
    color: var(--home-muted);
}

.home-footer {
    margin-top: auto;
    padding: 22px clamp(18px, 5vw, 72px);
    border-top: 1px solid var(--home-line);
    background: #ffffff;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.home-footer a {
    color: var(--home-brand);
    text-decoration: none;
    font-weight: 750;
}

@media (max-width: 980px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero {
        background:
            linear-gradient(90deg, rgba(5, 24, 44, 0.92), rgba(5, 24, 44, 0.74)),
            url("/static/img/schoolos-branding.png") center bottom 22px / min(360px, 70vw) auto no-repeat,
            linear-gradient(135deg, #08213d 0%, #0f4c81 58%, #1f7a8c 100%);
        padding-bottom: 300px;
    }
}

@media (max-width: 680px) {
    .home-nav {
        position: static;
        align-items: flex-start;
    }

    .home-nav-actions {
        justify-content: flex-end;
    }

    .home-link {
        display: none;
    }

    .home-hero {
        min-height: auto;
        padding-top: 46px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .home-band {
        align-items: stretch;
        flex-direction: column;
    }

    .home-band .home-btn {
        width: 100%;
    }
}

@keyframes home-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes home-glow-pulse {
    0%, 100% {
        opacity: 0.22;
        transform: scale(1);
    }
    50% {
        opacity: 0.38;
        transform: scale(1.04);
    }
}

.home-shell {
    animation: home-fade-up 0.6s ease both;
}

.home-hero::before,
.home-hero::after {
    animation: home-glow-pulse 8s ease-in-out infinite;
}

.home-hero-content,
.home-hero-visual,
.home-band,
.feature-card,
.role-card,
.visual-card {
    animation: home-fade-up 0.7s ease both;
}

.home-hero h1 {
    animation: home-fade-up 0.7s ease 0.05s both;
}

.home-hero p {
    animation: home-fade-up 0.7s ease 0.12s both;
}

.home-hero-actions .home-btn:nth-child(1) {
    animation: home-fade-up 0.7s ease 0.18s both;
}

.home-hero-actions .home-btn:nth-child(2) {
    animation: home-fade-up 0.7s ease 0.24s both;
}

.home-hero-actions .home-btn:nth-child(3) {
    animation: home-fade-up 0.7s ease 0.3s both;
}

.home-proof {
    animation: home-fade-up 0.7s ease 0.28s both;
}

.home-visual-frame {
    animation: home-soft-float 6.5s ease-in-out infinite;
}

.visual-card:nth-child(1),
.feature-card:nth-child(1),
.role-card:nth-child(1) {
    animation-delay: 0.08s;
}

.visual-card:nth-child(2),
.feature-card:nth-child(2),
.role-card:nth-child(2) {
    animation-delay: 0.16s;
}

.visual-card:nth-child(3),
.feature-card:nth-child(3),
.role-card:nth-child(3) {
    animation-delay: 0.24s;
}

.visual-card:nth-child(4),
.feature-card:nth-child(4),
.role-card:nth-child(4) {
    animation-delay: 0.32s;
}

.feature-card,
.role-card,
.visual-card,
.home-visual-frame,
.home-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-btn:hover,
.home-btn:focus-visible {
    transform: translateY(-2px);
}

.feature-card:hover,
.role-card:hover,
.visual-card:hover,
.home-visual-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

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

body {
    position: relative;
    padding: 20px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(31, 122, 140, 0.12), transparent 24%),
        radial-gradient(circle at 84% 10%, rgba(15, 76, 129, 0.14), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(15, 76, 129, 0.08), transparent 24%);
}

.home-shell {
    width: min(1360px, 100%);
    min-height: calc(100vh - 40px);
    border: 1px solid rgba(216, 224, 234, 0.88);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
}

.home-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 16px clamp(18px, 4vw, 54px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(216, 224, 234, 0.72);
    backdrop-filter: blur(18px);
}

.home-brand {
    font-size: 0.98rem;
}

.home-link {
    color: #334155;
}

.home-link:hover {
    color: var(--home-brand-2);
}

.home-btn {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.home-btn.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--home-brand) 0%, var(--home-brand-2) 100%);
    color: #ffffff;
}

.home-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.home-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, #08213d 0%, #0f4c81 54%, #1f7a8c 100%);
    color: #ffffff;
}

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
    opacity: 0.34;
}

.home-hero::before {
    width: 310px;
    height: 310px;
    right: -110px;
    top: -120px;
    background: rgba(255, 255, 255, 0.13);
}

.home-hero::after {
    width: 240px;
    height: 240px;
    left: -90px;
    bottom: -120px;
    background: rgba(255, 255, 255, 0.1);
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: clamp(32px, 5vw, 68px);
}

.home-hero-content {
    max-width: 720px;
}

.home-kicker {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.home-hero h1 {
    max-width: 12ch;
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 0.95;
}

.home-hero p {
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.home-hero-actions .home-btn {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.home-hero-actions .home-btn.primary {
    background: #ffffff;
    color: var(--home-brand);
}

.home-proof {
    gap: 10px;
}

.home-proof span {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.home-hero-visual {
    display: grid;
    gap: 14px;
    align-self: stretch;
}

.home-visual-frame {
    position: relative;
    padding: 14px;
    border-radius: 26px;
    background: rgba(6, 15, 31, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 60px rgba(2, 8, 23, 0.25);
}

.home-visual-frame img {
    display: block;
    width: 100%;
    border-radius: 20px;
}

.home-visual-tag {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: 0 12px 30px rgba(2, 8, 23, 0.16);
}

.home-visual-tag i {
    color: var(--home-brand-2);
    margin-top: 3px;
}

.home-visual-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.visual-card {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 34px rgba(2, 8, 23, 0.16);
}

.visual-card i {
    font-size: 1.15rem;
    color: #9de7ff;
}

.visual-card strong {
    font-size: 1rem;
}

.visual-card span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
    font-size: 0.92rem;
}

.home-section {
    padding: clamp(36px, 5vw, 62px) clamp(18px, 5vw, 72px);
}

.home-section-soft {
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.05), rgba(31, 122, 140, 0.03));
}

.section-head {
    margin-bottom: 22px;
}

.feature-grid,
.role-grid {
    display: grid;
    gap: 16px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.role-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.role-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(216, 224, 234, 0.9);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.feature-card {
    padding: 22px;
}

.feature-card::before,
.role-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--home-brand) 0%, var(--home-brand-2) 100%);
}

.role-card {
    padding: 22px 20px 20px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.role-card span {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 76, 129, 0.1);
    color: var(--home-brand);
    font-size: 1.2rem;
}

.role-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.role-card p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.55;
}

.home-band {
    margin: 0 clamp(18px, 5vw, 72px) 56px;
    padding: 26px 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.96), rgba(31, 122, 140, 0.98));
    color: #ffffff;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.home-band h2 {
    color: #ffffff;
}

.home-band p {
    color: rgba(255, 255, 255, 0.82);
}

.home-band .home-btn.primary {
    border-color: transparent;
    background: #ffffff;
    color: var(--home-brand);
}

.home-footer {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(216, 224, 234, 0.84);
}

@media (max-width: 1080px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-hero h1 {
        max-width: 14ch;
    }

    .feature-grid,
    .role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body {
        padding: 0;
    }

    .home-shell {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }

    .home-nav {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .home-nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .home-link {
        display: none;
    }

    .home-hero-inner {
        padding: 22px 18px 28px;
    }

    .home-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.4rem);
    }

    .home-hero-actions {
        gap: 10px;
    }

    .home-hero-actions .home-btn {
        width: 100%;
    }

    .home-proof {
        flex-direction: column;
        align-items: stretch;
    }

    .home-proof span {
        width: 100%;
    }

    .home-visual-panel,
    .feature-grid,
    .role-grid {
        grid-template-columns: 1fr;
    }

    .home-visual-tag {
        left: 14px;
        right: 14px;
        bottom: 14px;
        font-size: 0.95rem;
    }

    .home-band {
        margin: 0 18px 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .home-band .home-btn {
        width: 100%;
    }

    .home-footer {
        flex-direction: column;
    }
}

/* ==========================================================================
   DARK MODE FOR LANDING PAGES
   ========================================================================== */

/* Dark mode variables */
:root[data-theme="dark"] {
    --home-ink: #f1f5f9;
    --home-muted: #94a3b8;
    --home-line: #243249;
    --home-brand: #38bdf8;
    --home-brand-2: #06b6d4;
    --home-bg: #0b0f19;
}

[data-theme="dark"] .home-nav {
    background: rgba(22, 30, 46, 0.94) !important;
    border-bottom-color: rgba(36, 50, 73, 0.86) !important;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .home-band,
[data-theme="dark"] .home-footer,
[data-theme="dark"] .home-btn,
[data-theme="dark"] .visual-card {
    background: #161e2e !important;
    border-color: var(--home-line) !important;
}

[data-theme="dark"] .home-link {
    color: var(--home-muted) !important;
}

[data-theme="dark"] .home-link:hover {
    color: var(--home-brand) !important;
}

[data-theme="dark"] .home-hero-visual {
    background: #1e293b !important;
}

[data-theme="dark"] .home-visual-frame {
    background: #0f172a !important;
    border-color: var(--home-line) !important;
}

/* Media query prefers-color-scheme: dark */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --home-ink: #f1f5f9;
        --home-muted: #94a3b8;
        --home-line: #243249;
        --home-brand: #38bdf8;
        --home-brand-2: #06b6d4;
        --home-bg: #0b0f19;
    }

    :root:not([data-theme="light"]) .home-nav {
        background: rgba(22, 30, 46, 0.94) !important;
        border-bottom-color: rgba(36, 50, 73, 0.86) !important;
    }

    :root:not([data-theme="light"]) .feature-card,
    :root:not([data-theme="light"]) .home-band,
    :root:not([data-theme="light"]) .home-footer,
    :root:not([data-theme="light"]) .home-btn,
    :root:not([data-theme="light"]) .visual-card {
        background: #161e2e !important;
        border-color: var(--home-line) !important;
    }

    :root:not([data-theme="light"]) .home-link {
        color: var(--home-muted) !important;
    }

    :root:not([data-theme="light"]) .home-link:hover {
        color: var(--home-brand) !important;
    }

    :root:not([data-theme="light"]) .home-hero-visual {
        background: #1e293b !important;
    }

    :root:not([data-theme="light"]) .home-visual-frame {
        background: #0f172a !important;
        border-color: var(--home-line) !important;
    }
}

/* ==========================================================================
   STATS, INTERACTIVE SHOWCASE, TESTIMONIALS, AND FAQ STYLING
   ========================================================================== */

/* Stats styling */
.home-stats {
    padding: 30px clamp(18px, 5vw, 72px);
    background: transparent;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(216, 224, 234, 0.88);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card:not(:last-child) {
    border-right: 1px solid var(--home-line);
}

.stat-number {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 850;
    background: linear-gradient(135deg, var(--home-brand) 0%, var(--home-brand-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--home-muted);
    font-weight: 700;
}

/* Showcase Section */
.home-showcase {
    background: rgba(255, 255, 255, 0.4);
}

.showcase-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 30px;
}

.showcase-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.showcase-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--home-ink);
    font-weight: 750;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.22s ease;
}

.showcase-tab i {
    font-size: 1.1rem;
    color: var(--home-muted);
    transition: color 0.22s ease;
}

.showcase-tab:hover {
    background: rgba(15, 76, 129, 0.05);
}

.showcase-tab.active {
    background: var(--home-brand);
    color: #ffffff;
}

.showcase-tab.active i {
    color: #ffffff;
}

/* Showcase panels */
.showcase-content {
    background: #ffffff;
    border: 1px solid var(--home-line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    min-height: 400px;
}

.showcase-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.showcase-panel.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mockup browser window */
.mockup-window {
    border: 1px solid var(--home-line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--home-bg);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.mockup-header {
    background: var(--home-line);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.mockup-header .dot.red { background: #ef4444; }
.mockup-header .dot.yellow { background: #f59e0b; }
.mockup-header .dot.green { background: #10b981; }

.mockup-url {
    background: var(--home-bg);
    color: var(--home-muted);
    font-size: 0.8rem;
    padding: 4px 16px;
    border-radius: 999px;
    margin-left: 20px;
    flex-grow: 1;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Mockup bodies */
.mockup-body {
    height: 320px;
    background: #ffffff;
    display: flex;
}

/* Admin Mockup */
.admin-mockup .mockup-sidebar {
    width: 140px;
    border-right: 1px solid var(--home-line);
    background: var(--home-bg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-mockup .mockup-item {
    font-size: 0.78rem;
    font-weight: 750;
    color: var(--home-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
}

.admin-mockup .mockup-item.active {
    background: rgba(15, 76, 129, 0.08);
    color: var(--home-brand);
}

.admin-mockup .mockup-main {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.mockup-widget-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mockup-widget {
    background: var(--home-bg);
    border: 1px solid var(--home-line);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-widget span {
    font-size: 0.68rem;
    color: var(--home-muted);
}

.mockup-widget h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--home-ink);
}

.mockup-widget .trend {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--home-muted);
}

.mockup-widget .trend.up { color: #10b981; }
.mockup-widget .trend.accent { color: var(--home-brand-2); }

.mockup-chart {
    border: 1px solid var(--home-line);
    border-radius: 10px;
    padding: 10px;
    background: var(--home-bg);
}

.mockup-chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    margin-bottom: 10px;
}

.mockup-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 90px;
    padding: 0 10px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-grow: 1;
}

.bar-val {
    width: 14px;
    background: linear-gradient(180deg, var(--home-brand-2), var(--home-brand));
    border-radius: 999px 999px 0 0;
}

.bar-col span {
    font-size: 0.6rem;
    color: var(--home-muted);
}

/* Teacher Mockup */
.mockup-main-full {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    width: 100%;
}

.mockup-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--home-line);
    padding-bottom: 10px;
}

.mockup-top-bar h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--home-ink);
}

.home-btn.compact {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.mockup-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
}

.table-header-row, .table-body-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
}

.table-header-row {
    background: var(--home-line);
    font-weight: 750;
    color: var(--home-ink);
}

.table-body-row {
    border-bottom: 1px solid var(--home-line);
}

.table-body-row input {
    width: 44px;
    padding: 3px;
    border: 1px solid var(--home-line);
    border-radius: 4px;
    text-align: center;
    font-size: 0.78rem;
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    width: fit-content;
}

.badge.a { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge.b { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge.warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge.info { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

/* Student Mockup */
.mockup-cbt-box {
    background: var(--home-bg);
    border: 1px solid var(--home-line);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-cbt-box .question {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
}

.cbt-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cbt-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 700;
}

.cbt-option.active {
    border-color: var(--home-brand);
    background: rgba(15, 76, 129, 0.05);
    color: var(--home-brand);
}

.cbt-actions-mock {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

/* Parent Mockup */
.parent-grid-mock {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.parent-card-mock {
    background: var(--home-bg);
    border: 1px solid var(--home-line);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.parent-card-mock h4 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--home-ink);
    border-bottom: 1px solid var(--home-line);
    padding-bottom: 6px;
}

.subject-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
}

.attendance-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.circle-progress {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 4px solid var(--home-brand-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.circle-progress strong {
    font-size: 0.78rem;
}

.circle-progress span {
    font-size: 0.5rem;
    color: var(--home-muted);
}

.attendance-stat p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--home-muted);
    line-height: 1.4;
    flex-grow: 1;
}

/* Testimonials Styling */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.testimonial-card {
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testimonial-card .stars {
    color: #f59e0b;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    margin: 0;
    font-style: italic;
    color: var(--home-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.testimonial-author {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--home-line);
    padding-top: 12px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details strong {
    font-size: 0.92rem;
    color: var(--home-ink);
}

.author-details span {
    font-size: 0.8rem;
    color: var(--home-muted);
}

/* FAQ Accordion Styling */
.faq-container {
    max-width: 800px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--home-brand-2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: transparent;
    border: none;
    color: var(--home-ink);
    font-weight: 750;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--home-muted);
    transition: transform 0.25s ease, color 0.25s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out, padding 0.25s ease;
    padding: 0 22px;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 18px;
    color: var(--home-muted);
    line-height: 1.6;
    font-size: 0.92rem;
}

/* FAQ Active state */
.faq-item.active {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.faq-item.active .faq-question {
    color: var(--home-brand);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--home-brand);
}

.faq-item.active .faq-answer {
    max-height: 180px;
}

/* Dark mode overrides for showcase, faq, testimonials */
[data-theme="dark"] .home-showcase {
    background: rgba(11, 15, 25, 0.4) !important;
}

[data-theme="dark"] .showcase-tab {
    color: var(--home-ink) !important;
}

[data-theme="dark"] .showcase-tab:hover {
    background: rgba(56, 189, 248, 0.08) !important;
}

[data-theme="dark"] .showcase-tab.active {
    background: var(--home-brand) !important;
    color: #0b0f19 !important;
}

[data-theme="dark"] .showcase-tab.active i {
    color: #0b0f19 !important;
}

[data-theme="dark"] .showcase-content,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .faq-item {
    background: #161e2e !important;
    border-color: var(--home-line) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .mockup-window {
    border-color: var(--home-line) !important;
    background: #0b0f19 !important;
}

[data-theme="dark"] .mockup-header {
    background: #1e293b !important;
}

[data-theme="dark"] .mockup-url {
    background: #0b0f19 !important;
    border-color: rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .mockup-body,
[data-theme="dark"] .admin-mockup .mockup-sidebar,
[data-theme="dark"] .mockup-widget,
[data-theme="dark"] .mockup-chart,
[data-theme="dark"] .mockup-cbt-box,
[data-theme="dark"] .cbt-option,
[data-theme="dark"] .parent-card-mock {
    background: #0b0f19 !important;
    border-color: var(--home-line) !important;
    color: var(--home-ink) !important;
}

[data-theme="dark"] .admin-mockup .mockup-item.active {
    background: rgba(56, 189, 248, 0.08) !important;
    color: var(--home-brand) !important;
}

[data-theme="dark"] .table-header-row {
    background: #1e293b !important;
    color: var(--home-ink) !important;
}

[data-theme="dark"] .table-body-row {
    border-bottom-color: var(--home-line) !important;
}

[data-theme="dark"] .table-body-row input {
    background: #161e2e !important;
    border-color: var(--home-line) !important;
    color: var(--home-ink) !important;
}

[data-theme="dark"] .cbt-option.active {
    border-color: var(--home-brand) !important;
    background: rgba(56, 189, 248, 0.08) !important;
    color: var(--home-brand) !important;
}

[data-theme="dark"] .circle-progress {
    background: #161e2e !important;
    border-color: var(--home-brand-2) !important;
}

[data-theme="dark"] .faq-item.active .faq-question {
    color: var(--home-brand) !important;
}

[data-theme="dark"] .faq-item.active .faq-question i {
    color: var(--home-brand) !important;
}

/* Responsive updates */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .stat-card:nth-child(even) {
        border-right: none;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 720px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .stat-card {
        border-right: none !important;
        border-bottom: 1px solid var(--home-line);
        padding-bottom: 10px;
    }
    .stat-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .showcase-container {
        grid-template-columns: 1fr;
    }
    .showcase-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .showcase-tab {
        white-space: nowrap;
        padding: 10px 14px;
    }
}

/* ==========================================================================
   TECH STACK STYLING
   ========================================================================== */

/* Tech Stack Section */
.home-tech-stack {
    background: transparent;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.tech-card-item {
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tech-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.tech-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 122, 140, 0.1);
    color: var(--home-brand-2);
    font-size: 1.3rem;
}

.tech-card-item h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--home-ink);
}

.tech-card-item p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

/* Dark mode for Tech Stack */
[data-theme="dark"] .tech-card-item {
    background: #161e2e !important;
    border-color: var(--home-line) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .tech-icon {
    background: rgba(6, 182, 212, 0.12) !important;
    color: var(--home-brand-2) !important;
}

/* Responsive updates for Tech Stack */
@media (max-width: 900px) {
    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   VIDEO WALKTHROUGH SECTION STYLING
   ========================================================================== */
.home-video-walkthrough {
    background: transparent;
}

.video-container-wrapper {
    max-width: 1000px;
    margin: 24px auto 0;
}

.video-mockup {
    border: 1px solid var(--home-line);
    border-radius: 24px;
    overflow: hidden;
    background: var(--home-bg);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.mockup-video-body {
    background: #000000;
    line-height: 0;
    overflow: hidden;
}

.mockup-video-body video {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
}

[data-theme="dark"] .video-mockup {
    border-color: var(--home-line) !important;
    background: #161e2e !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
}


