#home {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.14), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(7, 12, 20, 0.82), rgba(8, 14, 24, 0.24));
}

#home::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent 72%);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

#particles-js {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 7.5rem 1.5rem 5rem;
}

.hero-content {
    --hero-border: rgba(255, 255, 255, 0.1);
    --hero-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    position: relative;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: stretch;
}

.hero-copy,
.hero-system-card {
    position: relative;
    border: 1px solid var(--hero-border);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(18px) saturate(145%);
    box-shadow: var(--hero-shadow);
}

.hero-copy {
    padding: 2.4rem;
}

.hero-copy::before,
.hero-system-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%);
    pointer-events: none;
}

.hero-eyebrow {
    margin: 0 0 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.hero-eyebrow::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.45);
}

.hero-content .animate-title {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(2.8rem, 5.8vw, 5.6rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-color);
    text-wrap: balance;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.hero-content .animate-subheading {
    margin: 1.35rem 0 0;
    max-width: 62ch;
    font-size: clamp(1.05rem, 1.45vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
    text-wrap: pretty;
}

.hero-actions {
    margin-top: 1.75rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 1.35rem;
    border: 1px solid rgba(122, 225, 255, 0.2);
    border-radius: 14px;
    background: linear-gradient(135deg, #0f2d43, #154f75);
    color: #f8fbff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: none;
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.24);
    border-color: rgba(122, 225, 255, 0.34);
    filter: brightness(1.08);
}

.hero-btn:focus-visible {
    outline: 2px solid rgba(122, 225, 255, 0.4);
    outline-offset: 3px;
}

.hero-pill-row {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.88rem;
    font-weight: 600;
}

.hero-system-card {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.hero-system-topline {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.hero-system-window {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(4, 10, 18, 0.72);
    overflow: hidden;
}

.hero-system-window-bar {
    display: flex;
    gap: 0.45rem;
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-system-window-bar span {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.hero-system-window-bar span:first-child {
    background: rgba(255, 255, 255, 0.52);
}

.hero-system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1rem;
}

.hero-system-panel {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.hero-system-panel-primary {
    background: linear-gradient(160deg, rgba(6, 182, 212, 0.18), rgba(255, 255, 255, 0.04));
    border-color: rgba(6, 182, 212, 0.18);
}

.hero-system-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
}

.hero-system-value {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    line-height: 1.45;
    font-weight: 600;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.hero-metric {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.hero-metric strong {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
}

.hero-metric span {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.68);
}

.hero-copy,
.hero-system-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease;
}

.hero-copy.is-visible,
.hero-system-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    .hero-copy:hover,
    .hero-system-card:hover {
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    }
}

@media (max-width: 980px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-content .animate-title {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .hero-wrapper {
        min-height: auto;
        padding: 6.5rem 1rem 3.5rem;
    }

    .hero-content {
        padding: 0;
        gap: 1rem;
    }

    .hero-copy,
    .hero-system-card {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .hero-content .animate-title {
        font-size: clamp(2.35rem, 11vw, 3.45rem);
        line-height: 0.98;
    }

    .hero-content .animate-subheading {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-pill-row {
        gap: 0.55rem;
    }

    .hero-pill {
        width: 100%;
        justify-content: center;
    }

    .hero-system-grid,
    .hero-metrics {
        grid-template-columns: 1fr;
    }
}
