/* SCComp homepage revamp v1.1.0
   Scoped to .sc-home-page so existing pages retain their current appearance. */

.sc-home-page {
    --sc-home-navy: #06152d;
    --sc-home-navy-soft: #0a2549;
    --sc-home-blue: #3b82f6;
    --sc-home-blue-strong: #2563eb;
    --sc-home-cyan: #67e8f9;
    --sc-home-white: #ffffff;
    --sc-home-border: rgba(148, 163, 184, 0.22);
    --sc-home-shadow: 0 18px 44px rgba(2, 8, 23, 0.2);
    min-width: 0;
}

.sc-home-page *,
.sc-home-page *::before,
.sc-home-page *::after {
    box-sizing: border-box;
}

.sc-home-hero {
    position: relative;
    isolation: isolate;
    min-height: 650px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(100deg, rgba(2, 8, 23, 0.94) 0%, rgba(3, 17, 42, 0.86) 48%, rgba(3, 19, 48, 0.42) 100%),
        linear-gradient(180deg, rgba(2, 8, 23, 0.08), rgba(2, 8, 23, 0.62)),
        url('/static/img/home/sccomp-home-datacenter-hero.webp') center / cover no-repeat;
    box-shadow: 0 22px 60px rgba(2, 8, 23, 0.42);
    color: var(--sc-home-white);
}

.sc-home-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 78% 22%, rgba(59, 130, 246, 0.25), transparent 34%),
        linear-gradient(90deg, rgba(2, 8, 23, 0.18), transparent 62%);
    content: "";
}

.sc-home-hero__inner {
    display: flex;
    min-height: 650px;
    flex-direction: column;
    justify-content: center;
    padding-top: 74px;
    padding-bottom: 82px;
}

.sc-home-hero__copy {
    max-width: 850px;
}

.sc-home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: var(--primary, #2563eb);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.sc-home-hero .sc-home-kicker,
.sc-home-control .sc-home-kicker {
    color: var(--sc-home-cyan);
}

.sc-home-kicker::before {
    width: 28px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    content: "";
}

.sc-home-hero h1 {
    max-width: 930px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(2.6rem, 6.4vw, 5.35rem);
    font-weight: 850;
    letter-spacing: -0.052em;
    line-height: 0.99;
    text-wrap: balance;
}

.sc-home-hero__lead {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.72;
}

.sc-home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.sc-home-actions--dark {
    margin-top: 22px;
}

.sc-home-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sc-home-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.sc-home-button--primary {
    background: var(--sc-home-blue);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
    color: #ffffff;
}

.sc-home-button--primary:hover {
    background: var(--sc-home-blue-strong);
    color: #ffffff;
}

.sc-home-button--secondary {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.sc-home-button--secondary:hover,
.sc-home-button--ghost:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sc-home-button--ghost {
    border-color: rgba(255, 255, 255, 0.17);
    background: rgba(2, 8, 23, 0.2);
    color: #ffffff;
}

.sc-home-button--outline {
    border-color: var(--border, #cbd5e1);
    background: transparent;
    color: var(--text-strong, #0f172a);
}

.sc-home-button--outline:hover {
    border-color: var(--primary, #3b82f6);
    background: var(--surface-soft, #f1f5f9);
    color: var(--primary, #2563eb);
}

.sc-home-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 1040px;
    margin-top: 38px;
}

.sc-home-proof {
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;
    background: rgba(2, 8, 23, 0.52);
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.16);
    backdrop-filter: blur(10px);
}

.sc-home-proof > span {
    display: block;
    margin-bottom: 5px;
    color: #7dd3fc;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sc-home-proof strong {
    display: block;
    color: #ffffff;
    font-size: 1.02rem;
    line-height: 1.35;
}

.sc-home-proof p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.55;
}

.sc-home-photo-credit {
    position: absolute;
    right: 18px;
    bottom: 12px;
    max-width: min(680px, calc(100% - 36px));
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    line-height: 1.45;
    text-align: right;
}

.sc-home-photo-credit a {
    color: rgba(191, 219, 254, 0.9);
    text-decoration: underline;
}

.sc-home-content {
    display: grid;
    gap: 32px;
}

.sc-home-section,
.sc-home-split,
.sc-home-control,
.sc-home-community {
    margin: 0;
}

.sc-home-heading {
    max-width: 870px;
    margin-bottom: 20px;
}

.sc-home-heading h2,
.sc-home-split h2,
.sc-home-community h2,
.sc-home-control h2 {
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-wrap: balance;
}

.sc-home-heading > p:last-child,
.sc-home-split__copy > p,
.sc-home-community > div > p {
    max-width: 800px;
    color: var(--text-muted, #64748b);
    font-size: 1.02rem;
    line-height: 1.7;
}

.sc-home-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sc-home-card,
.sc-home-list-panel {
    min-width: 0;
    border: 1px solid var(--border-soft, #e2e8f0);
    border-radius: 18px;
    background: var(--surface, #ffffff);
    box-shadow: var(--shadow-md, 0 8px 22px rgba(15, 23, 42, 0.08));
}

.sc-home-card {
    position: relative;
    display: flex;
    min-height: 235px;
    flex-direction: column;
    padding: 21px;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sc-home-card:hover {
    border-color: rgba(59, 130, 246, 0.38);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.sc-home-card--featured {
    background:
        linear-gradient(145deg, rgba(59, 130, 246, 0.12), transparent 62%),
        var(--surface, #ffffff);
}

.sc-home-card--hardware {
    min-height: 100%;
}

.sc-home-card__label {
    display: inline-flex;
    width: fit-content;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary, #2563eb);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.sc-home-card h3 {
    margin: 15px 0 9px;
    font-size: 1.2rem;
}

.sc-home-card p {
    margin: 0;
    color: var(--text-muted, #64748b);
    line-height: 1.65;
}

.sc-home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 18px;
    font-weight: 750;
    text-decoration: none;
}

.sc-home-text-link:hover {
    text-decoration: none;
}

.sc-home-text-link span {
    transition: transform 0.16s ease;
}

.sc-home-text-link:hover span {
    transform: translateX(3px);
}

.sc-home-split,
.sc-home-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
    gap: 20px;
    align-items: stretch;
}

.sc-home-split {
    padding: 26px;
    border: 1px solid var(--border-soft, #e2e8f0);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12), transparent 34%),
        var(--surface-soft, #f8fafc);
}

.sc-home-split__copy {
    padding: 8px 4px;
}

.sc-home-list-panel {
    padding: 22px;
    background: var(--surface, #ffffff);
}

.sc-home-list-panel h3 {
    margin-bottom: 14px;
}

.sc-home-check-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sc-home-check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text, #334155);
    line-height: 1.55;
}

.sc-home-check-list li::before {
    position: absolute;
    left: 0;
    top: 0.05em;
    color: #22c55e;
    content: "✓";
    font-weight: 900;
}

.sc-home-control {
    padding: 28px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 22px;
    background:
        linear-gradient(120deg, rgba(2, 8, 23, 0.96), rgba(7, 33, 70, 0.95)),
        var(--sc-home-navy);
    box-shadow: var(--sc-home-shadow);
    color: rgba(255, 255, 255, 0.82);
}

.sc-home-heading--light h2 {
    color: #ffffff;
}

.sc-home-heading--light > p:last-child {
    color: rgba(255, 255, 255, 0.72);
}

.sc-home-control-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.sc-home-control-grid > div {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
}

.sc-home-control-grid strong {
    display: block;
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 1rem;
}

.sc-home-control-grid span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.55;
}

.sc-home-support-grid .sc-home-list-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sc-home-support-grid .sc-home-list-panel .sc-home-button {
    width: fit-content;
    margin-top: 22px;
}

.sc-home-community {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 22px;
    align-items: center;
    padding: 26px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.05)),
        var(--surface, #ffffff);
}

.sc-home-community__links {
    display: grid;
    gap: 9px;
}

.sc-home-community__links a {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: 1px solid var(--border-soft, #e2e8f0);
    border-radius: 11px;
    background: var(--surface-soft, #f8fafc);
    font-weight: 700;
    text-decoration: none;
}

.sc-home-community__links a::after {
    content: "→";
}

.sc-home-community__links a:hover {
    border-color: rgba(59, 130, 246, 0.4);
    text-decoration: none;
}

.sc-home-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    padding: 4px 0 6px;
}

.sc-home-quick-links a {
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
    font-weight: 650;
}

@media (max-width: 1080px) {
    .sc-home-proof-grid,
    .sc-home-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sc-home-control-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .sc-home-hero,
    .sc-home-hero__inner {
        min-height: 620px;
    }

    .sc-home-hero {
        border-radius: 19px;
        background-position: 58% center;
    }

    .sc-home-split,
    .sc-home-support-grid,
    .sc-home-community {
        grid-template-columns: 1fr;
    }

    .sc-home-community__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .sc-home-hero,
    .sc-home-hero__inner {
        min-height: auto;
    }

    .sc-home-hero__inner {
        padding-top: 54px;
        padding-bottom: 74px;
    }

    .sc-home-hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.45rem);
    }

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

    .sc-home-button,
    .sc-home-support-grid .sc-home-list-panel .sc-home-button {
        width: 100%;
    }

    .sc-home-proof-grid,
    .sc-home-service-grid,
    .sc-home-control-grid,
    .sc-home-community__links {
        grid-template-columns: 1fr;
    }

    .sc-home-proof {
        padding: 15px;
    }

    .sc-home-photo-credit {
        right: 12px;
        bottom: 9px;
        max-width: calc(100% - 24px);
        font-size: 0.65rem;
    }

    .sc-home-split,
    .sc-home-control,
    .sc-home-community {
        padding: 19px;
        border-radius: 18px;
    }

    .sc-home-card,
    .sc-home-list-panel {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-home-button,
    .sc-home-card,
    .sc-home-text-link span {
        transition: none;
    }
}
