body {
    margin: 0;
    min-height: 100vh;
    color: #ebf3ff;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(1200px 700px at 10% 10%, rgba(75, 102, 255, 0.18), transparent),
        radial-gradient(900px 600px at 100% 0%, rgba(8, 196, 255, 0.14), transparent),
        radial-gradient(900px 700px at 50% 100%, rgba(0, 255, 194, 0.09), transparent),
        #050814;
}

.ai3d-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}

.ai3d-topnav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    background: rgba(4, 9, 20, 0.65);
    border-bottom: 1px solid rgba(138, 166, 255, 0.16);
}

.ai3d-brand-icon { font-size: 1.95rem; color: #78e7ff; }
.ai3d-subhead { margin: 2px 0 0; color: #95aacf; }
.nav-link-button { background: transparent; font: inherit; }

.ai3d-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px;
    display: grid;
    gap: 22px;
}

.glass-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(147, 197, 253, 0.16);
    background: linear-gradient(140deg, rgba(12, 22, 44, 0.92), rgba(9, 15, 30, 0.72)), rgba(8, 12, 26, 0.9);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(120, 231, 255, 0.1), transparent 26%, transparent 70%, rgba(126, 90, 255, 0.12));
    pointer-events: none;
}

.ai3d-hero {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 28px;
    padding: 34px;
    min-height: 320px;
}

.ai3d-tag {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(120, 231, 255, 0.12);
    color: #8cf1ff;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 0.76rem;
    font-weight: 700;
}

.ai3d-hero h1 {
    margin: 14px 0 12px;
    font-family: "Outfit", sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -1.8px;
}

.ai3d-hero p {
    max-width: 720px;
    color: #9cb1cf;
    font-size: 1rem;
    line-height: 1.7;
}

.ai3d-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(132, 159, 255, 0.18);
    color: #dbe9ff;
}

.ai3d-hero-visual { position: relative; min-height: 260px; }
.orbital-shell { position: absolute; inset: 10px 20px 10px 20px; display: grid; place-items: center; }

.orbital-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(113, 196, 255, 0.22);
    box-shadow: 0 0 40px rgba(49, 145, 255, 0.14);
    animation: spin 18s linear infinite;
}

.orbital-ring-a { width: 260px; height: 260px; }
.orbital-ring-b { width: 180px; height: 180px; animation-direction: reverse; animation-duration: 13s; }

.orbital-core {
    width: 146px;
    height: 146px;
    border-radius: 36px;
    display: grid;
    place-items: center;
    text-align: center;
    background: radial-gradient(circle at 30% 30%, rgba(98, 233, 255, 0.34), rgba(20, 33, 62, 0.96));
    border: 1px solid rgba(136, 242, 255, 0.26);
    box-shadow: 0 0 40px rgba(78, 230, 255, 0.18);
}

.orbital-core span { font-size: 2.2rem; font-weight: 800; font-family: "Outfit", sans-serif; }
.orbital-core small { display: block; color: #b9d4f0; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }

#ai3d-neural-grid { position: absolute; inset: 0; width: 100%; height: 100%; }

.ai3d-kpi-grid, .ai3d-grid { display: grid; gap: 22px; }
.ai3d-kpi-grid { grid-template-columns: 0.9fr 0.85fr 1.25fr; }
.ai3d-grid { grid-template-columns: 1.15fr 1.1fr; }

.metric-tower, .metric-stack, .heatmap-card, .trajectory-card, .attendance-card, .section-card { padding: 24px; }
.tower-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tower-head span, .stack-item span, .tower-caption, .panel-header p, .section-mini { color: #90a5c9; }
.tower-head strong { font-size: 1.2rem; color: #ecf5ff; }

.pulse-ring {
    --progress: 50%;
    width: 210px;
    height: 210px;
    margin: 18px auto 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(8, 19, 39, 1) 52%, transparent 54%), conic-gradient(from 180deg, #39f3ff, #5f88ff var(--progress), rgba(255,255,255,0.08) var(--progress));
    box-shadow: inset 0 0 30px rgba(45, 205, 255, 0.18), 0 0 40px rgba(81, 166, 255, 0.12);
}

.pulse-center {
    width: 124px;
    height: 124px;
    border-radius: 32px;
    display: grid;
    place-items: center;
    background: rgba(8, 14, 28, 0.94);
    border: 1px solid rgba(143, 221, 255, 0.18);
}

.pulse-center span { font-size: 2rem; font-weight: 800; font-family: "Outfit", sans-serif; }
.pulse-center small { color: #93a9ce; }

.metric-stack { display: grid; gap: 12px; }
.stack-item { padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(132, 159, 255, 0.14); }
.stack-item strong { display: block; margin-top: 8px; font-size: 1.8rem; font-family: "Outfit", sans-serif; }

.panel-header { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.panel-header h3 { margin: 0; font-size: 1.15rem; font-family: "Outfit", sans-serif; }
.panel-header p { margin: 6px 0 0; }

.performance-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.performance-card { padding: 16px; border-radius: 20px; background: linear-gradient(150deg, rgba(126, 90, 255, 0.16), rgba(44, 229, 255, 0.08)); border: 1px solid rgba(163, 181, 255, 0.14); }
.performance-card h4, .heat-cell h4, .orbit-node h4 { margin: 0 0 6px; font-family: "Outfit", sans-serif; }
.performance-line { display: flex; justify-content: space-between; font-size: 0.9rem; color: #dce8ff; }

.heatmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.heat-cell {
    position: relative;
    min-height: 132px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(133, 158, 255, 0.2);
    background: rgba(255,255,255,0.03);
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(10deg);
}

.heat-cell::after {
    content: "";
    position: absolute;
    inset: auto 16px 16px 16px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(56, 245, 255, 0.16), rgba(94, 117, 255, 0.4));
}

.heat-total { font-size: 2rem; font-family: "Outfit", sans-serif; margin-top: 8px; }
.heat-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 0.86rem; color: #9fb5d3; }

.trajectory-surface {
    position: relative;
    min-height: 320px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(116, 133, 255, 0.16);
    padding: 16px;
}

#ai3d-trajectory-svg { width: 100%; height: 260px; }
.trajectory-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: #b0c3df; font-size: 0.84rem; }

.attendance-stream {
    display: grid;
    grid-template-columns: repeat(24, minmax(10px, 1fr));
    align-items: end;
    gap: 8px;
    min-height: 220px;
}

.stream-bar {
    position: relative;
    border-radius: 18px 18px 8px 8px;
    background: linear-gradient(180deg, rgba(58, 245, 255, 0.9), rgba(78, 94, 255, 0.22));
    box-shadow: 0 0 22px rgba(58, 245, 255, 0.12);
}

.stream-bar span {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    color: #8aa0c2;
}

.attendance-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 34px; }
.summary-pill { padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(133, 158, 255, 0.16); }
.summary-pill strong { display: block; margin-top: 8px; font-size: 1.4rem; }

.section-orbit { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.orbit-node { padding: 18px; border-radius: 24px; background: linear-gradient(150deg, rgba(14, 31, 58, 0.98), rgba(20, 22, 55, 0.82)); border: 1px solid rgba(135, 171, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02); }
.orbit-strength { font-size: 2rem; font-family: "Outfit", sans-serif; }
.orbit-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 12px; }
.orbit-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #36eaf8, #6574ff); }
.ai3d-empty { padding: 18px; border-radius: 18px; color: #9cb1cf; background: rgba(255,255,255,0.03); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
    .ai3d-hero, .ai3d-kpi-grid, .ai3d-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .ai3d-shell { padding: 16px; }
    .attendance-stream { gap: 5px; }
}
