/* systems/systems.css — Systems division styles */

/* Apply systems orange accent throughout */
.panel-icon,
.back-link,
.stat-number,
.why-icon,
.section-title {
    color: var(--sc-systems-accent);
}

.panel-link {
    border-color: var(--sc-systems-accent);
    color: var(--sc-systems-accent);
}

.panel-link:hover {
    background: var(--sc-systems-accent);
    color: #fff;
}

.service-panel:hover {
    box-shadow: 0 8px 32px var(--sc-systems-shadow);
}

/* ── Hero ─────────────────────────────────────────────── */
#systems-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at 50% 40%, #1a0a00 0%, #000 70%);
    overflow: hidden;
}

/* Circuit-trace star field */
#systems-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 38% 62%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 63% 22%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 82% 78%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 22% 88%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 77% 12%, rgba(255,255,255,0.45) 0%, transparent 100%),
        radial-gradient(1px 1px at 48% 92%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 68% 48%, rgba(255, 109, 0, 0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 30% 38%, rgba(255, 109, 0, 0.35) 0%, transparent 100%),
        radial-gradient(2px 2px at 88% 58%, rgba(255, 109, 0, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.systems-hero-logo {
    width: clamp(60px, 10vw, 100px);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.systems-hero-title {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 0.5rem;
    color: var(--sc-text-light);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.systems-hero-division {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--sc-systems-accent);
    margin: 0 0 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.9s forwards;
}

.systems-hero-slogan {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--sc-text-dim);
    margin: 0 0 2.5rem;
    max-width: min(600px, 90vw);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.systems-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.6s forwards;
}

.cta-primary {
    padding: 0.75rem 2rem;
    background: var(--sc-systems-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-primary:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.cta-secondary {
    padding: 0.75rem 2rem;
    border: 1px solid var(--sc-systems-accent);
    color: var(--sc-systems-accent);
    border-radius: 6px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.cta-secondary:hover {
    background: var(--sc-systems-accent);
    color: #fff;
}

/* ── Stats bar ───────────────────────────────────────── */
#systems-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    background: var(--sc-bg-header);
    border-top: 1px solid var(--sc-border-dark);
    border-bottom: 1px solid var(--sc-border-dark);
}

#systems-stats .stat-item {
    flex: 1 1 150px;
    text-align: center;
    padding: 2rem 1rem;
    border-right: 1px solid var(--sc-border-dark);
}

#systems-stats .stat-item:last-child {
    border-right: none;
}

/* ── Services section ────────────────────────────────── */
#systems-services {
    padding: 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    background-color: var(--sc-bg-dark);
}

#systems-services h2.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin: 0 0 1rem;
    color: var(--sc-text-light);
    width: 100%;
}

.systems-panels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

/* ── Why StarCircuit Systems ─────────────────────────── */
#systems-why {
    padding: 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    background-color: var(--sc-bg-header);
    border-top: 1px solid var(--sc-border-subtle);
    border-bottom: 1px solid var(--sc-border-subtle);
}

#systems-why h2.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin: 0 0 0.5rem;
    color: var(--sc-text-light);
    width: 100%;
}

.why-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 960px;
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--sc-bg-panel);
    border: 1px solid var(--sc-border);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px var(--sc-systems-shadow);
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--sc-systems-accent);
}

.why-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--sc-text-light);
}

.why-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--sc-text-dim);
    margin: 0;
}

/* ── Contact CTA ─────────────────────────────────────── */
#systems-contact {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--sc-bg-dark) 0%, #1a0a00 100%);
}

#systems-contact h2 {
    font-size: 2rem;
    margin: 0 0 0.75rem;
    color: var(--sc-text-light);
}

#systems-contact p {
    color: var(--sc-text-faint);
    margin: 0 0 2rem;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Responsive ──────────────────────────────────────── */
@media (min-width: 768px) {
    .systems-panels {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: 0 auto;
    }

    .systems-panels .service-panel {
        max-width: 340px;
    }

    .why-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .why-item {
        flex: 1 1 200px;
        max-width: 220px;
    }
}

@media (max-width: 479px) {
    #systems-hero {
        padding: 3rem 1.5rem;
    }

    #systems-stats .stat-item {
        padding: 1.25rem 0.75rem;
    }

    #systems-services {
        padding: 3.5rem 1.25rem;
    }

    #systems-why {
        padding: 3.5rem 1.25rem;
    }

    #systems-contact {
        padding: 3.5rem 1.5rem;
    }
}

@media (min-width: 1280px) {
    #systems-hero {
        padding: 6rem 4rem;
    }

    #systems-services {
        padding: 7rem 4rem;
    }

    .systems-panels .service-panel {
        max-width: 380px;
    }

    #systems-why {
        padding: 7rem 4rem;
    }

    #systems-contact {
        padding: 7rem 4rem;
    }
}
