/* ===== TitanAxe homepage hero (design match) ===== */
.ta-hero {
    --hero-bg: #081420;
    --hero-green: #5fb173;
    --hero-green-bright: #6bc484;
    --hero-green-dim: rgba(95, 177, 115, 0.35);
    --hero-green-glow: rgba(95, 177, 115, 0.45);
    --hero-text: #ffffff;
    --hero-muted: #a8b4bc;
    --hero-card: rgba(12, 28, 38, 0.82);
    --hero-card-border: rgba(95, 177, 115, 0.45);
    --hero-amber: #e8a54b;
    --hero-font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    color: var(--hero-text);
    font-family: var(--hero-font);
    -webkit-font-smoothing: antialiased;
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.ta-hero *,
.ta-hero *::before,
.ta-hero *::after {
    box-sizing: border-box;
}

/* Mesh / plexus background */
.ta-hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 45%, rgba(95, 177, 115, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 20% 70%, rgba(95, 177, 115, 0.05) 0%, transparent 50%),
        var(--hero-bg);
}

.ta-hero-mesh canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.ta-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
    gap: 2rem 3.5rem;
    align-items: center;
}

/* ===== Left copy ===== */
.ta-hero-copy {
    max-width: 36rem;
}

.ta-hero-eyebrow {
    display: block;
    color: var(--hero-green);
    font-family: var(--hero-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.ta-hero-title {
    margin: 0 0 1.35rem;
    font-family: var(--hero-font);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
}

.ta-hero-title .ta-hero-accent {
    color: var(--hero-green);
    display: inline;
}

.ta-hero-lead {
    margin: 0 0 1.85rem;
    font-family: var(--hero-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: #c5ced4;
    max-width: 34rem;
}

.ta-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.ta-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    background: linear-gradient(180deg, #6bc484 0%, #5fb173 50%, #4fa066 100%);
    color: #fff !important;
    font-family: var(--hero-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: none;
    box-shadow: 0 0 0 0 rgba(95, 177, 115, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.ta-hero-btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(95, 177, 115, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.ta-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    background: transparent;
    color: #fff !important;
    font-family: var(--hero-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: 1.5px solid var(--hero-green);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.ta-hero-btn-secondary i {
    color: var(--hero-green);
    transition: transform 0.25s ease;
}

.ta-hero-btn-secondary:hover {
    background: rgba(95, 177, 115, 0.12);
    box-shadow: 0 0 20px rgba(95, 177, 115, 0.25);
    transform: translateY(-2px);
    color: #fff !important;
}

.ta-hero-btn-secondary:hover i {
    transform: translateX(3px);
}

.ta-hero-note {
    margin: 0;
    font-family: var(--hero-font);
    font-size: 12px;
    font-weight: 400;
    color: #6b7c86;
    line-height: 1.45;
}

/* ===== Right: constellation ===== */
.ta-hero-viz {
    position: relative;
    width: 100%;
    min-height: 620px;
    height: 640px;
    perspective: 900px;
}

.ta-hero-viz-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.35s ease-out;
}

.ta-hero-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.ta-hero-connections .ta-conn-path {
    fill: none;
    stroke: var(--hero-green);
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.75;
    filter: drop-shadow(0 0 4px rgba(95, 177, 115, 0.8));
}

.ta-hero-connections .ta-conn-flow {
    fill: none;
    stroke: #b8f0c8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 6 140;
    opacity: 0.95;
    filter: drop-shadow(0 0 6px rgba(184, 240, 200, 0.9));
    animation: ta-flow 3.2s linear infinite;
}

.ta-hero-connections .ta-conn-flow:nth-child(2) { animation-delay: 0.4s; }
.ta-hero-connections .ta-conn-flow:nth-child(4) { animation-delay: 0.8s; }
.ta-hero-connections .ta-conn-flow:nth-child(6) { animation-delay: 1.2s; }
.ta-hero-connections .ta-conn-flow:nth-child(8) { animation-delay: 1.6s; }
.ta-hero-connections .ta-conn-flow:nth-child(10) { animation-delay: 2s; }

@keyframes ta-flow {
    to { stroke-dashoffset: -146; }
}

.ta-hero-connections .ta-conn-node {
    fill: var(--hero-green);
    filter: drop-shadow(0 0 5px rgba(95, 177, 115, 1));
    animation: ta-node-pulse 2.4s ease-in-out infinite;
}

@keyframes ta-node-pulse {
    0%, 100% { opacity: 0.85; r: 3.5; }
    50% { opacity: 1; r: 4.5; }
}

/* Cards */
.ta-hcard {
    position: absolute;
    z-index: 2;
    background: var(--hero-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hero-card-border);
    border-radius: 10px;
    box-shadow:
        0 0 0 1px rgba(95, 177, 115, 0.08),
        0 0 24px rgba(95, 177, 115, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.35);
    padding: 0.75rem 0.85rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
    font-family: var(--hero-font);
}

.ta-hcard:hover {
    transform: scale(1.03) translateZ(12px);
    border-color: rgba(95, 177, 115, 0.85);
    box-shadow:
        0 0 0 1px rgba(95, 177, 115, 0.25),
        0 0 36px rgba(95, 177, 115, 0.4),
        0 16px 40px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.ta-hcard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.ta-hcard-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    margin: 0;
    font-family: var(--hero-font);
}

.ta-hcard-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    background: rgba(95, 177, 115, 0.18);
    color: var(--hero-green);
    border: 1px solid rgba(95, 177, 115, 0.4);
    font-family: var(--hero-font);
}

.ta-hcard-badge.is-amber {
    background: rgba(232, 165, 75, 0.15);
    color: var(--hero-amber);
    border-color: rgba(232, 165, 75, 0.4);
}

.ta-hcard-sub {
    font-size: 10px;
    color: #8a9aa5;
    margin: 0 0 0.35rem;
    font-family: var(--hero-font);
}

.ta-hcard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 11px;
    padding: 0.14rem 0;
    color: #c5d0d6;
    font-family: var(--hero-font);
}

.ta-hcard-row .ok {
    color: var(--hero-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 11px;
}

.ta-hcard-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.65rem;
    margin: 0.45rem 0 0.55rem;
}

.ta-hcard-meta dt {
    font-size: 9px;
    color: #6b7c86;
    margin: 0;
    font-family: var(--hero-font);
}

.ta-hcard-meta dd {
    font-size: 11px;
    color: #e2e8ec;
    margin: 0.08rem 0 0;
    font-weight: 500;
    font-family: var(--hero-font);
}

.ta-hcard-metrics {
    display: flex;
    gap: 0.4rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(95, 177, 115, 0.15);
    margin-top: 0.3rem;
}

.ta-hcard-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.ta-hcard-metric i {
    color: var(--hero-green);
    font-size: 13px;
}

.ta-hcard-metric span {
    font-size: 9px;
    color: #8a9aa5;
    font-family: var(--hero-font);
}

.ta-hcard-metric strong {
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    font-family: var(--hero-font);
}

.ta-hcard-footer {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    font-size: 11px;
    color: var(--hero-green);
    font-weight: 600;
    font-family: var(--hero-font);
}

.ta-entity-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem;
    font-family: var(--hero-font);
}

.ta-entity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.ta-pill {
    font-size: 9px;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #a8b4bc;
    font-family: var(--hero-font);
}

.ta-pill.is-risk {
    background: rgba(232, 165, 75, 0.12);
    color: var(--hero-amber);
}

/*
 * Card positions — hub-and-spoke with clear gaps (no overlap)
 * Outer ring sits on the edges; center is compact.
 */
.ta-hcard--center {
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: 228px;
    z-index: 3;
    padding: 0.85rem 0.9rem;
}

.ta-hcard--center:hover {
    transform: translate(-50%, -50%) scale(1.03);
}

.ta-hcard--scan {
    left: 0;
    top: 8px;
    width: 172px;
}

.ta-hcard--onboard {
    right: 0;
    top: 8px;
    width: 172px;
}

.ta-hcard--risk {
    right: 0;
    top: auto;
    bottom: 120px;
    width: 172px;
}

.ta-hcard--monitor {
    left: 0;
    bottom: 120px;
    width: 172px;
}

.ta-hcard--tasks {
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 188px;
}

.ta-hcard--tasks:hover {
    transform: translateX(-50%) scale(1.03);
}

/* Mini chart */
.ta-mini-chart {
    width: 100%;
    height: 36px;
    margin: 0.35rem 0 0.25rem;
}

.ta-mini-chart path {
    fill: none;
    stroke: var(--hero-green);
    stroke-width: 1.75;
    filter: drop-shadow(0 0 3px rgba(95, 177, 115, 0.7));
}

.ta-mini-chart .ta-chart-fill {
    fill: url(#taChartGrad);
    stroke: none;
    opacity: 0.35;
}

/* Risk gauge */
.ta-risk-gauge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.35rem 0;
}

.ta-risk-ring {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.ta-risk-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ta-risk-ring .track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 5;
}

.ta-risk-ring .prog {
    fill: none;
    stroke: var(--hero-amber);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 126;
    stroke-dashoffset: 28;
    filter: drop-shadow(0 0 4px rgba(232, 165, 75, 0.6));
}

.ta-risk-ring .ta-risk-val {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: none;
}

.ta-risk-ring .ta-risk-val strong {
    font-size: 0.72rem;
    color: var(--hero-amber);
    line-height: 1;
}

.ta-risk-ring .ta-risk-val span {
    font-size: 0.5rem;
    color: #8a9aa5;
}

.ta-risk-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.ta-risk-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: #a8b4bc;
    padding: 0.12rem 0;
}

.ta-risk-list li strong {
    color: #e2e8ec;
    font-weight: 600;
}

.ta-task-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.ta-task-stat {
    text-align: center;
    padding: 0.4rem 0.25rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(95, 177, 115, 0.12);
}

.ta-task-stat strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.1;
}

.ta-task-stat span {
    font-size: 0.55rem;
    color: #8a9aa5;
}

.ta-task-stat.is-warn strong {
    color: var(--hero-amber);
}

/* Entrance animations */
.ta-hero-copy {
    animation: ta-fade-up 0.8s ease both;
}

.ta-hcard--scan { animation: ta-fade-card 0.7s ease 0.15s both; }
.ta-hcard--onboard { animation: ta-fade-card 0.7s ease 0.25s both; }
.ta-hcard--risk { animation: ta-fade-card 0.7s ease 0.35s both; }
.ta-hcard--monitor { animation: ta-fade-card 0.7s ease 0.45s both; }
.ta-hcard--tasks { animation: ta-fade-card-tasks 0.7s ease 0.55s both; }
.ta-hcard--center { animation: ta-fade-card-center 0.7s ease 0.1s both; }

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

@keyframes ta-fade-card {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ta-fade-card-center {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ta-fade-card-tasks {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1200px) {
    .ta-hero-title {
        font-size: 36px;
    }

    .ta-hero-viz {
        min-height: 580px;
        height: 600px;
    }

    .ta-hcard--center {
        width: 210px;
    }

    .ta-hcard--scan,
    .ta-hcard--onboard,
    .ta-hcard--risk,
    .ta-hcard--monitor {
        width: 158px;
    }

    .ta-hcard--tasks {
        width: 170px;
    }

    .ta-hcard--monitor,
    .ta-hcard--risk {
        bottom: 110px;
    }
}

@media (max-width: 1100px) {
    .ta-hero-inner {
        gap: 1.75rem;
        padding: 0 1.25rem;
    }

    .ta-hero-title {
        font-size: 32px;
    }

    .ta-hero-lead {
        font-size: 15px;
    }

    .ta-hero-viz {
        min-height: 540px;
        height: 560px;
    }
}

@media (max-width: 991px) {
    .ta-hero {
        padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
        padding-bottom: 3rem;
        min-height: auto;
    }

    .ta-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ta-hero-copy {
        max-width: none;
        text-align: left;
    }

    .ta-hero-title {
        font-size: 34px;
    }

    .ta-hero-viz {
        min-height: 560px;
        height: 580px;
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .ta-hero-inner {
        padding: 0 1rem;
    }

    .ta-hero-eyebrow {
        font-size: 10px;
    }

    .ta-hero-title {
        font-size: 28px;
        line-height: 1.18;
    }

    .ta-hero-lead {
        font-size: 15px;
    }

    .ta-hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .ta-hero-btn-primary,
    .ta-hero-btn-secondary {
        justify-content: center;
        font-size: 14px;
    }

    .ta-hero-viz {
        min-height: 520px;
        height: 540px;
    }

    .ta-hcard--center {
        width: 200px;
        padding: 0.7rem 0.75rem;
    }

    .ta-hcard--scan,
    .ta-hcard--onboard,
    .ta-hcard--risk,
    .ta-hcard--monitor {
        width: 148px;
        padding: 0.55rem 0.6rem;
    }

    .ta-hcard--tasks {
        width: 168px;
    }

    .ta-hcard--monitor {
        bottom: 64px;
    }

    .ta-hcard-meta {
        grid-template-columns: 1fr;
    }

    .ta-hcard-metrics {
        gap: 0.2rem;
    }
}
