/* ═══════════════════════════════════════════════════════════
   hero.css — Cinematic AI Storyboard
   ═══════════════════════════════════════════════════════════ */

.hero-section {
    height: 100vh;
    position: relative;
    background: transparent;
    overflow: hidden;
    color: var(--ink);
}

.admin-bar .hero-section {
    height: calc(100vh - 32px);
}

/* ═══ RESTORED BACKGROUND ═══ */
.atmos-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.atmos-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 10%, rgba(13, 99, 186, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 90%, rgba(1, 63, 140, 0.12) 0%, transparent 60%);
    background-size: 100% 100%, 100% 100%;
}

.atmos-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    opacity: 0.6;
}

.atmos-orb--1 {
    width: 900px;
    height: 900px;
    top: -250px;
    right: -200px;
    background: radial-gradient(circle, rgba(90, 50, 180, .15) 0%, transparent 60%);
}

.atmos-orb--2 {
    width: 700px;
    height: 600px;
    bottom: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(60, 30, 140, .10) 0%, transparent 60%);
}

.atmos-orb--3 {
    width: 500px;
    height: 500px;
    top: 30%;
    left: 40%;
    background: radial-gradient(circle, rgba(255, 61, 138, .04) 0%, transparent 55%);
}

.atmos-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── LAYOUT ─── */
.hero-container {
    position: relative;
    z-index: 10;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(400px, 580px);
    gap: 30px;
    height: 100%;
    align-items: center;
}

/* ═══ TEXT FIXES ═══ */
.hero-title {
    font-family: var(--font-primary), sans-serif !important;
    font-size: clamp(32px, 4vw, 52px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    color: var(--ink);
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-title__gradient {
    display: inline;
    background: linear-gradient(135deg, var(--ink) 0%, var(--pink) 50%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-title__plain {
    color: var(--ink);
}

.hero-subtitle-styled {
    font-family: var(--font-primary), sans-serif;
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-styled__dark {
    color: #0c1b3d; /* Sleek dark navy matching the mockup */
}

.hero-subtitle-styled__gradient {
    background: var(--grad-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--ink-soft) !important;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: none !important;
}

/* ═══ BUTTONS ═══ */
.hero-cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-btn-primary {
    background: var(--grad-cta);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ═══ FAKE CURSOR ═══ */
.fake-cursor {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1000;
    pointer-events: none;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.1s ease;
}

.fake-cursor.clicking {
    transform: scale(0.8);
}

/* Scene 2 Action Button */
.action-btn-pill {
    background: rgba(255, 61, 138, 0.2);
    border: 1px solid rgba(255, 61, 138, 0.45);
    color: var(--ink);
    padding: 6px 16px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Scene 5: Rotating Showcase */
.agent-rotating-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-rotating-showcase .agent-focus-card {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: none;
    /* Managed by GSAP */
}

/* ═══ EXTRA VISUAL ENHANCEMENTS: HOLOGRAMS ═══ */
.cinematic-env::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(118, 39, 216, 0.05) 0%, transparent 10%);
    opacity: 0.5;
    pointer-events: none;
    animation: drift 20s infinite alternate linear;
}

.hologram-icon {
    position: absolute;
    opacity: 0.15;
    filter: blur(2px);
    pointer-events: none;
    z-index: 5;
}

@keyframes drift {
    from {
        transform: translate(-10px, -10px);
    }

    to {
        transform: translate(10px, 10px);
    }
}

/* ─── CINEMATIC ENVIRONMENT (Now inside the right box) ─── */
.cinematic-ai-world {
    position: relative;
    width: 100%;
    height: 520px;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 61, 138, 0.18) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 0 40px rgba(100, 50, 180, 0.05) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinematic-env {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.cyber-blueprint-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.75;
}

.env-gradient {
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 20% 30%, rgba(100, 50, 200, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, #000000 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(80, 40, 160, 0.06) 0%, transparent 70%);
    filter: blur(100px);
    animation: gradientMove 20s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(10%, 10%) rotate(5deg);
    }
}

.env-fog {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    filter: blur(80px);
    mix-blend-mode: overlay;
    animation: fogDrift 15s ease-in-out infinite alternate;
}

@keyframes fogDrift {
    0% {
        transform: scale(1) translate(-5%, -5%);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2) translate(5%, 5%);
        opacity: 0.6;
    }
}

.env-beams {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(255, 255, 255, 0.012) 100px, rgba(255, 255, 255, 0.012) 200px) !important;
    filter: blur(40px);
    opacity: 0.4;
}

.env-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* ─── SCENE LAYOUT ─── */
.cinematic-scenes {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.scene.active {
    opacity: 1;
    pointer-events: auto;
}

/* ─── GLASSMORPHISM UI ─── */
.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(90, 50, 180, 0.06) !important;
    color: var(--ink);
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.card-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-dim);
    margin-bottom: 20px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.card-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 24px;
}

.card-title.center {
    text-align: center;
}

.text-blue-glow {
    color: #4dbbff;
    text-shadow: 0 0 15px rgba(77, 187, 255, 0.5);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.workflow-tag {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.action-icon {
    width: 32px;
    height: 32px;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 61, 138, 0.5);
}

/* ─── SCENE SPECIFICS ─── */

/* Scene 4: Stack */
.workflow-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.stack-card {
    padding: 16px 24px;
    font-size: 14px;
    border-radius: 12px !important;
    transform: translateY(20px);
    opacity: 0;
}

/* Scene 6: Dashboard */
.dash-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.check {
    width: 18px;
    height: 18px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.check::after {
    content: '✓';
    font-size: 10px;
    color: var(--ink);
}

/* Scene 7: Metrics */
.metrics-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 30px;
    min-width: 400px;
}

.metric-item {
    text-align: left;
}

.metric-val {
    font-size: 32px;
    font-weight: 300;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.metric-unit {
    font-size: 14px;
    color: var(--pink) !important;
    font-weight: 600;
}

.metric-label {
    font-size: 10px;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 4px;
}

/* Scene 8: Human Interaction */
.human-interaction-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) saturate(1.2);
}

.ui-overlays {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.overlay-tag {
    background: rgba(255, 61, 138, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 61, 138, 0.25);
    padding: 12px 24px;
    border-radius: 50px !important;
    color: var(--pink);
    font-weight: 600;
}

/* Scene 9: Dept Labels */
.dept-labels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dept-label {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px !important;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

/* Scene 3: Transition Streak */
.transition-streak {
    position: absolute;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(-45deg);
    filter: blur(40px);
}

/* ═══ SCENE 1: BRAND INTRO ═══ */
.brand-intro {
    text-align: center;
    position: relative;
}

.brand-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 61, 138, 0.22) 0%, transparent 70%);
    filter: blur(40px);
}

.brand-name {
    font-family: var(--font-primary);
    font-size: 52px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.04em;
    position: relative;
    z-index: 2;
}

.brand-ai {
    color: var(--pink);
    -webkit-text-fill-color: var(--pink);
    margin-left: 4px;
    font-weight: 800;
}

.brand-tagline {
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

/* ═══ SCENE 2: BV BADGE ═══ */
.bv-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 61, 138, 0.12);
    border: 1px solid rgba(255, 61, 138, 0.25);
    padding: 4px 14px;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--pink);
}

.bv-badge__dot {
    width: 6px;
    height: 6px;
    background: var(--pink) !important;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--pink) !important;
}

/* ═══ SCENE 7: IMPROVED METRICS ═══ */
.metrics-card--improved {
    min-width: 380px;
}

.metrics-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    grid-column: span 2;
}

.metrics-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.metrics-card__live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.metrics-card--improved .metric-item {
    text-align: left;
    margin-bottom: 16px;
}

.metrics-card--improved .metric-item:last-child {
    margin-bottom: 0;
}

.metric-item__row {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.metrics-card--improved .metric-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
}

.metrics-card--improved .metric-unit {
    font-size: 14px;
    color: var(--pink);
    font-weight: 600;
    -webkit-text-fill-color: var(--pink);
}

.metric-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px !important;
    margin-top: 6px;
    overflow: hidden;
}

.metric-bar__fill {
    height: 100%;
    width: 0%;
    background: var(--pink);
    border-radius: 4px !important;
    transition: width 1.5s cubic-bezier(.16, 1, .3, 1);
}

/* ═══ SCENE 10: FIXED NETWORK ═══ */
.network-viz--fixed {
    position: relative;
    width: 380px;
    height: 380px;
}

.net-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.net-hub__inner {
    width: 56px;
    height: 56px;
    background: rgba(255, 61, 138, 0.2);
    border: 1px solid rgba(255, 61, 138, 0.45);
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 22px;
    box-shadow: 0 0 30px rgba(255, 61, 138, 0.3);
}

.net-hub__label {
    display: block;
    font-size: 10px;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
    white-space: nowrap;
}

.node-card {
    position: absolute;
    padding: 10px 18px;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 61, 138, 0.1);
}

.node-card--pos1 {
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
}

.node-card--pos2 {
    top: 22%;
    right: 2%;
}

.node-card--pos3 {
    bottom: 15%;
    right: 8%;
}

.node-card--pos4 {
    bottom: 15%;
    left: 8%;
}

.node-card--pos5 {
    top: 22%;
    left: 2%;
}

.network-paths {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.path-line {
    fill: none;
    stroke: rgba(255, 61, 138, 0.25);
    stroke-width: 1.5;
    stroke-dasharray: 8 4;
    animation: dashMove 8s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -100;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-right {
        height: 60vh;
    }

    .brand-name {
        font-size: 36px;
    }

    .network-viz--fixed {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .admin-bar .hero-section {
        height: auto;
        min-height: calc(100vh - 46px);
    }

    .hero-container {
        padding: 0 20px;
    }

    .hero-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }

    .brand-name {
        font-size: clamp(28px, 8vw, 42px);
        line-height: 1.2;
    }

    .tagline-text {
        font-size: clamp(18px, 5vw, 24px);
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 340px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-btn-primary__icon {
        display: none;
    }

    .search-interface {
        transform: scale(0.85);
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .search-text {
        font-size: 14px;
        text-align: center;
        display: block;
    }

    .workflow-stack {
        width: 100%;
    }

    .hero-right {
        height: auto;
        min-height: 400px;
        margin-top: 32px;
    }

    .network-viz--fixed {
        width: 220px;
        height: 220px;
    }

    .hero-live-badge {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 24px;
    }
}

/* ═══ SCENE 1: GIRL IMAGE SHOWCASE ═══ */
.girl-scene-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
}

.girl-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 63% 0%;
    filter: drop-shadow(0 10px 30px rgba(255, 61, 138, 0.35));
    animation: floatGirl 6s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes floatGirl {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}